/* AdRunAI site styles. Brand: navy #1a1f71, green #04bc57, white. See vault card.md "Look".
   Contrast rule: never small white text on green. Green buttons get navy text. */
@font-face {
  font-family: "Montserrat";
  src: url("/assets/montserrat-latin-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #1a1f71;
  --navy-deep: #12164f;
  --green: #04bc57;
  --green-dark: #037a39;   /* green for text on white: 5.4:1 */
  --white: #ffffff;
  --ink: #1d2033;
  --muted: #4d5168;
  --line: #dfe2ee;
  --tint: #f4f6fb;
  --radius: 14px;
  --heading: "Montserrat", ui-sans-serif, system-ui, sans-serif;
  --body: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; font-family: var(--body); font-size: 1.0625rem; line-height: 1.65; color: var(--ink); background: var(--white); }
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-underline-offset: 3px; }
a:hover { color: var(--green-dark); }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, .footer-h { font-family: var(--heading); color: var(--navy); line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 .6em; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.35rem); font-weight: 750; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 640px; }
.eyebrow { font-family: var(--heading); font-weight: 700; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--green-dark); margin-bottom: .75rem; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--navy); color: var(--white); padding: 10px 16px; z-index: 100; border-radius: 8px; }
.skip:focus { left: 8px; color: var(--white); }

/* Buttons */
.btn { display: inline-block; font-family: var(--heading); font-weight: 700; font-size: 1.02rem; text-decoration: none; background: var(--green); color: var(--navy); padding: 15px 26px; border-radius: 999px; border: 2px solid var(--green); line-height: 1.2; min-height: 48px; cursor: pointer; transition: background .15s, transform .15s; }
.btn:hover { background: #05d262; color: var(--navy); transform: translateY(-1px); }
.btn-sm { padding: 10px 18px; font-size: .92rem; min-height: 44px; }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: var(--white); }
.on-dark .btn-ghost { color: var(--white); border-color: rgba(255,255,255,.7); }
.on-dark .btn-ghost:hover { background: var(--white); color: var(--navy); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.text-link { font-family: var(--heading); font-weight: 700; text-decoration: none; }
.text-link::after { content: " \2192"; }

/* Header */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.header-row { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 16px; }
.brand img { height: 36px; width: auto; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 28px; }
.site-nav a:not(.btn) { font-family: var(--heading); font-weight: 600; text-decoration: none; color: var(--navy); padding: 10px 0; }
.site-nav a:not(.btn):hover, .site-nav a[aria-current="page"]:not(.btn) { color: var(--green-dark); box-shadow: inset 0 -2px 0 var(--green); }
.menu-toggle { display: none; font: 600 .95rem var(--heading); color: var(--navy); background: none; border: 2px solid var(--line); border-radius: 10px; padding: 9px 14px; min-height: 44px; align-items: center; gap: 10px; cursor: pointer; }
.menu-bars, .menu-bars::before, .menu-bars::after { display: block; width: 18px; height: 2px; background: var(--navy); position: relative; content: ""; }
.menu-bars::before { position: absolute; top: -6px; }
.menu-bars::after { position: absolute; top: 6px; }
@media (max-width: 860px) {
  .js .menu-toggle { display: inline-flex; }
  .js .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(26,31,113,.08); }
  .js .site-nav.open { display: block; }
  .js .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 20px; }
  .js .site-nav a:not(.btn) { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .js .nav-cta { margin-top: 16px; }
  .js .nav-cta .btn { display: block; text-align: center; }
  html:not(.js) .header-row { flex-wrap: wrap; padding-bottom: 10px; }
  html:not(.js) .site-nav ul { flex-wrap: wrap; gap: 14px; }
  .brand img { height: 32px; }
}

/* Sections */
section { padding: 84px 0; }
@media (max-width: 700px) { section { padding: 60px 0; } }
.tint { background: var(--tint); }
.on-dark { background: var(--navy); color: rgba(255,255,255,.88); }
.on-dark h1, .on-dark h2, .on-dark h3 { color: var(--white); }
.on-dark a:not(.btn) { color: var(--white); }
.on-dark .lead { color: rgba(255,255,255,.85); }
.on-dark .eyebrow { color: var(--green); }
.accent { color: var(--green); }

