@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/assets/fonts/jakarta.woff2) format('woff2'); }
@font-face { font-family: 'Instrument Serif'; font-style: italic; font-weight: 400; font-display: swap; src: url(/assets/fonts/instrument-serif-italic.woff2) format('woff2'); }

/* Apollo — light product story in slate and violet (from the Apollo butterfly and the app sidebar); dark bands for proof. Built from the Ulysses system. */
:root {
  --night: #101522;
  --night-2: #1a2232;
  --night-line: rgba(255, 255, 255, .09);
  --ink-d: #f3f6fa;
  --dim-d: #b3bccc;
  --faint-d: #98a2b5;

  --paper: #ffffff;
  --paper-2: #f4f6fb;
  --ink: #141b2b;
  --dim: #4b5568;
  --line: #e2e6ef;

  --teal: #9d8cff;          /* Apollo violet, from the butterfly mark */
  --teal-ink: #5a43d6;      /* violet text on white, 6.6:1 */
  --deep: #34405a;

  --sans: "Plus Jakarta Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;

  --gutter: clamp(16px, 5vw, 64px);
  --max: 1180px;
  --display: clamp(40px, 7vw, 96px);
  --display-sm: clamp(32px, 4.6vw, 60px);
  --radius: 18px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--night); color: var(--ink-d);
  font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 6px; }
.vh { 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(--ink-d); color: var(--night); padding: 10px 16px; border-radius: 8px; text-decoration: none; font-weight: 600; }
.skip:focus { top: 12px; }

.wrap { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }
.narrow { max-width: 820px; }
.center { text-align: center; }
.dark { background: var(--night); color: var(--ink-d); }
.light { background: var(--paper); color: var(--ink); }
.light.alt { background: var(--paper-2); }

/* ---------- Type ---------- */
.eyebrow { margin: 0 0 18px; font: 600 13px/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--teal); }
.light .eyebrow { color: var(--teal-ink); }
h1, .display, .display-sm { margin: 0; font-weight: 600; letter-spacing: -0.035em; text-wrap: balance; }
.display { font-size: var(--display); line-height: 1.02; }
.display-sm { font-size: var(--display-sm); line-height: 1.06; }
.dark .display em, .dark h1 em, .dark .display-sm em { color: var(--dim-d); }
.light .display em, .light .display-sm em { color: var(--dim); }
.lede { margin: 24px 0 0; font-size: clamp(18px, 1.7vw, 22px); line-height: 1.5; color: var(--dim-d); text-wrap: pretty; }
.light .lede, .light p { color: var(--dim); }
.center .lede { margin-inline: auto; max-width: 40ch; }
.note { margin: 28px 0 0; font-size: 15px; color: var(--dim); }
.dark .note { color: var(--dim-d); }
.fine { margin: 56px auto 0; max-width: 60ch; font-size: 14px; color: var(--faint-d); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 15px/1 var(--sans); color: var(--night); background: var(--ink-d);
  border: 0; border-radius: 999px; padding: 13px 22px; cursor: pointer; text-decoration: none;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 40px -10px rgba(141, 120, 255, .7); }
.btn-sm { padding: 10px 18px; font-size: 14px; }
.btn-lg { padding: 18px 30px; font-size: 17px; }
.btn-block { width: 100%; }
.light .btn { background: var(--ink); color: #fff; }
.link-arrow { font-weight: 600; text-decoration: none; color: var(--ink-d); padding: 10px 4px; }
.link-arrow::after { content: " \2192"; display: inline-block; transition: transform .2s var(--ease); }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50; padding-top: env(safe-area-inset-top, 0px);
  background: rgba(7, 17, 31, .72); backdrop-filter: saturate(160%) blur(18px); -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid var(--night-line);
}
.nav-in { display: flex; align-items: center; gap: 32px; height: 60px; width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }
.brand img { width: 118px; height: auto; }
.nav ul { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; font-size: 14px; }
.nav nav { margin-left: auto; }
.nav ul a { text-decoration: none; color: var(--dim-d); transition: color .2s; }
.nav ul a:hover { color: var(--ink-d); }
@media (max-width: 820px) { .nav nav { display: none; } .nav .btn { margin-left: auto; } }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(120px, 16vh, 180px) 0 clamp(64px, 10vw, 120px); overflow: hidden; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; z-index: -1; left: 50%; top: 52%; width: 1400px; height: 900px; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(141, 120, 255, .22), rgba(26, 34, 50, .18) 55%, transparent 75%);
  pointer-events: none;
}
.hero h1 { font-size: clamp(46px, 8.6vw, 124px); line-height: .98; letter-spacing: -0.045em; }
.hero .lede { max-width: 46ch; }
.ctas { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 24px; margin-top: 36px; }
.hero-shot { margin: clamp(56px, 8vw, 96px) auto 0; width: min(var(--max), 100% - 2 * var(--gutter)); perspective: 2000px; }
.hero-shot .frame { transform-origin: 50% 0; box-shadow: 0 60px 160px -40px rgba(141, 120, 255, .45), 0 30px 80px -30px rgba(0, 0, 0, .9); }
figcaption { margin-top: 16px; font-size: 13px; color: var(--faint-d); text-align: center; }
.light figcaption { color: var(--dim); }

/* Product frame: the interface is the photograph */
.frame {
  position: relative; border-radius: var(--radius); overflow: hidden; background: #fff;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 40px 100px -40px rgba(0, 0, 0, .8);
}
.frame img { width: 100%; }
.frame-light { box-shadow: 0 0 0 1px var(--line), 0 30px 80px -40px rgba(11, 27, 51, .35); }
.frame.tall { max-width: 330px; margin-inline: auto; }

