/* ============================================================
   REVIO — AI services rebuild (September 2026)
   Blocks and motion that did not exist in styles.css. Loaded after it on
   every generated page; reuses its tokens (--purple, --mint, --wash, --line,
   --panel, --ink, --muted, --font-head) so the two never disagree.
   ============================================================ */

/* ---------- hero: copy left, animated art or form right ---------- */
.ai-hero .wrap { max-width: 1320px; }
.ai-hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 48px; align-items: center; }
.ai-hero-copy h1 { max-width: 18ch; }
.ai-hero-copy .sub { max-width: 56ch; }
.ai-hero-copy .cta-row { margin-top: 30px; }
.ai-hero-proof { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 26px; padding: 0; }
.ai-hero-proof li { position: relative; padding-left: 24px; font-size: 14px; color: var(--muted); font-weight: 500; }
.ai-hero-proof li::before { content: ''; position: absolute; left: 0; top: 5px; width: 14px; height: 14px; border-radius: 50%;
  background: rgba(18,201,139,.18); box-shadow: inset 0 0 0 2px var(--mint); }
.ai-hero-side { position: relative; }
.ai-hero-art { display: grid; place-items: center; }
.ai-hero-art .art { width: 100%; max-width: 480px; height: auto; }
.ai-hero-form { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 26px; box-shadow: var(--shadow-soft); }
.ai-hero-form h2 { font-size: 20px; margin-bottom: 4px; }
.ai-hero-form .ai-form-sub { color: var(--muted); font-size: 14px; margin-bottom: 16px; }
/* Hero entrance */
.ai-hero-copy > * { animation: aiUp .7s cubic-bezier(.2,.7,.2,1) both; }
.ai-hero-copy > :nth-child(2) { animation-delay: .06s; }
.ai-hero-copy > :nth-child(3) { animation-delay: .12s; }
.ai-hero-copy > :nth-child(4) { animation-delay: .18s; }
.ai-hero-copy > :nth-child(5) { animation-delay: .24s; }
.ai-hero-side { animation: aiIn .9s cubic-bezier(.2,.7,.2,1) .15s both; }
@keyframes aiUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes aiIn { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }

/* ---------- breadcrumbs ---------- */
.ai-crumbs { font-size: 13px; color: var(--muted); padding: 14px 0 0; }
.ai-crumbs a { color: var(--muted); }
.ai-crumbs a:hover { color: var(--purple); }
.ai-crumbs span { margin: 0 4px; }
.ai-crumbs [aria-current] { color: var(--ink); font-weight: 600; }

/* ---------- section rhythm + staggered reveal ---------- */
.ai-sec { padding: 84px 0; }
.ai-sec.tight { padding: 56px 0; }
.ai-page .reveal { transition-delay: calc(var(--d, 0) * 70ms); }
.ai-body p { color: var(--prose-ink, var(--ink)); font-size: 17px; line-height: 1.7; max-width: 66ch; }
.ai-body p + p { margin-top: 16px; }

/* card extras used by the generated pages */
.svc-when { font-family: var(--font-head); font-size: 11px; font-weight: 700; letter-spacing: 1.8px; text-transform: uppercase; color: var(--mint-ink, #0b7f57); margin-bottom: 8px; }
.svc-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-family: var(--font-head); font-weight: 700; font-size: 14.5px; color: var(--purple); }
.svc-more svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .18s; }
a.card:hover .svc-more svg { transform: translateX(4px); }
.card .checks.small { margin-top: 14px; }
.card .checks.small li { font-size: 13.5px; }