/* Hero */
.hero { background: var(--navy); color: var(--white); padding: 96px 0 104px; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; right: -120px; bottom: -160px; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, rgba(4,188,87,.22), rgba(4,188,87,0) 65%); pointer-events: none; }
.hero h1 { color: var(--white); }
.hero .eyebrow { color: var(--green); }
.hero h1 .line { display: block; }
.hero-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 56px; align-items: center; position: relative; z-index: 1; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; gap: 40px; } }
.sample-tag { font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; }
.hero .lead { color: rgba(255,255,255,.88); font-size: 1.3rem; max-width: 34em; margin-bottom: 1.8rem; }
.hero-note { margin-top: 18px; font-size: .95rem; color: rgba(255,255,255,.75); }
.page-hero { padding: 72px 0 64px; }
.page-hero h1 { max-width: 20ch; }

/* Grids and cards */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card .icon { width: 48px; height: 48px; border-radius: 12px; background: rgba(4,188,87,.12); color: var(--navy); display: grid; place-items: center; margin-bottom: 18px; }
.card .icon svg { width: 26px; height: 26px; }
.section-head { margin-bottom: 40px; }

/* Pain list */
.pain-list { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 14px; }
.pain-list li { background: var(--white); border-left: 4px solid var(--green); border-radius: 10px; padding: 18px 20px; box-shadow: 0 1px 0 var(--line); font-size: 1.08rem; }
.punch { font-family: var(--heading); font-weight: 700; font-size: 1.25rem; color: var(--navy); }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding: 28px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); }
.steps li::before { content: counter(step); font-family: var(--heading); font-weight: 800; font-size: 1rem; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: var(--white); margin-bottom: 14px; }
.steps h3 { margin-bottom: .35em; }
.steps p { margin: 0; color: var(--muted); }
.on-dark .steps li { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.16); }
.on-dark .steps li::before { background: var(--green); color: var(--navy); }
.on-dark .steps p { color: rgba(255,255,255,.82); }

/* Split + proof */
.split { display: grid; gap: 48px; grid-template-columns: 1.1fr .9fr; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 32px; } }
.proof-card { background: var(--navy); color: var(--white); border-radius: 20px; padding: 36px; }
.proof-card .quote { font-family: var(--heading); font-size: 1.45rem; font-weight: 700; line-height: 1.3; margin: 0 0 14px; }
.proof-card .quote .accent { color: var(--green); }
.proof-card p { color: rgba(255,255,255,.82); }
.shot { border-radius: 14px; border: 1px solid var(--line); box-shadow: 0 18px 40px rgba(26,31,113,.14); overflow: hidden; background: var(--white); }
.shot img { width: 100%; height: auto; }

/* Story */
.story { border-left: 4px solid var(--green); padding-left: 24px; }
.story p { font-size: 1.15rem; }
.sig { font-family: var(--heading); font-weight: 700; color: var(--navy); }

/* Services */
.service-group { padding: 40px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 300px 1fr; gap: 36px; }
.service-group:first-of-type { border-top: 0; }
@media (max-width: 860px) { .service-group { grid-template-columns: 1fr; gap: 16px; } }
.service-group .num { font-family: var(--heading); font-weight: 800; color: var(--green-dark); font-size: .9rem; letter-spacing: .1em; }
.service-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.service-list li { padding: 20px 22px; border-radius: 12px; background: var(--tint); }
.service-list strong { display: block; font-family: var(--heading); color: var(--navy); font-size: 1.08rem; margin-bottom: 2px; }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 0 22px; }
.faq summary { font-family: var(--heading); font-weight: 700; color: var(--navy); cursor: pointer; padding: 18px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--green-dark); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding-bottom: 18px; margin: 0; color: var(--muted); }