/* ---------- Social proof ---------- */
.trust { padding: clamp(56px, 8vw, 96px) 0 clamp(40px, 6vw, 72px); border-top: 1px solid var(--night-line); }
.trust-title { margin: 0; font: 600 13px/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--teal); }
.trust-sub { margin: 12px auto 0; max-width: 52ch; font-size: 15px; color: var(--faint-d); }
.logos { list-style: none; padding: 0; margin: 44px 0 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 28px clamp(28px, 4.5vw, 56px); }
.logos img { height: 40px; width: auto; max-width: 150px; object-fit: contain; opacity: .62; transition: opacity .3s; }
.logos img.sq { height: 54px; }
.logos li:hover img { opacity: 1; }
@media (max-width: 560px) {
  .logos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); justify-items: center; gap: 32px 16px; }
  .logos img { height: 34px; max-width: 130px; } .logos img.sq { height: 48px; }
}

/* ---------- Scenes ---------- */
.scene { position: relative; padding: clamp(110px, 16vw, 200px) 0; }
.block { padding: clamp(96px, 13vw, 168px) 0; }
.intro { max-width: 820px; margin-bottom: clamp(48px, 7vw, 80px); }
.intro.center { margin-inline: auto; }

.problems { list-style: none; padding: 0; margin: 56px auto 0; display: grid; gap: 0; max-width: 560px; text-align: left; }
.problems li { padding: 18px 0; border-top: 1px solid var(--night-line); color: var(--dim-d); font-size: 18px; }
.problems li:last-child { border-bottom: 1px solid var(--night-line); }
.problems span { color: var(--ink-d); font-weight: 600; }

/* The thread: a single bright line before the product appears */
.answer { background: linear-gradient(var(--night), var(--night-2)); }
.thread {
  width: min(760px, 80vw); height: 2px; margin: 0 auto 72px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--teal) 22%, #fff 50%, var(--teal) 78%, transparent);
  box-shadow: 0 0 32px 4px rgba(141, 120, 255, .45), 0 0 120px 18px rgba(141, 120, 255, .16);
}
.steps-inline { list-style: none; padding: 0; margin: 48px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.steps-inline li { padding: 8px 16px; border: 1px solid var(--night-line); border-radius: 999px; font-size: 14px; color: var(--dim-d); }

/* ---------- Close-ups and callouts ---------- */
.closeup { margin: 0; }
.annotated { overflow: visible; }
.closeup .frame, .inline-shot .frame { max-width: 100%; }
.annotated img { border-radius: var(--radius); }
.pin {
  position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%);
  display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  background: #fff; color: var(--ink); font: 700 13px/1 var(--sans);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, .28), 0 6px 18px rgba(0, 0, 0, .3);
}
.legend { counter-reset: n; list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.legend li { counter-increment: n; position: relative; padding-top: 44px; font-size: 15px; color: var(--dim); }
.legend li::before {
  content: counter(n); position: absolute; top: 0; left: 0; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  background: var(--ink); color: #fff; font: 700 13px/1 var(--sans);
}
.legend b { display: block; color: var(--ink); font-weight: 600; margin-bottom: 4px; }
@media (max-width: 900px) { .legend { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .pin { width: 20px; height: 20px; font-size: 11px; box-shadow: 0 0 0 3px rgba(255, 255, 255, .28); }
  .legend { grid-template-columns: 1fr; gap: 20px; }
}

/* Phones: screenshots always fit the screen; tapping one opens it full screen to zoom and read */
.pan-hint { display: none; }
@media (max-width: 700px) {
  .pan { cursor: zoom-in; }
  .pan-hint { display: block; margin: 10px 0 0; font-size: 13px; color: var(--dim); text-align: center; }
  .pin { width: 16px; height: 16px; font-size: 9px; box-shadow: 0 0 0 2px rgba(255, 255, 255, .35); }
}
.zoom { position: fixed; inset: 0; z-index: 200; margin: 0; padding: 0; width: 100%; height: 100%; max-width: none; max-height: none; border: 0; background: rgba(7, 17, 31, .96); overflow: auto; -webkit-overflow-scrolling: touch; }
.zoom::backdrop { background: rgba(7, 17, 31, .96); }
.zoom-img { display: block; width: 1100px; max-width: none; height: auto; margin: 72px 16px 24px; border-radius: 10px; background: #fff; }
.zoom-close { position: fixed; top: 14px; right: 14px; z-index: 1; width: 44px; height: 44px; border: 0; border-radius: 50%; background: #fff; color: var(--ink); font: 600 22px/1 var(--sans); cursor: pointer; }
.zoom-tip { position: fixed; top: 24px; left: 16px; margin: 0; font-size: 13px; color: var(--dim-d); }

.split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(40px, 7vw, 112px); align-items: center; }
.split-media { margin: 0; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

.facts { margin: 40px 0 0; }
.facts div { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); }
.facts div:last-child { border-bottom: 1px solid var(--line); }
.facts dt { font-weight: 600; color: var(--ink); }
.facts dd { margin: 0; color: var(--dim); }
@media (max-width: 420px) { .facts div { grid-template-columns: 1fr; gap: 2px; } }

.status-key { list-style: none; padding: 0; margin: 32px 0 0; display: flex; flex-wrap: wrap; gap: 10px 28px; font-size: 15px; color: var(--ink); }
.status-key li { display: inline-flex; align-items: center; gap: 10px; }
.status-key i { width: 10px; height: 10px; border-radius: 50%; }
.s-overdue { background: #d32f2f; } .s-pending { background: #f2a33a; } .s-progress { background: #1f6fd1; } .s-not { background: #a7afba; }

/* ---------- Approval modes ---------- */
.modes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; max-width: 920px; margin: 0 auto; }
.mode { padding: 36px; border: 1px solid var(--night-line); border-radius: var(--radius); background: rgba(255, 255, 255, .02); }
.mode svg { width: 100%; max-width: 280px; height: auto; margin-bottom: 24px; }
.mode .edge { fill: none; stroke: var(--teal); stroke-width: 1.5; opacity: .7; }
.mode .n { fill: var(--night); stroke: var(--ink-d); stroke-width: 1.5; }
.mode .n-src { fill: var(--teal); }
.mode h3 { margin: 0 0 8px; font-size: 22px; letter-spacing: -0.02em; }
.mode p { margin: 0; color: var(--dim-d); }
@media (max-width: 720px) { .modes { grid-template-columns: 1fr; } .mode { padding: 28px; } }
.states { list-style: none; padding: 0; margin: 56px auto 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; font-size: 14px; }
.states li { display: inline-flex; align-items: center; gap: 12px; color: var(--dim-d); }
.states li + li::before { content: ""; width: 32px; height: 1px; background: var(--faint-d); }

/* ---------- Lifecycle ---------- */
.timeline { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); position: relative; }
.timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 2px; background: linear-gradient(90deg, var(--deep), var(--teal)); border-radius: 2px; }
.timeline li { position: relative; padding: 36px 20px 0 0; }
.timeline li::before { content: ""; position: absolute; top: 0; left: 0; width: 16px; height: 16px; border-radius: 50%; background: var(--paper); border: 2px solid var(--teal-ink); }
.timeline b { display: block; font-size: 17px; letter-spacing: -0.01em; }
.timeline span { display: block; margin-top: 6px; font-size: 14px; color: var(--dim); }
@media (max-width: 960px) {
  .timeline { grid-template-columns: 1fr; }
  .timeline::before { left: 7px; right: auto; top: 8px; bottom: 8px; width: 2px; height: auto; background: linear-gradient(var(--deep), var(--teal)); }
  .timeline li { padding: 0 0 28px 40px; }
}
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: clamp(56px, 8vw, 96px); }
.card { padding: 32px; border-radius: var(--radius); background: var(--paper-2); }
.card h3 { margin: 0 0 10px; font-size: 20px; letter-spacing: -0.02em; }
.card p { margin: 0; font-size: 16px; }
.card b { color: var(--ink); }
@media (max-width: 900px) { .cards { grid-template-columns: 1fr; } }