/* ---------- numbered steps ---------- */
.ai-steps { display: grid; gap: 14px; padding: 0; counter-reset: s; }
.ai-step { display: grid; grid-template-columns: 56px 1fr; gap: 18px; align-items: start; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 22px 24px; position: relative; overflow: hidden; }
.ai-step::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: linear-gradient(180deg, var(--purple), var(--mint)); transform: scaleY(0); transform-origin: top; transition: transform .6s ease .2s; }
.ai-step.in::before { transform: scaleY(1); }
.ai-step-n { width: 44px; height: 44px; border-radius: 12px; background: rgba(88,98,255,.1); color: var(--purple); display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; font-size: 17px; }
.ai-step h3 { margin-bottom: 6px; }
.ai-step p { color: var(--muted); font-size: 15px; max-width: 70ch; }
.ai-step-meta { display: inline-block; margin-top: 10px; font-family: var(--font-head); font-size: 11.5px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; color: var(--mint-ink, #0b7f57); }
.ai-sec.section-deep .ai-step { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); }
.ai-sec.section-deep .ai-step p { color: rgba(255,255,255,.72); }

/* ---------- tables ---------- */
.ai-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); }
.ai-table { width: 100%; border-collapse: collapse; min-width: 640px; font-size: 14.5px; }
.ai-table th, .ai-table td { padding: 14px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.ai-table th { font-family: var(--font-head); font-size: 12px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); background: var(--wash); }
.ai-table th:nth-child(2) { color: var(--purple); }
.ai-table td.k { font-weight: 600; font-family: var(--font-head); white-space: nowrap; }
.ai-table td:nth-child(2) { background: rgba(88,98,255,.05); font-weight: 500; }
.ai-table tr:last-child td { border-bottom: 0; }

/* ---------- stats ---------- */
.stats.cols-4 { grid-template-columns: repeat(4, 1fr); }
.stat .n[data-count] { font-variant-numeric: tabular-nums; }

/* ---------- pricing extras ---------- */
.price-grid.cols-2 { grid-template-columns: repeat(2, 1fr); max-width: 900px; }
.ai-best { font-size: 13.5px; color: var(--muted); margin: -10px 0 18px; }
.ai-best b { color: var(--ink); font-family: var(--font-head); }
.price-card .setup { margin-top: 2px; }

