/* Lumen CRM marketing site. Design plan: clients/lumencrm/design-plan.md ("paper on canvas"). */

@font-face { font-family: "Poppins"; src: url(/assets/fonts/poppins-medium.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Poppins"; src: url(/assets/fonts/poppins-bold.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Geist"; src: url(/assets/fonts/geist-latin.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --canvas: #141417;
  --canvas-2: #1d1d21;
  --sheet: #f7f7f4;
  --paper: #ffffff;
  --ink: #18181b;
  --ink-2: #3f3f46;
  --muted: #6b6b72;
  --line: #e6e6e1;
  --line-2: #efefeb;
  --yellow: #ffc700;
  --amber: #6b5300;
  --paid: #15803d;
  --paid-bg: #e9f7ee;
  --wait-bg: #fff4cc;
  --on-canvas: #f4f4f5;
  --on-canvas-2: #a6a6ad;
  --line-d: rgba(255, 255, 255, 0.1);

  --display: "Poppins", ui-sans-serif, system-ui, sans-serif;
  --text: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Major third (1.25) from 18px */
  --s-small: 0.875rem;
  --s-0: 1rem;
  --s-1: 1.125rem;
  --s-2: 1.406rem;
  --s-3: 1.758rem;
  --h1: clamp(2.6rem, 1.1rem + 5.3vw, 5.36rem);
  --h2: clamp(2rem, 1.2rem + 2.6vw, 2.747rem);

  --gutter: clamp(20px, 4vw, 56px);
  --wrap: min(1240px, 100% - 2 * var(--gutter));
  --sec: clamp(72px, 9vw, 128px);
  --shadow-paper: 0 1px 0 rgba(0, 0, 0, 0.04), 0 24px 50px -22px rgba(0, 0, 0, 0.45);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { background: var(--canvas); -webkit-text-size-adjust: 100%; scroll-padding-top: 24px; }
body { font-family: var(--text); font-size: var(--s-1); line-height: 1.6; color: var(--ink); background: var(--canvas); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
ul[class], ol[class] { list-style: none; padding: 0; }
button { font: inherit; color: inherit; }

.wrap { width: var(--wrap); margin-inline: auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--yellow); color: #111; padding: 10px 16px; border-radius: 10px; font-weight: 600; }
.skip:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 4px; }
.sheet :focus-visible, .paper :focus-visible { outline-color: var(--ink); }

/* ------------------------------------------------------------------ type */
h1, .h1 { font: 700 var(--h1)/0.98 var(--display); letter-spacing: -0.04em; }
h1 span, .h1 span { display: block; white-space: nowrap; }
h2, .h2 { font: 700 var(--h2)/1.05 var(--display); letter-spacing: -0.03em; text-wrap: balance; }
h2 span { display: block; }
h3, .h3 { font: 500 var(--s-3)/1.2 var(--display); letter-spacing: -0.02em; }
h4, .h4 { font: 600 var(--s-1)/1.35 var(--text); }
.lede { font-size: var(--s-2); line-height: 1.5; max-width: 38ch; }
p + p { margin-top: 1em; }
.muted { color: var(--muted); }
.small { font-size: var(--s-small); }

.link { color: var(--amber); font-weight: 500; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.link:hover { text-decoration-thickness: 2px; }
.on-dark .link, .link--light { color: var(--on-canvas); }

/* ------------------------------------------------------------------ buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 10px; background: var(--yellow); color: #111; font: 600 1rem/1.1 var(--text); text-decoration: none; white-space: nowrap; border: 0; cursor: pointer; transition: background-color 0.15s; }
.btn:hover { background: #ffd633; }
.btn--lg { min-height: 58px; padding: 0 30px; font-size: 1.094rem; }
.btn--quiet { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn--quiet:hover { background: var(--ink); color: var(--paper); }

/* ------------------------------------------------------------------ header */
.top { position: absolute; inset: 0 0 auto; z-index: 20; color: var(--on-canvas); }
.top__in { display: flex; align-items: center; gap: 28px; min-height: 88px; }
.top__logo img { width: auto; height: 34px; }
.nav { display: flex; align-items: center; gap: 30px; margin-left: auto; }
.nav__list { display: flex; gap: 26px; font-size: 0.97rem; font-weight: 500; }
.nav__list a { text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav__list a:hover, .nav__list a[aria-current="page"] { border-color: var(--yellow); }
.top__menu { margin-left: auto; width: 46px; height: 46px; border-radius: 10px; border: 1px solid var(--line-d); background: transparent; cursor: pointer; display: grid; place-items: center; }
.top__menu-bars, .top__menu-bars::before, .top__menu-bars::after { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 1px; transition: transform 0.2s; }
.top__menu-bars { position: relative; }
.top__menu-bars::before, .top__menu-bars::after { content: ""; position: absolute; left: 0; }
.top__menu-bars::before { top: -6px; }
.top__menu-bars::after { top: 6px; }
.top__menu[aria-expanded="true"] .top__menu-bars { background: transparent; }
.top__menu[aria-expanded="true"] .top__menu-bars::before { transform: translateY(6px) rotate(45deg); }
.top__menu[aria-expanded="true"] .top__menu-bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 980px) {
  .top__in { flex-wrap: wrap; min-height: 72px; gap: 12px 20px; }
  .top__logo img { height: 28px; }
  .nav { width: 100%; flex-wrap: wrap; gap: 14px 22px; padding-bottom: 14px; }
  .nav__list { flex-wrap: wrap; gap: 6px 20px; }
  .js .nav { display: none; }
  .js .top__menu:not([hidden]) + .nav.is-open { display: flex; flex-direction: column; align-items: stretch; gap: 18px; padding: 8px 0 24px; }
  .js .nav.is-open .nav__list { flex-direction: column; gap: 0; font-size: 1.15rem; }
  .js .nav.is-open .nav__list a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line-d); }
  .js .top.is-open { background: var(--canvas); position: absolute; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6); }
}
@media (min-width: 981px) { .top__menu { display: none; } }

/* ------------------------------------------------------------------ canvas bands and the sheet */
.hero, .band { position: relative; background: var(--canvas); color: var(--on-canvas); }
.band { padding: 168px 0 calc(var(--sec) * 0.85); }
.band h1 { color: #fff; }
.band .lede { color: var(--on-canvas-2); margin-top: 26px; }
.sheet { position: relative; z-index: 2; background: var(--sheet); border-radius: 28px; margin-top: -28px; }
.sheet::after { content: ""; display: block; height: 1px; }
.sec { padding-block: var(--sec); }
.sec--tight { padding-block: calc(var(--sec) * 0.6); }
.sec + .sec { padding-top: 0; }
.sec__head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 64px); }
.sec__head p { color: var(--ink-2); margin-top: 20px; max-width: 58ch; }