/* ---------- Reporting tour ---------- */
/* Default (mobile, no JS): three stacked steps, each with its own screenshot. */
.tour-stage { display: none; }
.tour-step { padding: 0 0 56px; }
.tour-step + .tour-step { border-top: 1px solid var(--line); padding-top: 40px; }
.step-n { margin: 0 0 10px; font: 600 13px/1 var(--sans); letter-spacing: .14em; color: var(--teal-ink) !important; }
.tour-step h3 { margin: 0 0 10px; font-size: clamp(22px, 2.4vw, 28px); letter-spacing: -0.025em; }
.tour-step p { margin: 0; max-width: 46ch; }
.inline-shot { margin: 28px 0 0; }
.tour-cap { margin: 14px 0 0; font-size: 13px; text-align: center; }

/* Desktop with JS: a sticky stage. Scrolling through the section moves from the whole dashboard to two close-ups. */
@media (min-width: 1024px) {
  .tour.tour-on { height: 280vh; }
  .tour.tour-on .tour-sticky { position: sticky; top: 76px; height: calc(100vh - 92px); display: flex; flex-direction: column; justify-content: center; }
  .tour.tour-on .tour-stage { display: block; width: min(100%, (100vh - 400px) * 2.017); margin-inline: auto; }
  .tour.tour-on .tour-stage .frame { aspect-ratio: 2400 / 1190; background: none; box-shadow: none; overflow: visible; }
  .tour.tour-on .tour-stage img { position: absolute; inset: 0; margin: auto; width: auto; height: auto; max-width: 100%; max-height: 100%; border-radius: var(--radius); background: #fff; box-shadow: 0 0 0 1px var(--line), 0 30px 80px -40px rgba(11, 27, 51, .35); opacity: 0; transform: scale(.96); transition: opacity .6s var(--ease), transform .8s var(--ease); }
  .tour.tour-on .tour-stage img.on { opacity: 1; transform: none; }
  .tour.tour-on .tour-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; margin-top: 28px; }
  .tour.tour-on .tour-step { padding: 18px 0 0; border: 0; border-top: 2px solid var(--line); transition: border-color .4s; }
  .tour.tour-on .tour-step h3 { color: var(--dim); transition: color .4s; }
  .tour.tour-on .tour-step.on { border-top-color: var(--teal-ink); }
  .tour.tour-on .tour-step.on h3 { color: var(--ink); }
  .tour.tour-on .tour-step h3 { font-size: 20px; }
  .tour.tour-on .tour-step p { font-size: 15px; }
  .tour.tour-on .inline-shot { display: none; }
}

