/* Shared styles for the landing pages (/, /ocr/, /sync/, /reports/, /tools/). Edit here once, all pages follow.
   One family (Geist, self-hosted), three body sizes (14 / 16 / 20px), one accent (cobalt).
   The only moving thing is the hero aurora (/assets/aurora.js); everything below it is still. */
@font-face {
  font-family: "Geist";
  src: url("/assets/fonts/geist-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Metric-matched fallback so the swap to Geist doesn't shift the layout. */
@font-face {
  font-family: "Geist Fallback";
  src: local("Arial"), local("Helvetica Neue"), local("Helvetica"), local("Liberation Sans");
  size-adjust: 104%;
  ascent-override: 92%;
  descent-override: 22%;
  line-gap-override: 0%;
}

:root {
  --bg: #ffffff;
  --surface: #f5f6f8;
  --ink: #0b0d12;
  --ink-2: #333a46;
  --slate: #44597a;
  --muted: #5b6270;
  --line: #e6e8ec;
  --line-2: #d3d7de;
  --accent: #2547d0;
  --accent-soft: #eaefff;

  --sans: "Geist", "Geist Fallback", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --fs-s: 14px;
  --fs-m: 16px;
  --fs-l: 20px;
  --nav-h: 64px;
  --radius: 14px;
  --ease: cubic-bezier(0.2, 0, 0, 1);
  color-scheme: light;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: var(--fs-m); line-height: 1.6;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--accent); color: #fff; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
em { font-style: normal; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .wrap { padding: 0 24px; } }
@media (min-width: 1024px) { .wrap { padding: 0 40px; } }

/* type helpers kept from the old markup */
.label { font-size: var(--fs-s); line-height: 1.45; color: var(--muted); }
.mono { font-variant-numeric: tabular-nums; }
.flame { color: var(--accent); }
.display { font-weight: 600; letter-spacing: -0.03em; line-height: 1.05; color: var(--ink); }
.display em, h1 em, h2 em { color: var(--slate); }
.serif-i { color: var(--ink); font-weight: 500; }
h1 .flame, h2 .flame, .display .flame { color: inherit; }

/* header: borderless over the aurora, opaque once scrolled */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--nav-h);
  background-color: rgba(255, 255, 255, 0); border-bottom: 1px solid transparent;
  transition: background-color .25s ease, border-color .25s ease;
}
.nav.is-scrolled { background-color: #fff; border-bottom-color: var(--line); }
.nav .wrap { max-width: 1440px; height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { font-size: 18px; font-weight: 650; letter-spacing: -0.03em; color: var(--ink); white-space: nowrap; }
.nav-r { display: flex; align-items: center; gap: 28px; }
.nav ul { display: none; list-style: none; gap: 24px; font-size: var(--fs-s); color: var(--ink-2); }
@media (min-width: 960px) { .nav ul { display: flex; } }
.nav-cta {
  font-size: var(--fs-s); font-weight: 500; line-height: 1; white-space: nowrap;
  padding: 10px 14px; border-radius: 9px; background: var(--ink); color: #fff;
  transition: background-color .2s ease;
}
.nav-cta:hover { background: var(--accent); }
.link-x { transition: color .2s ease; }
.link-x:hover { color: var(--accent); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 20px; border-radius: 11px;
  font: 500 var(--fs-m)/1.25 var(--sans); letter-spacing: -0.01em; text-align: center;
  border: 1px solid var(--ink); background: var(--ink); color: #fff; cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .2s var(--ease);
}
.btn:hover { background: var(--accent); border-color: var(--accent); transform: translateY(-1px); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { background: #fff; color: var(--ink); border-color: var(--ink); }

/* plain text lists (were tags / chips) */
.tags { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: var(--fs-s); color: var(--ink-2); }
.tag:not(:last-child)::after { content: "/"; color: var(--line-2); margin-left: 10px; }
.chip { font-size: var(--fs-s); font-weight: 500; color: var(--ink-2); }
.chips .chip:not(:last-child)::after { content: "/"; color: var(--line-2); margin-left: 10px; font-weight: 400; }
.chip.f { color: var(--accent); }

/* ===== HERO ===== */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  padding: calc(var(--nav-h) + clamp(56px, 11vh, 120px)) 0 clamp(64px, 8vw, 104px);
}
.hero > .wrap { max-width: 1440px; }
.aurora {
  position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden;
  /* static look: used before the shader starts, without WebGL, and as the reduced-motion fallback */
  background:
    linear-gradient(118deg, rgba(255, 255, 255, 0) 54%, rgba(255, 255, 255, .7) 58%, rgba(255, 255, 255, 0) 63%),
    radial-gradient(38% 48% at 4% 74%, rgba(252, 206, 132, .9) 0%, rgba(252, 206, 132, 0) 72%),
    radial-gradient(65% 75% at 96% 62%, #78a6f6 0%, rgba(120, 166, 246, 0) 72%),
    radial-gradient(55% 60% at 14% 8%, #b4d0fb 0%, rgba(180, 208, 251, 0) 72%),
    radial-gradient(75% 60% at 62% 18%, #c3d7fc 0%, rgba(195, 215, 252, 0) 75%),
    linear-gradient(180deg, #dce8fd 0%, #e8effe 100%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 58%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 0%, #000 58%, transparent 100%);
}
.aurora canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 1.2s ease; }
.aurora.is-live canvas { opacity: 1; }
/* soft veil behind the headline keeps body text at AA over any part of the gradient */
.aurora::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(52% 42% at 50% 40%, rgba(255, 255, 255, .62) 0%, rgba(255, 255, 255, 0) 100%);
}

.hero-copy { text-align: center; }
.hero h1 {
  font-size: clamp(42px, 6.7vw, 100px); font-weight: 600; line-height: .98; letter-spacing: -0.048em;
  color: var(--ink); text-wrap: balance;
}
.hero h1 em { display: block; color: var(--slate); }
.lede { margin: 28px auto 0; max-width: 40rem; font-size: var(--fs-l); line-height: 1.5; color: var(--ink-2); text-wrap: pretty; }
.hero-ctas { margin-top: 36px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.hero-note { margin-top: 18px; color: var(--ink-2); }
.status { margin-top: 6px; color: var(--ink-2); display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 0; }
.status .sep { color: var(--line-2); margin: 0 10px; }
@media (max-width: 520px) { .hero-ctas .btn { width: 100%; } .status { gap: 2px 14px; } .status .sep { display: none; } }

/* home: headshot + facts, under the type */
.hero-side.facts {
  display: grid; grid-template-columns: 76px 1fr; grid-template-areas: "photo cap" "stats stats" "note note";
  gap: 18px 18px; align-items: center;
  max-width: 760px; margin: clamp(56px, 7vw, 88px) auto 0; padding-top: 28px; border-top: 1px solid rgba(11, 13, 18, .1);
}
@media (min-width: 700px) {
  .hero-side.facts { grid-template-columns: 112px 1fr; grid-template-areas: "photo cap" "photo stats" "note note"; gap: 14px 32px; }
}
.facts .photo { grid-area: photo; aspect-ratio: 1; border-radius: 16px; overflow: hidden; background: var(--surface); }
.facts .photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.facts .cap { grid-area: cap; display: flex; flex-wrap: wrap; gap: 0 10px; align-self: end; }
.facts .cap span:first-child { color: var(--ink); font-weight: 600; }
.facts .cap .flame { color: var(--muted); }
.stats { grid-area: stats; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-self: start; }
.stat .n { font-size: clamp(28px, 3.4vw, 36px); font-weight: 600; letter-spacing: -0.04em; line-height: 1.1; margin-top: 2px; }
.stat .n sup { font-size: .55em; vertical-align: .6em; color: var(--accent); margin-left: 1px; }
.note { grid-area: note; font-size: var(--fs-s); line-height: 1.6; color: var(--ink-2); }
.note b { color: var(--accent); font-weight: 500; margin-right: 8px; }

/* home: live demos right under the type, loaded with the page */
.stage {
  max-width: 1240px; margin: clamp(40px, 5vw, 64px) auto 0; text-align: left;
  border: 1px solid var(--line-2); border-radius: 16px; overflow: hidden; background: #fff;
  box-shadow: 0 1px 2px rgba(11, 13, 18, .04), 0 24px 60px -28px rgba(30, 50, 110, .35);
}
.stage-bar { display: flex; align-items: center; gap: 12px; padding: 8px 10px 8px 8px; border-bottom: 1px solid var(--line); background: #fbfbfc; }
.stage-tabs { display: flex; gap: 4px; padding: 3px; border-radius: 10px; background: var(--surface); }
.stage-tabs button {
  border: 0; border-radius: 7px; padding: 7px 12px; background: transparent; cursor: pointer;
  font: 500 var(--fs-s)/1.2 var(--sans); color: var(--ink-2); white-space: nowrap; transition: background-color .15s ease, color .15s ease;
}
.stage-tabs button:hover { color: var(--ink); }
.stage-tabs button[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(11, 13, 18, .12); }
.stage-tabs button:focus-visible, .stage-full:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.stage-hint { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stage-full { font-size: var(--fs-s); font-weight: 500; color: var(--ink-2); white-space: nowrap; padding: 6px 8px; border-radius: 7px; }
.stage-full:hover { color: var(--accent); }
.stage-view { position: relative; height: clamp(520px, 78vh, 820px); background: #f5f6f7; }
.stage-view iframe { display: block; width: 100%; height: 100%; border: 0; }
.stage-view iframe[hidden] { display: none; }
@media (max-width: 640px) {
  .stage { margin-left: -4px; margin-right: -4px; border-radius: 14px; }
  .stage-hint { display: none; }
  .stage-bar { justify-content: space-between; }
  .stage-view { height: min(680px, 76svh); }
}

/* use-case pages: the example mock sits under the type, like a product shot */
.hero-side.demo { max-width: 680px; margin: clamp(56px, 7vw, 88px) auto 0; }

/* ===== SECTIONS ===== */
section.sec { padding: clamp(64px, 7vw, 96px) 0; }
section.sec + section.sec > .wrap { position: relative; }
section.sec + section.sec > .wrap::before, footer > .wrap::before { content: ""; position: absolute; left: 16px; right: 16px; top: calc(-1 * clamp(64px, 7vw, 96px)); height: 1px; background: var(--line); }
footer > .wrap::before { top: 0; }
@media (min-width: 640px) { section.sec + section.sec > .wrap::before, footer > .wrap::before { left: 24px; right: 24px; } }
@media (min-width: 1024px) { section.sec + section.sec > .wrap::before, footer > .wrap::before { left: 40px; right: 40px; } }
.rail { text-align: center; max-width: 44rem; margin: 0 auto; }
.num { font-size: var(--fs-s); color: var(--muted); letter-spacing: .02em; }
.rail h2 { margin-top: 10px; font-size: clamp(34px, 4.6vw, 56px); font-weight: 600; line-height: 1.02; letter-spacing: -0.04em; text-wrap: balance; }
.rail .label { display: block; margin-top: 12px; }
.sec-body { max-width: 1080px; margin: 0 auto; }
.big { margin: 28px auto 0; max-width: 44rem; text-align: center; font-size: var(--fs-l); line-height: 1.5; color: var(--ink-2); text-wrap: pretty; }
.sub { color: var(--muted); max-width: 40rem; margin-top: 16px; }

/* cards: one level, white, hairline */
.card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
a.card { transition: border-color .2s ease, transform .3s var(--ease), box-shadow .3s ease; }
a.card:hover { border-color: var(--line-2); transform: translateY(-2px); box-shadow: 0 10px 30px -18px rgba(11, 13, 18, .25); }
.card h3, .card h4 { font-size: var(--fs-l); font-weight: 600; letter-spacing: -0.02em; line-height: 1.25; color: var(--ink); }
.card p { color: var(--muted); }

.svc { padding: 24px; display: flex; flex-direction: column; gap: 10px; min-height: 220px; }
.svc p { margin-top: auto; }
.svc.uc p { margin-top: 0; flex: 1; }
.svc .go { font-size: var(--fs-s); color: var(--muted); padding-top: 14px; border-top: 1px solid var(--line); transition: color .2s ease; }
.svc.uc:hover .go { color: var(--accent); }
.svc.ex { background: var(--ink); border-color: var(--ink); }
.svc.ex h3 { color: #fff; }
.svc.ex p, .svc.ex .label { color: #b9bfcb; }
.svc.ex:hover { border-color: var(--ink); }
.tools { margin-top: 32px; text-align: center; }
.tools .tags { justify-content: center; }

/* figures / tables */
.fig-grid { display: grid; gap: 12px; margin-top: 48px; }
@media (min-width: 900px) { .fig-grid { grid-template-columns: 1fr 1fr; } }
.pane { padding: 20px 20px 12px; overflow-x: auto; }
.pane-h { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.pane-h .display { font-size: var(--fs-l); letter-spacing: -0.02em; margin-top: 2px; }
.pane-h .count { font-size: 34px; font-weight: 600; letter-spacing: -0.04em; line-height: 1; }
.pane-h .count .flame { color: var(--muted); font-weight: 400; }
table.t { width: 100%; border-collapse: collapse; font-size: var(--fs-s); margin-top: 4px; font-variant-numeric: tabular-nums; }
.t th { text-align: left; font-weight: 500; color: var(--muted); padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); white-space: nowrap; }
.t td { padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); white-space: nowrap; color: var(--ink); }
.t tr:last-child td { border-bottom: 0; }
.t .r { text-align: right; padding-right: 0; }
.t .hand { color: var(--muted); }
.t .auto { color: var(--accent); font-weight: 500; }
.t .bad { background: var(--accent-soft); box-shadow: inset 0 -2px 0 var(--accent); }
.t .w { white-space: normal; }
@media (max-width: 560px) { .t .hide-s { display: none; } }
.figcap { margin: 16px auto 0; max-width: 44rem; text-align: center; font-size: var(--fs-s); color: var(--muted); }
.figcap b { color: var(--ink); font-weight: 600; margin-right: 6px; }

/* case-study header: client logo + project name + verified badge, then a one-line pitch.
   Reusable: copy the <article class="case"> block and swap the logo file, alt text and project name. */
.case { margin-top: 48px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.case-k { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px; }
.case-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; }
.case-k + .case-top { margin-top: 14px; }
.case .chips { display: flex; flex-wrap: wrap; gap: 4px 10px; }
.project-head { display: flex; align-items: center; gap: 12px; min-width: 0; }
.project-logo { height: 24px; width: auto; flex: none; }
.project-name { font-size: var(--fs-l); font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; white-space: nowrap; padding-left: 12px; border-left: 1px solid var(--line-2); }
@media (max-width: 480px) {
  .case { padding: 20px; }
  .project-head { gap: 10px; }
  .project-logo { height: 20px; }
  .project-name { font-size: 18px; padding-left: 10px; }
}
.verified { display: inline-flex; flex: none; width: 20px; height: 20px; margin-left: -4px; cursor: help; }
.verified svg { width: 100%; height: 100%; display: block; }
.case-pitch { margin-top: 16px; max-width: 46rem; font-size: clamp(20px, 2vw, 24px); font-weight: 600; line-height: 1.3; letter-spacing: -0.025em; color: var(--ink); text-wrap: pretty; }
.case-pitch em { color: var(--slate); }
/* typographic stand-in for a client logo when there is no clean logo file */
.project-wordmark { flex: none; font-size: 15px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; line-height: 1.2; color: var(--ink); }

/* case tiles: a stretched .case-open button opens the lightbox with the tile's hidden .lb-src block */
.case-tile { margin-top: 0; display: flex; flex-direction: column; gap: 14px; position: relative; transition: border-color .2s ease; }
.case-tile .case-k + .case-top { margin-top: 0; }
.case-tile .project-head { flex-wrap: wrap; row-gap: 6px; }
.case-tile .case-pitch { margin-top: 0; font-size: var(--fs-l); }
@media (max-width: 480px) {
  .case-tile .project-wordmark { flex-basis: 100%; }
  .case-tile .project-name { padding-left: 0; border-left: 0; }
}
.case-tile:hover, .case-tile:focus-within { border-color: var(--line-2); }
.case-open {
  align-self: flex-start; padding: 0; border: 0; background: none; cursor: pointer;
  font: 500 var(--fs-s)/1.4 var(--sans); color: var(--ink); transition: color .2s ease;
}
.case-open::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.case-tile:hover .case-open { color: var(--accent); }
.case-open:focus-visible { outline: 0; }
.case-open:focus-visible::after { outline: 2px solid var(--accent); outline-offset: 3px; }

.arrows { list-style: none; display: grid; gap: 8px; }
.arrows li { padding-left: 26px; position: relative; color: var(--ink-2); }
.arrows li::before { content: "→"; position: absolute; left: 0; color: var(--accent); }

.more { display: grid; gap: 12px; margin-top: 12px; }
@media (min-width: 800px) { .more { grid-template-columns: repeat(3, 1fr); } }
.more .card { padding: 22px 24px; display: block; }
.more h3 { margin-top: 8px; }
.more { margin-top: 16px; }
.more .go { display: block; margin-top: 12px; font-size: var(--fs-s); color: var(--muted); transition: color .2s ease; }
.more .card:hover .go { color: var(--accent); }

.pointer { display: block; margin-top: 48px; padding: 24px; }
.pointer .serif-big { display: block; margin-top: 6px; font-size: var(--fs-l); font-weight: 600; letter-spacing: -0.02em; line-height: 1.35; }
.pointer .serif-big em { color: var(--slate); }

/* screenshots: each tile is a <button> that opens the lightbox below (/assets/site.js) */
.shots { display: grid; gap: 12px; margin-top: 12px; }
@media (min-width: 700px) { .shots { grid-template-columns: 1fr 1fr; } .shots-one { grid-template-columns: 1fr; } }
.shots-one { margin-top: 40px; }
.shot {
  position: relative; display: block; width: 100%; padding: 0; text-align: left; font: inherit; color: inherit;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; cursor: zoom-in;
}
.shot img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: left top; background: var(--surface); border-bottom: 1px solid var(--line); }
.shot-cap { display: flex; justify-content: space-between; gap: 16px; padding: 12px 16px; }
.shot-cap span:first-child { color: var(--ink); font-weight: 500; transition: color .2s ease; }
.shot-open {
  position: absolute; top: 12px; right: 12px; padding: 6px 10px; border-radius: 8px;
  background: rgba(11, 13, 18, .82); color: #fff; font-size: var(--fs-s); font-weight: 500; line-height: 1.2;
  opacity: 0; transition: opacity .2s ease;
}
.shot:hover, .shot:focus-visible { border-color: var(--line-2); }
.shot:hover .shot-cap span:first-child, .shot:focus-visible .shot-cap span:first-child { color: var(--accent); }
.shot:hover .shot-open, .shot:focus-visible .shot-open { opacity: 1; }
@media (hover: none) { .shot-open { opacity: 1; } }
.shot:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: var(--radius); }
.shots + .figcap { margin-bottom: 12px; }

/* lightbox (native <dialog>, built once by /assets/site.js when the page has .shot tiles) */
html.lb-lock { overflow: hidden; }
.lb {
  width: min(1120px, calc(100% - 24px)); max-width: none; max-height: calc(100dvh - 24px); margin: auto; padding: 0;
  border: 0; border-radius: 16px; background: #fff; color: var(--ink); overflow: auto; overscroll-behavior: contain;
  box-shadow: 0 30px 80px -30px rgba(11, 13, 18, .5);
}
.lb::backdrop { background: rgba(11, 13, 18, .62); }
.lb[open] { animation: lb-in .2s var(--ease); }
@keyframes lb-in { from { opacity: 0; transform: scale(.985); } to { opacity: 1; transform: none; } }
.lb-in { padding: 16px; }
@media (min-width: 700px) { .lb-in { padding: 24px; } }
.lb-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.lb-t { margin-top: 2px; font-size: clamp(22px, 2.4vw, 28px); font-weight: 600; line-height: 1.15; letter-spacing: -0.03em; }
.lb-x {
  flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 14px;
  border: 1px solid var(--line-2); border-radius: 10px; background: #fff; color: var(--ink);
  font: 500 var(--fs-s)/1 var(--sans); cursor: pointer; transition: border-color .2s ease;
}
.lb-x:hover { border-color: var(--ink); }
.lb-x svg { width: 14px; height: 14px; }
.lb-d { margin-top: 10px; max-width: 46rem; color: var(--ink-2); text-wrap: pretty; }
.lb-d > * + * { margin-top: 12px; }
/* image fits the remaining height so the text and the whole screenshot show without scrolling on desktop */
.lb-img {
  display: block; margin: 16px auto 0; width: auto; max-width: 100%; height: auto; max-height: calc(100dvh - 260px); min-height: 0;
  border: 1px solid var(--line); border-radius: 10px; background: var(--surface);
}
.lb-img[hidden] { display: none; }
/* live demo inside the lightbox: wide, full height, the page in an iframe */
@media (max-width: 699px) { .lb-img { max-height: none; width: 100%; } }

/* steps (home: how it works) */
.steps { margin: 48px auto 0; max-width: 880px; border-top: 1px solid var(--ink); }
.step { display: grid; grid-template-columns: 56px 1fr; gap: 6px 16px; padding: 28px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 800px) { .step { grid-template-columns: 80px 1fr 1.15fr; align-items: baseline; gap: 32px; } }
.step .n { font-size: 40px; font-weight: 600; letter-spacing: -0.04em; line-height: .9; color: var(--accent); }
.step h3 { font-size: var(--fs-l); font-weight: 600; letter-spacing: -0.02em; line-height: 1.3; }
.step p { color: var(--muted); grid-column: 2; }
@media (min-width: 800px) { .step p { grid-column: auto; } }
.price { margin-top: 24px; text-align: center; color: var(--ink-2); }

/* use-case grids */
.reads { display: grid; gap: 12px; margin-top: 48px; }
@media (min-width: 640px) { .reads { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .reads { grid-template-columns: repeat(3, 1fr); } }
.reads .card { padding: 22px 24px 24px; }
.reads h3 { margin-top: 6px; }
.reads p { margin-top: 6px; }
.reads .svc.ex { min-height: 0; padding: 22px 24px 24px; gap: 6px; }
.reads .svc.ex h3 { font-size: var(--fs-l) !important; }
.flow { display: grid; gap: 12px; margin-top: 48px; }
@media (min-width: 640px) { .flow { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .flow { grid-template-columns: repeat(4, 1fr); } }
.flow .card { padding: 22px 24px 24px; }
.flow .n { font-size: 40px; font-weight: 600; letter-spacing: -0.04em; line-height: 1; color: var(--accent); }
.flow h3 { margin-top: 18px; }
.flow p { margin-top: 6px; }

.author { display: flex; gap: 18px; align-items: center; justify-content: center; margin-top: 40px; text-align: left; }
.author img { width: 72px; height: 72px; border-radius: 16px; object-fit: cover; object-position: 50% 20%; }
.author .display { font-size: var(--fs-l) !important; letter-spacing: -0.02em; }
.author .label { margin-top: 2px !important; }

/* use-case hero mocks */
.bol {
  background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 12px; padding: 22px;
  font-size: var(--fs-s); transform: rotate(-1deg); box-shadow: 0 24px 50px -30px rgba(11, 13, 18, .35);
}
.bol .ttl { font-size: var(--fs-l); font-weight: 600; letter-spacing: -0.02em; }
.bol .kv { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; margin: 16px 0; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.bol .k { color: var(--muted); }
.bol table { width: 100%; border-collapse: collapse; }
.bol td, .bol th { text-align: left; padding: 6px 8px 6px 0; font-weight: 400; }
.bol th { color: var(--muted); font-weight: 500; }
.bol .smudge { filter: blur(1.1px); }
.arrow-down { color: var(--accent); text-align: center; padding: 18px 0; font-size: var(--fs-s); font-weight: 500; letter-spacing: .04em; }
.demo > .card { box-shadow: 0 24px 50px -30px rgba(11, 13, 18, .3); }
.flag { margin-top: 14px; display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 10px; background: var(--accent-soft); font-size: var(--fs-s); color: var(--ink); }
.flag .label { color: var(--accent); font-weight: 600; white-space: nowrap; }

.kvs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; padding-top: 14px; font-size: var(--fs-s); }
.kvs .k, .mail-h .k { display: block; color: var(--muted); }
.mail-h { display: grid; gap: 10px; font-size: var(--fs-s); padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.mail-h > div { display: flex; gap: 12px; }
.mail-h .k { min-width: 64px; }
.bars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; align-items: end; height: 152px; padding: 16px 0 8px; border-bottom: 1px solid var(--line); }
.bars div { height: 100%; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; }
.bars span { display: block; background: #c8cfdb; border-radius: 6px 6px 2px 2px; }
.bars .now span { background: var(--accent); }
.bars em { font-size: var(--fs-s); color: var(--muted); text-align: center; }

.app { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 24px 50px -30px rgba(11, 13, 18, .35); }
.app-bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 10px 14px; background: var(--surface); border-bottom: 1px solid var(--line); color: var(--muted); font-size: var(--fs-s); }
.app-bar .dots { display: flex; gap: 6px; }
.app-bar .dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.app-body { display: grid; grid-template-columns: 128px 1fr; min-height: 280px; }
.app-side { display: flex; flex-direction: column; gap: 2px; padding: 12px 8px; border-right: 1px solid var(--line); font-size: var(--fs-s); color: var(--muted); }
.app-side b, .app-side span { padding: 6px 10px; border-radius: 8px; font-weight: 400; }
.app-side b { background: var(--surface); color: var(--ink); font-weight: 600; }
.app-main { padding: 14px 16px; min-width: 0; overflow-x: auto; }
.app-h { display: flex; justify-content: space-between; align-items: center; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.app-h .display { font-size: var(--fs-l); letter-spacing: -0.02em; }
.app-h .chip { padding: 6px 10px; border-radius: 8px; background: var(--ink); color: #fff; }
.st { color: var(--muted); }
.st.on { color: var(--accent); font-weight: 500; }
@media (max-width: 480px) {
  .app-body { grid-template-columns: 1fr; }
  .app-side { flex-direction: row; flex-wrap: wrap; border-right: 0; border-bottom: 1px solid var(--line); }
}

/* faq */
.faq { margin: 40px auto 0; max-width: 760px; border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 22px 0; font-size: var(--fs-l); font-weight: 500; letter-spacing: -0.015em; line-height: 1.35;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { flex: none; font-size: var(--fs-l); font-weight: 400; color: var(--muted); transition: transform .25s var(--ease); }
.faq details[open] summary .pm { transform: rotate(45deg); }
.faq details p { padding: 0 0 24px; color: var(--ink-2); max-width: 40rem; }

/* audit form */
.say { margin: 28px auto 0; max-width: 44rem; text-align: center; font-size: clamp(26px, 3vw, 34px); font-weight: 600; line-height: 1.2; letter-spacing: -0.03em; text-wrap: balance; }
.say em, .say .flame { color: var(--slate); }
form.f { margin: 44px auto 0; max-width: 760px; display: grid; gap: 20px 16px; }
@media (min-width: 720px) { form.f { grid-template-columns: 1fr 1fr; } }
.field { display: block; border: 0; min-width: 0; }
.field.full, fieldset.field { grid-column: 1 / -1; }
.field .label { display: block; margin-bottom: 8px; color: var(--ink-2); font-weight: 500; }
.field input[type=text], .field input[type=email], .field textarea {
  width: 100%; display: block; background: #fff; color: var(--ink);
  font: 400 var(--fs-m)/1.4 var(--sans); padding: 12px 14px;
  border: 1px solid var(--line-2); border-radius: 10px; outline: 0; resize: vertical;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { min-height: 112px; }
.field input::placeholder, .field textarea::placeholder { color: #6b7280; }
.field input:focus, .field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.checks label { position: relative; }
.checks input { position: absolute; opacity: 0; pointer-events: none; }
.checks label span {
  display: inline-block; padding: 9px 14px; border: 1px solid var(--line-2); border-radius: 10px;
  font-size: var(--fs-s); color: var(--ink-2); background: #fff; cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.checks label:hover span { border-color: var(--ink); }
.checks input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.checks input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.submit-row { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding-top: 8px; }
.booked { display: none; margin: 40px auto 0; max-width: 760px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 48px 24px; text-align: center; }
.booked.on { display: block; }
.booked .display { font-size: clamp(26px, 3vw, 34px) !important; }
#audit .sec-body > div[style*="4.5rem"] { text-align: center; }

/* footer */
footer { padding: 32px 0 40px; }
footer .wrap { position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 24px; }
footer .wrap.label { color: var(--muted); }
footer .dot { color: var(--ink-2); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* ===== HOME: image-led sections below the hero (index.html only) ===== */
.hd { text-align: center; max-width: 52rem; margin: 0 auto; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 500; letter-spacing: .01em; color: var(--accent); }
.hd h2 { margin-top: 12px; font-size: clamp(34px, 5vw, 60px); font-weight: 600; line-height: 1; letter-spacing: -0.045em; text-wrap: balance; }
.hd h2 em { color: var(--slate); }

.kpis { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; max-width: 720px; margin: 36px auto 0; text-align: center; }
.kpis b { display: block; font-size: clamp(26px, 3.6vw, 40px); font-weight: 600; letter-spacing: -0.045em; line-height: 1.05; color: var(--ink); }
.kpis span { display: block; margin-top: 4px; font-size: 13px; line-height: 1.35; color: var(--muted); }

.bento { display: grid; gap: 16px; margin-top: 48px; }
@media (min-width: 900px) {
  .bento { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .tile-erp { grid-column: span 6; }
  .tile-viv, .tile-asc { grid-column: span 3; }
  .tile-sm { grid-column: span 2; }
}
.tile {
  position: relative; display: flex; flex-direction: column; min-width: 0;
  background: #fff; border: 1px solid var(--line); border-radius: 20px; overflow: hidden;
  box-shadow: 0 1px 2px rgba(11, 13, 18, .03); transition: border-color .2s ease, box-shadow .3s ease;
}
.tile:hover, .tile:focus-within { border-color: var(--line-2); box-shadow: 0 18px 40px -24px rgba(30, 50, 110, .28); }
.tile.case-tile { gap: 0; }
.tile-copy { padding: 28px 28px 0; }
.tile .project-head { flex-wrap: wrap; row-gap: 6px; }
.tile-line { margin-top: 12px; font-size: 17px; line-height: 1.45; color: var(--ink-2); text-wrap: pretty; }
.tile-metric { margin-top: 20px; }
.tile-metric b { display: block; font-size: clamp(30px, 3.4vw, 40px); font-weight: 600; letter-spacing: -0.045em; line-height: 1; color: var(--ink); }
.tile-metric span { display: block; margin-top: 6px; font-size: 13px; color: var(--muted); }
.tile-btn {
  position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 6px; align-self: flex-start;
  padding: 9px 15px; border-radius: 999px; background: var(--ink); color: #fff;
  font-size: var(--fs-s); font-weight: 500; line-height: 1.2; white-space: nowrap; transition: background-color .2s ease;
}
.tile-btn:hover { background: var(--accent); }
.tile-copy .tile-btn { margin-top: 24px; }
.tile-acts { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 28px 24px; }
.tile .case-open::after { border-radius: 20px; }
.tile-media { position: relative; margin: 24px 0 0; overflow: hidden; }

/* ERP tile: copy on the left, the real screens on a tinted panel on the right */
@media (min-width: 900px) {
  .tile-erp { display: grid; grid-template-columns: minmax(340px, 1fr) 1.8fr; }
  .tile-erp .tile-copy { padding: 40px 32px 40px 36px; display: flex; flex-direction: column; }
  .tile-erp .tile-line { font-size: 19px; }
  .tile-erp .tile-copy .tile-btn { margin-top: auto; }
  .tile-erp .tile-metric { margin: 28px 0 32px; }
  .tile-erp .tile-media { margin: 0; }
}
.media-erp {
  display: grid; gap: 10px; padding: 24px;
  background: radial-gradient(90% 80% at 100% 0%, #c9d9fb 0%, rgba(201, 217, 251, 0) 70%), linear-gradient(160deg, #eef3fe 0%, #f6f8fc 100%);
}
.media-erp.shots { grid-template-columns: 1fr; margin-top: 24px; }
@media (min-width: 900px) { .media-erp.shots { margin-top: 0; padding: 32px 32px 28px; } }
.media-erp .shot { border-radius: 12px; border-color: rgba(11, 13, 18, .08); box-shadow: 0 16px 40px -22px rgba(20, 40, 100, .45); }
.media-erp .shot img { border-bottom: 0; }
.media-erp .shot-cap {
  position: absolute; left: 10px; bottom: 10px; padding: 4px 9px; border-radius: 7px;
  background: rgba(255, 255, 255, .94); box-shadow: 0 1px 3px rgba(11, 13, 18, .12); font-size: 12px;
}
.media-erp .shot-cap span:last-child { display: none; }
.media-erp .shot-open { top: 10px; right: 10px; font-size: 12px; }
.shot-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.shot-sm .shot-cap { left: 6px; bottom: 6px; padding: 3px 7px; font-size: 11px; }
.shot-sm .shot-open { display: none; }

/* Vivian tile: the demo dashboard on a warm teal panel, bleeding off the bottom */
.media-viv {
  padding: 28px 0 0 28px; aspect-ratio: 16 / 10.5; margin-top: 24px;
  background: radial-gradient(80% 90% at 0% 100%, #cfe3db 0%, rgba(207, 227, 219, 0) 70%), linear-gradient(160deg, #f6f3ea 0%, #eef2ee 100%);
}
.media-viv img { width: 120%; max-width: none; height: auto; border-radius: 12px 0 0 0; border: 1px solid rgba(11, 13, 18, .08); box-shadow: 0 16px 40px -20px rgba(20, 60, 50, .4); }

/* Ascend tile: no screenshots to show, so a small drawn flow */
.media-asc {
  display: grid; place-items: center; aspect-ratio: 16 / 10.5; margin-top: 24px; padding: 24px;
  background: radial-gradient(70% 80% at 100% 100%, #fde3bd 0%, rgba(253, 227, 189, 0) 70%), linear-gradient(160deg, #fbf7f1 0%, #f6f4fb 100%);
}
.flowmock { display: grid; gap: 14px; width: min(300px, 100%); position: relative; }
.flowmock::before { content: ""; position: absolute; left: 25px; top: 22px; bottom: 22px; width: 2px; background: linear-gradient(var(--line-2), var(--accent)); }
.fm-step {
  position: relative; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 12px;
  background: #fff; border: 1px solid rgba(11, 13, 18, .08); box-shadow: 0 8px 24px -16px rgba(60, 40, 10, .35);
  font-size: 15px; font-weight: 500; color: var(--ink);
}
.fm-step i { flex: none; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line-2); background: #fff; }
.fm-step.on { border-color: rgba(37, 71, 208, .35); }
.fm-step.on i { border-color: var(--accent); background: var(--accent); box-shadow: inset 0 0 0 3px #fff; }

.tile-sm { flex-direction: row; align-items: center; gap: 14px; padding: 20px 22px; }
.tile-sm svg { flex: none; width: 36px; height: 36px; padding: 7px; border-radius: 10px; background: var(--surface); fill: none; stroke: var(--slate); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.tile-sm h3 { font-size: 15px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.3; color: var(--ink); }
.tile-sm:hover, .tile-asc:hover { box-shadow: none; border-color: var(--line); }
.tile-asc .tile-media { flex: 1; }

/* use-case tiles: a small drawn picture each, a title and the path */
.uc-grid { display: grid; gap: 16px; margin-top: 48px; }
@media (min-width: 640px) { .uc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .uc-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.uc-tile {
  display: flex; flex-direction: column; gap: 14px; padding: 12px 12px 20px; border-radius: 20px;
  background: #fff; border: 1px solid var(--line); transition: border-color .2s ease, transform .3s var(--ease), box-shadow .3s ease;
}
.uc-tile:hover { border-color: var(--line-2); transform: translateY(-2px); box-shadow: 0 18px 40px -24px rgba(30, 50, 110, .28); }
.uc-tile h3 { padding: 0 10px; font-size: 18px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.25; color: var(--ink); }
.uc-tile .go { margin-top: auto; padding: 0 10px; font-size: 13px; color: var(--muted); transition: color .2s ease; }
.uc-tile:hover .go { color: var(--accent); }
.uc-art {
  height: 190px; overflow: hidden; border-radius: 12px; padding: 18px 0 0 18px;
  background: radial-gradient(90% 90% at 100% 0%, #d6e2fc 0%, rgba(214, 226, 252, 0) 70%), linear-gradient(160deg, #f1f5fe 0%, #f8f9fb 100%);
}
.uc-art img { width: 125%; max-width: none; height: auto; border-radius: 8px 0 0 0; border: 1px solid rgba(11, 13, 18, .08); box-shadow: 0 12px 30px -16px rgba(20, 40, 100, .4); background: #fff; transition: transform .4s var(--ease); }
.uc-tile:hover .uc-art img { transform: translate(-6px, -4px); }
#automate .tools { margin-top: 28px; }

/* how it works: three numbered columns */
.how3 { list-style: none; display: grid; gap: 16px; margin: 48px auto 0; max-width: 1080px; }
@media (min-width: 800px) { .how3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.how3 li { padding: 26px 26px 28px; border: 1px solid var(--line); border-radius: 20px; background: #fff; }
.how3 .n { display: block; font-size: 44px; font-weight: 600; letter-spacing: -0.05em; line-height: 1; background: linear-gradient(135deg, var(--accent), #8aa4f4); -webkit-background-clip: text; background-clip: text; color: transparent; }
.how3 h3 { margin-top: 18px; font-size: 18px; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); }
.how3 p { margin-top: 4px; font-size: var(--fs-s); color: var(--muted); }
@media (max-width: 639px) {
  .uc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .uc-tile { padding: 8px 8px 14px; gap: 10px; border-radius: 16px; }
  .uc-tile h3 { padding: 0 6px; font-size: 15px; }
  .uc-tile .go { padding: 0 6px; }
  .uc-art { height: 120px; padding: 12px 0 0 12px; }
  .uc-art img { width: 150%; }
  .how3 li { display: grid; grid-template-columns: auto 1fr; column-gap: 16px; align-items: baseline; padding: 18px 20px; }
  .how3 .n { grid-row: span 2; font-size: 30px; }
  .how3 h3 { margin-top: 0; }
}
#example .fig-grid { margin-top: 40px; }
#example .pointer { margin-top: 16px; }
#faq .faq { margin-top: 36px; }

/* one-time reveal below the hero (only when JS runs; the hero is never hidden) */
.js .sec .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .sec .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .sec .reveal { opacity: 1; transform: none; transition: none; }
  .aurora canvas { transition: none; }
  .btn, a.card, .nav, .faq summary .pm, .shot-open, .shot-cap span, .case-tile, .case-open, .tile, .uc-tile { transition: none; }
  .uc-tile:hover, .uc-tile:hover .uc-art img { transform: none; }
  .lb[open] { animation: none; }
  .btn:hover, a.card:hover { transform: none; }
}