/* Check table */
.check-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.check-table th, .check-table td { text-align: left; padding: 16px 20px; border-bottom: 1px solid var(--line); vertical-align: top; }
.check-table thead th { background: var(--navy); color: var(--white); font-family: var(--heading); font-size: .9rem; letter-spacing: .04em; }
.check-table tbody th { font-family: var(--heading); color: var(--navy); width: 34%; }
.check-table tr:last-child th, .check-table tr:last-child td { border-bottom: 0; }
@media (max-width: 600px) {
  .check-table thead { display: none; }
  .check-table tr, .check-table th, .check-table td { display: block; width: 100%; }
  .check-table tbody th { padding-bottom: 4px; border-bottom: 0; width: auto; }
  .check-table td { padding-top: 0; }
}
.get-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.get-list li { display: flex; gap: 14px; align-items: flex-start; font-size: 1.08rem; }
.get-list li::before { content: ""; flex: 0 0 24px; height: 24px; margin-top: 2px; border-radius: 50%; background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%231a1f71' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }
.scorecard { display: flex; gap: 10px; margin-top: 8px; }
.dot { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .95rem; }
.dot::before { content: ""; width: 14px; height: 14px; border-radius: 50%; background: currentColor; }
.dot-g { color: #037a39; } .dot-y { color: #8a6500; } .dot-r { color: #b3261e; }

/* Form */
.form-card { background: var(--white); border-radius: 20px; padding: 36px; border: 1px solid var(--line); box-shadow: 0 18px 40px rgba(26,31,113,.10); }
@media (max-width: 600px) { .form-card { padding: 24px 18px; } }
.field { margin-bottom: 18px; }
.field-row { display: grid; gap: 0 18px; grid-template-columns: 1fr 1fr; }
@media (max-width: 600px) { .field-row { grid-template-columns: 1fr; } }
label { display: block; font-family: var(--heading); font-weight: 600; color: var(--navy); margin-bottom: 6px; font-size: .98rem; }
.opt { font-weight: 500; color: var(--muted); font-family: var(--body); font-size: .9rem; }
input, textarea { width: 100%; font: inherit; color: var(--ink); background: var(--white); border: 2px solid #c9cee0; border-radius: 10px; padding: 12px 14px; min-height: 48px; }
textarea { min-height: 96px; resize: vertical; }
input:focus, textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(4,188,87,.35); }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: #b3261e; }
.field-error { color: #b3261e; font-size: .92rem; margin-top: 6px; font-weight: 600; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: 16px; padding: 14px 16px; border-radius: 10px; font-weight: 600; }
.form-status:empty { display: none; }
.form-status.err { background: #fdecea; color: #8c1d18; }
.form-status.ok { background: #e6f7ee; color: #035c2b; }
.fine { font-size: .92rem; color: var(--muted); }
.form-card .btn { width: 100%; }

/* Placeholder note (used only where real content is still coming) */
.soon { border: 2px dashed var(--line); border-radius: var(--radius); padding: 28px; color: var(--muted); }

/* Legal */
.legal h2 { font-size: 1.35rem; margin-top: 2em; }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: .4em; }

/* CTA band */
.cta-band { text-align: center; }
.cta-band .btn-row { justify-content: center; }
.cta-band .lead { margin: 0 auto 1.8rem; }

/* Footer */
.site-footer { background: var(--navy-deep); color: rgba(255,255,255,.82); padding: 56px 0 28px; font-size: .98rem; }
.site-footer a { color: var(--white); }
.site-footer a:hover { color: var(--green); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand img { height: 36px; width: auto; margin-bottom: 16px; }
.footer-h { color: var(--white); font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.site-footer ul a { display: inline-block; padding: 6px 0; }
.footer-legal { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; border-top: 1px solid rgba(255,255,255,.14); margin-top: 40px; padding-top: 22px; font-size: .9rem; }
.footer-legal p { margin: 0; }

/* Spacing helpers (no inline styles: CSP blocks them) */
.mt { margin-top: 28px; }
.mt-sm { margin-top: 16px; }
.m0 { margin: 0; }

/* Work page proof screenshots */
.proof-grid { display: grid; gap: 32px; grid-template-columns: 1fr 1fr; align-items: start; margin-top: 24px; }
@media (max-width: 860px) { .proof-grid { grid-template-columns: 1fr; } }
figure figcaption { margin-top: 10px; font-size: .9375rem; color: var(--muted); }
.small { font-size: .9375rem; color: var(--muted); }

/* ===== Motion upgrade (2026-10-21). Rules: content is complete with no JS and with reduced motion.
   Animated start states only apply under html.motion, which site.js adds when motion is allowed. No loops. */

/* Hero: faint hexagon pattern from the logo (static) */
.hero::before { content: ""; position: absolute; inset: 0; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='100' viewBox='0 0 56 100'%3E%3Cpath d='M28 66L0 50V16L28 0l28 16v34L28 66zm0 0v34' fill='none' stroke='%23ffffff' stroke-opacity='.07' stroke-width='1'/%3E%3C/svg%3E"); background-size: 56px 100px; -webkit-mask-image: radial-gradient(ellipse 70% 90% at 78% 40%, #000 0%, transparent 75%); mask-image: radial-gradient(ellipse 70% 90% at 78% 40%, #000 0%, transparent 75%); pointer-events: none; }

/* Hero story card: check, plan, running (Example) */
.story-card { margin: 0; background: var(--white); color: var(--ink); border-radius: 18px; padding: 22px 24px 14px; box-shadow: 0 24px 60px rgba(0,0,0,.28); }
.story-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-family: var(--heading); font-weight: 700; color: var(--navy); margin-bottom: 14px; line-height: 1.3; }
.story-tabs { display: none; }
.js .story-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.story-tab { position: relative; overflow: hidden; font: 700 .82rem var(--heading); color: var(--muted); background: var(--tint); border: 0; border-radius: 8px; padding: 9px 4px 11px; min-height: 40px; cursor: pointer; }
.story-tab:hover { color: var(--navy); }
.story-tab[aria-selected="true"] { color: var(--navy); background: rgba(4,188,87,.14); }
.story-tab::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--green); transform: scaleX(0); transform-origin: left; }
.story-tab[aria-selected="true"]::after { transform: scaleX(1); }
.motion .story-card.autoplay .story-tab[aria-selected="true"]::after { animation: tabfill var(--d, 3600ms) linear both; }
@keyframes tabfill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.story-stage { display: grid; }
.story-panel { grid-area: 1 / 1; }
.story-panel:not(:first-child) { visibility: hidden; }
.js .story-panel { visibility: hidden; }
.js .story-panel.is-active { visibility: visible; }
.panel-h { font: 700 .74rem var(--heading); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 14px 0 2px; }
.story-panel ul { list-style: none; margin: 0; padding: 0; }
.story-panel li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: .96rem; line-height: 1.4; }
.plan-list li, .week-list li { justify-content: flex-start; }
.tick { flex: 0 0 22px; height: 22px; border-radius: 50%; background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%231a1f71' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/15px no-repeat; }
.day { flex: 0 0 auto; font: 700 .72rem var(--heading); letter-spacing: .06em; text-transform: uppercase; color: var(--white); background: var(--navy); border-radius: 6px; padding: 4px 7px; min-width: 42px; text-align: center; }
.story-end { font-family: var(--heading); font-weight: 700; color: var(--green-dark); margin: 10px 0 0; }
.story-foot { min-height: 34px; display: flex; justify-content: flex-end; align-items: center; }
.story-replay { font: 700 .88rem var(--heading); color: var(--navy); background: none; border: 0; padding: 6px 2px; min-height: 32px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.story-replay:hover { color: var(--green-dark); }
@media (max-width: 960px) { .story-card { max-width: 520px; } }
@media (max-width: 420px) { .story-card { padding: 18px 16px 10px; } .story-panel li { font-size: .92rem; } .story-head { font-size: .95rem; } }

/* Hero story animation (one pass per step) */
@keyframes rowIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes popIn { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: none; } }
@keyframes slideIn { from { opacity: 0; transform: translateX(-12px); } to { opacity: 1; transform: none; } }
.motion .story-panel.play .panel-h { animation: rowIn .4s ease both; }
.motion .story-panel.play li { animation: rowIn .45s cubic-bezier(.2,.7,.2,1) both; }
.motion .story-panel.play .dot, .motion .story-panel.play .tick { animation: popIn .35s cubic-bezier(.3,1.4,.5,1) both; }
.motion .story-panel.play .week-list li { animation-name: slideIn; }
.motion .story-panel.play .story-end { animation: rowIn .45s ease 1.9s both; }
.motion .story-panel.play li:nth-child(1) { animation-delay: .15s; } .motion .story-panel.play li:nth-child(1) .dot { animation-delay: .55s; }
.motion .story-panel.play li:nth-child(2) { animation-delay: .4s; }  .motion .story-panel.play li:nth-child(2) .dot { animation-delay: .8s; }
.motion .story-panel.play li:nth-child(3) { animation-delay: .65s; } .motion .story-panel.play li:nth-child(3) .dot { animation-delay: 1.05s; }
.motion .story-panel.play li:nth-child(4) { animation-delay: .9s; }  .motion .story-panel.play li:nth-child(4) .dot { animation-delay: 1.3s; }
.motion .story-panel.play li:nth-child(5) { animation-delay: 1.15s; } .motion .story-panel.play li:nth-child(5) .dot { animation-delay: 1.55s; }
.motion .story-panel.play li:nth-child(6) { animation-delay: 1.4s; } .motion .story-panel.play li:nth-child(6) .dot { animation-delay: 1.8s; }
.motion .story-panel.play .plan-list li:nth-child(1) .tick { animation-delay: 1.3s; }
.motion .story-panel.play .plan-list li:nth-child(2) .tick { animation-delay: 1.65s; }
.motion .story-panel.play .plan-list li:nth-child(3) .tick { animation-delay: 2s; }
.motion .story-panel.play .plan-list li:nth-child(4) .tick { animation-delay: 2.35s; }
.story-card.paused *, .story-card.paused *::after { animation-play-state: paused !important; }

/* Scroll reveals */
.motion .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); }
.motion .reveal.in { opacity: 1; transform: none; }

/* How we work: bar draws across each step */
.steps li::after { content: ""; position: absolute; left: 28px; right: 28px; top: 0; height: 3px; border-radius: 0 0 3px 3px; background: var(--green); }
.motion .steps li::after { transform: scaleX(0); transform-origin: left; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.motion .steps.in li::after { transform: scaleX(1); }
.motion .steps.in li:nth-child(2)::after { transition-delay: .35s; }
.motion .steps.in li:nth-child(3)::after { transition-delay: .7s; }

/* Header gets a shadow once you scroll */
.site-header { transition: box-shadow .2s ease, border-color .2s ease; }
.site-header.scrolled { box-shadow: 0 6px 20px rgba(26,31,113,.08); border-bottom-color: transparent; }

/* Service card demos (illustrations) */
.card.has-demo { display: flex; flex-direction: column; }
.card.has-demo p { margin-bottom: 20px; }
.demo { position: relative; display: block; height: 96px; margin-top: auto; border-radius: 10px; background: var(--tint); border: 1px solid var(--line); overflow: hidden; }
.demo-web::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 16px; background: #e8ebf5; }
.demo-dots { position: absolute; top: 5px; left: 8px; width: 6px; height: 6px; border-radius: 50%; background: #c2c8dc; box-shadow: 9px 0 #c2c8dc, 18px 0 #c2c8dc; }
.demo-line { position: absolute; left: 12px; top: 28px; width: 62%; height: 7px; border-radius: 4px; background: #d5d9e8; }
.demo-line.short { top: 42px; width: 40%; }
.demo-meter { position: absolute; left: 12px; right: 52px; bottom: 16px; height: 8px; border-radius: 4px; background: #dfe2ee; overflow: hidden; }
.demo-meter i { display: block; width: 92%; height: 100%; border-radius: inherit; background: var(--green); }
.demo-label { position: absolute; right: 10px; bottom: 10px; font: 700 .75rem var(--heading); color: var(--green-dark); }
.motion .demo-meter i { transition: width 1.2s cubic-bezier(.2,.7,.2,1) .2s; }
.motion .demo-web:not(.in) .demo-meter i { width: 0; }
.motion .demo-label { transition: opacity .3s ease 1.3s; }
.motion .demo-web:not(.in) .demo-label { opacity: 0; }

.demo-map { background-color: #e9edf6; background-image: linear-gradient(90deg, transparent 46%, #fff 46%, #fff 52%, transparent 52%), linear-gradient(0deg, transparent 56%, #fff 56%, #fff 63%, transparent 63%), linear-gradient(32deg, transparent 28%, #fff 28%, #fff 32%, transparent 32%); }
.demo-pin { position: absolute; left: calc(50% - 12px); top: 14px; width: 24px; height: 24px; background: var(--navy); border-radius: 50% 50% 50% 0; transform: rotate(-45deg); box-shadow: -2px 2px 6px rgba(26,31,113,.25); }
.demo-pin::after { content: ""; position: absolute; left: 7px; top: 7px; width: 10px; height: 10px; border-radius: 50%; background: var(--green); }
.demo-pill { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 6px; background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; font: 700 .75rem var(--heading); color: var(--navy); white-space: nowrap; box-shadow: 0 4px 10px rgba(26,31,113,.1); }
.demo-pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.motion .demo-pin { transition: transform .6s cubic-bezier(.3,1.5,.5,1) .15s, opacity .3s ease .15s; }
.motion .demo-map:not(.in) .demo-pin { opacity: 0; transform: translateY(-34px) rotate(-45deg); }
.motion .demo-pill { transition: opacity .35s ease .75s, transform .35s ease .75s; }
.motion .demo-map:not(.in) .demo-pill { opacity: 0; transform: translate(-50%, 6px); }

.demo-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; padding: 14px 12px; align-content: center; }
.demo-cal i { height: 28px; border-radius: 5px; background: #dfe2ee; }
.demo-cal i.on { background: var(--green); }
.motion .demo-cal i.on { transition: background-color .3s ease, transform .3s cubic-bezier(.3,1.4,.5,1); }
.motion .demo-cal:not(.in) i.on { background: #dfe2ee; transform: scale(.7); }
.motion .demo-cal .d2 { transition-delay: .2s; } .motion .demo-cal .d3 { transition-delay: .4s; } .motion .demo-cal .d4 { transition-delay: .6s; } .motion .demo-cal .d5 { transition-delay: .8s; } .motion .demo-cal .d6 { transition-delay: 1s; }

.demo-ads { padding: 12px 12px 10px; }
.demo-cap { display: block; font: 700 .72rem var(--heading); color: var(--muted); letter-spacing: .02em; }
.demo-stack { display: flex; height: 14px; margin: 10px 0 9px; border-radius: 7px; overflow: hidden; background: #dfe2ee; }
.demo-stack i { display: block; height: 100%; }
.demo-stack .s1 { width: 45%; background: var(--navy); } .demo-stack .s2 { width: 30%; background: var(--green); } .demo-stack .s3 { width: 25%; background: #8a93d6; }
.demo-legend { display: flex; gap: 12px; flex-wrap: wrap; }
.demo-legend b { display: inline-flex; align-items: center; gap: 5px; font: 600 .72rem var(--heading); color: var(--muted); }
.demo-legend b::before { content: ""; width: 8px; height: 8px; border-radius: 2px; }
.demo-legend .k1::before { background: var(--navy); } .demo-legend .k2::before { background: var(--green); } .demo-legend .k3::before { background: #8a93d6; }
.motion .demo-stack i { transition: width .7s cubic-bezier(.2,.7,.2,1); }
.motion .demo-stack .s2 { transition-delay: .35s; } .motion .demo-stack .s3 { transition-delay: .7s; }
.motion .demo-ads:not(.in) .demo-stack i { width: 0; }

/* Count-up numbers keep their width while counting */
.count { display: inline-block; font-variant-numeric: tabular-nums; text-align: right; }

/* Home proof numbers (real VoltRush data, same as the Work page) */
.stats { display: grid; gap: 14px; margin: 22px 0; }
.stats div { display: flex; flex-direction: column-reverse; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.16); }
.stats dd { margin: 0; font-family: var(--heading); font-weight: 800; font-size: 2.1rem; line-height: 1.1; color: var(--green); }
.stats dt { color: rgba(255,255,255,.85); font-size: .95rem; }
.proof-card .small { color: rgba(255,255,255,.78); }
.stats .count { text-align: left; }
