/* tsKaizen design system v7: "Step" (single white theme on every device)
   Layout concept: Freshworks-style SaaS layout on white. Bold friendly display type,
   pastel tinted panels, rounded cards, pill buttons. One blue for action, coral for the
   step forward, serif italics for the human accent. */
:root {
  --bg: #FFFFFF;
  --bg-2: #F6F7FB;
  --card: #FFFFFF;
  --ink: #0E1B3D;
  --ink-2: #33405E;
  --muted: #5D6884;
  --line: #E4E7F0;
  --line-2: #CDD3E1;
  --blue: #2B59FF;
  --blue-hover: #1F45D6;
  --blue-text: #2448D9;
  --blue-soft: #EAF0FF;
  --coral: #FF6B4A;
  --coral-text: #C2410C;
  --green: #12B76A;
  --green-text: #067647;
  --on-blue: #FFFFFF;
  --tint-sky: #EAF2FF;
  --tint-peach: #FFF1EA;
  --tint-mint: #E8F8F0;
  --tint-lilac: #F1EEFF;
  --deep: #0E1B3D;
  --deep-text: #C8D0E4;
  --err: #B42318;

  --display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", sans-serif;
  --body: "Figtree", "Segoe UI", Roboto, Arial, sans-serif;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;

  --maxw: 1200px;
  --r-sm: 10px; --r-md: 16px; --r-lg: 24px; --r-xl: 32px;
  --shadow: 0 1px 2px rgba(14,27,61,.06), 0 16px 40px -20px rgba(14,27,61,.22);
  --shadow-lg: 0 2px 4px rgba(14,27,61,.05), 0 30px 60px -28px rgba(14,27,61,.35);
  color-scheme: light;
}
/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink-2); font: 400 17px/1.65 var(--body); -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; }
a { color: var(--blue-text); text-underline-offset: 3px; }
p { margin: 0; }
h1, h2, h3, h4 { font-family: var(--display); color: var(--ink); margin: 0; font-weight: 700; letter-spacing: -.025em; line-height: 1.05; text-wrap: balance; }
h1 { font-size: clamp(44px, 6.4vw, 80px); font-weight: 800; letter-spacing: -.04em; line-height: .98; }
h2 { font-size: clamp(32px, 4.2vw, 52px); letter-spacing: -.035em; }
h3, .h3 { font-size: clamp(20px, 2vw, 24px); font-weight: 700; letter-spacing: -.02em; line-height: 1.2; }
h1 em, h2 em, h3 em, .grad-text { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; color: var(--blue-text); }
h1 em { color: var(--coral); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: var(--r-sm); z-index: 100; }
.skip:focus { left: max(16px, env(safe-area-inset-left, 0px)); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
[hidden] { display: none !important; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.section { padding-block: clamp(64px, 9vw, 120px); }
.section-tight { padding-block: clamp(24px, 4vw, 48px) clamp(64px, 8vw, 104px); }
.alt { background: var(--bg-2); }
.stack { display: grid; gap: 16px; align-content: start; }
.stack-lg { display: grid; gap: 32px; align-content: start; }
.eyebrow, .kicker { font: 600 15px var(--body); color: var(--blue-text); }
.lede { font-size: clamp(18px, 1.6vw, 20px); line-height: 1.6; color: var(--muted); max-width: 40em; }
.muted { color: var(--muted); }
.hint { font-size: 14px; color: var(--muted); }
.shead { display: grid; gap: 14px; max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.shead.center { margin-left: auto; margin-right: auto; text-align: center; justify-items: center; }
.shead.row { max-width: none; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 20px; }
.tint-sky { background: var(--tint-sky); } .tint-peach { background: var(--tint-peach); } .tint-mint { background: var(--tint-mint); } .tint-lilac { background: var(--tint-lilac); }

/* Buttons: pills */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border-radius: 999px; font: 600 16px/1 var(--body); text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: background .15s, border-color .15s, transform .15s, color .15s; white-space: nowrap; }
.btn-lg { min-height: 56px; padding: 0 30px; font-size: 17px; }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 15px; }
.btn-primary { background: var(--blue); color: var(--on-blue); }
.btn-primary:hover { background: var(--blue-hover); transform: translateY(-1px); }
.btn-ghost, .btn-secondary { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover, .btn-secondary:hover { border-color: var(--ink); }
.btn-light { background: #FFFFFF; color: #0E1B3D; }
.btn-light:hover { background: #EAF0FF; }
.btn-outline-light { background: transparent; color: #FFFFFF; border-color: rgba(255,255,255,.4); }
.btn-outline-light:hover { border-color: #FFFFFF; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.textlink { display: inline-flex; align-items: center; min-height: 44px; font: 600 16px var(--body); color: var(--blue-text); text-decoration: none; }
.textlink:hover { text-decoration: underline; }

/* Header */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: saturate(1.6) blur(12px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; gap: 28px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 800 22px/1 var(--display); letter-spacing: -.035em; color: var(--ink); text-decoration: none; }
.brand-mark { width: 34px; height: 34px; flex: none; }
.nav-links { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex: 1; }
.nav-links ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links ul a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px; color: var(--ink); text-decoration: none; font: 500 16px var(--body); }
.nav-links ul a:hover { background: var(--bg-2); }
.nav-links ul a[aria-current="page"] { background: var(--blue-soft); color: var(--blue-text); font-weight: 600; }
.nav-cta { display: flex; gap: 10px; }
.menu-btn { display: none; margin-left: auto; background: none; border: 1.5px solid var(--line-2); border-radius: 999px; min-height: 42px; padding: 0 18px; font: 600 15px var(--body); color: var(--ink); cursor: pointer; }
@media (max-width: 900px) {
  .menu-btn { display: inline-flex; align-items: center; }
  .nav-links { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 12px; background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 12px max(20px, env(safe-area-inset-right, 0px)) 20px max(20px, env(safe-area-inset-left, 0px)); }
  .nav-links.open { display: flex; }
  .nav-links ul { flex-direction: column; }
  .nav-links ul a { width: 100%; min-height: 48px; }
  .nav-cta { flex-direction: column; }
  .nav-cta .btn { width: 100%; min-height: 48px; }
}

/* Hero */
.hero { padding-block: clamp(48px, 7vw, 96px) clamp(48px, 6vw, 80px); background: radial-gradient(1200px 500px at 85% -10%, var(--tint-sky), transparent 60%), var(--bg); }
.hero-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(36px, 5vw, 72px); align-items: center; }
.hero-grid > * { min-width: 0; }
.hero-copy { display: grid; gap: 26px; justify-items: start; }
.pill { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 10px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font: 600 14px var(--body); color: var(--ink); box-shadow: 0 1px 2px rgba(14,27,61,.05); }
.pill-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px var(--tint-mint); }
.trust { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.trust li { display: flex; align-items: center; gap: 8px; font-size: 15px; color: var(--muted); }
.trust li::before { content: ""; width: 18px; height: 18px; border-radius: 50%; flex: none; background: var(--tint-mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%2312B76A' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/13px no-repeat; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; } }

/* Hero motion graphics: three scenes that take turns. Each element's resting style is its
   final state, and its animation plays in from hidden, so reduced motion shows the end frame */
.mg { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--shadow-lg); padding: clamp(14px, 2vw, 22px); display: grid; gap: 14px; }
.mg-stage { position: relative; aspect-ratio: 5 / 4; border-radius: 20px; overflow: hidden; background: radial-gradient(90% 70% at 50% 0%, var(--tint-sky), transparent 70%), radial-gradient(80% 60% at 50% 100%, var(--tint-peach), transparent 70%), var(--bg-2); container-type: inline-size; }
.mg-scene { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .5s, visibility .5s; }
.mg-scene.is-on { opacity: 1; visibility: visible; }
.mg-scene.is-on * { animation-fill-mode: both !important; }
.mg-tabs { display: flex; gap: 8px; justify-content: center; }
.mg-tabs button { position: relative; overflow: hidden; font: 600 13.5px var(--body); color: var(--muted); background: var(--bg-2); border: 1px solid var(--line); border-radius: 99px; padding: 7px 16px; cursor: pointer; }
.mg-tabs button[aria-pressed="true"] { color: var(--ink); border-color: var(--line-2); background: var(--card); }
.mg-tabs button span { position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--blue); transform: scaleX(0); transform-origin: left; }
.mg-tabs button[aria-pressed="true"] span { animation: mg-bar var(--mg-dur, 7s) linear forwards; }
.mg.is-paused .mg-tabs button span { animation-play-state: paused; }
@keyframes mg-bar { to { transform: scaleX(1); } }
.mg-toast { display: flex; gap: 10px; align-items: center; background: #fff; border-radius: 3.2cqw; padding: 2.4cqw 3.2cqw 2.4cqw 2.4cqw; box-shadow: 0 10px 30px -10px rgba(14,27,61,.35); font-size: 2.8cqw; line-height: 1.25; }
/* Every scene uses the same frame: the main object centered with equal side margins,
   and one floating accent centered on its bottom edge, layered above it */
.mg-float { position: absolute; z-index: 3; left: 0; right: 0; bottom: 5%; margin-inline: auto; width: max-content; max-width: 84%; background: #fff; border-radius: 99px; box-shadow: 0 2px 4px rgba(14,27,61,.06), 0 16px 34px -12px rgba(14,27,61,.4); }
.mg-toast b, .mgl-n b { display: block; color: var(--ink); font: 700 3cqw/1.2 var(--display); }
.mg-toast div span, .mgl-n div span { color: var(--muted); }
.mg-ico { width: 7cqw; height: 7cqw; border-radius: 2cqw; flex: none; display: grid; place-items: center; }
.mg-ico svg { width: 50%; height: 50%; }
.mg-ico.ok { background: var(--green); }
.mg-ico.q { background: var(--blue); }
.mg-ico.star { background: #FFB020; }
.mg-ico.call { background: var(--coral); }

/* Scene 1: a site builds itself, then takes a booking */
.mgb-win { position: absolute; top: 7%; bottom: 14%; left: 8%; right: 8%; z-index: 1; background: #fff; border-radius: 3cqw; box-shadow: 0 20px 50px -20px rgba(14,27,61,.35); overflow: hidden; display: flex; flex-direction: column; }
.mgb-win .frame-bar span { font-size: 2.2cqw; }
.mgb-page { flex: 1; padding: 3cqw; display: grid; gap: 3cqw; align-content: start; }
.mgb-nav { display: flex; align-items: center; gap: 2cqw; }
.mgb-nav b { width: 10cqw; height: 2.4cqw; border-radius: 9px; background: var(--ink); }
.mgb-nav span { width: 7cqw; height: 1.6cqw; border-radius: 9px; background: var(--line); }
.mgb-nav em { margin-left: auto; font: 700 2cqw var(--body); font-style: normal; color: #fff; background: var(--blue); padding: 1cqw 2.2cqw; border-radius: 99px; }
.mgb-hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 3cqw; align-items: center; padding: 3cqw; border-radius: 2.4cqw; background: linear-gradient(135deg, var(--blue-soft), var(--tint-lilac)); }
.mgb-h { display: grid; gap: 1.6cqw; }
.mgb-h i { height: 3cqw; border-radius: 9px; background: var(--ink); transform-origin: left; }
.mgb-h i:nth-child(2) { width: 80%; } .mgb-h i:nth-child(3) { width: 55%; height: 1.8cqw; background: var(--line-2); }
.mgb-cta { grid-column: 1; justify-self: start; font: 700 2.4cqw var(--body); color: #fff; background: var(--coral); padding: 1.6cqw 3.4cqw; border-radius: 99px; }
.mgb-img { grid-column: 2; grid-row: 1 / 3; aspect-ratio: 4 / 3; border-radius: 2cqw; background: linear-gradient(160deg, #FFD3C4, var(--coral) 70%); }
.mgb-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.4cqw; }
.mgb-cards div { height: 8cqw; border-radius: 2cqw; background: var(--bg-2); border: 1px solid var(--line); }
.mgb-cta { position: relative; }
.mgb-cursor { position: absolute; left: 62%; top: 55%; width: 5cqw; }
.mgb-ripple { position: absolute; left: 0; top: 0; width: 6cqw; height: 6cqw; margin: -3cqw 0 0 -3cqw; border-radius: 50%; border: 2px solid var(--coral); opacity: 0; }
.mgb-toast { padding: 2cqw 4cqw 2cqw 2cqw; }
.mg-build.is-on .mgb-win { animation: mg-pop .7s; }
.mg-build.is-on .mgb-nav > * { animation: mg-fade .5s; }
.mg-build.is-on .mgb-nav b { animation-delay: .35s; } .mg-build.is-on .mgb-nav span { animation-delay: .45s; } .mg-build.is-on .mgb-nav em { animation-delay: .55s; }
.mg-build.is-on .mgb-hero { animation: mg-grow .7s .6s; }
.mg-build.is-on .mgb-h i { animation: mg-wipe .6s; }
.mg-build.is-on .mgb-h i:nth-child(1) { animation-delay: 1s; } .mg-build.is-on .mgb-h i:nth-child(2) { animation-delay: 1.12s; } .mg-build.is-on .mgb-h i:nth-child(3) { animation-delay: 1.24s; }
.mg-build.is-on .mgb-cta { animation: mg-pop .5s 1.45s; }
.mg-build.is-on .mgb-img { animation: mg-grow .7s 1.2s; }
.mg-build.is-on .mgb-cards div { animation: mg-rise .6s; }
.mg-build.is-on .mgb-cards div:nth-child(1) { animation-delay: 1.6s; } .mg-build.is-on .mgb-cards div:nth-child(2) { animation-delay: 1.72s; } .mg-build.is-on .mgb-cards div:nth-child(3) { animation-delay: 1.84s; }
.mg-build.is-on .mgb-cursor { animation: mgb-move 1.4s 2.3s; }
.mg-build.is-on .mgb-ripple { animation: mgb-ripple .6s 3.7s; }
.mg-build.is-on .mgb-toast { animation: mg-float .6s 4s; }
@keyframes mgb-move { from { transform: translate(34cqw, 14cqw); opacity: 0; } 20% { opacity: 1; } }
@keyframes mgb-ripple { from { transform: scale(.3); opacity: 0; } 1% { opacity: 1; } to { transform: scale(1.8); opacity: 0; } }

/* Scene 2: a phone fills with leads */
.mgl-phone { position: absolute; z-index: 1; top: 4%; bottom: 13%; left: 0; right: 0; margin-inline: auto; width: 56%; overflow: hidden; background: linear-gradient(170deg, #1C2C5A, #0B1530); border: 1.4cqw solid #0E1B3D; border-radius: 6.5cqw; padding: 4.4cqw 2.6cqw; box-shadow: 0 30px 60px -25px rgba(14,27,61,.6); }
.mgl-time { text-align: center; color: #fff; font: 800 6.6cqw/1 var(--display); letter-spacing: -.03em; margin-bottom: 3cqw; }
.mgl-time span { display: block; font: 500 2.3cqw var(--body); opacity: .7; letter-spacing: 0; margin-top: 1cqw; }
.mgl-stack { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5cqw; }
.mgl-n { display: flex; gap: 1.8cqw; align-items: center; background: rgba(255,255,255,.94); border-radius: 2.6cqw; padding: 1.6cqw 2cqw; font-size: 2.2cqw; line-height: 1.25; }
.mgl-n div { flex: 1; min-width: 0; } .mgl-n div span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mgl-n b { font-size: 2.5cqw; }
.mgl-n small { font-size: 2.2cqw; color: var(--muted); align-self: start; }
.mgl-n .mg-ico { width: 5.4cqw; height: 5.4cqw; }
.mgl-count { display: flex; align-items: center; gap: 2.4cqw; padding: 1.8cqw 3.6cqw; font-size: 2.6cqw; color: var(--muted); }
.mgl-count b { font: 800 5.2cqw/1 var(--display); color: var(--ink); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.mgl-count em { font-style: normal; font-weight: 700; color: var(--green-text); }
.mg-leads.is-on .mgl-phone { animation: mg-rise .8s; }
.mg-leads.is-on .mgl-time { animation: mg-fade .6s .3s; }
.mg-leads.is-on .mgl-n { animation: mg-drop .6s; }
.mg-leads.is-on .mgl-n:nth-child(4) { animation-delay: .9s; } .mg-leads.is-on .mgl-n:nth-child(3) { animation-delay: 2s; }
.mg-leads.is-on .mgl-n:nth-child(2) { animation-delay: 3.1s; } .mg-leads.is-on .mgl-n:nth-child(1) { animation-delay: 4.2s; }
.mg-leads.is-on .mgl-stack { animation: mgl-push 4.2s .6s; }
.mg-leads.is-on .mgl-count { animation: mg-float .6s 1.2s; }
@keyframes mg-drop { from { opacity: 0; transform: translateY(-60%) scale(.92); } }
@keyframes mgl-push { from { transform: translateY(-30cqw); } 100% { transform: none; } }

/* Scene 3: a search, and the business climbs to #1 */
.mgr-card { position: absolute; top: 7%; bottom: 14%; left: 8%; right: 8%; z-index: 1; background: #fff; border-radius: 3cqw; box-shadow: 0 20px 50px -20px rgba(14,27,61,.35); padding: 3.4cqw; display: grid; gap: 3cqw; align-content: start; }
.mgr-search { display: flex; align-items: center; gap: 2cqw; border: 1.5px solid var(--line); border-radius: 99px; padding: 2cqw 3cqw; font: 500 3cqw var(--body); color: var(--ink); }
.mgr-search svg { width: 3.6cqw; flex: none; }
.mgr-type { white-space: nowrap; }
.mgr-body { display: grid; grid-template-columns: 1.35fr 1fr; gap: 3cqw; }
.mgr-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.8cqw; }
.mgr-list li { display: flex; gap: 2cqw; align-items: center; padding: 2cqw; border-radius: 2.2cqw; border: 1px solid var(--line); background: #fff; }
.mgr-list li > b { width: 5cqw; height: 5cqw; border-radius: 50%; display: grid; place-items: center; font: 700 2.4cqw var(--body); background: var(--bg-2); color: var(--muted); flex: none; }
.mgr-list li div { display: grid; gap: 1.2cqw; flex: 1; }
.mgr-list li i { height: 1.8cqw; border-radius: 9px; background: var(--line); } .mgr-list li i + i { width: 60%; height: 1.4cqw; }
.mgr-list .you { position: relative; z-index: 2; border-color: var(--blue); background: var(--blue-soft); box-shadow: 0 8px 20px -10px rgba(43,89,255,.5); }
.mgr-list .you > b { background: var(--blue); color: #fff; }
.mgr-list .you strong { font: 700 2.8cqw/1.1 var(--display); color: var(--ink); }
.mgr-list .you span { font-size: 2.2cqw; color: #E8A200; }
.mgr-map { position: relative; border-radius: 2.4cqw; overflow: hidden; background: #E8F1E9; }
.mgr-road { position: absolute; background: #fff; }
.mgr-road.a { left: -10%; right: -10%; top: 45%; height: 2.4cqw; transform: rotate(-12deg); } .mgr-road.b { top: -10%; bottom: -10%; left: 38%; width: 2.4cqw; transform: rotate(8deg); }
.mgr-dot { position: absolute; width: 2.6cqw; height: 2.6cqw; border-radius: 50%; background: #9AA3B8; border: 2px solid #fff; }
.mgr-dot.d1 { left: 18%; top: 22%; } .mgr-dot.d2 { left: 70%; top: 70%; } .mgr-dot.d3 { left: 76%; top: 24%; }
.mgr-pin { position: absolute; left: 44%; top: 36%; width: 7cqw; height: 7cqw; margin: -7cqw 0 0 -3.5cqw; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--coral); box-shadow: 0 6px 14px -4px rgba(255,107,74,.7); }
.mgr-pin::after { content: ""; position: absolute; inset: 28%; border-radius: 50%; background: #fff; }
.mgr-badge { display: flex; align-items: center; gap: 1.8cqw; padding: 1.6cqw 3.6cqw 1.6cqw 1.6cqw; }
.mgr-badge b { font: 700 2.9cqw var(--display); color: var(--ink); }
.mgr-badge .mg-ico { width: 5.4cqw; height: 5.4cqw; border-radius: 50%; }
.mg-rank.is-on .mgr-card { animation: mg-pop .6s; }
.mg-rank.is-on .mgr-type { animation: mgr-type 1.4s .4s steps(21, end); }
/* The business starts in 4th place and climbs while the others shift down one row */
.mg-rank.is-on .mgr-list li { animation: mg-fade .5s 1.9s, mgr-down 1.2s 3.2s cubic-bezier(.6,0,.2,1); }
.mg-rank.is-on .mgr-list .r2 { animation-delay: 2s, 3.2s; } .mg-rank.is-on .mgr-list .r3 { animation-delay: 2.1s, 3.2s; }
.mg-rank.is-on .mgr-list .you { animation: mg-fade .5s 2.2s, mgr-climb 1.2s 3.2s cubic-bezier(.6,0,.2,1); }
.mg-rank.is-on .mgr-list li > b { animation: mg-pop .4s 4.4s; }
.mg-rank.is-on .mgr-map { animation: mg-fade .6s 1.9s; }
.mg-rank.is-on .mgr-pin { animation: mgr-pin .7s 4.3s cubic-bezier(.3,1.6,.5,1); }
.mg-rank.is-on .mgr-badge { animation: mg-float .6s 4.8s; }
@keyframes mgr-type { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes mgr-climb { from { transform: translateY(calc(300% + 5.4cqw)); background: #fff; border-color: var(--line); box-shadow: none; } 15% { transform: translateY(calc(300% + 5.4cqw)) scale(1.03); } }
@keyframes mgr-down { from { transform: translateY(calc(-100% - 1.8cqw)); } }
@keyframes mgr-pin { from { transform: translateY(-14cqw) rotate(-45deg); opacity: 0; } }

/* Shared */
@keyframes mg-pop { from { opacity: 0; transform: scale(.9) translateY(10px); } }
@keyframes mg-fade { from { opacity: 0; } }
@keyframes mg-grow { from { opacity: 0; transform: scale(.94); } }
@keyframes mg-wipe { from { transform: scaleX(0); } }
@keyframes mg-rise { from { opacity: 0; transform: translateY(24px); } }
@keyframes mg-float { from { opacity: 0; transform: translateY(14px) scale(.92); } }

/* Client banner: wordmarks scroll past in gray and pop out in each brand's own colors
   and type as they reach the middle (or on hover) */
.logos { border-block: 1px solid var(--line); background: var(--bg); padding-block: 26px 30px; overflow: hidden; }
.logos-head p { font: 600 15px var(--body); color: var(--muted); text-align: center; margin: 0 0 14px; }
.marquee { position: relative; -webkit-mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.mq-track { list-style: none; margin: 0; padding: 18px 0; display: flex; align-items: center; gap: clamp(28px, 5vw, 64px); width: max-content; will-change: transform; }
.mq-item { flex: none; }
.mq-card { display: flex; align-items: center; gap: 10px; height: 64px; padding: 0 22px; border-radius: 18px; border: 1.5px solid transparent; background: transparent; color: #8A93A8;
  transition: transform .45s cubic-bezier(.2,.8,.2,1), background-color .45s, border-color .45s, box-shadow .45s, color .45s; }
.mq-item.is-pop .mq-card, .mq-item:hover .mq-card { transform: translateY(-4px) scale(1.12); }
/* NextGen Blinds and Wax On Wheels use their real logos: grayscale at rest, full color when popped */
.mq-logo { display: block; width: auto; height: 36px; filter: grayscale(1) opacity(.5); transition: filter .45s; }
.mq-item.is-pop .mq-logo, .mq-item:hover .mq-logo { filter: none; }
.mq-ngb.is-pop .mq-card, .mq-ngb:hover .mq-card { background: #fff; border-color: #D5DFEA; box-shadow: 0 18px 36px -16px rgba(49,100,163,.55); }
/* The Wax On Wheels logo has white lettering, so it always sits on a chip: muted gray at rest, black when popped */
.mq-wow .mq-card { background: #C3C9D5; }
.mq-logo-wow { height: 46px; filter: grayscale(1) brightness(1.15); }
.mq-wow.is-pop .mq-card, .mq-wow:hover .mq-card { background: #161616; border-color: #B81A11; box-shadow: 0 18px 36px -14px rgba(184,26,17,.6); }
/* ClearDeal: navy with a green Clear */
.cd-word { font: 500 25px/1 var(--display); letter-spacing: -.02em; }
.cd-word b { font-weight: 800; transition: color .45s; }
.mq-cd.is-pop .mq-card, .mq-cd:hover .mq-card { background: #0B2545; border-color: #0B2545; color: #fff; box-shadow: 0 18px 36px -14px rgba(11,37,69,.6); }
.mq-cd.is-pop .cd-word b, .mq-cd:hover .cd-word b { color: #3DD68C; }
@media (max-width: 600px) {
  .mq-card { height: 52px; padding: 0 16px; }
  .mq-logo { height: 28px; } .mq-logo-wow { height: 36px; }
  .cd-word { font-size: 20px; }
}

/* Feature tabs */
.ftabs { display: grid; gap: 22px; }
.ftab-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.ftab-list button { display: grid; gap: 6px; text-align: left; padding: 18px 20px; border-radius: var(--r-md); border: 1.5px solid var(--line); background: var(--card); color: var(--ink); font: 700 18px var(--display); letter-spacing: -.015em; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.ftab-list button span { font: 600 13px var(--body); color: var(--muted); letter-spacing: 0; }
.ftab-list button:hover { border-color: var(--line-2); }
.ftab-list button[aria-selected="true"] { border-color: var(--ink); box-shadow: var(--shadow); }
.ftab-list button[aria-selected="true"] span { color: var(--coral-text); }
.ftab-panel { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 4vw, 56px); align-items: center; border-radius: var(--r-xl); padding: clamp(24px, 4vw, 56px); }
.ftab-panel > * { min-width: 0; }
.fp-copy { display: grid; gap: 14px; justify-items: start; }
.fp-stat { font: 800 clamp(40px, 5vw, 64px)/1 var(--display); letter-spacing: -.04em; color: var(--ink); }
.fp-copy p:not(.fp-stat) { color: var(--ink-2); font-size: 17px; }
.fp-phone { display: grid; justify-items: center; }
.fp-phone .frame-phone { width: min(220px, 64%); }
@media (max-width: 860px) { .ftab-list { grid-template-columns: 1fr 1fr; } .ftab-panel { grid-template-columns: 1fr; } }

/* Screenshot frames */
.frame-desk { margin: 0; border-radius: 14px; overflow: hidden; background: #fff; box-shadow: var(--shadow-lg); border: 1px solid var(--line); display: flex; flex-direction: column; }
.frame-bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: #F1F3F8; flex: none; }
.frame-bar i { width: 9px; height: 9px; border-radius: 50%; background: #D3D8E4; flex: none; }
.frame-bar i:nth-child(1) { background: #FF6B6B; } .frame-bar i:nth-child(2) { background: #FFC24B; } .frame-bar i:nth-child(3) { background: #3DD68C; }
.frame-bar span { flex: 1; min-width: 0; margin-left: 8px; background: #fff; color: #5D6884; border-radius: 999px; padding: 3px 12px; font: 500 11px var(--body); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.frame-desk img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.frame-phone { margin: 0; border-radius: 28px; border: 7px solid #0E1B3D; background: #0E1B3D; overflow: hidden; box-shadow: var(--shadow-lg); }
.frame-phone img { display: block; width: 100%; height: auto; }

/* Free demo band */
.demo-band { background: var(--tint-peach); }
.demo-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.demo-grid > * { min-width: 0; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 44px 1fr; column-gap: 16px; }
.steps li::before { content: counter(s); grid-row: 1 / span 2; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--card); border: 1.5px solid var(--ink); font: 800 17px var(--display); color: var(--ink); }
.steps b { font: 700 18px var(--display); color: var(--ink); letter-spacing: -.01em; padding-top: 2px; }
.steps span { color: var(--muted); font-size: 16px; }
.demo-card { background: var(--card); border-radius: var(--r-xl); padding: clamp(24px, 3vw, 36px); display: grid; gap: 18px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.demo-h { font: 800 24px var(--display); color: var(--ink); letter-spacing: -.02em; }
.demo-card .btn { width: 100%; }
.demo-note { text-align: center; font-size: 14px; color: var(--muted); margin-top: -4px; }
@media (max-width: 900px) { .demo-grid { grid-template-columns: 1fr; } }

/* Work cards */
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.wcard { display: grid; gap: 18px; align-content: start; padding: 20px 20px 22px; border-radius: var(--r-lg); text-decoration: none; color: inherit; transition: transform .2s; min-width: 0; }
.wcard:hover { transform: translateY(-4px); }
.wmeta { display: grid; gap: 2px; padding: 0 4px; }
.wmeta b { font: 700 20px var(--display); color: var(--ink); letter-spacing: -.015em; }
.wmeta span { font-size: 14.5px; color: var(--muted); }
@media (max-width: 960px) { .work-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .work-grid { grid-template-columns: 1fr; } }

/* CTA bands */
.cta, .night.cta-band > .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 28px; background: var(--deep); color: var(--deep-text); border-radius: var(--r-xl); padding: clamp(32px, 5vw, 64px); position: relative; overflow: hidden; isolation: isolate; }
.cta::after, .night.cta-band > .wrap::after { content: ""; position: absolute; right: -90px; bottom: -160px; width: 280px; height: 280px; opacity: .95; border-radius: 50%; background: var(--coral); z-index: -1; }
.cta h2, .night.cta-band h2 { color: #FFFFFF; max-width: 17ch; }
.cta p, .night.cta-band p { margin-top: 10px; color: var(--deep-text); }
.night.cta-band { padding-block: clamp(24px, 4vw, 48px) clamp(64px, 8vw, 104px); }
.night.cta-band > .wrap { max-width: calc(var(--maxw) - 40px); }
.night.cta-band .btn-primary { background: #FFFFFF; color: #0E1B3D; }
@media (max-width: 1240px) { .night.cta-band > .wrap { margin-inline: max(20px, env(safe-area-inset-left, 0px)); } }

/* Page heads */
.page-head { padding-block: clamp(56px, 8vw, 104px) clamp(40px, 6vw, 72px); background: radial-gradient(1000px 420px at 90% -20%, var(--tint-lilac), transparent 60%), var(--bg); }
.page-head .wrap { display: grid; gap: 20px; }
.page-head h1 { font-size: clamp(42px, 5.6vw, 72px); }
.page-head h1 em, .page-head .grad-text { color: var(--coral); }

/* Stat rows */
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 12px; }
.stat-row div { padding: 20px; border-radius: var(--r-md); background: var(--card); border: 1px solid var(--line); display: grid; gap: 6px; }
.stat-row b { font: 800 clamp(30px, 3vw, 40px)/1 var(--display); color: var(--ink); letter-spacing: -.03em; }
.stat-row span { font-size: 14px; color: var(--muted); }
@media (max-width: 700px) { .stat-row { grid-template-columns: 1fr 1fr; } }

/* Pricing */
.jump { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 10px; max-width: 780px; }
.jump a { display: grid; gap: 4px; padding: 18px 20px; border: 1.5px solid var(--line); border-radius: var(--r-md); background: var(--card); text-decoration: none; color: inherit; transition: border-color .15s, transform .15s; }
.jump a:hover { border-color: var(--ink); transform: translateY(-2px); }
.jump b { font: 700 18px var(--display); color: var(--ink); }
.jump span { font: 600 15px var(--body); color: var(--coral-text); }
@media (max-width: 600px) { .jump { grid-template-columns: 1fr; } }
section[id], .case2[id] { scroll-margin-top: 88px; }
.svc-head { display: grid; grid-template-columns: .8fr 1.2fr; gap: 16px 48px; align-items: end; margin-bottom: 36px; }
.svc-head > * { min-width: 0; }
.svc-head .lede { font-size: 17px; }
@media (max-width: 820px) { .svc-head { grid-template-columns: 1fr; } }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.plans-2 { grid-template-columns: repeat(2, 1fr); max-width: 860px; }
.plan { position: relative; background: var(--card); border: 1.5px solid var(--line); border-radius: var(--r-lg); padding: 30px 28px; display: grid; gap: 16px; align-content: start; grid-template-rows: auto auto auto auto 1fr auto; }
.plan.featured { border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-soft), var(--shadow-lg); }
.plan-badge { position: absolute; top: -14px; left: 26px; font: 700 13px var(--body); background: var(--coral); color: #FFFFFF; padding: 5px 12px; border-radius: 999px; }
.plan-name { font: 800 24px var(--display); color: var(--ink); letter-spacing: -.02em; }
.plan-for { color: var(--muted); font-size: 15.5px; min-height: 3em; }
.plan-price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.plan-price b { font: 800 clamp(40px, 4.4vw, 52px)/1 var(--display); color: var(--ink); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.plan-price span { font-size: 15px; color: var(--muted); }
.plan .btn { width: 100%; }
.plan .checks { font-size: 15.5px; border-top: 1px solid var(--line); padding-top: 18px; align-content: start; }
.plan-time { font: 600 14px var(--body); color: var(--green-text); }
.plan:has(.plan-split) { grid-template-rows: auto auto auto auto auto 1fr auto; }
.plan-split { font-size: 14px; color: var(--muted); margin-top: -6px; }
.plans-note { margin-top: 22px; text-align: center; color: var(--ink-2); font-size: 16px; }
@media (max-width: 960px) { .plans { grid-template-columns: 1fr; max-width: 540px; } .plans-2 { grid-template-columns: 1fr; } .plan-for { min-height: 0; } }
.bill-toggle { display: inline-flex; gap: 4px; padding: 5px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 999px; justify-self: start; }
.bill-toggle button { font: 600 15px var(--body); color: var(--muted); background: transparent; border: 0; border-radius: 999px; padding: 0 18px; cursor: pointer; min-height: 44px; }
.bill-toggle button[aria-pressed="true"] { background: var(--card); color: var(--ink); box-shadow: 0 1px 4px rgba(14,27,61,.14); }
.bill-toggle em { font-style: normal; font-size: 12.5px; font-weight: 700; color: var(--green-text); background: var(--tint-mint); padding: 2px 8px; border-radius: 999px; margin-left: 6px; }
.addon-list { display: grid; gap: 12px; }
.addon-row { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; padding: 24px 28px; border: 1.5px solid var(--line); border-radius: var(--r-lg); background: var(--card); }
.addon-row > div { display: grid; gap: 6px; min-width: 0; }
.addon-row p { color: var(--muted); font-size: 15.5px; max-width: 60ch; }
.addon-price { text-align: right; display: grid; gap: 2px; }
.addon-price b { font: 800 30px var(--display); color: var(--ink); letter-spacing: -.03em; }
.addon-price span { font-size: 13.5px; color: var(--muted); }
@media (max-width: 600px) { .addon-row { grid-template-columns: 1fr; gap: 10px; } .addon-price { text-align: left; } }
.table-wrap { overflow-x: auto; border: 1.5px solid var(--line); border-radius: var(--r-lg); background: var(--card); }
.table-wrap:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.compare { width: 100%; border-collapse: collapse; min-width: 640px; font-size: 15.5px; }
.compare th, .compare td { text-align: left; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
.compare thead th { font: 700 14px var(--body); color: var(--muted); }
.compare tbody th { font-weight: 600; color: var(--ink); }
.compare td { color: var(--muted); }
.compare .us { background: var(--blue-soft); color: var(--ink); font-weight: 600; }
.compare thead .us { color: var(--blue-text); }

/* Checks, chips, FAQ, split */
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; }
.checks li { display: grid; grid-template-columns: 20px 1fr; gap: 12px; }
.checks li::before { content: ""; width: 20px; height: 20px; margin-top: 3px; border-radius: 50%; background: var(--tint-mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%2312B76A' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-size: 13.5px; font-weight: 600; border-radius: 999px; padding: 4px 12px; background: var(--bg-2); color: var(--ink-2); }
.chip.indigo { background: var(--blue-soft); color: var(--blue-text); }
.loc { display: inline-flex; align-items: center; gap: 6px; font-size: 14.5px; color: var(--muted); }
.loc svg { width: 15px; height: 15px; color: var(--coral); }
.split { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.split > * { min-width: 0; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.faq { display: grid; gap: 10px; }
.faq details { border: 1.5px solid var(--line); border-radius: var(--r-md); background: var(--card); }
.faq details[open] { border-color: var(--line-2); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 60px 20px 22px; position: relative; font: 700 18px var(--display); color: var(--ink); letter-spacing: -.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-2); font: 500 20px var(--body); color: var(--ink); }
.faq details[open] summary::after { content: "\2212"; background: var(--blue); color: var(--on-blue); }
.faq details p { padding: 0 22px 22px; color: var(--muted); max-width: 62ch; }

/* About */
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.trio > div { border-radius: var(--r-lg); padding: 28px; display: grid; gap: 12px; align-content: start; }
.trio > div:nth-child(1) { background: var(--tint-sky); } .trio > div:nth-child(2) { background: var(--tint-peach); } .trio > div:nth-child(3) { background: var(--tint-mint); }
.trio .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--card); color: var(--ink); }
.trio .ico svg { width: 22px; height: 22px; }
.trio p { color: var(--ink-2); }
@media (max-width: 800px) { .trio { grid-template-columns: 1fr; } }
.about-mark { display: grid; place-items: center; background: var(--tint-lilac); border-radius: var(--r-xl); padding: clamp(36px, 6vw, 72px); }
.about-mark svg { width: min(240px, 70%); height: auto; }

/* Work page cases */
.cases { display: grid; gap: clamp(72px, 10vw, 128px); }
.case2 { display: grid; gap: 28px; }
.case-head { display: grid; grid-template-columns: auto 1fr auto; align-items: end; gap: 10px 20px; }
.case-head .num { font: 800 15px var(--display); color: var(--coral-text); align-self: start; padding-top: 12px; }
.case-title { display: grid; gap: 6px; min-width: 0; }
.case-head .chips { justify-content: flex-end; }
.case-shots { display: grid; grid-template-columns: 1600fr 462fr; gap: clamp(14px, 2.4vw, 28px); align-items: stretch; padding: clamp(18px, 3.5vw, 48px); border-radius: var(--r-xl); }
.case-shots > * { min-width: 0; }
.case-shots .frame-phone img { height: 100%; object-fit: cover; object-position: top; }
.ngb-bg { background: var(--tint-sky); } .wow-bg { background: var(--tint-peach); } .cd-bg { background: var(--tint-mint); }

/* ClearDeal demo screens, drawn in HTML so they scale with the frame */
.cd-screen { container-type: inline-size; aspect-ratio: 16 / 10; background: #F6F8FB; color: #0E1B3D; font-family: var(--body); display: grid; grid-template-rows: auto 1fr; overflow: hidden; }
.cd-top { display: flex; align-items: center; gap: 2.5cqw; padding: 2cqw 3.2cqw; background: #0B2545; color: #fff; }
.cd-logo { font: 800 2.6cqw/1 var(--display); letter-spacing: -.02em; }
.cd-logo b { color: #3DD68C; font-weight: 800; }
.cd-nav { display: flex; gap: 2.4cqw; margin-left: auto; font-size: 1.5cqw; opacity: .8; }
.cd-main { display: grid; grid-template-columns: 1.55fr 1fr; gap: 2.4cqw; padding: 2.8cqw 3.2cqw; min-height: 0; }
.cd-tag { display: inline-block; font: 700 1.25cqw/1 var(--body); text-transform: uppercase; letter-spacing: .08em; color: #0F7A4A; background: #DDF6EA; padding: .7cqw 1.1cqw; border-radius: 99px; }
.cd-h { font: 800 2.9cqw/1.1 var(--display); letter-spacing: -.02em; margin: 1.2cqw 0 .4cqw; }
.cd-sub { font-size: 1.5cqw; color: #5D6884; margin: 0 0 1.6cqw; }
.cd-lines { list-style: none; margin: 0; padding: 0; background: #fff; border: 1px solid #E3E8F0; border-radius: 1.4cqw; overflow: hidden; }
.cd-lines li { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 1.6cqw; padding: 1.25cqw 1.8cqw; font-size: 1.55cqw; border-top: 1px solid #EEF1F6; }
.cd-lines li:first-child { border-top: 0; }
.cd-lines .amt { font-weight: 700; font-variant-numeric: tabular-nums; }
.cd-lines .cut .amt { text-decoration: line-through; color: #9AA3B8; }
.cd-flag { font: 700 1.2cqw/1 var(--body); padding: .6cqw 1cqw; border-radius: 99px; background: #DDF6EA; color: #0F7A4A; }
.cut .cd-flag { background: #FFE6E0; color: #B4361C; }
.cd-side { display: grid; gap: 1.6cqw; align-content: start; }
.cd-save { background: #0B2545; color: #fff; border-radius: 1.6cqw; padding: 2.2cqw; display: grid; gap: .6cqw; }
.cd-save span { font-size: 1.45cqw; opacity: .75; }
.cd-save b { font: 800 5cqw/1 var(--display); color: #3DD68C; letter-spacing: -.03em; }
.cd-card { background: #fff; border: 1px solid #E3E8F0; border-radius: 1.6cqw; padding: 1.8cqw 2cqw; font-size: 1.45cqw; display: grid; gap: .9cqw; }
.cd-card p { margin: 0; display: flex; gap: 1cqw; align-items: center; }
.cd-card p::before { content: ""; width: 1.3cqw; height: 1.3cqw; border-radius: 50%; background: #3DD68C; flex: none; }
.cd-btn { background: #3DD68C; color: #0B2545; font: 700 1.6cqw/1 var(--body); text-align: center; padding: 1.4cqw; border-radius: 99px; }
.frame-desk .cd-screen { flex: 1; }
.cd-how { padding: 4cqw 5cqw; display: grid; justify-items: center; text-align: center; align-content: center; }
.cd-how .cd-h { font-size: 4.4cqw; }
.cd-how .cd-sub { font-size: 2cqw; margin-bottom: 3cqw; }
.cd-how .cd-tag { font-size: 1.6cqw; }
.cd-steps { list-style: none; margin: 0 0 3.4cqw; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.4cqw; width: 100%; }
.cd-steps li { background: #fff; border: 1px solid #E3E8F0; border-radius: 1.8cqw; padding: 2.6cqw 1.6cqw; display: grid; gap: 1.4cqw; justify-items: center; font: 700 1.9cqw/1.2 var(--display); }
.cd-steps b { width: 4.6cqw; height: 4.6cqw; border-radius: 50%; background: #0B2545; color: #3DD68C; display: grid; place-items: center; font-size: 2.2cqw; }
.cd-how .cd-btn { font-size: 2cqw; padding: 1.6cqw 4cqw; }
.cd-phone { container-type: inline-size; height: 100%; min-height: 100%; background: #F6F8FB; color: #0E1B3D; font-family: var(--body); display: grid; align-content: start; }
.cd-phone .cd-top { padding: 6cqw 7cqw; }
.cd-phone .cd-logo { font-size: 8cqw; }
.cd-phone .cd-body { padding: 7cqw; display: grid; gap: 5cqw; }
.cd-phone .cd-tag { font-size: 4cqw; padding: 2cqw 3.4cqw; justify-self: start; }
.cd-phone .cd-h { font-size: 8.4cqw; margin: 0; }
.cd-phone .cd-save { border-radius: 5cqw; padding: 6cqw; gap: 2cqw; }
.cd-phone .cd-save span { font-size: 4.4cqw; }
.cd-phone .cd-save b { font-size: 14cqw; }
.cd-phone .cd-lines { border-radius: 4cqw; }
.cd-phone .cd-lines li { grid-template-columns: 1fr auto; font-size: 4.4cqw; padding: 4cqw 4.6cqw; gap: 3cqw; }
.cd-phone .cd-flag { display: none; }
.cd-phone .cd-btn { font-size: 4.8cqw; padding: 4.4cqw; }
.case-body { display: grid; grid-template-columns: 1.15fr 1fr .8fr; gap: clamp(24px, 4vw, 48px); align-items: start; }
.case-body > * { min-width: 0; }
.case-body .lede { font-size: 17.5px; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; border: 1.5px solid var(--line); border-radius: var(--r-md); overflow: hidden; background: var(--card); }
.facts div { padding: 14px 16px; display: grid; gap: 2px; border-right: 1px solid var(--line); }
.facts div:last-child { border-right: 0; }
.facts dt { font: 600 12.5px var(--body); color: var(--muted); }
.facts dd { margin: 0; font: 700 15.5px var(--display); color: var(--ink); }
.case-more { margin: 0; display: grid; gap: 10px; }
.case-more img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border-radius: 12px; border: 1px solid var(--line); }
.case-more figcaption { font-size: 13.5px; color: var(--muted); }
@media (max-width: 960px) { .case-body { grid-template-columns: 1fr 1fr; } .case-more { grid-column: 1 / -1; max-width: 420px; } }
@media (max-width: 640px) {
  .case-head { grid-template-columns: auto 1fr; } .case-head .chips { grid-column: 1 / -1; justify-content: flex-start; }
  .case-shots { grid-template-columns: 1fr; padding: 14px; } .case-shots .frame-phone { display: none; }
  .case-body { grid-template-columns: 1fr; }
}
@media (max-width: 480px) { .facts { grid-template-columns: 1fr; } .facts div { border-right: 0; border-bottom: 1px solid var(--line); } .facts div:last-child { border-bottom: 0; } }

/* Quote page */
.quote-grid { display: grid; grid-template-columns: 1.35fr .85fr; gap: clamp(28px, 5vw, 56px); align-items: start; }
.quote-grid > * { min-width: 0; }
@media (max-width: 900px) { .quote-grid { grid-template-columns: 1fr; } }
.form { background: var(--card); border: 1.5px solid var(--line); border-radius: var(--r-xl); padding: clamp(22px, 4vw, 40px); display: grid; gap: 22px; box-shadow: var(--shadow); }
.form-progress { display: flex; gap: 6px; }
.form-progress i { flex: 1; height: 6px; border-radius: 3px; background: var(--bg-2); transition: background .3s; }
.form-progress i.on { background: var(--blue); }
.field { display: grid; gap: 8px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
label, legend { font: 600 15px var(--body); color: var(--ink); }
.opt { font-weight: 400; color: var(--muted); }
input[type="text"], input[type="email"], input[type="tel"], input[type="url"], select, textarea {
  width: 100%; min-height: 52px; font: 400 16px var(--body); color: var(--ink); background: var(--bg); border: 1.5px solid var(--line-2); border-radius: 12px; padding: 12px 16px; }
textarea { min-height: 128px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 4px var(--blue-soft); }
::placeholder { color: var(--muted); opacity: .85; }
fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; }
.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; margin: 0; }
.choice span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1.5px solid var(--line-2); border-radius: 999px; font: 500 15px var(--body); background: var(--bg); color: var(--ink-2); }
.choice input:checked + span { border-color: var(--blue); background: var(--blue-soft); color: var(--ink); font-weight: 600; }
.choice input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }
.form-status { border-radius: 12px; padding: 14px 16px; color: var(--ink); }
.form-status.ok { background: var(--tint-mint); }
.form-status.err { background: var(--tint-peach); }
.side { display: grid; gap: 18px; }
.side-card { background: var(--card); border: 1.5px solid var(--line); border-radius: var(--r-lg); padding: 24px; display: grid; gap: 14px; }
.side-card.dark { background: var(--deep); border: 0; color: var(--deep-text); }
.side-card.dark h2, .side-card.dark h3 { color: #fff; }
.mini-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: s; }
.mini-steps li { counter-increment: s; display: grid; grid-template-columns: 30px 1fr; gap: 12px; }
.mini-steps li::before { content: counter(s); width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--coral); color: #fff; font: 800 14px var(--display); }
.mini-steps b { color: #fff; display: block; font-family: var(--display); }
.email-box { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.email-box code { font: 500 14px ui-monospace, Menlo, monospace; background: var(--bg-2); border-radius: 10px; padding: 10px 12px; color: var(--ink); user-select: all; overflow-wrap: anywhere; }

/* Footer */
.site-footer { background: var(--bg-2); border-top: 1px solid var(--line); padding-block: 64px 32px; font-size: 15.5px; }
.foot-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 32px; }
.foot-brand { display: grid; gap: 14px; align-content: start; }
.foot-brand p { color: var(--muted); max-width: 32ch; }
.foot-h { margin: 0 0 10px; font: 700 15px var(--body); color: var(--ink); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; color: var(--muted); }
.site-footer ul a { display: inline-flex; align-items: center; min-height: 36px; color: var(--muted); text-decoration: none; }
.site-footer ul a:hover { color: var(--blue-text); }
.site-footer ul li:not(:has(a)) { padding-block: 7px; }
.foot-base { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
@media (max-width: 800px) { .foot-top { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }
@media (max-width: 460px) { .foot-top { grid-template-columns: 1fr; } }

/* Sticky phone actions */
.mobile-cta { display: none; }
@media (max-width: 720px) {
  .mobile-cta { display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    padding: 10px max(16px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
    background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(12px); border-top: 1px solid var(--line); }
  .mobile-cta .btn { min-height: 48px; width: 100%; }
  body { padding-bottom: calc(70px + env(safe-area-inset-bottom, 0px)); }
}

/* Hero reveal and word rotator */
.hero { overflow-x: clip; }
.hero-title .ln { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
.hero-title .ln-in { display: inline-block; transform: translateY(105%); animation: ln-rise .95s cubic-bezier(.2,.8,.2,1) forwards; }
.hero-title .ln + .ln .ln-in { animation-delay: .14s; }
@keyframes ln-rise { to { transform: none; } }
.hero-reveal > :not(h1) { opacity: 0; transform: translateY(18px); animation: hr-up .8s cubic-bezier(.2,.8,.2,1) forwards; }
.hero-reveal > :nth-child(2) { animation-delay: .45s; } .hero-reveal > :nth-child(3) { animation-delay: .58s; } .hero-reveal > :nth-child(4) { animation-delay: .7s; }
.hero-reveal > :nth-child(5) { animation-delay: .82s; } .hero-reveal > :nth-child(6) { animation-delay: .94s; }
.hero-visual { opacity: 0; transform: translateY(24px) scale(.98); animation: hr-up 1s .3s cubic-bezier(.2,.8,.2,1) forwards; }
@keyframes hr-up { to { opacity: 1; transform: none; } }
.rot { display: inline-grid; vertical-align: bottom; perspective: 600px; transition: width .5s cubic-bezier(.2,.8,.2,1); position: relative; }
.rot-w { grid-area: 1 / 1; justify-self: start; white-space: nowrap; transform-origin: 50% 50% -.45em; transform: rotateX(-90deg); opacity: 0; transition: transform .6s cubic-bezier(.2,.8,.2,1), opacity .45s; backface-visibility: hidden; }
.rot-w.is-on { transform: none; opacity: 1; }
.rot-w.is-off { transform: rotateX(90deg); opacity: 0; }
.rot::after { content: ""; position: absolute; left: 0; right: .35em; bottom: .02em; height: .09em; border-radius: 99px; background: linear-gradient(90deg, var(--blue), var(--coral)); transform-origin: left; transform: scaleX(0); animation: rot-line 2.6s 1.1s cubic-bezier(.2,.8,.2,1) infinite; }
@keyframes rot-line { 0% { transform: scaleX(0); } 35%, 70% { transform: scaleX(1); } 100% { transform: scaleX(1); opacity: 0; } }

/* Project highlights deck (shuffles the front card to the back) */
.reviews { background: linear-gradient(180deg, var(--bg), var(--tint-lilac)); overflow: hidden; }
.rv-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.rv-grid > * { min-width: 0; }
.rv-copy { justify-items: start; position: relative; z-index: 5; }
.rv-controls { display: flex; align-items: center; gap: 14px; margin-top: 6px; }
.rv-btn { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--card); color: var(--ink); display: grid; place-items: center; cursor: pointer; transition: transform .2s, border-color .2s; }
.rv-btn:hover { border-color: var(--blue); transform: translateY(-2px); }
.rv-btn svg { width: 18px; height: 18px; }
.rv-dots { display: flex; gap: 8px; }
.rv-dots button { width: 10px; height: 10px; padding: 0; border-radius: 99px; border: 0; background: #C9CFDD; cursor: pointer; transition: width .35s, background .35s; }
.rv-dots button[aria-selected="true"] { width: 28px; background: var(--blue); }
.rv-deck { position: relative; display: grid; min-height: 340px; perspective: 1200px; }
.rv-card { grid-area: 1 / 1; margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-xl); padding: clamp(24px, 3.4vw, 40px); box-shadow: var(--shadow-lg); display: grid; gap: 20px; align-content: start;
  transform-origin: 50% 110%; transition: transform .7s cubic-bezier(.2,.8,.2,1), opacity .7s, filter .7s; will-change: transform; }
.rv-card[data-pos="0"] { transform: translate3d(0,0,0) rotate(0); z-index: 3; }
.rv-card[data-pos="1"] { transform: translate3d(22px,18px,-60px) rotate(2.5deg); z-index: 2; filter: brightness(.97); }
.rv-card[data-pos="2"] { transform: translate3d(44px,36px,-120px) rotate(5deg); z-index: 1; filter: brightness(.94); }
.rv-card > * { transition: opacity .4s; }
.rv-card:not([data-pos="0"]) > * { opacity: 0; }
.rv-card[data-pos="0"] .rv-top, .rv-card[data-pos="0"] .rv-body, .rv-card[data-pos="0"] figcaption { animation: rv-in .8s .15s both cubic-bezier(.2,.8,.2,1); }
.rv-card.is-leaving { transform: translate3d(-18%, -60px, 0) rotate(-9deg) scale(.96) !important; opacity: 0 !important; z-index: 4 !important; transition-duration: .42s; }
@keyframes rv-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.rv-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.rv-tag { font: 700 12.5px var(--body); letter-spacing: .02em; color: var(--blue-text); background: var(--blue-soft); padding: 5px 12px; border-radius: 99px; }
.rv-body { font: 500 clamp(18px, 1.8vw, 22px)/1.5 var(--display); color: var(--ink); letter-spacing: -.01em; margin: 0; }
.rv-link { margin-left: auto; font: 600 14.5px var(--body); color: var(--blue-text); text-decoration: none; white-space: nowrap; }
.rv-link:hover { text-decoration: underline; }
.rv-card figcaption { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.rv-card figcaption > span:nth-child(2) { display: grid; }
.rv-card figcaption b { font: 700 17px var(--display); color: var(--ink); }
.rv-card figcaption b + span { font-size: 14.5px; color: var(--muted); }
.rv-mark { width: 44px; height: 44px; border-radius: 14px; flex: none; }
.rv-ngb-mark { background: var(--tint-sky) linear-gradient(135deg, #2B59FF 0 30%, transparent 30%) center/18px 18px no-repeat; }
.rv-cd-mark { background: #0B2545 radial-gradient(circle, #3DD68C 0 6px, transparent 7px); }
.rv-wow-mark { background: var(--tint-peach) radial-gradient(circle, var(--coral) 0 7px, transparent 8px); }
@media (max-width: 900px) { .rv-grid { grid-template-columns: 1fr; } .rv-deck { margin-right: 44px; } }
@media (max-width: 480px) { .rv-deck { margin-right: 24px; min-height: 380px; } .rv-card[data-pos="1"] { transform: translate3d(12px,14px,-60px) rotate(2deg); } .rv-card[data-pos="2"] { transform: translate3d(24px,28px,-120px) rotate(4deg); } }

/* Work page: case studies reveal as they scroll into view. Hidden states only apply once
   the script has run and only when motion is allowed, so content never stays hidden */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] .case-head, .js [data-reveal] .case-body > * { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.2,.8,.2,1), transform .8s cubic-bezier(.2,.8,.2,1); }
  .js [data-reveal] .case-shots { opacity: 0; transform: translateY(36px) scale(.97); transition: opacity .9s cubic-bezier(.2,.8,.2,1) .1s, transform .9s cubic-bezier(.2,.8,.2,1) .1s; }
  .js [data-reveal] .case-shots .frame-desk { transform: translateX(-48px) rotate(-1.5deg); opacity: 0; transition: transform 1s cubic-bezier(.2,.8,.2,1) .35s, opacity .8s .35s; }
  .js [data-reveal] .case-shots .frame-phone { transform: translateX(48px) translateY(24px) rotate(3deg); opacity: 0; transition: transform 1s cubic-bezier(.2,.8,.2,1) .55s, opacity .8s .55s; }
  .js [data-reveal] .case-body > :nth-child(2) { transition-delay: .5s; } .js [data-reveal] .case-body > :nth-child(3) { transition-delay: .65s; }
  .js [data-reveal] .case-body > :nth-child(1) { transition-delay: .4s; }
  .js [data-reveal] .checks li { opacity: 0; transform: translateX(-12px); transition: opacity .5s, transform .5s cubic-bezier(.2,.8,.2,1); }
  .js [data-reveal] .checks li:nth-child(1) { transition-delay: .75s; } .js [data-reveal] .checks li:nth-child(2) { transition-delay: .85s; }
  .js [data-reveal] .checks li:nth-child(3) { transition-delay: .95s; } .js [data-reveal] .checks li:nth-child(4) { transition-delay: 1.05s; }
  .js [data-reveal].is-in .case-head, .js [data-reveal].is-in .case-body > *, .js [data-reveal].is-in .case-shots,
  .js [data-reveal].is-in .case-shots .frame-desk, .js [data-reveal].is-in .case-shots .frame-phone, .js [data-reveal].is-in .checks li { opacity: 1; transform: none; }
  .js [data-reveal] .case-shots .frame-desk { transition-property: transform, opacity, box-shadow; }
  .case-shots .frame-desk:hover, .case-shots .frame-phone:hover { transform: translateY(-6px) !important; transition-delay: 0s !important; }
}
.case-shots .frame-desk, .case-shots .frame-phone { transition: transform .5s cubic-bezier(.2,.8,.2,1); }

/* Scroll reveal on every page (set up by site.js; inert without JS or with reduced motion) */
@media (prefers-reduced-motion: no-preference) {
  .js .sr { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.2,.8,.2,1) var(--sr-d, 0s), transform .8s cubic-bezier(.2,.8,.2,1) var(--sr-d, 0s); }
  .js .sr-in .sr { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hero-title .ln-in, .hero-reveal > *, .hero-visual { transform: none !important; opacity: 1 !important; }
  .rot::after { display: none; }
  .mq-track { flex-wrap: wrap; justify-content: center; width: auto; transform: none !important; }
  .mq-item[aria-hidden="true"] { display: none; }
  .marquee { -webkit-mask: none; mask: none; }
}