/* ------------------------------------------------------------------ facts */
.facts { display: flex; flex-wrap: wrap; gap: 8px 26px; font-size: 0.97rem; }
.facts li { display: flex; gap: 10px; align-items: center; }
.facts li::before { content: ""; width: 7px; height: 7px; background: var(--yellow); transform: rotate(45deg); flex: none; }

/* ------------------------------------------------------------------ paper documents */
.doc { position: relative; background: var(--paper); color: var(--ink); border-radius: 3px; font-size: 11.5px; line-height: 1.45; padding: 22px 22px 20px; box-shadow: var(--shadow-paper); }
.doc__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.doc__biz { font: 700 12.5px/1.2 var(--display); letter-spacing: -0.01em; display: flex; align-items: center; gap: 7px; }
.doc__biz i { width: 16px; height: 16px; border-radius: 4px; background: #2f4b3c; flex: none; }
.doc__kind { font-weight: 600; font-size: 10.5px; color: var(--muted); white-space: nowrap; }
.doc__title { font: 700 17px/1.15 var(--display); letter-spacing: -0.02em; margin-bottom: 4px; }
.doc__sub { color: var(--muted); margin-bottom: 12px; }
.rows { border-top: 1px solid var(--line); }
.rows > div { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.rows .tot { font-weight: 700; border-bottom: 0; font-size: 12.5px; }
.rule { height: 6px; border-radius: 3px; background: var(--line-2); margin: 7px 0; }
.rule--s { width: 62%; }
.rule--m { width: 84%; }
.sig { margin-top: 18px; border-top: 1px solid var(--ink); padding-top: 5px; display: flex; justify-content: space-between; color: var(--muted); font-size: 10px; position: relative; }
.sig svg { position: absolute; left: 4px; bottom: 16px; width: 120px; height: 42px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 99px; font-weight: 600; font-size: 10.5px; white-space: nowrap; }
.pill--paid { background: var(--paid-bg); color: var(--paid); }
.pill--wait { background: var(--wait-bg); color: var(--amber); }
.pill--grey { background: var(--line-2); color: var(--ink-2); }
.doc--invoice { padding-bottom: 84px; }
.paidnote { position: absolute; left: 22px; bottom: 30px; color: var(--paid); font-weight: 600; }
.stamp { position: absolute; right: 22px; bottom: 12px; width: 66px; height: 66px; border-radius: 50%; border: 2.5px solid var(--paid); color: var(--paid); display: grid; place-items: center; font: 700 15px/1 var(--display); transform: rotate(-14deg); }
.field { margin-bottom: 9px; }
.field b { display: block; font-size: 10px; color: var(--muted); font-weight: 500; margin-bottom: 2px; }
.field span { display: block; border: 1px solid var(--line); border-radius: 5px; padding: 5px 8px; }
.example { font-size: 0.8rem; color: var(--on-canvas-2); display: flex; gap: 8px; align-items: center; }
.example::before { content: ""; width: 14px; height: 1px; background: currentColor; }
.sheet .example { color: var(--muted); }

/* ------------------------------------------------------------------ app window and phone */
.win { background: var(--sheet); border-radius: 14px; overflow: hidden; box-shadow: 0 40px 90px -36px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(0, 0, 0, 0.06); display: grid; grid-template-columns: 150px minmax(0, 1fr); font-size: 11.5px; color: var(--ink); }
.win__side { background: var(--canvas); color: var(--on-canvas-2); padding: 14px 10px; display: grid; gap: 2px; align-content: start; }
.win__side b { color: #fff; font: 700 11.5px var(--display); display: flex; gap: 7px; align-items: center; margin: 0 0 10px 4px; }
.win__side b img { width: 16px; }
.win__side span { padding: 5px 8px; border-radius: 6px; }
.win__side .on { background: rgba(255, 255, 255, 0.08); color: #fff; }
.win__main { padding: 16px 18px 18px; min-width: 0; }
.win__title { font: 600 17px/1.15 var(--display); letter-spacing: -0.02em; margin-bottom: 2px; }
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 12px 0; }
.kpi { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 10px 11px; }
.kpi i { font-style: normal; color: var(--muted); display: block; }
.kpi strong { display: block; font: 600 18px/1.2 var(--display); letter-spacing: -0.02em; margin-top: 3px; }
.kpi--dark { background: var(--canvas); color: #fff; border-color: var(--canvas); }
.kpi--dark i { color: var(--on-canvas-2); }
.list { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; }
.list > div { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 11px; border-bottom: 1px solid var(--line-2); }
.list > div:last-child { border: 0; }
.act { background: var(--yellow); border-radius: 6px; padding: 3px 8px; font-weight: 600; white-space: nowrap; }
.board { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; margin-top: 12px; }
.board__col { background: #efefeb; border-radius: 9px; padding: 7px; display: grid; gap: 6px; align-content: start; min-height: 190px; }
.board__col > b { font-weight: 600; font-size: 10.5px; display: flex; justify-content: space-between; color: var(--ink-2); }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: 7px; padding: 7px 8px; }
.card b { display: block; font-weight: 600; }
.card small { color: var(--muted); display: block; }
.card--hot { border-color: var(--yellow); box-shadow: 0 0 0 2px rgba(255, 199, 0, 0.35); }

.phone { width: 250px; aspect-ratio: 250 / 480; border-radius: 38px; background: var(--canvas); padding: 10px; box-shadow: 0 40px 70px -30px rgba(0, 0, 0, 0.55); }
.phone__screen { background: var(--paper); border-radius: 29px; height: 100%; overflow: hidden; font-size: 11.5px; display: flex; flex-direction: column; color: var(--ink); }
.phone__bar { background: #2f4b3c; color: #fff; padding: 26px 16px 14px; font: 700 13px var(--display); }
.phone__bar small { display: block; font: 400 10.5px var(--text); opacity: 0.85; margin-top: 3px; }
.phone__body { padding: 14px 16px; display: grid; gap: 10px; align-content: start; }
.phone__body h4 { font: 700 15px/1.2 var(--display); }
.phone__go { background: #2f4b3c; color: #fff; border-radius: 9px; text-align: center; padding: 11px; font-weight: 600; }
.pad { border: 1px dashed #c9c9c3; border-radius: 10px; height: 92px; position: relative; }
.pad svg { position: absolute; left: 18px; top: 18px; width: 150px; height: 56px; }
.tick { display: flex; gap: 8px; align-items: flex-start; color: var(--ink-2); }
.tick::before { content: ""; width: 14px; height: 14px; border-radius: 3px; background: #2f4b3c; flex: none; margin-top: 2px; }
.prow { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 9px 0; border-bottom: 1px solid var(--line-2); }
.prow:last-child { border: 0; }

/* ------------------------------------------------------------------ home hero */
.hero { min-height: min(100vh, 980px); overflow: hidden; padding: 168px 0 calc(var(--sec) + 28px); }
.hero__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 40px; }
.hero h1 { color: #fff; }
.hero .lede { color: var(--on-canvas-2); margin: 28px 0 34px; }
.hero .lede b { color: #fff; font-weight: 500; }
.hero__cta { display: flex; gap: 26px; align-items: center; margin-bottom: 30px; }
.hero__cta .link { color: #fff; }
.hero .facts { color: var(--on-canvas-2); }
.stage { position: relative; height: 620px; margin-top: -30px; }
.stage .doc { position: absolute; }
.stage .d1 { width: 290px; left: 262px; top: 0; rotate: 4deg; }
.stage .d2 { width: 300px; left: 0; top: 150px; rotate: -5deg; }
.stage .d3 { width: 290px; left: 200px; top: 370px; rotate: -1.5deg; }
.stage .example { position: absolute; left: 0; top: 590px; }
[data-depth] { translate: 0 var(--py, 0px); will-change: translate; }

/* ------------------------------------------------------------------ hero background: studio light, grain, and the product far behind (Andrew chose option B, 28 Nov 2026) */
.hero__grid { z-index: 1; }
.hero__bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; --mx: 0; --my: 0; }
.hero__bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 120% 90% at 50% 40%, transparent 55%, rgba(8, 8, 10, 0.55) 100%); }
.glow { position: absolute; border-radius: 50%; translate: calc(var(--mx) * -18px) calc(var(--my) * -12px); }
.glow--y { width: min(1100px, 80vw); aspect-ratio: 1; right: -18vw; top: -28vw; background: radial-gradient(closest-side, rgba(255, 186, 20, 0.17), rgba(255, 186, 20, 0.06) 42%, rgba(255, 186, 20, 0) 72%); }
.glow--c { width: min(900px, 70vw); aspect-ratio: 1; left: -16vw; bottom: -40vw; background: radial-gradient(closest-side, rgba(96, 116, 160, 0.16), rgba(96, 116, 160, 0.05) 45%, rgba(96, 116, 160, 0) 72%); }
.grain { position: absolute; inset: 0; background: url(/assets/img/grain.png) 0 0 / 160px 160px; opacity: 0.05; }
.motion .glow--y { animation: driftY 34s ease-in-out infinite alternate; }
.motion .glow--c { animation: driftC 41s ease-in-out infinite alternate; }
@keyframes driftY { 0% { transform: translate3d(0, 0, 0) scale(1); } 50% { transform: translate3d(-9vw, 7vh, 0) scale(1.12); } 100% { transform: translate3d(-3vw, 16vh, 0) scale(0.96); } }
@keyframes driftC { 0% { transform: translate3d(0, 0, 0) scale(1); } 100% { transform: translate3d(14vw, -10vh, 0) scale(1.18); } }

/* Depth: real demo screens, far behind and out of focus, and a fading perspective grid. */
.glow--y { opacity: 0.8; }
.hero .plane { display: block; position: absolute; width: 780px; height: 600px; background: center / cover no-repeat; border-radius: 18px; opacity: 0.34; -webkit-mask-image: radial-gradient(ellipse at center, #000 50%, transparent 78%); mask-image: radial-gradient(ellipse at center, #000 50%, transparent 78%); }
.hero .plane--1 { background-image: url(/assets/img/bg-ui-pipeline.webp); right: -60px; top: 60px; transform: perspective(1400px) rotateY(-22deg) rotateX(6deg); translate: calc(var(--mx) * -26px) calc(var(--my) * -16px + var(--py, 0px)); }
.hero .plane--2 { background-image: url(/assets/img/bg-ui-today.webp); left: 32%; top: 560px; width: 620px; height: 480px; opacity: 0.18; transform: perspective(1400px) rotateY(16deg) rotateX(10deg); translate: calc(var(--mx) * -12px) calc(var(--my) * -8px); }
.hero .gridlines { display: block; position: absolute; left: -10%; right: -10%; bottom: -10%; height: 70%; background-image: linear-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px); background-size: 72px 72px; transform: perspective(900px) rotateX(62deg); transform-origin: 50% 100%; -webkit-mask-image: radial-gradient(ellipse 60% 70% at 62% 30%, #000 10%, transparent 70%); mask-image: radial-gradient(ellipse 60% 70% at 62% 30%, #000 10%, transparent 70%); translate: calc(var(--mx) * -8px) 0; }
.motion .hero .plane--1 { animation: floatA 26s ease-in-out infinite alternate; }
@keyframes floatA { from { opacity: 0.34; } to { opacity: 0.22; } }
.hero.bg-off .hero__bg *, .hero.bg-off .hero__bg::after { animation-play-state: paused !important; }

/* The same light, toned down, in the other dark areas. */
.band, .foot { position: relative; isolation: isolate; }
.band::before, .foot::before, .band::after, .foot::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.band::before, .foot::before { background: radial-gradient(ellipse 50% 70% at 85% 0%, rgba(255, 186, 20, 0.1), transparent 70%), radial-gradient(ellipse 45% 60% at 5% 100%, rgba(96, 116, 160, 0.1), transparent 70%); }
.band::after, .foot::after { background: url(/assets/img/grain.png) 0 0 / 160px 160px; opacity: 0.045; }

@media (max-width: 760px) {
  .hero .plane, .hero .gridlines { display: none; }
  .glow--y { width: 140vw; right: -60vw; top: -40vw; }
  .glow--c { width: 120vw; }
}

/* ------------------------------------------------------------------ one job (signature section) */
.job { position: relative; }
.job__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.job__text > p { color: var(--ink-2); margin: 20px 0 30px; max-width: 46ch; }
.job__steps { counter-reset: step; border-left: 1px solid var(--line); }
.job__steps li { counter-increment: step; position: relative; padding: 10px 0 10px 54px; margin-left: -1px; border-left: 2px solid transparent; transition: border-color 0.3s, opacity 0.3s; }
.job__steps li::before { content: counter(step); position: absolute; left: 18px; top: 11px; font: 700 0.95rem/1.6 var(--display); color: var(--muted); }
.job__steps b { display: block; font-weight: 600; }
.job__steps span { display: block; color: var(--muted); font-size: 0.95rem; }
.job__scene { position: relative; }
.pipe { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 10px; font-size: 11px; margin-bottom: 26px; box-shadow: 0 18px 40px -28px rgba(0, 0, 0, 0.35); }
.pipe > span { background: #f2f2ee; border-radius: 9px; padding: 7px 9px 58px; font-weight: 600; color: var(--ink-2); }
.pipe__card { --col: 3; position: absolute; left: 10px; top: 36px; width: calc((100% - 20px - 24px) / 4); background: var(--paper); border: 1px solid var(--yellow); box-shadow: 0 0 0 2px rgba(255, 199, 0, 0.3), 0 10px 20px -10px rgba(0, 0, 0, 0.3); border-radius: 8px; padding: 6px 8px; transform: translateX(calc(var(--col) * (100% + 8px))); transition: transform 0.7s cubic-bezier(0.3, 0.7, 0.2, 1); }
.pipe__card b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pipe__card small { display: block; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pipe__card em { font-style: normal; font-weight: 600; }
.job__stack { position: relative; height: 470px; }
.jdoc { position: absolute; width: 300px; --t: 1; rotate: calc(var(--rest) + (1 - var(--t)) * var(--from)); translate: 0 calc((1 - var(--t)) * 70vh); opacity: clamp(0, var(--t) * 4, 1); }
.jdoc:nth-child(1) { left: 0; top: 0; --rest: -3deg; --from: -12deg; }
.jdoc:nth-child(2) { left: 90px; top: 30px; --rest: 2.5deg; --from: 10deg; }
.jdoc:nth-child(3) { left: 30px; top: 100px; --rest: -1.5deg; --from: -9deg; }
.jdoc:nth-child(4) { left: 150px; top: 150px; --rest: 1.5deg; --from: 12deg; }
.job__toast { position: absolute; right: 0; bottom: 0; }

.toast { display: flex; gap: 12px; align-items: center; background: var(--paper); color: var(--ink); border-radius: 14px; padding: 12px 16px 12px 12px; box-shadow: 0 24px 50px -18px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(0, 0, 0, 0.04); font-size: 12.5px; max-width: 290px; }
.toast b { display: block; font-size: 13px; }
.toast__ic { width: 34px; height: 34px; border-radius: 10px; background: var(--paid-bg); color: var(--paid); display: grid; place-items: center; flex: none; }

/* Pinned scroll story: only with JavaScript, motion allowed and a wide screen. */
@media (min-width: 981px) {
  .motion .job { height: 340vh; }
  .motion .job__pin { position: sticky; top: 0; height: 100vh; display: grid; align-items: center; overflow: hidden; }
  .motion .job__pin > .sec { padding-block: 40px; }
  /* Steps not reached yet stay readable (muted text passes AA); the current one is marked. */
  .motion .job__steps li b { color: var(--muted); transition: color 0.3s; }
  .motion .job__steps li.is-done b { color: var(--ink-2); }
  .motion .job__steps li.is-on { border-color: var(--yellow); }
  .motion .job__steps li.is-on b { color: var(--ink); }
}
/* Story states (set by data-step while it plays; without it everything shows finished). */
.motion .job[data-step] .pipe__card { --col: 0; }
.motion .job[data-step="1"] .pipe__card { --col: 1; }
.motion .job[data-step="2"] .pipe__card { --col: 2; }
.motion .job[data-step="3"] .pipe__card, .motion .job[data-step="4"] .pipe__card { --col: 3; }
.motion .job[data-step] .jdoc .sigpath { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.1s ease-in-out; }
.motion .job[data-step="2"] .jdoc .sigpath, .motion .job[data-step="3"] .jdoc .sigpath, .motion .job[data-step="4"] .jdoc .sigpath { stroke-dashoffset: 0; }
.motion .job[data-step] .jdoc .stamp, .motion .job[data-step] .jdoc .paidnote, .motion .job[data-step] .job__toast { opacity: 0; }
.motion .job[data-step="4"] .jdoc .stamp { animation: stampIn 0.6s cubic-bezier(0.3, 0.6, 0.3, 1.4) both; }
.motion .job[data-step="4"] .jdoc .paidnote { animation: fadeUp 0.4s 0.35s ease-out both; }
.motion .job[data-step="4"] .job__toast { animation: toastIn 0.6s 0.5s cubic-bezier(0.2, 0.9, 0.3, 1.2) both; }

/* ------------------------------------------------------------------ the hero sequence (on load) */
.opt { display: inline-flex; align-items: center; gap: 7px; }
.chk { width: 13px; height: 13px; border-radius: 3px; background: var(--ink); position: relative; flex: none; }
.chk::after { content: ""; position: absolute; left: 4px; top: 1.5px; width: 3.5px; height: 7px; border: solid var(--yellow); border-width: 0 2px 2px 0; rotate: 45deg; }
.doc__foot { margin-top: 12px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.stage .toast { position: absolute; right: -8px; top: 300px; }

@keyframes docIn { from { opacity: 0; transform: translate3d(70px, 90px, 0) scale(0.95); } to { opacity: 1; transform: none; } }
@keyframes pop { 0% { opacity: 0; transform: scale(0.3); } 60% { opacity: 1; transform: scale(1.18); } 100% { opacity: 1; transform: scale(1); } }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes stampIn {
  0% { opacity: 0; transform: rotate(-14deg) scale(2.2); }
  55% { opacity: 1; transform: rotate(-14deg) scale(0.9); }
  75% { transform: rotate(-14deg) scale(1.06); }
  100% { opacity: 1; transform: rotate(-14deg) scale(1); }
}
@keyframes ring { 0% { opacity: 0.55; transform: scale(1); } 100% { opacity: 0; transform: scale(1.9); } }
@keyframes toastIn { from { opacity: 0; transform: translate3d(0, -18px, 0) scale(0.96); } to { opacity: 1; transform: none; } }
@keyframes jolt { 0%, 100% { transform: none; } 30% { transform: translate3d(0, 3px, 0) rotate(0.4deg); } }

.stamp::after { content: ""; position: absolute; inset: -3px; border-radius: 50%; border: 2px solid var(--paid); opacity: 0; }
/* Waits until the stage is on screen (it starts below the fold on phones). */
.motion .stage:not(.is-in) *, .motion .stage:not(.is-in) *::after { animation-play-state: paused !important; }
.motion .hero .seq { animation: docIn 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.motion .hero .d1 { animation-delay: 0.15s; }
.motion .hero .d2 { animation-delay: 1.2s; }
.motion .hero .d3 { animation-delay: 2.4s; }
.motion .hero .c1 { animation: pop 0.35s 0.8s both; }
.motion .hero .c2 { animation: pop 0.35s 1s both; }
.motion .hero .d1 .pill { animation: pop 0.45s 1.75s both; }
.motion .hero .sigpath { stroke-dasharray: 1; animation: draw 1.1s 2s ease-in-out both; }
.motion .hero .signed { animation: fadeUp 0.4s 2.9s both; }
.motion .hero .stamp { animation: stampIn 0.6s 3.55s cubic-bezier(0.3, 0.6, 0.3, 1.4) both; }
.motion .hero .stamp::after { animation: ring 0.7s 3.8s ease-out both; }
.motion .hero .paidnote { animation: fadeUp 0.4s 3.9s both; }
.motion .hero .toast { animation: toastIn 0.6s 4.2s cubic-bezier(0.2, 0.9, 0.3, 1.2) both; }

/* ------------------------------------------------------------------ in-view moments (paused off screen) */
.motion .reveal .prow .pill { animation: pop 0.4s both paused; }
.motion .reveal .pr1 .pill { animation-delay: 0.3s; }
.motion .reveal .pr2 .pill { animation-delay: 0.7s; }
.motion .reveal .pr3 .pill { animation-delay: 1.1s; }
.motion .reveal .pr4 .pill { animation-delay: 1.5s; }
.motion .reveal .map i { animation: grow 0.5s both paused; transform-origin: left; }
.motion .reveal .map div:nth-child(2) i { animation-delay: 0.15s; }
.motion .reveal .map div:nth-child(3) i { animation-delay: 0.3s; }
.motion .reveal .map div:nth-child(4) i { animation-delay: 0.45s; }
.motion .reveal .map div:nth-child(5) i { animation-delay: 0.6s; }
.motion .reveal .map b { animation: fadeUp 0.4s both paused; }
.motion .reveal .map div:nth-child(1) b { animation-delay: 0.35s; }
.motion .reveal .map div:nth-child(2) b { animation-delay: 0.5s; }
.motion .reveal .map div:nth-child(3) b { animation-delay: 0.65s; }
.motion .reveal .map div:nth-child(4) b { animation-delay: 0.8s; }
.motion .reveal .map div:nth-child(5) b { animation-delay: 0.95s; }
.motion .reveal .doc__foot .pill { animation: pop 0.4s 1.2s both paused; }
.motion .reveal.is-in *, .motion .reveal.is-in *::before, .motion .reveal.is-in *::after { animation-play-state: running; }
@keyframes grow { from { transform: scaleX(0); } to { transform: none; } }

.csv { width: min(440px, 100%); right: 0; top: 40px; }
.map { border-top: 1px solid var(--line); }
.map div { display: grid; grid-template-columns: minmax(0, 1fr) 40px minmax(0, 1fr); align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.map span { font-family: var(--text); background: #f2f2ee; border-radius: 5px; padding: 3px 7px; justify-self: start; }
.map i { height: 2px; background: var(--yellow); position: relative; }
.map i::after { content: ""; position: absolute; right: -1px; top: -3px; border: 4px solid transparent; border-left: 6px solid var(--yellow); border-right: 0; }
.map b { font-weight: 600; }
.art--portal .phone { right: 12%; top: 0; }
.art.art--import { min-height: 330px; }

/* ------------------------------------------------------------------ home blocks */
.index { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(32px, 5vw, 80px); border-top: 1px solid var(--line); }
.index a { display: grid; grid-template-columns: minmax(0, 15em) minmax(0, 1fr); gap: 4px 24px; padding: 18px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.index a:hover b { text-decoration: underline; text-underline-offset: 4px; }
.index b { font-weight: 600; }
.index span { color: var(--muted); font-size: 0.97rem; }

.trades { border-top: 1px solid var(--line); }
.trades > div { display: grid; grid-template-columns: minmax(0, 14em) minmax(0, 1fr); gap: 6px 32px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.trades dt { font: 500 var(--s-2)/1.3 var(--display); letter-spacing: -0.01em; }
.trades dd { color: var(--ink-2); max-width: 64ch; }
.trades__note { color: var(--muted); font-size: 0.95rem; margin-top: 18px; max-width: 70ch; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.split--flip > :first-child { order: 2; }
.split__text > p { color: var(--ink-2); margin-top: 20px; max-width: 48ch; }
.split__text .link { display: inline-block; margin-top: 24px; }
.art { position: relative; min-height: 520px; }
.art > * { position: absolute; }

.defs { border-top: 1px solid var(--line); margin-top: 28px; }
.defs > div { padding: 14px 0; border-bottom: 1px solid var(--line); }
.defs dt { font-weight: 600; }
.defs dd { color: var(--muted); font-size: 0.97rem; margin-top: 2px; }

.uk { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(28px, 4vw, 64px); border-top: 1px solid var(--line); }
.uk > div { padding: 22px 0 26px; border-bottom: 1px solid var(--line); }
.uk h3 { font: 600 var(--s-1)/1.35 var(--text); letter-spacing: 0; }
.uk p { color: var(--muted); margin-top: 6px; font-size: 0.97rem; }

.teaser { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 24px 56px; align-items: end; border-top: 1px solid var(--ink); padding-top: 28px; }
.teaser__plan b { font: 700 clamp(2.4rem, 1.6rem + 2vw, 3.4rem)/1 var(--display); letter-spacing: -0.03em; display: block; }
.teaser__plan span { color: var(--muted); font-size: 0.95rem; }
.teaser__plan h3 { font: 600 var(--s-1)/1.3 var(--text); margin-bottom: 10px; }

/* ------------------------------------------------------------------ features page */
.feat { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); }
.rail { position: sticky; top: 32px; align-self: start; border-left: 1px solid var(--line); font-size: 0.92rem; color: var(--muted); display: grid; gap: 2px; padding: 4px 0; }
.rail a { display: block; padding: 5px 0 5px 16px; margin-left: -1px; border-left: 2px solid transparent; text-decoration: none; }
.rail a:hover { color: var(--ink); }
.rail a.is-on, .rail a[aria-current="true"] { color: var(--ink); font-weight: 600; border-color: var(--yellow); }
.fsec { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 72px); align-items: center; padding: clamp(56px, 7vw, 96px) 0; border-bottom: 1px solid var(--line); scroll-margin-top: 24px; }
.fsec:first-child { padding-top: 0; }
.fsec:last-child { border-bottom: 0; }
.fsec__text > p { color: var(--ink-2); margin-top: 20px; max-width: 50ch; }
.fsec__text > .link, .fsec__text > .defs + .link { display: inline-block; margin-top: 24px; }
.fsec .art { min-height: 440px; }
.fsec .art:has(.phone), .fsec .art:has(.flow) { min-height: 560px; }
.fsec .win { grid-template-columns: 112px minmax(0, 1fr); }
.fsec .win__side { font-size: 10.5px; }
.fsec .kpi strong { font-size: 16px; }
.board__col > b span { display: none; }
.fsec .plan-note { display: table; margin-top: 18px; font-size: 0.9rem; color: var(--amber); background: var(--wait-bg); border-radius: 99px; padding: 3px 12px; font-weight: 500; }

/* ------------------------------------------------------------------ feature scenes */
.art__note { position: absolute; left: 0; bottom: 0; }
.fsec .win { left: 0; right: 0; top: 10px; }
.win--board .win__main { padding-bottom: 14px; }
.doc--proposal { width: min(400px, 92%); left: 8%; top: 0; }
.pkgs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.pkg { position: relative; border: 1px solid var(--line); border-radius: 8px; padding: 9px 10px; display: grid; gap: 1px; }
.pkg b { font-weight: 600; }
.pkg span { color: var(--muted); }
.pkg em { font-style: normal; font-weight: 700; margin-top: 4px; }
.pkg .chk { position: absolute; right: 8px; top: 8px; }
.pkg--b::after, .flow__step::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; border: 2px solid var(--yellow); box-shadow: 0 0 0 3px rgba(255, 199, 0, 0.25); pointer-events: none; }
.flow__step::after { opacity: 0; }
.flow__when::after { display: none; }
.pkg--a .chk { display: none; }
.accept { margin-top: 14px; }
.accept span { display: block; text-align: center; background: #2f4b3c; color: #fff; border-radius: 8px; padding: 9px; font-weight: 600; }
.doc--contract { width: min(340px, 75%); left: 0; top: 0; rotate: -3deg; }
.phone--sign { right: 0; top: 60px; }
.signed-ok { text-align: center; }
.doc--plan { width: min(420px, 94%); left: 4%; top: 20px; }
.sched { border-top: 1px solid var(--line); }
.sched div { display: grid; grid-template-columns: 4.6em minmax(0, 1fr) auto 3.6em; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.sched .pill { justify-self: end; }
.phone--pay { left: 6%; top: 0; }
.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.payok { display: none; }
.toast--pay { position: absolute; right: 0; top: 270px; }
.timer { display: flex; align-items: center; gap: 10px; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; }
.timer small { display: block; color: var(--muted); }
.timer > span:nth-child(2) { flex: 1; }
.timer__dot { width: 9px; height: 9px; border-radius: 50%; background: #dc2626; }
.timer__clock { font: 600 18px/1 var(--display); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.bars { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; align-items: end; height: 150px; margin: 14px 0; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px 8px; }
.bars div { display: grid; grid-template-rows: 1fr auto; height: 100%; gap: 4px; text-align: center; color: var(--muted); font-size: 10px; }
.bars i { align-self: end; height: 100%; background: var(--yellow); border-radius: 5px 5px 2px 2px; transform-origin: bottom; }
.bars .b1 { transform: scaleY(0.55); } .bars .b2 { transform: scaleY(0.8); } .bars .b3 { transform: scaleY(0.4); } .bars .b4 { transform: scaleY(0.95); } .bars .b5 { transform: scaleY(0.65); }
.doc--mail { width: min(430px, 96%); left: 2%; top: 0; font-size: 12.5px; }
.mailrow { display: flex; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.mailrow > b { width: 4.5em; color: var(--muted); font-weight: 500; flex: none; }
.mailbody { padding-top: 12px; }
.mailbody p + p { margin-top: 0.7em; }
.mf { position: relative; }
.mf code { position: absolute; left: -5px; top: -2px; z-index: 1; font: 500 0.92em/1.3 var(--text); background: var(--wait-bg); color: var(--amber); border-radius: 4px; padding: 1px 5px; white-space: nowrap; box-shadow: 0 0 0 2px var(--paper); opacity: 0; }
.mf em { font-style: normal; }
.mf--link em { color: #2f4b3c; text-decoration: underline; text-underline-offset: 3px; }
.flow { left: 6%; right: 6%; top: 0; display: grid; gap: 0; }
.flow__step { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px 12px 16px; box-shadow: 0 14px 30px -22px rgba(0, 0, 0, 0.35); }
.flow__step small { display: block; color: var(--muted); font-size: 11px; }
.flow__step b { font-weight: 600; }
.flow__step span { display: block; color: var(--muted); font-size: 0.85rem; }
.flow__step + .flow__step { margin-top: 18px; }
.flow__step + .flow__step::before { content: ""; position: absolute; left: 28px; top: -19px; width: 2px; height: 18px; background: var(--line); }
.flow__when { background: var(--canvas); color: #fff; border-color: var(--canvas); }
.flow__when small { color: var(--on-canvas-2); }
.flow__done { margin-top: 16px; }
.phone--portal { right: 4%; top: 0; }
.doc--email { width: 250px; left: 0; top: 190px; rotate: -3deg; }
.doc--team { width: min(420px, 96%); left: 2%; top: 10px; }
.people > div { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); }
.people i { width: 32px; height: 32px; border-radius: 50%; background: var(--canvas); color: var(--yellow); font: 700 11px/32px var(--display); text-align: center; font-style: normal; }
.people small { display: block; color: var(--muted); }
.assign { margin-top: 14px; display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; background: #f2f2ee; border-radius: 8px; padding: 9px 11px; }
.assign span:nth-child(2) { color: var(--muted); }
.fsec .csv { left: 2%; right: auto; top: 0; }

/* Feature motion moments: each plays once when its scene is seen, loops only while on screen. */
.motion .reveal .kpi strong { animation: fadeUp 0.5s both paused; }
.motion .reveal .stagger > div { animation: slideIn 0.5s both paused; }
.motion .reveal .stagger > div:nth-child(1) { animation-delay: 0.5s; }
.motion .reveal .stagger > div:nth-child(2) { animation-delay: 0.65s; }
.motion .reveal .stagger > div:nth-child(3) { animation-delay: 0.8s; }
@keyframes slideIn { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }

.motion .loop .card--drag { animation: drag 5s 0.6s infinite both paused; }
.motion .loop.is-live .card--drag { animation-play-state: running; }
@keyframes drag {
  0%, 12% { transform: none; }
  20% { transform: translate(0, -6px) rotate(-3deg) scale(1.05); }
  42% { transform: translate(calc(100% + 7px), -6px) rotate(2deg) scale(1.05); }
  50%, 88% { transform: translate(calc(100% + 7px), 34px); }
  100% { transform: none; }
}
.motion .reveal .pkg--b::after { animation: fadeIn 0.4s 0.6s both paused; }
.motion .reveal .pkg--b .chk, .motion .reveal .c-add { animation: pop 0.35s both paused; }
.motion .reveal .pkg--b .chk { animation-delay: 0.8s; }
.motion .reveal .c-add { animation-delay: 1.2s; }
.motion .reveal .doc--proposal .accept span { animation: press 0.5s 1.8s both paused; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes press { 0% { transform: none; } 40% { transform: scale(0.95); } 100% { transform: none; } }
.motion .reveal .phone--sign .sigpath { stroke-dasharray: 1; animation: draw 1.2s 0.5s ease-in-out both paused; }
.motion .reveal .phone--sign .signed-ok .pill { animation: pop 0.45s 1.9s both paused; }
.motion .reveal .sched .pill { animation: pop 0.4s both paused; }
.motion .reveal .sched div:nth-child(1) .pill { animation-delay: 0.4s; }
.motion .reveal .sched div:nth-child(2) .pill { animation-delay: 0.8s; }
.motion .reveal .sched div:nth-child(3) .pill { animation-delay: 1.2s; }
.motion .reveal .paybtn { animation: press 0.5s 0.8s both paused; }
.motion .reveal .toast--pay { animation: toastIn 0.6s 1.4s cubic-bezier(0.2, 0.9, 0.3, 1.2) both paused; }
.motion .reveal .bars i { animation: growUp 0.7s both paused; }
.motion .reveal .bars div:nth-child(2) i { animation-delay: 0.08s; }
.motion .reveal .bars div:nth-child(3) i { animation-delay: 0.16s; }
.motion .reveal .bars div:nth-child(4) i { animation-delay: 0.24s; }
.motion .reveal .bars div:nth-child(5) i { animation-delay: 0.32s; }
@keyframes growUp { from { scale: 1 0; } to { scale: 1 1; } }
.motion .loop .timer__dot { animation: blink 1.2s infinite paused; }
.motion .loop.is-live .timer__dot { animation-play-state: running; }
@keyframes blink { 50% { opacity: 0.25; } }
/* Merge fields: show the field, then the filled-in value, on a loop. */
.motion .loop .mf code { animation: fieldShow 6s infinite both paused; }
.motion .loop .mf em { animation: fieldHide 6s infinite both paused; }
.motion .loop.is-live .mf code, .motion .loop.is-live .mf em { animation-play-state: running; }
@keyframes fieldShow { 0%, 40% { opacity: 1; } 48%, 92% { opacity: 0; } 100% { opacity: 1; } }
@keyframes fieldHide { 0%, 40% { opacity: 0; } 48%, 92% { opacity: 1; } 100% { opacity: 0; } }
/* Automation: each step lights up in turn while on screen. */
.motion .loop .flow__step:not(.flow__when)::after { animation: lightStep 6s infinite both paused; }
.motion .loop .flow__step:nth-child(3)::after { animation-delay: 0.6s; }
.motion .loop .flow__step:nth-child(4)::after { animation-delay: 1.2s; }
.motion .loop.is-live .flow__step::after { animation-play-state: running; }
.motion .loop .flow__done { animation: doneShow 6s 1.8s infinite both paused; }
.motion .loop.is-live .flow__step, .motion .loop.is-live .flow__done { animation-play-state: running; }
@keyframes lightStep { 0%, 8% { opacity: 0; } 14%, 80% { opacity: 1; } 92%, 100% { opacity: 0; } }
@keyframes doneShow { 0%, 6% { opacity: 0; transform: translateY(6px); } 14%, 80% { opacity: 1; transform: none; } 92%, 100% { opacity: 0; } }
.motion .reveal .people__new { animation: slideIn 0.5s 0.5s both paused; }
.motion .reveal .assign b { animation: fadeUp 0.4s 1.1s both paused; }

/* ------------------------------------------------------------------ pricing */
.billing { display: inline-flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--paper); border: 1px solid var(--line); margin-bottom: 32px; }
.billing input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.billing label { padding: 9px 18px; border-radius: 9px; cursor: pointer; font-weight: 500; }
.billing label em { font-style: normal; color: var(--amber); font-size: 0.85rem; margin-left: 6px; }
.billing input:checked + label { background: var(--canvas); color: #fff; }
.billing input:checked + label em { color: var(--yellow); }
.billing input:focus-visible + label { outline: 3px solid var(--ink); outline-offset: 2px; }
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 980px; }
.plan { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: clamp(26px, 3vw, 38px); display: flex; flex-direction: column; }
.plan--pro { background: var(--canvas); color: var(--on-canvas); border-color: var(--canvas); }
.plan__name { font: 700 var(--s-3)/1.1 var(--display); letter-spacing: -0.02em; }
.plan__for { color: var(--muted); margin-top: 6px; }
.plan--pro .plan__for { color: var(--on-canvas-2); }
.plan__price { margin: 26px 0 4px; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.plan__price b { font: 700 3.4rem/1 var(--display); letter-spacing: -0.04em; }
.plan__price span { color: var(--muted); font-size: 0.95rem; }
.plan--pro .plan__price span { color: var(--on-canvas-2); }
.plan__alt { color: var(--muted); font-size: 0.92rem; min-height: 1.6em; }
.plan--pro .plan__alt { color: var(--on-canvas-2); }
.y { display: none; }
.pricing:has(#bill-year:checked) .y { display: revert; }
.pricing:has(#bill-year:checked) .m { display: none; }
.plan__list { margin: 26px 0 30px; border-top: 1px solid var(--line); flex: 1; }
.plan--pro .plan__list { border-color: var(--line-d); }
.plan__list li { padding: 10px 0 10px 28px; border-bottom: 1px solid var(--line); position: relative; }
.plan--pro .plan__list li { border-color: var(--line-d); }
.plan__list li::before { content: ""; position: absolute; left: 2px; top: 17px; width: 12px; height: 7px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; rotate: -45deg; opacity: 0.8; }
.plan--pro .plan__list li::before { color: var(--yellow); opacity: 1; }
.plan__list .lead { font-weight: 600; padding-left: 0; }
.plan__list .lead::before { display: none; }
.plan .btn { align-self: stretch; }
.plan--std .btn { background: var(--canvas); color: #fff; }
.plan--std .btn:hover { background: #2a2a30; }
.pnotes { margin-top: 26px; color: var(--muted); font-size: 0.95rem; max-width: 70ch; }
.pnotes li + li { margin-top: 6px; }
.addon { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px 40px; align-items: center; max-width: 980px; padding: 28px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.addon p { color: var(--ink-2); margin-top: 8px; max-width: 60ch; }
.addon__price b { font: 700 2.4rem/1 var(--display); letter-spacing: -0.03em; }
.addon__price span { display: block; color: var(--muted); font-size: 0.9rem; }
.services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 980px; }
.service { border: 1px solid var(--line); border-radius: 18px; padding: clamp(24px, 3vw, 34px); background: var(--paper); display: flex; flex-direction: column; }
.service .plan__price b { font-size: 2.6rem; }
.service .plan__list { margin-bottom: 26px; }
.service .btn { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.service .btn:hover { background: var(--ink); color: #fff; }

.faq { max-width: 820px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 20px 40px 20px 0; font-weight: 600; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 26px; width: 10px; height: 10px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; rotate: 45deg; transition: rotate 0.15s; }
.faq details[open] summary::after { rotate: -135deg; top: 31px; }
.faq details > div { padding: 0 0 22px; color: var(--ink-2); max-width: 66ch; }

/* ------------------------------------------------------------------ switch, about, contact, legal */
.moves { counter-reset: move; border-top: 1px solid var(--line); max-width: 900px; }
.moves li { counter-increment: move; display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 4px 12px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.moves li::before { content: counter(move); font: 700 var(--s-3)/1 var(--display); color: var(--amber); grid-row: span 2; }
.moves h3 { font: 600 var(--s-1)/1.4 var(--text); }
.moves p { color: var(--ink-2); max-width: 64ch; }
.cols2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 5vw, 80px); }
.cols2 h3 { margin-bottom: 12px; }
.cols2 p, .cols2 li { color: var(--ink-2); }
.bul li { position: relative; padding-left: 22px; margin-top: 8px; }
.bul li::before { content: ""; position: absolute; left: 2px; top: 0.62em; width: 7px; height: 7px; background: var(--yellow); rotate: 45deg; }
.prose { max-width: 70ch; }
.prose h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 1.9rem); margin: 44px 0 14px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--ink-2); }
.prose ul { padding-left: 1.2em; margin-top: 10px; }
.prose li + li { margin-top: 6px; }
.prose a { color: var(--amber); text-underline-offset: 3px; }
.review { border: 2px dashed #b45309; background: #fff7ed; color: #7c2d12; border-radius: 12px; padding: 16px 20px; margin-bottom: 40px; max-width: 70ch; font-weight: 500; }
.contact { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); }
.contact__mail { font: 700 clamp(1.4rem, 0.9rem + 2vw, 2.4rem)/1.15 var(--display); letter-spacing: -0.02em; color: var(--ink); word-break: break-word; text-decoration-thickness: 2px; text-underline-offset: 8px; text-decoration-color: var(--yellow); }
.contact__mail:hover { text-decoration-color: var(--ink); }
.contact address { font-style: normal; color: var(--ink-2); }

/* ------------------------------------------------------------------ footer */
.foot { background: var(--canvas); color: var(--on-canvas-2); padding: calc(var(--sec) + 28px) 0 40px; margin-top: -28px; }
.foot__end { padding-bottom: var(--sec); border-bottom: 1px solid var(--line-d); }
.foot__h { color: #fff; font-size: var(--h1); line-height: 0.98; letter-spacing: -0.04em; }
.foot__h span { white-space: nowrap; }
.foot__end p { margin: 22px 0 30px; font-size: var(--s-2); }
.foot__grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 32px; padding: 56px 0 40px; }
.foot__brand img { height: 30px; width: auto; margin-bottom: 16px; }
.foot__brand p { max-width: 38ch; font-size: 0.95rem; }
.foot h3 { color: #fff; font: 600 0.95rem/1.4 var(--text); margin-bottom: 12px; }
.foot ul { list-style: none; padding: 0; }
.foot nav li + li { margin-top: 8px; }
.foot nav a { text-decoration: none; font-size: 0.95rem; }
.foot nav a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.foot__base { border-top: 1px solid var(--line-d); padding-top: 24px; display: flex; flex-wrap: wrap; gap: 8px 32px; font-size: 0.85rem; }
.foot__base p { margin: 0; }
.foot__base a { text-underline-offset: 3px; }

/* ------------------------------------------------------------------ responsive */
@media (max-width: 1100px) {
  .hero__grid { grid-template-columns: 1fr; }
  .stage { height: 600px; max-width: 600px; margin-top: 30px; }
  .feat { grid-template-columns: 1fr; }
  .rail { position: static; display: flex; overflow-x: auto; border-left: 0; border-bottom: 1px solid var(--line); gap: 0; white-space: nowrap; scrollbar-width: none; }
  .rail a { border-left: 0; border-bottom: 2px solid transparent; padding: 0 16px 10px 0; margin: 0 0 -1px; }
  .rail a.is-on { border-color: var(--yellow); }
}
@media (max-width: 980px) {
  .job__grid, .split, .fsec, .contact, .cols2 { grid-template-columns: 1fr; }
  .split--flip > :first-child { order: 0; }
  .index { grid-template-columns: 1fr; }
  .uk { grid-template-columns: 1fr 1fr; }
  .teaser { grid-template-columns: 1fr 1fr; }
  .teaser > :first-child { grid-column: 1 / -1; }
  .foot__grid { grid-template-columns: 1fr 1fr; }
  .foot__brand { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  body { font-size: 1.0625rem; }
  .band { padding-top: 120px; }
  .hero { padding-top: 120px; min-height: 0; }
  .hero .lede, .band .lede { font-size: 1.15rem; margin: 18px 0 26px; }
  .hero__cta { flex-direction: column; align-items: stretch; gap: 16px; text-align: center; }
  .stage { height: 400px; margin: 34px calc(var(--gutter) * -1) 0; }
  .stage .doc { font-size: 9.5px; padding: 15px; }
  .stage .doc__title { font-size: 14px; }
  .stage .doc__biz { font-size: 11px; }
  .stage .d1 { width: 225px; left: 12px; top: 0; }
  .stage .d2 { display: none; }
  .stage .d3 { width: 215px; left: auto; right: 12px; top: 110px; }
  .stage .d3.doc--invoice { padding-bottom: 74px; }
  .stage .example { left: var(--gutter); top: auto; bottom: 0; }
  .job__stack { height: 420px; }
  .jdoc { width: 240px; }
  .jdoc.doc { font-size: 10px; padding: 16px; }
  .jdoc.doc--invoice { padding-bottom: 76px; }
  .jdoc:nth-child(2) { left: 70px; top: 30px; }
  .jdoc:nth-child(3) { left: 10px; top: 90px; }
  .jdoc:nth-child(4) { left: auto; right: 0; top: 140px; }
  .job__toast { left: 0; right: auto; bottom: -10px; }
  .pipe { font-size: 10px; padding: 8px; gap: 6px; }
  .pipe > span { padding: 6px 6px 52px; }
  .pipe__card { left: 8px; width: calc((100% - 16px - 18px) / 4); transform: translateX(calc(var(--col) * (100% + 6px))); padding: 5px 6px; }
  .pipe__card small { display: none; }
  .stage { height: 500px; }
  .stage .toast { left: 12px; right: auto; top: 400px; max-width: 260px; }
  .art--portal .phone { right: auto; left: 50%; margin-left: -105px; }
  .index a, .trades > div { grid-template-columns: 1fr; }
  .uk { grid-template-columns: 1fr; }
  .plans, .services { grid-template-columns: 1fr; }
  .addon { grid-template-columns: 1fr; }
  .art, .fsec .art { min-height: 400px; }
  .phone--sign { right: -6px; top: 80px; }
  .doc--contract { width: 70%; }
  .phone--portal { right: 0; }
  .doc--email { width: 200px; top: 220px; }
  .toast--pay { top: auto; bottom: 30px; }
  .bars { height: 110px; }
  .flow { left: 0; right: 0; }
  .win, .fsec .win { grid-template-columns: minmax(0, 1fr); }
  .win__side { display: none; }
  /* Phones: scenes flow in a grid cell instead of a fixed-height stage, so there are no gaps. */
  .fsec .art, .fsec .art:has(.phone), .fsec .art:has(.flow), .split .art { min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr); row-gap: 14px; }
  .fsec .art > *, .split .art > * { position: relative; inset: auto; grid-area: 1 / 1; }
  .fsec .art > .art__note, .split .art > .art__note { grid-area: 2 / 1; }
  .fsec .art > .doc, .split .art > .doc { justify-self: start; }
  .phone--sign { justify-self: end; margin-top: 90px; }
  .phone--pay { justify-self: start; }
  .toast--pay { justify-self: end; align-self: end; margin-bottom: -10px; }
  .phone--portal { justify-self: end; }
  .fsec .art > .doc--email { align-self: end; margin-bottom: -16px; }
  .art--portal .phone { justify-self: center; margin-left: 0; left: auto; }
  .board { gap: 5px; }
  .board__col { padding: 5px; }
  .card { padding: 5px 6px; font-size: 10px; }
  .phone { width: 210px; border-radius: 32px; }
  .phone__screen { border-radius: 24px; }
  .foot__grid { grid-template-columns: 1fr; }
  .teaser { grid-template-columns: 1fr; }
  .moves li { grid-template-columns: 40px minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; scroll-behavior: auto !important; }
  [data-depth] { translate: none; }
}