/* ---------- Quality ---------- */
.grid-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; border-top: 1px solid var(--night-line); }
.grid-facts div { padding: 32px 32px 36px 0; border-bottom: 1px solid var(--night-line); }
.grid-facts dt { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.grid-facts dd { margin: 8px 0 0; color: var(--dim-d); font-size: 16px; }
@media (max-width: 900px) { .grid-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .grid-facts { grid-template-columns: 1fr; } .grid-facts div { padding-right: 0; } }

.family p a { color: var(--teal-ink); text-underline-offset: 3px; }
.family p { margin: 24px auto 0; max-width: 56ch; font-size: 18px; }

/* ---------- Demo form ---------- */
.demo { background: radial-gradient(80% 60% at 20% 0%, rgba(141, 120, 255, .14), transparent 70%), var(--night); }
.demo-split { align-items: start; }
.contact-alt { list-style: none; padding: 0; margin: 40px 0 0; }
.contact-alt li { display: grid; grid-template-columns: 5rem 1fr; padding: 14px 0; border-top: 1px solid var(--night-line); }
.contact-alt li:last-child { border-bottom: 1px solid var(--night-line); }
.contact-alt span { color: var(--faint-d); }
.contact-alt a { text-decoration: none; }
.contact-alt a:hover { text-decoration: underline; }

.form { padding: clamp(24px, 4vw, 40px); border-radius: 24px; background: var(--night-2); border: 1px solid var(--night-line); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .row { grid-template-columns: 1fr; gap: 0; } }
.field { margin-bottom: 18px; }
.field label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 500; color: var(--ink-d); }
.field abbr { text-decoration: none; color: var(--teal); }
.opt { color: var(--faint-d); font-weight: 400; margin-left: 4px; }
.field input, .field textarea, .field select {
  width: 100%; font: 400 16px/1.4 var(--sans); color: var(--ink-d);
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .16); border-radius: 12px; padding: 13px 14px;
  transition: border-color .2s, background .2s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field select { appearance: none; -webkit-appearance: none; padding-right: 42px; text-overflow: ellipsis; white-space: nowrap; overflow: hidden; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9' fill='none' stroke='%23a3b2c4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m1 1.5 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.field select:focus { outline: none; border-color: var(--teal); background-color: rgba(255, 255, 255, .07); box-shadow: 0 0 0 3px rgba(141, 120, 255, .25); }
.field select option { color: #0b1b33; background: #fff; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--teal); background: rgba(255, 255, 255, .07); box-shadow: 0 0 0 3px rgba(141, 120, 255, .25); }
.field [aria-invalid="true"] { border-color: #ff8a80; }
.field .err { display: block; margin-top: 6px; font-size: 13px; color: #ffb4ab; }
.check { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; margin-top: 6px; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--teal); }
.check label { font-weight: 400; color: var(--dim-d); margin: 0; }
.check a { color: var(--ink-d); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .btn { margin-top: 8px; }
.form .btn[disabled] { opacity: .6; cursor: progress; }
.form-msg { margin: 16px 0 0; min-height: 1.5em; font-size: 15px; color: var(--dim-d); }
.form-msg.ok { color: #8fe3c0; }
.form-msg.bad { color: #ffb4ab; }

/* ---------- FAQ ---------- */
.faq { margin-top: 48px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 40px 22px 0; position: relative; font-size: 19px; font-weight: 600; letter-spacing: -0.015em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--dim); border-bottom: 2px solid var(--dim); transform: translateY(-70%) rotate(45deg); transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { margin: 0 0 24px; max-width: 64ch; }

/* ---------- Footer ---------- */
.foot { padding: 72px 0 32px; border-top: 1px solid var(--night-line); font-size: 15px; }
.foot-in { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 40px; }
.foot h2 { margin: 0 0 14px; font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--faint-d); }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot a { color: var(--dim-d); text-decoration: none; }
.foot a:hover { color: var(--ink-d); }
.foot-brand img { width: 140px; }
.foot-brand p { margin: 16px 0 0; color: var(--dim-d); }
.foot address { font-style: normal; color: var(--dim-d); line-height: 1.8; }
.foot-by { margin-top: 56px; }
.foot-by a { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; padding: 16px 22px; border: 1px solid var(--night-line); border-radius: 14px; text-decoration: none; color: var(--dim-d); transition: border-color .2s, color .2s; }
.foot-by a:hover { border-color: rgba(255, 255, 255, .25); color: var(--ink-d); }
.foot-by img { width: 132px; height: auto; opacity: .9; }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--night-line); font-size: 13px; color: var(--faint-d); }
.foot-base p { margin: 0; }
@media (max-width: 900px) { .foot-in { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot-in { grid-template-columns: 1fr; } }

/* ---------- Simple pages ---------- */
.page { padding: 140px 0 96px; min-height: 70vh; }
.page h1 { font-size: var(--display-sm); line-height: 1.06; }
.page h2 { margin: 40px 0 8px; font-size: 22px; letter-spacing: -0.02em; }
.page p, .page li { color: var(--dim); max-width: 68ch; }
.page a { color: var(--teal-ink); }


/* ---------- Interactive home screen ---------- */
.try { display: flex; align-items: center; justify-content: center; gap: 10px; text-align: center; width: fit-content; margin: 0 auto 18px; padding: 8px 16px; border: 1px solid var(--night-line); border-radius: 999px; background: rgba(255, 255, 255, .04); font-size: 14px; color: var(--dim-d); }
.try b { color: var(--ink-d); font-weight: 600; }
.try-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 0 rgba(141, 120, 255, .6); }
.hotspots { position: absolute; inset: 0; }
.hs {
  position: absolute; left: calc(var(--x) * 1%); top: calc(var(--y) * 1%); width: calc(var(--w) * 1%); height: calc(var(--h) * 1%);
  border-radius: 6px; cursor: pointer; outline: none;
  transition: box-shadow .25s var(--ease), background-color .25s var(--ease);
}
.hs:hover, .hs:focus-visible { background: rgba(141, 120, 255, .10); box-shadow: 0 0 0 2px var(--teal), 0 0 28px 4px rgba(141, 120, 255, .55); }
.hs.wide:hover, .hs.wide:focus-visible { background: rgba(141, 120, 255, .05); }
.hs::after {
  content: attr(data-go); position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translate(-50%, 4px);
  padding: 7px 12px; border-radius: 999px; background: var(--ink); color: #fff; font: 600 12px/1 var(--sans); white-space: nowrap;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .35); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s var(--ease); z-index: 2;
}
.hs.side::after { left: calc(100% + 10px); bottom: auto; top: 50%; transform: translate(-4px, -50%); }
.hs.wide::after { bottom: auto; top: 10px; }
.hs:hover::after, .hs:focus-visible::after { opacity: 1; transform: translate(-50%, 0); }
.hs.side:hover::after, .hs.side:focus-visible::after { transform: translate(0, -50%); }
.hs.beacon::before {
  content: ""; position: absolute; right: -5px; top: -5px; width: 10px; height: 10px; border-radius: 50%;
  background: var(--teal); box-shadow: 0 0 0 0 rgba(141, 120, 255, .7); pointer-events: none;
}
.hs.side.beacon::before { right: 8px; top: 50%; margin-top: -5px; }
.explored .hs.beacon::before { display: none; }
.hero-chips { display: none; }
@media (max-width: 700px) {
  .hotspots, .try { display: none; }
  .hero-chips { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin-top: 18px; }
  .hero-chips span { width: 100%; text-align: center; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--teal); margin-bottom: 2px; }
  .hero-chips a { padding: 9px 14px; border: 1px solid rgba(255, 255, 255, .18); border-radius: 999px; font-size: 14px; color: var(--ink-d); text-decoration: none; background: rgba(255, 255, 255, .04); }
  .hero-chips a:active { background: rgba(141, 120, 255, .2); }
}

/* Back to the home screen, after jumping from a hotspot */
.back-home {
  position: fixed; left: 50%; bottom: max(18px, env(safe-area-inset-bottom)); z-index: 60; transform: translateX(-50%);
  padding: 12px 20px; border-radius: 999px; background: var(--ink); color: #fff; font: 600 14px/1 var(--sans); text-decoration: none;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .35), 0 0 0 1px rgba(255, 255, 255, .12);
}
.back-home:hover { background: var(--deep); }

/* Landing highlight on the section or panel a hotspot opened */
.arrived .eyebrow::after { content: ""; display: inline-block; vertical-align: middle; width: 72px; height: 2px; margin-left: 12px; border-radius: 2px; background: currentColor; transform-origin: left; }
.repo.arrived { box-shadow: 0 0 0 2px var(--teal-ink), 0 20px 50px -20px rgba(11, 111, 136, .45); }

/* ---------- Repositories ---------- */
.repos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: clamp(56px, 8vw, 96px); }
.repo { padding: 32px; border-radius: var(--radius); background: var(--paper); box-shadow: 0 0 0 1px var(--line); scroll-margin-top: 110px; transition: box-shadow .4s; }
.repo-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: linear-gradient(160deg, var(--deep), #1d6f97); margin-bottom: 20px; }
.repo-icon svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.repo h3 { margin: 0; font-size: 22px; letter-spacing: -0.02em; }
.repo-tag { margin: 4px 0 12px; font-size: 14px; font-weight: 600; color: var(--teal-ink) !important; }
.repo p:last-child { margin: 0; font-size: 16px; }
@media (max-width: 900px) { .repos { grid-template-columns: 1fr; } }

/* ---------- Create: template illustration ---------- */
.create-split { align-items: center; }
.split-text p + p { margin-top: 16px; }
.tmpl { padding: 24px; border-radius: 20px; background: var(--paper-2); box-shadow: 0 0 0 1px var(--line), 0 30px 80px -40px rgba(11, 27, 51, .35); }
.tmpl-search { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 10px; background: #fff; box-shadow: 0 0 0 1px var(--line); color: var(--dim); font-size: 15px; }
.tmpl-search svg { width: 18px; height: 18px; fill: none; stroke: var(--dim); stroke-width: 2; }
.tmpl-cats { list-style: none; padding: 0; margin: 16px 0 20px; display: flex; flex-wrap: wrap; gap: 8px; }
.tmpl-cats li { padding: 7px 14px; border-radius: 999px; background: #fff; box-shadow: 0 0 0 1px var(--line); font-size: 14px; color: var(--ink); }
.tmpl-cats li.on { background: var(--ink); color: #fff; box-shadow: none; }
.tmpl-fields { list-style: none; padding: 18px; margin: 0; border-radius: 12px; background: #fff; box-shadow: 0 0 0 1px var(--line); display: grid; gap: 12px; }
.tmpl-fields li { display: grid; grid-template-columns: 9.5rem 1fr; align-items: center; gap: 12px; font-size: 14px; color: var(--ink); }
.tmpl-fields i { height: 10px; border-radius: 5px; background: linear-gradient(90deg, var(--line), #eef1f5); }
.tmpl-fields li:nth-child(odd) i { width: 70%; } .tmpl-fields li:nth-child(even) i { width: 85%; }
.cards-one { grid-template-columns: minmax(0, 720px); }
.timeline b a { color: inherit; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 4px; }
.timeline b a:hover { text-decoration-color: var(--teal-ink); }

@media (prefers-reduced-motion: no-preference) {
  .try-dot, .hs.beacon::before { animation: beacon 1.8s ease-out infinite; }
  @keyframes beacon { 0% { box-shadow: 0 0 0 0 rgba(141, 120, 255, .65); } 80%, 100% { box-shadow: 0 0 0 12px rgba(141, 120, 255, 0); } }
  .arrived .eyebrow::after { animation: sweep .9s var(--ease) both; }
  @keyframes sweep { from { transform: scaleX(0); opacity: 0; } to { transform: scaleX(1); opacity: 1; } }
  .back-home:not([hidden]) { animation: pop .35s var(--ease) both; }
  @keyframes pop { from { opacity: 0; transform: translate(-50%, 12px); } to { opacity: 1; transform: translate(-50%, 0); } }
}


/* ---------- Inner pages ---------- */
.foot-h { margin: 0 0 14px; font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--faint-d); }
.h1-kicker { display: block; margin: 0 0 18px; font: 600 13px/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--teal); }
.h1-main { display: block; }
.subhero { padding: clamp(120px, 15vw, 168px) 0 clamp(56px, 8vw, 88px); background: radial-gradient(70% 90% at 50% 0%, rgba(141, 120, 255, .16), transparent 70%), var(--night); }
.subhero h1 { font-size: clamp(38px, 6vw, 72px); line-height: 1.04; }
.subhero .lede { max-width: 52ch; }
.crumbs { margin: 0 0 22px; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; color: var(--faint-d); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--faint-d); }
.crumbs a { color: var(--dim-d); text-decoration: none; }
.crumbs a:hover { color: var(--ink-d); text-decoration: underline; }
.prose { max-width: 760px; margin: 0 auto; font-size: 18px; line-height: 1.7; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { margin-top: 2.4em; font-size: clamp(26px, 3vw, 36px); line-height: 1.15; letter-spacing: -0.025em; scroll-margin-top: 90px; }
.prose h3 { margin-top: 1.8em; font-size: 21px; letter-spacing: -0.015em; }
.prose p, .prose li { color: var(--dim); }
.prose strong { color: var(--ink); }
.prose a { color: var(--teal-ink); text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li + li { margin-top: .4em; }
.prose figure { margin: 2em 0; }
.prose figure .frame { box-shadow: 0 0 0 1px var(--line), 0 24px 60px -36px rgba(11, 27, 51, .35); }
.prose figcaption { color: var(--dim); }
.prose .note-box { padding: 20px 24px; border-radius: 14px; background: var(--paper-2); box-shadow: inset 3px 0 0 var(--teal-ink); }
.prose .note-box p { margin: 0; }
.toc { margin: 0 0 2.4em; padding: 20px 24px; border-radius: 14px; background: var(--paper-2); }
.toc p { margin: 0 0 8px; font-weight: 600; color: var(--ink); }
.toc ol { margin: 0; padding-left: 1.2em; font-size: 16px; }
.data-table { width: 100%; border-collapse: collapse; font-size: 16px; }
.data-table th, .data-table td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.data-table th { color: var(--ink); font-weight: 600; background: var(--paper-2); }
.data-table td { color: var(--dim); }
.table-wrap { overflow-x: auto; }
.faq-group + .faq-group { margin-top: 56px; }
.faq-group h2 { margin: 0 0 8px; font-size: 22px; letter-spacing: -0.02em; }
.faq details p + p { margin-top: -12px; }
.more-link { display: inline-block; margin-top: 28px; font-weight: 600; color: var(--teal-ink); text-decoration: none; }
.dark .more-link { color: var(--teal); }
.more-link::after { content: " \2192"; }
.more-link:hover { text-decoration: underline; }
.cta-band { padding: clamp(88px, 12vw, 140px) 0; background: radial-gradient(70% 80% at 50% 100%, rgba(141, 120, 255, .16), transparent 70%), var(--night); }
.demo-page .demo { padding-top: clamp(40px, 6vw, 64px); }
.demo-steps { margin: 20px 0 0; padding-left: 1.3em; color: var(--dim-d); font-size: 17px; }
.demo-steps li + li { margin-top: 8px; }
@media (max-width: 560px) { .prose { font-size: 17px; } .data-table { font-size: 15px; } }

/* ---------- Motion: enhancement only. Content is fully visible without it. ---------- */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .rise { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% cover 28%; }
    @keyframes rise { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }

    .thread { animation: draw linear both; animation-timeline: view(); animation-range: entry 10% cover 45%; }
    @keyframes draw { from { transform: scaleX(.04); opacity: .2; } to { transform: none; opacity: 1; } }

    @media (min-width: 768px) {
      .hero-shot .frame { animation: settle linear both; animation-timeline: view(); animation-range: entry 0% cover 50%; }
      @keyframes settle { from { transform: rotateX(18deg) scale(.94); } to { transform: none; } }
    }
  }
  .hero .eyebrow, .hero h1, .hero .lede, .hero .ctas { animation: enter 1s var(--ease) both; }
  .hero h1 { animation-delay: .08s; } .hero .lede { animation-delay: .16s; } .hero .ctas { animation-delay: .24s; }
  @keyframes enter { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- Monarch EDRMS additions ---------- */
.hero-light { background: radial-gradient(90% 70% at 50% 0%, #e6e2ff 0%, #f6f5ff 50%, #ffffff 100%); color: var(--ink); }
.hero-light::before { background: radial-gradient(closest-side, rgba(141, 120, 255, .20), rgba(240, 107, 181, .06) 60%, transparent 75%); }
.hero-light h1 { color: var(--ink); }
.hero-light h1 em, .hero-light .h1-main em { color: var(--teal-ink); }
.hero-light .lede { color: var(--dim); }
.hero-light .eyebrow, .hero-light .h1-kicker { color: var(--teal-ink); }
.hero-light .link-arrow { color: var(--ink); }
.hero-light .btn { background: var(--ink); color: #fff; }
.hero-light figcaption { color: var(--dim); }
.hero-light .try { border-color: var(--line); background: #fff; color: var(--dim); }
.hero-light .try b { color: var(--ink); }
.hero-light .hero-shot .frame { box-shadow: 0 0 0 1px var(--line), 0 50px 120px -40px rgba(90, 67, 214, .40); }
.hero-light .hero-chips a { color: var(--ink); border-color: var(--line); background: #fff; }
.hero-light .hero-chips span { color: var(--teal-ink); }
.nav.on-light { background: rgba(255, 255, 255, .82); border-bottom-color: var(--line); }
.nav.on-light ul a { color: var(--dim); }
.nav.on-light ul a:hover { color: var(--ink); }
.nav.on-light .btn { background: var(--ink); color: #fff; }
.brand img.logo-dark { width: 148px; }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-top: 48px; border-top: 1px solid var(--night-line); }
.stat { padding: 28px 16px 8px 0; }
.stat b { display: block; font: 600 clamp(36px, 5vw, 58px)/1 var(--sans); letter-spacing: -0.03em; color: var(--ink-d); font-variant-numeric: tabular-nums; }
.stat span { display: block; margin-top: 10px; color: var(--dim-d); font-size: 15px; }
@media (max-width: 720px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.sectors { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.sector { display: flex; flex-direction: column; gap: 10px; padding: 26px; border-radius: var(--radius); background: var(--paper); box-shadow: 0 0 0 1px var(--line); text-decoration: none; color: inherit; transition: box-shadow .25s var(--ease), transform .25s var(--ease); }
.sector:hover, .sector:focus-visible { box-shadow: 0 0 0 2px var(--teal-ink), 0 24px 50px -30px rgba(6, 112, 162, .5); transform: translateY(-2px); }
.sector h3 { margin: 0; font-size: 20px; letter-spacing: -0.02em; }
.sector p { margin: 0; font-size: 15px; color: var(--dim); }
.sector .go { margin-top: auto; padding-top: 8px; font-weight: 600; font-size: 15px; color: var(--teal-ink); }
.sector .go::after { content: " \2192"; }
@media (max-width: 980px) { .sectors { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .sectors { grid-template-columns: 1fr; } }

.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.feat { padding: 26px; border-radius: var(--radius); background: var(--paper); box-shadow: 0 0 0 1px var(--line); scroll-margin-top: 110px; transition: box-shadow .4s; }
.feat h3 { margin: 10px 0 8px; font-size: 19px; letter-spacing: -0.02em; }
.feat p { margin: 0; font-size: 15.5px; color: var(--dim); }
.feat ul { margin: 12px 0 0; padding-left: 1.1em; font-size: 15px; color: var(--dim); }
.feat ul li + li { margin-top: 4px; }
.tag { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.tag-core { background: #ece8ff; color: #4a35c4; }
.tag-addon { background: #ece8fb; color: #4a3a8f; }
.feat.arrived { box-shadow: 0 0 0 2px var(--teal-ink), 0 20px 50px -20px rgba(90, 67, 214, .40); }
@media (max-width: 980px) { .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .feature-grid { grid-template-columns: 1fr; } }

.ui-pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.ui-pair + .ui-pair { margin-top: clamp(56px, 8vw, 96px); }
.ui-pair.flip > :first-child { order: 2; }
.ui-card { margin: 0; display: grid; place-items: center; padding: clamp(24px, 4vw, 48px); border-radius: 24px; background: linear-gradient(160deg, #e3f5fc, #f6fbfe); }
.ui-card img { max-width: 100%; height: auto; border-radius: 14px; }
.ui-pair ul { margin: 18px 0 0; padding-left: 1.2em; color: var(--dim); }
.ui-pair li + li { margin-top: 6px; }
@media (max-width: 860px) { .ui-pair { grid-template-columns: 1fr; } .ui-pair.flip > :first-child { order: 0; } }

.quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 8px; }
.quote { margin: 0; padding: 26px; border-radius: var(--radius); border: 1px solid var(--night-line); background: rgba(255, 255, 255, .03); display: flex; flex-direction: column; gap: 14px; }
.quote .stars { color: #f5c04a; letter-spacing: 2px; font-size: 15px; }
.quote blockquote { margin: 0; font-size: 17px; line-height: 1.55; color: var(--ink-d); }
.quote figcaption { margin: auto 0 0; text-align: left; color: var(--dim-d); font-size: 14px; }
@media (max-width: 900px) { .quotes { grid-template-columns: 1fr; } }

.family { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 32px; text-align: left; }
.family a { display: block; padding: 24px; border-radius: var(--radius); background: var(--paper); box-shadow: 0 0 0 1px var(--line); text-decoration: none; color: inherit; }
.family a:hover { box-shadow: 0 0 0 2px var(--teal-ink); }
.family b { display: block; font-size: 18px; }
.family span { color: var(--dim); font-size: 15px; }
@media (max-width: 620px) { .family { grid-template-columns: 1fr; } }
.form-note { margin: 12px 0 0; font-size: 13px; color: var(--faint-d); }
.badges { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 28px; }
.badges img { height: 48px; width: auto; }
.subhero.hero-light { padding-top: clamp(120px, 15vw, 160px); }
.hero-light .crumbs, .hero-light .crumbs li + li::before { color: var(--dim); }
.hero-light .crumbs a { color: var(--dim); }
.hero-light .crumbs a:hover { color: var(--ink); }

/* ---------- Apollo additions ---------- */
.brand-word { display: inline-flex; align-items: center; gap: 10px; font: 700 23px/1 var(--sans); letter-spacing: -0.03em; color: var(--ink); text-decoration: none; }
.brand-word img { width: 34px; height: 34px; }
.foot .brand-word { color: var(--ink-d); }
/* The butterfly gradient, used once per page on the hero accent */
.hero-light h1 .h1-main em { background: linear-gradient(95deg, #4c7dff 0%, #8a5cf6 40%, #e2589f 72%, #f59a4a 100%); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .08em; }
@media (forced-colors: active) { .hero-light h1 .h1-main em { color: CanvasText; background: none; } }
.stage-strip { margin-top: 48px; }
.ui-wide { margin-top: 28px; border-radius: 12px; overflow: hidden; box-shadow: 0 0 0 1px var(--line), 0 20px 50px -30px rgba(20, 27, 43, .35); background: #fff; }
.ui-wide img { width: 100%; }
.shot-row { margin-top: clamp(40px, 6vw, 72px); }
.shot-row h3 { margin: 0 0 8px; }
.shot-row > p { margin: 0 0 4px; max-width: 62ch; }
.chips-inline { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips-inline li { padding: 7px 14px; border-radius: 999px; background: var(--paper-2); border: 1px solid var(--line); font-size: 14px; color: var(--ink); }
.grid-facts-light { border-top-color: var(--line); }
.grid-facts-light div { border-bottom-color: var(--line); }
.grid-facts-light dt { color: var(--ink); }
.grid-facts-light dd { color: var(--dim); }
@media (max-width: 760px) { .stage-strip { grid-template-columns: 1fr !important; } }

/* ---------- ROI calculator ---------- */
.roi-disclaimer { margin: 18px 0 0; font-size: 14px; color: var(--dim); max-width: 62ch; }
.roi-disclaimer a { color: var(--teal-ink); }
.roi { padding-top: clamp(40px, 6vw, 72px); }
.roi-wrap { max-width: 980px; }
.roi-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 4vw, 48px); box-shadow: 0 30px 80px -50px rgba(20, 27, 43, .35); }
.roi-h { margin: 0; font-size: clamp(22px, 2.4vw, 28px); letter-spacing: -0.02em; color: var(--ink); }
.roi-h + .roi-grid, .roi-sub + .roi-grid, #reports-section .roi-grid { margin-top: 24px; }
#reports-section { margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--line); }
.roi-sub { margin: 8px 0 0; font-size: 15px; color: var(--dim); }
.roi-sub abbr, .roi-field abbr { color: var(--teal-ink); text-decoration: none; }
.roi-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 24px; }
.roi-field { display: flex; flex-direction: column; justify-content: space-between; gap: 8px; }
.roi-field label { font-size: 15px; line-height: 1.35; color: var(--ink); font-weight: 500; }
.roi-input { width: 100%; padding: 13px 14px; font: 500 17px/1.2 var(--sans); color: var(--ink); background: var(--paper-2); border: 1px solid var(--line); border-radius: 12px; transition: border-color .15s, box-shadow .15s; }
.roi-input:focus { outline: none; border-color: var(--teal-ink); background: #fff; box-shadow: 0 0 0 3px rgba(141, 120, 255, .22); }
.roi-input-container { position: relative; }
.roi-input-container .currency-symbol { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--dim); font-weight: 500; pointer-events: none; }
.roi-input-container .roi-input { padding-left: 30px; }
.roi-question { margin: 40px 0 0; padding: 24px; border: 0; border-radius: 14px; background: var(--paper-2); }
.roi-question legend { float: left; width: 100%; padding: 0; font-weight: 600; font-size: 18px; color: var(--ink); }
.roi-question p { clear: both; margin: 0; padding-top: 8px; font-size: 15px; color: var(--dim); max-width: 64ch; }
.roi-radio-group { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.roi-radio-group label { display: inline-flex; align-items: center; gap: 10px; padding: 11px 18px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 15px; color: var(--ink); cursor: pointer; }
.roi-radio-group label:has(input:checked) { border-color: var(--teal-ink); box-shadow: 0 0 0 1px var(--teal-ink); }
.roi-radio-group input { accent-color: var(--teal-ink); width: 18px; height: 18px; margin: 0; }
.roi-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 36px; }
.roi .btn { background: var(--ink); color: #fff; }
.btn-ghost { display: inline-flex; align-items: center; padding: 16px 26px; border-radius: 999px; border: 1px solid var(--ink); background: #fff; color: var(--ink); font: 600 16px/1 var(--sans); cursor: pointer; }
.btn-ghost:hover { background: var(--paper-2); }
.roi-actions #download-pdf[style*="block"] { display: inline-flex !important; }
.roi-msg { min-height: 1.4em; margin: 14px 0 0; font-size: 15px; }
.roi-msg.bad { color: #b42318; }
.roi-results { margin-top: clamp(48px, 7vw, 80px); scroll-margin-top: 90px; }
.roi-results-container { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
.roi-result-box { padding: 26px 24px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.roi-result-box:first-child { background: var(--night); border-color: var(--night); }
.roi-result-box:first-child h3, .roi-result-box:first-child .roi-note { color: var(--dim-d); }
.roi-result-box:first-child .roi-value { color: #fff; }
.roi-result-box h3 { margin: 0; font-size: 14px; font-weight: 600; letter-spacing: .02em; color: var(--dim); }
.roi-value { margin: 10px 0 4px; font: 700 clamp(28px, 3.4vw, 40px)/1.05 var(--sans); letter-spacing: -0.03em; color: var(--ink); overflow-wrap: anywhere; }
.roi-note { margin: 0; font-size: 14px; color: var(--dim); }
@media (max-width: 760px) {
  .roi-grid { grid-template-columns: 1fr; }
  .roi-results-container { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 460px) { .roi-results-container { grid-template-columns: 1fr; } .roi-actions .btn, .roi-actions .btn-ghost { width: 100%; justify-content: center; } }

/* ---------- Navigation: current page / section ---------- */
.nav ul a { position: relative; }
.nav ul a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -7px; height: 2px; border-radius: 2px; background: var(--teal-ink); transform: scaleX(0); transition: transform .25s var(--ease); }
.nav ul a.is-active { color: var(--ink-d); }
.nav.on-light ul a.is-active { color: var(--ink); }
.nav ul a.is-active::after { transform: scaleX(1); }
@media (max-width: 820px) { .nav ul a::after { left: 10px; right: 10px; bottom: 2px; } }
@media (prefers-reduced-motion: reduce) { .nav ul a::after { transition: none; } }
@media (forced-colors: active) { .nav ul a.is-active::after { background: Highlight; } }
.updated { margin: 18px 0 0; font-size: 14px; color: var(--dim); }