/* ---------- compare (fit / not fit) ---------- */
.ai-cmp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.ai-cmp { border-radius: 18px; padding: 28px; border: 1px solid var(--line); background: var(--panel); }
.ai-cmp h3 { margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.ai-cmp h3::before { content: ''; width: 12px; height: 12px; border-radius: 50%; }
.ai-cmp.yes { border-color: rgba(18,201,139,.45); }
.ai-cmp.yes h3::before { background: var(--mint); }
.ai-cmp.no h3::before { background: var(--gold, #ffc553); }
.ai-cmp ul { padding: 0; display: grid; gap: 9px; }
.ai-cmp li { position: relative; padding-left: 24px; font-size: 15px; color: var(--prose-ink, var(--ink)); }
.ai-cmp.yes li::before { content: '✓'; position: absolute; left: 0; color: #0e8a68; font-weight: 800; }
.ai-cmp.no li::before { content: '–'; position: absolute; left: 2px; color: var(--muted); font-weight: 800; }

/* ---------- faq ---------- */
.ai-faqs { display: grid; gap: 10px; }
.ai-faq { border: 1px solid var(--line); border-radius: 14px; background: var(--panel); overflow: hidden; }
.ai-faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; font-family: var(--font-head); font-weight: 700; font-size: 16.5px; }
.ai-faq summary::-webkit-details-marker { display: none; }
.ai-faq summary i { flex: none; width: 26px; height: 26px; border-radius: 50%; background: rgba(88,98,255,.1); position: relative; transition: transform .25s ease, background .2s; }
.ai-faq summary i::before, .ai-faq summary i::after { content: ''; position: absolute; left: 50%; top: 50%; background: var(--purple); border-radius: 2px; transform: translate(-50%, -50%); }
.ai-faq summary i::before { width: 12px; height: 2px; }
.ai-faq summary i::after { width: 2px; height: 12px; transition: transform .25s; }
.ai-faq[open] summary i { background: var(--purple); }
.ai-faq[open] summary i::before, .ai-faq[open] summary i::after { background: #fff; }
.ai-faq[open] summary i::after { transform: translate(-50%, -50%) scaleY(0); }
.ai-faq-a { padding: 0 22px 20px; }
.ai-faq-a p { color: var(--prose-ink, var(--ink)); font-size: 15.5px; line-height: 1.7; }
.ai-faq-a p + p { margin-top: 10px; }
.ai-faq[open] .ai-faq-a { animation: aiUp .3s ease both; }

/* ---------- checks groups / timeline / pillars ---------- */
.ai-checks-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.ai-check-group { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 26px; }
.ai-check-group h3 { margin-bottom: 4px; }
.ai-timeline { position: relative; display: grid; gap: 0; }
.ai-timeline::before { content: ''; position: absolute; left: 118px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(180deg, var(--purple), var(--mint)); opacity: .5; }
.ai-tl { display: grid; grid-template-columns: 100px 1fr; gap: 36px; padding: 18px 0; position: relative; }
.ai-tl::before { content: ''; position: absolute; left: 113px; top: 26px; width: 12px; height: 12px; border-radius: 50%; background: var(--panel); border: 3px solid var(--purple); }
.ai-tl-when { font-family: var(--font-head); font-weight: 700; font-size: 13px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--purple); padding-top: 6px; text-align: right; }
.ai-tl-body { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 18px 22px; }
.ai-tl-body h3 { margin-bottom: 4px; }
.ai-tl-body p { color: var(--muted); font-size: 15px; }
.ai-pillar { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 28px; }
.ai-pillar .icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(88,98,255,.1); color: var(--purple); margin-bottom: 14px; }
.ai-pillar .icon svg { width: 22px; height: 22px; }
.ai-pillar p { color: var(--muted); font-size: 14.5px; }
.ai-links { padding: 0; margin-top: 14px; display: grid; gap: 6px; }
.ai-links a { display: block; padding: 9px 12px; border-radius: 9px; background: var(--wash); font-size: 14px; font-weight: 500; transition: background .15s, transform .15s; }
.ai-links a:hover { background: rgba(88,98,255,.12); color: var(--purple); transform: translateX(3px); }

/* ---------- band / logos / cases ---------- */
.ai-band { display: grid; grid-template-columns: 1.4fr .6fr; gap: 32px; align-items: center; }
.ai-band .cta-row { justify-content: flex-end; }
.ai-logos { padding: 34px 0; border-block: 1px solid var(--line); }
.ai-logos-lab { display: block; text-align: center; font-family: var(--font-head); font-size: 11.5px; letter-spacing: 2.2px; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.ai-logos .logo-track img { height: 34px; width: auto; }
.ai-case-body { padding: 22px 26px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.ai-case-body p { color: var(--muted); font-size: 14.5px; }
.case-card .case-top p { color: rgba(255,255,255,.78); margin-top: 6px; font-family: var(--font-head); font-weight: 500; }
a.case-card { display: flex; }

/* ---------- art panel inside split ---------- */
.ai-art-panel { background: var(--panel); border: 1px solid var(--line); border-radius: 22px; padding: 26px; display: grid; place-items: center; box-shadow: var(--shadow-soft); }
.ai-art-panel .art { width: 100%; max-width: 440px; height: auto; }

/* ============================================================
   ANIMATED ART. Everything below is decorative; stops under
   prefers-reduced-motion.
   ============================================================ */
.art { --p: var(--purple); --m: var(--mint); --k: var(--ink); --l: var(--line); --w: var(--panel); font-family: var(--font-head); overflow: visible; }
.art text { font-size: 12px; font-weight: 700; fill: var(--k); }

/* network */
.art-network .ln { stroke: var(--p); stroke-opacity: .35; stroke-width: 1.6; stroke-dasharray: 300; stroke-dashoffset: 300; animation: aiDraw 1.4s ease forwards; animation-delay: calc(var(--i) * .12s); }
.art-network .nd .dot { fill: var(--p); }
.art-network .nd:nth-child(3n) .dot { fill: var(--m); }
.art-network .nd .halo { fill: var(--p); fill-opacity: .12; transform-origin: center; transform-box: fill-box; animation: aiPulse 3.2s ease-in-out infinite; animation-delay: calc(var(--i) * .3s); }
.art-network .pk { fill: var(--m); filter: drop-shadow(0 0 6px rgba(18,201,139,.8)); }
@keyframes aiDraw { to { stroke-dashoffset: 0; } }
@keyframes aiPulse { 0%, 100% { transform: scale(.7); opacity: .5; } 50% { transform: scale(1.35); opacity: 1; } }

/* pipeline */
.art-pipeline .rail { stroke: var(--l); stroke-width: 6; stroke-linecap: round; }
.art-pipeline .stage rect { fill: var(--w); stroke: var(--p); stroke-width: 2; animation: aiStage 6s ease-in-out infinite; animation-delay: calc(var(--i) * 1.5s + .9s); }
.art-pipeline .stage text { fill: var(--p); font-size: 18px; }
.art-pipeline .doc { fill: var(--p); }
.art-pipeline .doc.d2 { fill: var(--m); }
.art-pipeline .doc.d3 { fill: #ffc553; }
.art-pipeline .labels text { fill: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; }
.art-pipeline .spark { fill: none; stroke: var(--m); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 420; stroke-dashoffset: 420; animation: aiDraw 2.4s ease-out .4s forwards; }
@keyframes aiStage { 0%, 8%, 100% { fill: var(--w); } 3% { fill: rgba(88,98,255,.18); } }

/* chat */
.art-chat .bub rect:first-child { fill: var(--w); stroke: var(--l); stroke-width: 1.5; }
.art-chat .bub.me rect:first-child { fill: var(--p); stroke: none; }
.art-chat .bub .tx { fill: var(--l); }
.art-chat .bub.me .tx { fill: rgba(255,255,255,.55); }
.art-chat .bub, .art-chat .typing, .art-chat .booked { opacity: 0; transform: translateY(10px); animation: aiUp .6s ease forwards; animation-delay: calc(var(--i) * .55s + .2s); }
.art-chat .typing rect { fill: var(--w); stroke: var(--l); stroke-width: 1.5; }
.art-chat .typing circle { fill: var(--muted); animation: aiDots 1.2s ease-in-out infinite; }
.art-chat .typing circle:nth-child(3) { animation-delay: .2s; }
.art-chat .typing circle:nth-child(4) { animation-delay: .4s; }
.art-chat .booked rect { fill: rgba(18,201,139,.16); stroke: var(--m); stroke-width: 1.5; }
.art-chat .booked path { fill: none; stroke: #0e8a68; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.art-chat .booked text { fill: #0e8a68; font-size: 13px; }
@keyframes aiDots { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(-5px); } }

/* chart */
.art-chart .grid line { stroke: var(--l); stroke-width: 1; }
.art-chart .bar { fill: var(--p); fill-opacity: .22; transform-origin: bottom; transform-box: fill-box; animation: aiGrow .9s cubic-bezier(.2,.7,.2,1) both; animation-delay: calc(var(--i) * .1s + .2s); }
.art-chart .bar:nth-child(n+8) { fill: var(--m); fill-opacity: .35; }
.art-chart .line { fill: none; stroke: var(--m); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 380; stroke-dashoffset: 380; animation: aiDraw 1.6s ease-out .8s forwards; }
.art-chart .pill rect { fill: rgba(18,201,139,.16); stroke: var(--m); stroke-width: 1.5; }
.art-chart .pill text { fill: #0e8a68; font-size: 13px; }
.art-chart .pill { opacity: 0; animation: aiUp .5s ease 2.2s forwards; }
@keyframes aiGrow { from { transform: scaleY(0); } to { transform: scaleY(1); } }

/* shield */
.art-shield .ring { fill: none; stroke: var(--p); stroke-width: 2.5; stroke-dasharray: 900; stroke-dashoffset: 900; animation: aiDraw 2s ease-out forwards; }
.art-shield .r1 { fill: rgba(88,98,255,.06); }
.art-shield .r2 { stroke: var(--m); animation-delay: .4s; }
.art-shield .tick { fill: none; stroke: var(--m); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 120; stroke-dashoffset: 120; animation: aiDraw .8s ease-out 1.6s forwards; }
.art-shield .orb circle { fill: var(--p); fill-opacity: .25; animation: aiFloat 4s ease-in-out infinite; animation-delay: calc(var(--i) * .7s); }
@keyframes aiFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* clock */
.art-clock .face { fill: var(--w); stroke: var(--l); stroke-width: 3; }
.art-clock .tk { stroke: var(--muted); stroke-width: 2; stroke-linecap: round; }
.art-clock .arc { fill: none; stroke: var(--m); stroke-width: 10; stroke-linecap: round; stroke-dasharray: 691; stroke-dashoffset: 691; transform: rotate(-90deg); transform-origin: 190px 160px; animation: aiArc 2.2s ease-out .3s forwards; }
.art-clock .hand { stroke: var(--k); stroke-width: 5; stroke-linecap: round; transform-origin: 190px 160px; }
.art-clock .hand.m { stroke: var(--p); stroke-width: 4; animation: aiSpin 8s linear infinite; }
.art-clock .hand.h { animation: aiSpin 96s linear infinite; }
.art-clock .pin { fill: var(--k); }
.art-clock .saved rect { fill: rgba(18,201,139,.16); stroke: var(--m); stroke-width: 1.5; }
.art-clock .saved text { fill: #0e8a68; font-size: 13px; text-anchor: middle; }
@keyframes aiArc { to { stroke-dashoffset: 260; } }
@keyframes aiSpin { to { transform: rotate(360deg); } }

/* voice */
.art-voice .wv { fill: var(--p); transform-origin: center; transform-box: fill-box; animation: aiWave 1.4s ease-in-out infinite; animation-delay: calc(var(--i) * .07s); }
.art-voice .wv:nth-child(3n) { fill: var(--m); }
.art-voice .call rect { fill: var(--w); stroke: var(--l); stroke-width: 1.5; }
.art-voice .call circle { fill: var(--m); animation: aiPulse 1.6s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
.art-voice .call text { font-size: 13px; text-anchor: middle; }
@keyframes aiWave { 0%, 100% { transform: scaleY(.4); } 50% { transform: scaleY(1.8); } }

/* code */
.art-code .win { fill: var(--w); stroke: var(--l); stroke-width: 2; }
.art-code .d1 { fill: #ff4c73; } .art-code .d2 { fill: #ffc553; } .art-code .d3 { fill: var(--m); }
.art-code .cl { fill: var(--l); transform-origin: left; transform-box: fill-box; animation: aiType .5s ease-out both; animation-delay: calc(var(--i) * .35s + .3s); }
.art-code .cl:nth-child(odd) { fill: rgba(88,98,255,.35); }
.art-code .cursor { fill: var(--p); animation: aiBlink 1s step-end infinite; }
.art-code .pass rect { fill: rgba(18,201,139,.16); stroke: var(--m); stroke-width: 1.5; }
.art-code .pass path { fill: none; stroke: #0e8a68; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.art-code .pass text { fill: #0e8a68; font-size: 13px; }
.art-code .pass { opacity: 0; animation: aiUp .5s ease 2.6s forwards; }
@keyframes aiType { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes aiBlink { 50% { opacity: 0; } }

/* lead */
.art-lead .person circle { fill: var(--p); }
.art-lead .person path { fill: none; stroke: var(--p); stroke-width: 10; stroke-linecap: round; }
.art-lead .ring circle { fill: none; stroke: var(--l); stroke-width: 2; stroke-dasharray: 6 8; animation: aiSpin 40s linear infinite; transform-origin: 190px 160px; }
.art-lead .sat rect { fill: var(--w); stroke: var(--l); stroke-width: 1.5; }
.art-lead .sat text { text-anchor: middle; font-size: 12.5px; }
.art-lead .sat { animation: aiFloat 5s ease-in-out infinite; animation-delay: calc(var(--i) * .8s); }
.art-lead .pk { fill: var(--m); filter: drop-shadow(0 0 6px rgba(18,201,139,.8)); }

/* layers */
.art-layers .lay path { fill: rgba(88,98,255,.12); stroke: var(--p); stroke-width: 2; stroke-linejoin: round; animation: aiFloat 5s ease-in-out infinite; animation-delay: calc(var(--i) * .5s); }
.art-layers .lay:nth-child(2) path { fill: rgba(18,201,139,.16); stroke: var(--m); }
.art-layers .lay:nth-child(3) path { fill: rgba(255,197,83,.18); stroke: #e0a300; }
.art-layers .lab text { font-size: 12px; fill: var(--muted); }

/* calculator */
.art-calc .win { fill: var(--w); stroke: var(--l); stroke-width: 2; }
.art-calc .screen { fill: var(--k); }
.art-calc .num { fill: var(--m); font-size: 24px; }
.art-calc .key { fill: var(--wash); stroke: var(--l); animation: aiKey 4s ease-in-out infinite; animation-delay: calc(var(--i) * .3s); }
@keyframes aiKey { 0%, 6%, 100% { fill: var(--wash); } 3% { fill: rgba(88,98,255,.25); } }

/* ============================================================
   forms (native, post to the delivery dashboard)
   ============================================================ */
.ai-form { display: grid; gap: 14px; }
.ai-form .form-grid { gap: 14px; }
.ai-form .field label { font-size: 13.5px; }
.ai-form .field label small { font-weight: 500; color: var(--muted); }
.ai-form .chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ai-form .chips label { position: relative; cursor: pointer; }
.ai-form .chips input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.ai-form .chips span { display: inline-block; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); font-size: 13.5px; font-weight: 600; transition: all .15s; }
.ai-form .chips input:checked + span { background: var(--purple); color: #fff; border-color: var(--purple); }
.ai-form .chips input:focus-visible + span { outline: 3px solid var(--purple-2); outline-offset: 2px; }
.ai-form .hp { position: absolute; left: -9999px; }
.ai-form .btn { justify-self: start; }
.ai-form-status { font-size: 14px; padding: 12px 14px; border-radius: 10px; display: none; }
.ai-form-status.ok { display: block; background: rgba(18,201,139,.14); color: #0b7f57; }
.ai-form-status.err { display: block; background: rgba(255,76,115,.12); color: #b8163f; }
.ai-form-done { text-align: center; padding: 30px 10px; }
.ai-form-done .tick { width: 64px; height: 64px; border-radius: 50%; background: rgba(18,201,139,.18); display: grid; place-items: center; margin: 0 auto 18px; }
.ai-form-done .tick svg { width: 30px; height: 30px; stroke: #0e8a68; stroke-width: 3; fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: aiDraw .6s ease-out .2s forwards; }
.ai-form-wrap { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 30px; box-shadow: var(--shadow-soft); }
.ai-form-side h3 { margin-bottom: 8px; }
.ai-form-side p { color: var(--muted); font-size: 15px; }
.ai-form-side .contact-lines { display: grid; gap: 10px; margin-top: 18px; }
.ai-form-side .contact-lines a, .ai-form-side .contact-lines span { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.ai-form-side .contact-lines svg { width: 18px; height: 18px; color: var(--purple); }
.ai-form-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 40px; align-items: start; }

/* ============================================================
   calculator
   ============================================================ */
.calc { display: grid; grid-template-columns: 1.05fr .95fr; gap: 28px; align-items: start; }
.calc-in { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 26px; display: grid; gap: 22px; }
.calc-in h3 { font-size: 15px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); margin-bottom: -6px; }
.calc-row { display: grid; gap: 8px; }
.calc-row .lab { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-family: var(--font-head); font-weight: 700; font-size: 14.5px; }
.calc-row .lab output { color: var(--purple); font-variant-numeric: tabular-nums; }
.calc-row .hint { font-size: 12.5px; color: var(--muted); }
.calc-row input[type=range] { width: 100%; accent-color: var(--purple); height: 28px; }
.calc-row select, .calc-row input[type=number] { font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); color: var(--ink); }
.calc-out { position: sticky; top: 90px; display: grid; gap: 14px; }
.calc-hero { background: var(--panel-grad); color: #fff; border-radius: 20px; padding: 28px; position: relative; overflow: hidden; }
.calc-hero::after { content: ''; position: absolute; right: -80px; bottom: -120px; width: 260px; height: 260px; border-radius: 50%; background: rgba(66,224,185,.14); }
.calc-hero .k { font-family: var(--font-head); font-size: 11.5px; letter-spacing: 2px; text-transform: uppercase; color: var(--mint); }
.calc-hero .big { font-family: var(--font-head); font-size: clamp(38px, 5vw, 56px); font-weight: 700; letter-spacing: -1.6px; line-height: 1.05; margin: 8px 0 4px; font-variant-numeric: tabular-nums; }
.calc-hero .sm { color: rgba(255,255,255,.72); font-size: 14.5px; }
.calc-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.calc-tile { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
.calc-tile .k { font-size: 12px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); font-family: var(--font-head); font-weight: 700; }
.calc-tile .v { font-family: var(--font-head); font-size: 26px; font-weight: 700; letter-spacing: -.8px; margin-top: 4px; font-variant-numeric: tabular-nums; }
.calc-tile .v.good { color: #0e8a68; }
.calc-bars { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
.calc-bars .k { font-size: 12px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); font-family: var(--font-head); font-weight: 700; margin-bottom: 12px; }
.calc-bar { display: grid; grid-template-columns: 120px 1fr 90px; gap: 10px; align-items: center; font-size: 13.5px; margin-top: 8px; }
.calc-bar .t { height: 12px; background: var(--wash); border-radius: 999px; overflow: hidden; }
.calc-bar .t i { display: block; height: 100%; border-radius: 999px; background: var(--purple); transition: width .6s cubic-bezier(.2,.7,.2,1); }
.calc-bar.gain .t i { background: var(--mint); }
.calc-bar b { text-align: right; font-variant-numeric: tabular-nums; }
.calc-fit { background: rgba(18,201,139,.1); border: 1px solid rgba(18,201,139,.4); border-radius: 16px; padding: 18px; font-size: 14.5px; }
.calc-fit b { font-family: var(--font-head); display: block; margin-bottom: 4px; }
.calc-note { font-size: 12.5px; color: var(--muted); }
.calc .btn { width: 100%; }

/* ============================================================
   booking
   ============================================================ */
.ai-book { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-soft); }
.ai-book iframe { width: 100%; min-height: 860px; border: 0; display: block; background: transparent; }
.ai-book-fallback { padding: 34px; text-align: center; }
.ai-book-fallback p { color: var(--muted); max-width: 48ch; margin: 10px auto 20px; }

/* ============================================================
   home page extras
   ============================================================ */
/* Top and bottom only: the shorthand used to zero the wrapper's 24px sides,
   so the hero text ran edge to edge on phones (Rob 2026-09-14). */
.hm-hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; padding-top: 84px; padding-bottom: 80px; }
.hm-hero h1 { max-width: 16ch; }
.hm-hero .sub { max-width: 50ch; }
.hm-orbit { position: relative; aspect-ratio: 1 / 1; max-width: 520px; margin-left: auto; }
.hm-orbit .art { width: 100%; height: 100%; }
.hm-ladder { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; position: relative; }
.hm-ladder::before { content: ''; position: absolute; left: 12%; right: 12%; top: 38px; height: 2px; background: linear-gradient(90deg, var(--purple), var(--mint)); opacity: .35; }
.hm-rung { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 30px 28px; position: relative; transition: transform .2s, box-shadow .2s, border-color .2s; display: flex; flex-direction: column; }
.hm-rung:hover { transform: translateY(-5px); box-shadow: var(--shadow-lift); border-color: var(--card-hover-border); }
.hm-rung .no { width: 36px; height: 36px; border-radius: 50%; background: var(--purple); color: #fff; display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; margin-bottom: 18px; box-shadow: 0 0 0 6px var(--bg); }
.hm-rung:nth-child(2) .no { background: var(--deep); }
.hm-rung:nth-child(3) .no { background: var(--mint); color: #04231a; }
.hm-rung .when { font-family: var(--font-head); font-size: 11px; letter-spacing: 1.8px; text-transform: uppercase; color: var(--mint-ink, #0b7f57); }
.hm-rung h3 { font-size: 22px; margin: 6px 0 10px; }
.hm-rung p { color: var(--muted); font-size: 15px; }
.hm-rung .fee { margin-top: auto; padding-top: 18px; font-family: var(--font-head); font-weight: 700; font-size: 20px; color: var(--purple); }
.hm-rung .fee small { display: block; font-size: 12.5px; color: var(--muted); font-weight: 500; letter-spacing: 0; }
.hm-rung .hm-cta { margin-top: 20px; align-self: flex-start; }
.meeting-row { padding: 0 0 56px; margin-top: -24px; }
.meeting-row .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 22px; }
.meeting-row p { margin: 0; color: var(--muted); font-size: 15px; }
.meeting-row .cta-row { margin: 0; }
.hm-marquee { overflow: hidden; border-block: 1px solid var(--line); padding: 16px 0; background: var(--wash); }
.hm-marquee .track { display: flex; gap: 48px; white-space: nowrap; width: max-content; animation: aiMarquee 40s linear infinite; }
.hm-marquee span { font-family: var(--font-head); font-weight: 700; font-size: 14px; letter-spacing: .5px; color: var(--muted); display: inline-flex; align-items: center; gap: 12px; }
.hm-marquee span::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--mint); }
@keyframes aiMarquee { to { transform: translateX(-50%); } }
.hm-marquee:hover .track { animation-play-state: paused; }
.hm-grid-services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.hm-svc { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 20px; display: flex; gap: 14px; align-items: flex-start; transition: transform .18s, border-color .18s, box-shadow .18s; }
.hm-svc:hover { transform: translateY(-3px); border-color: var(--card-hover-border); box-shadow: var(--shadow-soft); }
.hm-svc .icon { flex: none; width: 56px; height: 56px; border-radius: 16px; background: linear-gradient(135deg, #5862ff 0%, #8b5cf6 100%); color: #fff; display: grid; place-items: center; box-shadow: 0 6px 16px rgba(88,98,255,.25); }
.hm-svc .icon svg { width: 28px; height: 28px; }
.hm-svc:nth-child(4n+2) .icon { background: linear-gradient(135deg, #12c98b 0%, #0ea5e9 100%); color: #fff; box-shadow: 0 6px 16px rgba(18,201,139,.28); }
.hm-svc:nth-child(4n+3) .icon { background: linear-gradient(135deg, #3b34a8 0%, #5862ff 100%); color: #fff; box-shadow: 0 6px 16px rgba(59,52,168,.28); }
.hm-svc:nth-child(4n+4) .icon { background: linear-gradient(135deg, #ffc553 0%, #ff7a59 100%); color: #2a1f00; box-shadow: 0 6px 16px rgba(255,197,83,.32); }
.hm-ladder-note { text-align: center; color: var(--muted); font-size: 14.5px; max-width: 760px; margin-left: auto; margin-right: auto; }
.hm-ladder-note a { color: var(--purple); font-weight: 600; }
.hm-svc h3 { font-size: 15.5px; margin-bottom: 3px; }
.hm-svc p { font-size: 13.5px; color: var(--muted); }
.hm-proof { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }

/* ============================================================
   responsive
   ============================================================ */
@media (max-width: 1080px) {
  .hm-grid-services { grid-template-columns: repeat(2, 1fr); }
  .stats.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .price-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  .ai-hero-grid, .hm-hero, .hm-proof, .calc, .ai-form-grid, .ai-band { grid-template-columns: 1fr; }
  .ai-hero-art { order: -1; }
  .ai-hero-art .art { max-width: 340px; }
  .hm-orbit { max-width: 380px; margin: 0 auto; }
  .ai-band .cta-row { justify-content: flex-start; }
  .calc-out { position: static; }
  .hm-ladder { grid-template-columns: 1fr; }
  .hm-ladder::before { display: none; }
  .ai-cmp-grid, .ai-checks-grid, .price-grid.cols-2 { grid-template-columns: 1fr; }
  .ai-timeline::before { left: 8px; }
  .ai-tl { grid-template-columns: 1fr; gap: 6px; padding-left: 30px; }
  .ai-tl::before { left: 3px; }
  .ai-tl-when { text-align: left; }
}
@media (max-width: 640px) {
  .ai-sec { padding: 60px 0; }
  .ai-step { grid-template-columns: 40px 1fr; gap: 12px; padding: 18px; }
  .ai-step-n { width: 34px; height: 34px; border-radius: 9px; font-size: 14px; }
  .calc-tiles { grid-template-columns: 1fr; }
  .calc-bar { grid-template-columns: 90px 1fr 70px; }
  .hm-grid-services { grid-template-columns: 1fr; }
  .ai-form .form-grid { grid-template-columns: 1fr; }
  .ai-book iframe { min-height: 720px; }
}
@media (prefers-reduced-motion: reduce) {
  .art *, .ai-hero-copy > *, .ai-hero-side, .hm-marquee .track, .ai-step::before { animation: none !important; transition: none !important; }
  .art .ln, .art .line, .art .ring, .art .tick, .art .spark { stroke-dashoffset: 0 !important; }
  .art .bar, .art .cl { transform: none !important; }
  .art .bub, .art .typing, .art .booked, .art .pill, .art .pass { opacity: 1 !important; transform: none !important; }
  .art-clock .arc { stroke-dashoffset: 260 !important; }
  .ai-step::before { transform: scaleY(1); }
}
/* dark theme touch-ups */
:root[data-theme="dark"] .ai-table td:nth-child(2) { background: rgba(139,146,255,.08); }
:root[data-theme="dark"] .ai-cmp.yes li::before, :root[data-theme="dark"] .svc-when, :root[data-theme="dark"] .ai-step-meta { color: var(--mint); }
:root[data-theme="dark"] .calc-tile .v.good { color: var(--mint); }
:root[data-theme="dark"] .ai-form-status.ok { color: var(--mint); }
:root[data-theme="dark"] .art-chat .booked text, :root[data-theme="dark"] .art-chart .pill text, :root[data-theme="dark"] .art-clock .saved text, :root[data-theme="dark"] .art-code .pass text { fill: var(--mint); }
