:root {
  --brand: #7a2f45;
  --brand-dark: #5b2334;
  --cream: #f6f3ec;
  --background: #fafaf8;
  --ink: #0d1a30;
  --rose: #c9738c;
  --muted: #5b6675;
  --border: #e7e2d8;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--background);
  color: var(--ink);
  font-family: 'Geist', Arial, Helvetica, sans-serif;
  line-height: 1.6;
  position: relative;
  letter-spacing: -0.01em;
}
/* Subtle grain layer, fixed to the viewport -- the kind of texture that
   reads as "considered" rather than a flat corporate template. */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: 999; pointer-events: none;
  opacity: 0.035; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
h1, h2, h3 { font-family: 'Fraunces', Georgia, 'Times New Roman', serif; color: var(--ink); margin: 0; letter-spacing: -0.02em; }
a { color: inherit; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 1.5rem; }

.gradient-text {
  background: linear-gradient(100deg, var(--brand) 10%, var(--rose) 45%, var(--brand) 80%);
  background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: gradient-flow 6s ease-in-out infinite;
}
@keyframes gradient-flow {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 100% center; }
}

@media (prefers-reduced-motion: reduce) {
  .gradient-text { animation: none; }
  html { scroll-behavior: auto; }
}

/* Scroll-reveal: elements fade + rise into place the first time they
   cross into view. IntersectionObserver toggles .is-visible (see the
   script in the footer partial); falls back to fully visible with JS
   disabled since .reveal alone only sets the *starting* state. */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* Put .reveal-stagger on a grid/flex container -- its direct children
   fade in individually, staggered, once the container crosses into
   view (JS toggles .is-visible on the container itself, no need to
   observe each child separately). */
.reveal-stagger > * { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal-stagger.is-visible > * { opacity: 1; transform: translateY(0); }
.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 0.12s; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 0.19s; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 0.26s; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 0.33s; }
.reveal-stagger.is-visible > *:nth-child(6) { transition-delay: 0.4s; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-stagger > * { opacity: 1; transform: none; transition: none; }
}

header.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(250, 250, 248, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}
nav.wrap {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 1.1rem; padding-bottom: 1.1rem;
}
.logo { display: inline-flex; align-items: center; text-decoration: none; }
.logo img { display: block; }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a.link { font-size: 0.92rem; font-weight: 500; color: var(--muted); text-decoration: none; }
.nav-links a.link:hover, .nav-links a.link.active { color: var(--brand); }

.nav-dropdown { position: relative; }
.nav-dropdown .link { display: inline-flex; align-items: center; gap: 0.3rem; }
.nav-dropdown .caret { width: 0.55rem; height: 0.55rem; transition: transform 0.2s ease; }
.nav-dropdown.open .caret { transform: rotate(180deg); }
.nav-links .nav-dropdown.open > a.link { color: var(--brand); }
/* .dropdown-panel is the hoverable hit area -- it starts flush against
   the trigger (top:100%, no margin) and uses padding-top instead of
   margin to create the visual gap, so there's no dead zone between the
   link and the panel. Open/close is driven by the .open class (set by
   the script in the header partial, with a hover-intent delay and a
   close grace period); the :hover rule below is only the no-JS
   fallback. The visible box is the nested .dropdown-panel-inner. */
.nav-dropdown .dropdown-panel {
  position: absolute; top: 100%; left: 50%;
  width: 30rem; padding-top: 0.75rem;
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: translate(-50%, 6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s linear 0.18s;
}
/* Invisible bridge a little wider than the trigger, so cutting the
   corner diagonally toward the panel doesn't count as leaving it. */
.nav-dropdown .dropdown-panel::before {
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 60%; height: 0.75rem;
}
.nav-dropdown.open .dropdown-panel,
html:not(.js) .nav-dropdown:hover .dropdown-panel,
html:not(.js) .nav-dropdown:focus-within .dropdown-panel {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translate(-50%, 0);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s;
}
/* Right-most dropdown (Company): anchor to the trigger's right edge so
   the panel can't spill past the viewport on narrower laptops. */
.nav-dropdown .dropdown-panel.align-right { left: auto; right: -1rem; width: 26rem; transform: translateY(6px); }
.nav-dropdown .dropdown-panel.align-right::before { left: auto; right: 1rem; transform: none; width: 8rem; }
.nav-dropdown.open .dropdown-panel.align-right,
html:not(.js) .nav-dropdown:hover .dropdown-panel.align-right { transform: translateY(0); }
.dropdown-panel-inner {
  padding: 0.75rem;
  background: rgba(255,255,255,0.98); backdrop-filter: blur(10px);
  border: 1px solid var(--border); border-radius: 10px;
  box-shadow: 0 24px 48px -18px rgba(13,26,48,0.28), 0 2px 6px -2px rgba(13,26,48,0.06);
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.25rem;
}
.dropdown-panel a.drop-item {
  display: flex; align-items: flex-start; gap: 0.7rem; padding: 0.6rem 0.7rem;
  border-radius: 6px; text-decoration: none; color: var(--ink);
  transition: background 0.15s ease;
}
.dropdown-panel a.drop-item:hover, .dropdown-panel a.drop-item:focus-visible { background: var(--cream); outline: none; }
.dropdown-panel a.drop-item:hover h4 { color: var(--brand); }
.dropdown-panel a.drop-item .icon-badge {
  width: 2.1rem; height: 2.1rem; border-radius: 9px; flex-shrink: 0; margin-bottom: 0;
  transition: transform 0.15s ease;
}
.dropdown-panel a.drop-item:hover .icon-badge { transform: scale(1.06); }
.dropdown-panel a.drop-item .icon-badge svg { width: 1.1rem; height: 1.1rem; }
.dropdown-panel a.drop-item h4 { font-size: 0.86rem; font-weight: 700; margin: 0 0 0.15rem; font-family: 'Geist', Arial, Helvetica, sans-serif; transition: color 0.15s ease; }
.dropdown-panel a.drop-item p { font-size: 0.76rem; color: var(--muted); margin: 0; line-height: 1.35; }
.dropdown-panel .drop-all {
  grid-column: 1 / -1; text-align: center; font-size: 0.82rem; font-weight: 600; color: var(--brand);
  text-decoration: none; padding: 0.6rem 0.5rem 0.1rem; border-top: 1px solid var(--border); margin-top: 0.25rem;
}
.dropdown-panel .drop-all:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Solutions mega-menu: three columns (by industry / by business / by
   role) built from the same icon-badge .drop-item cards as the Products
   dropdown, so both menus read as one design. .compact drops the
   description line -- fourteen items with descriptions would be a wall. */
.nav-dropdown .dropdown-panel.wide { width: 54rem; }
.dropdown-panel-inner.mega { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.25rem 0.75rem; padding: 1rem 1rem 0.75rem; }
.mega-col { display: flex; flex-direction: column; gap: 0.1rem; }
/* Column heads use the Products dropdown's title style (ink, bold, Geist)
   plus a brand icon badge, and a divider underneath to separate them
   from the items. */
.mega-col-head {
  display: flex; align-items: center; gap: 0.6rem;
  font-family: 'Geist', Arial, Helvetica, sans-serif;
  font-size: 0.86rem; font-weight: 700; color: var(--ink);
  margin: 0 0 0.35rem; padding: 0.35rem 0.7rem 0.65rem;
  border-bottom: 1px solid var(--border);
}
.mega-col-head .icon-badge {
  width: 1.95rem; height: 1.95rem; border-radius: 9px; flex-shrink: 0; margin: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--brand); color: var(--cream);
}
.mega-col-head .icon-badge svg { width: 1rem; height: 1rem; }
.dropdown-panel a.drop-item.compact { align-items: center; padding: 0.5rem 0.7rem; }
.dropdown-panel a.drop-item.compact h4 { margin: 0; line-height: 1.3; }
.dropdown-panel a.drop-item.compact .icon-badge { width: 1.95rem; height: 1.95rem; }
.dropdown-panel a.drop-item.compact .icon-badge svg { width: 1rem; height: 1rem; }
@media (max-width: 1080px) {
  /* Narrow laptops: centre the mega-menu under the whole nav bar rather
     than under its trigger, so it can't spill past the left edge. */
  nav.wrap { position: relative; }
  .nav-dropdown:has(.dropdown-panel.wide) { position: static; }
  .nav-dropdown .dropdown-panel.wide { width: min(46rem, calc(100vw - 2rem)); top: calc(100% - 1.1rem); }
  .dropdown-panel-inner.mega { gap: 0.25rem 0.4rem; padding: 0.9rem 0.75rem 0.7rem; }
}
@media (prefers-reduced-motion: reduce) {
  .nav-dropdown .dropdown-panel, .nav-dropdown .caret, .dropdown-panel a.drop-item .icon-badge { transition: none; }
}

/* Desktop: its own tightly-spaced group, pushed flush right by the auto
   margin -- separate from the nav links' own looser 2rem gap, not just
   three more items in the same row. Mobile's own rule below (inside the
   menu sheet) overrides this back to a stacked grid. */
.nav-cta { display: flex; align-items: center; gap: 0.6rem; margin-left: auto; }
.nav-cta .btn { padding: 0.5rem 1.1rem; font-size: 0.83rem; }
.nav-toggle { display: none; }

/* ---------- Mobile menu (<= 820px) ----------
   Hamburger opens a sheet under the sticky header. Section triggers
   become accordions (the script stops them navigating); each panel
   reuses the desktop markup, restyled as a flat list. The sheet is
   position:absolute rather than fixed because the header's
   backdrop-filter makes it the containing block anyway. */
@media (max-width: 820px) {
  /* Hamburger sits first (left edge), logo right next to it -- the
     toggle is moved ahead of the logo in visual order via `order`
     rather than in the markup, so the DOM/tab order (logo first, an
     assistive-tech user expects the site identity before the menu
     control) stays sensible even though it renders on the left. */
  nav.wrap { padding-top: 0.8rem; padding-bottom: 0.8rem; justify-content: flex-start; gap: 0.85rem; }
  .logo { order: 1; }
  .logo img { height: 32px; width: auto; }

  .nav-toggle {
    order: 0;
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 2.75rem; height: 2.75rem; padding: 0 0.7rem; margin-left: -0.7rem;
    background: none; border: 0; border-radius: 8px; cursor: pointer; color: var(--ink);
  }
  .nav-toggle:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
  .nav-toggle span {
    display: block; height: 2px; width: 100%; background: currentColor; border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.2s ease;
  }
  .menu-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .menu-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 0.5rem 1.5rem 1.5rem;
    background: var(--background); border-bottom: 1px solid var(--border);
    box-shadow: 0 24px 40px -24px rgba(13,26,48,0.3);
    max-height: calc(100vh - 3.9rem); max-height: calc(100dvh - 3.9rem); overflow-y: auto; overscroll-behavior: contain;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
  }
  .menu-open .nav-links {
    opacity: 1; visibility: visible; transform: none;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s;
  }
  body.nav-open { overflow: hidden; }

  .nav-links a.link, .nav-dropdown .link {
    display: flex; justify-content: space-between; align-items: center;
    padding: 0.95rem 0.1rem; font-size: 1.02rem; font-weight: 600; color: var(--ink);
    border-bottom: 1px solid var(--border);
  }
  .nav-dropdown .caret { width: 0.75rem; height: 0.75rem; }

  /* Accordion panels */
  .nav-dropdown .dropdown-panel,
  .nav-dropdown .dropdown-panel.align-right,
  .nav-dropdown .dropdown-panel.wide {
    position: static; width: auto; padding: 0; transform: none;
    opacity: 1; visibility: visible; pointer-events: auto;
    display: grid; grid-template-rows: 0fr; overflow: hidden;
    transition: grid-template-rows 0.25s ease;
  }
  .nav-dropdown .dropdown-panel::before { display: none; }
  .nav-dropdown.open .dropdown-panel { grid-template-rows: 1fr; transform: none; }
  .dropdown-panel > .dropdown-panel-inner { min-height: 0; overflow: hidden; }
  .dropdown-panel-inner,
  .dropdown-panel-inner.mega {
    grid-template-columns: 1fr; gap: 0.1rem;
    background: none; backdrop-filter: none; border: 0; border-radius: 0; box-shadow: none;
    padding: 0; visibility: hidden;
    transition: padding 0.25s ease, visibility 0s linear 0.25s;
  }
  .nav-dropdown.open .dropdown-panel-inner {
    padding: 0.4rem 0 0.8rem; visibility: visible;
    transition: padding 0.25s ease, visibility 0s;
  }
  .dropdown-panel a.drop-item { padding: 0.55rem 0.4rem; align-items: center; }
  .dropdown-panel a.drop-item p { display: none; }
  .dropdown-panel a.drop-item h4 { font-size: 0.95rem; font-weight: 600; margin: 0; }
  .dropdown-panel a.drop-item .icon-badge { width: 1.9rem; height: 1.9rem; }
  .mega-col { padding-bottom: 0.5rem; }
  .mega-col-head { margin: 0.6rem 0 0.25rem; padding: 0.3rem 0.4rem 0.55rem; }
  .dropdown-panel .drop-all { text-align: left; padding: 0.7rem 0.4rem 0.2rem; font-size: 0.9rem; }

  .nav-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; padding-top: 1.25rem; margin-left: 0; }
  .nav-cta .btn { text-align: center; padding: 0.8rem 1rem; font-size: 0.9rem; }
  /* 3 buttons (Login, Live Demo, Request a demo): primary spans the full row. */
  .nav-cta .btn-primary { grid-column: 1 / -1; }
}
@media (max-width: 820px) and (prefers-reduced-motion: reduce) {
  .nav-links, .nav-toggle span, .nav-dropdown .dropdown-panel { transition: none; }
}
.btn {
  display: inline-block; text-decoration: none; font-weight: 600; font-size: 0.9rem;
  padding: 0.65rem 1.4rem; border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-primary { background: var(--brand); color: var(--cream); box-shadow: 0 6px 16px -8px rgba(122,47,69,0.55); }
.btn-primary:hover { background: var(--brand-dark); transform: translateY(-2px); box-shadow: 0 12px 24px -10px rgba(122,47,69,0.6); }
.btn-primary:active { transform: translateY(0); }
.btn-secondary { border: 1px solid var(--border); color: var(--ink); }
.btn-secondary:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-2px); }
.btn-secondary:active { transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .btn-primary:hover, .btn-secondary:hover, .btn-primary:active, .btn-secondary:active { transform: none; }
}

section { padding: 5.5rem 0; }
section.alt { background: var(--cream); }
section.dark { background: var(--ink); color: var(--cream); }
section.dark h2, section.dark h3 { color: var(--cream); }
section.dark p { color: #b7c0cc; }
section.tight { padding: 3.5rem 0; }

.breadcrumb { font-size: 0.85rem; color: var(--muted); margin-bottom: 1.25rem; }
.breadcrumb a { color: var(--brand); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* Decorative gradient-mesh backdrop -- gives depth without needing photography.
   Sits behind hero/CTA content via z-index, blurred blobs in the brand palette. */
.mesh { position: relative; overflow: hidden; isolation: isolate; }
.mesh::before, .mesh::after {
  content: ""; position: absolute; z-index: -1; border-radius: 50%; filter: blur(70px); opacity: 0.35;
}
.mesh::before {
  width: 26rem; height: 26rem; background: radial-gradient(circle, var(--rose), transparent 70%);
  top: -8rem; left: -6rem; animation: drift-a 16s ease-in-out infinite;
}
.mesh::after {
  width: 22rem; height: 22rem; background: radial-gradient(circle, var(--brand), transparent 70%);
  bottom: -10rem; right: -4rem; opacity: 0.28; animation: drift-b 20s ease-in-out infinite;
}
section.dark.mesh::before { opacity: 0.5; }
section.dark.mesh::after { opacity: 0.4; }
@keyframes drift-a {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(2.5rem, 2rem) scale(1.12); }
}
@keyframes drift-b {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-2rem, -1.5rem) scale(1.08); }
}
@media (prefers-reduced-motion: reduce) {
  .mesh::before, .mesh::after { animation: none; }
}

/* Homepage hero only: the default .mesh blobs are pseudo-elements, which
   JS can't move directly (no DOM node to attach an inline transform to).
   Swap them out for a real, scroll-transformed wrapper here so the
   background can visibly parallax against the hero content as you scroll. */
.hero.mesh::before, .hero.mesh::after { content: none; }
.hero-parallax { position: absolute; inset: -4rem; z-index: -1; pointer-events: none; }
.hero-parallax .blob { content: ""; position: absolute; border-radius: 50%; filter: blur(70px); }
.hero-parallax .blob-a {
  width: 26rem; height: 26rem; background: radial-gradient(circle, var(--rose), transparent 70%);
  top: -4rem; left: -2rem; opacity: 0.45; animation: drift-a 16s ease-in-out infinite;
}
.hero-parallax .blob-b {
  width: 22rem; height: 22rem; background: radial-gradient(circle, var(--brand), transparent 70%);
  bottom: -6rem; right: 0; opacity: 0.38; animation: drift-b 20s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
  .hero-parallax .blob { animation: none; }
}

/* Side padding restated here: .hero sits on the same element as .wrap,
   and a "padding: X 0 Y" shorthand would otherwise wipe out the wrap's
   1.5rem gutter -- invisible on desktop, text-to-the-edge on phones. */
.hero { padding: 5.5rem 1.5rem 4rem; text-align: center; }
.eyebrow-top { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--rose); display: block; margin-bottom: 1rem; }
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); line-height: 1.15; max-width: 42rem; margin: 0 auto 1.25rem; }
.hero p.sub { max-width: 36rem; margin: 0 auto 2.25rem; color: var(--muted); font-size: 1.1rem; }
.hero .ctas { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-bottom: 2.5rem; }

/* Floating "product panel" -- an abstract, stylized card motif (bars, dots,
   a badge) suggesting the product's data-density without pretending to be
   a literal screenshot. Tilted slightly for a 3D, elevated feel. */
.hero-panel-wrap { display: flex; justify-content: center; padding: 0 1.5rem; }
.hero-panel {
  width: 100%; max-width: 46rem;
  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: 20px;
  padding: 1.75rem 2rem;
  box-shadow: 0 30px 60px -20px rgba(13, 26, 48, 0.25), 0 2px 8px rgba(13,26,48,0.06);
  transform: perspective(1200px) rotateX(4deg);
  transition: transform 0.4s ease;
}
.hero-panel:hover { transform: perspective(1200px) rotateX(1deg) translateY(-4px); }
.hero-panel .panel-row { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; margin-bottom: 1rem; }
.hero-panel .panel-row:last-child { margin-bottom: 0; }
.hero-panel .panel-label { font-size: 0.78rem; color: var(--muted); font-weight: 600; text-align: left; }
.hero-panel .panel-value { font-family: Georgia, serif; font-size: 1.15rem; color: var(--ink); }
.hero-panel .bar-track { flex: 1; height: 8px; border-radius: 999px; background: var(--cream); overflow: hidden; margin: 0 1rem; }
.hero-panel .bar-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--brand), var(--rose)); }
.hero-panel .pill { font-size: 0.72rem; font-weight: 700; padding: 0.25rem 0.7rem; border-radius: 999px; background: rgba(122,47,69,0.1); color: var(--brand); }

/* Real app screenshots, presented in a simple browser-chrome frame so
   they read as "the actual product" rather than a bare cropped image. */
.browser-frame {
  max-width: 62rem; margin: 0 auto;
  background: #fff; border-radius: 14px; overflow: hidden;
  border: 1px solid rgba(255,255,255,0.7);
  box-shadow: 0 40px 70px -25px rgba(13,26,48,0.35), 0 2px 8px rgba(13,26,48,0.08);
  transform: perspective(1400px) rotateX(2deg);
  transition: transform 0.4s ease;
}
.browser-frame:hover { transform: perspective(1400px) rotateX(0.5deg) translateY(-4px); }
.browser-frame .chrome {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.7rem 1rem; background: var(--cream); border-bottom: 1px solid var(--border);
}
.browser-frame .dot { width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--border); }
.browser-frame .url-bar {
  flex: 1; margin-left: 0.5rem; background: #fff; border: 1px solid var(--border); border-radius: 999px;
  padding: 0.3rem 0.9rem; font-size: 0.78rem; color: var(--muted); text-align: center;
}
.browser-frame img { display: block; width: 100%; height: auto; }

/* For cropped, card-level app screenshots (a single chart/panel rather
   than a full page) -- an elevated frame without browser chrome, since
   wrapping an already-bordered card image in a second chrome bar reads
   as redundant. */
.shot-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; max-width: 62rem; margin: 0 auto; }
.shot-grid.cols-3 { grid-template-columns: 1fr 1fr 1fr; max-width: 74rem; }
.shot-frame {
  border-radius: 14px; overflow: hidden; background: #fff;
  box-shadow: 0 24px 48px -20px rgba(13,26,48,0.3), 0 2px 8px rgba(13,26,48,0.06);
  transform: perspective(1400px) rotateX(1.5deg);
  transition: transform 0.35s ease;
}
.shot-frame:hover { transform: perspective(1400px) rotateX(0deg) translateY(-4px); }
.shot-frame img { display: block; width: 100%; height: auto; }
@media (max-width: 720px) {
  .shot-grid, .shot-grid.cols-3 { grid-template-columns: 1fr; }
}

.screenshot-wrap { padding: 0 1.5rem 1rem; }
.screenshot-wrap.mesh { overflow: visible; }
.page-hero h1 { font-size: clamp(2rem, 4.5vw, 2.85rem); max-width: 40rem; margin: 0 0 1rem; }
.page-hero p.sub { max-width: 38rem; color: var(--muted); font-size: 1.08rem; margin: 0 0 1.75rem; }

.protocol-strip { display: flex; justify-content: center; gap: 2.5rem; flex-wrap: wrap; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.protocol-strip span { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; color: var(--muted); text-transform: uppercase; }

.section-head { text-align: center; max-width: 38rem; margin: 0 auto 3.25rem; }
.section-head.left { text-align: left; margin: 0 0 2.5rem; }
.section-head .eyebrow { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--rose); margin-bottom: 0.5rem; display: block; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.25rem); }
.section-head p { color: var(--muted); margin-top: 0.85rem; font-size: 1.02rem; }

.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
.value-grid .num {
  width: 2.75rem; height: 2.75rem; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-family: Georgia, serif; font-size: 1.15rem; font-weight: 700; color: var(--cream); margin-bottom: 1rem;
  background: linear-gradient(145deg, var(--rose), var(--brand));
  box-shadow: 0 10px 20px -8px rgba(122,47,69,0.5), inset 0 1px 1px rgba(255,255,255,0.4);
}
.value-grid h3 { font-size: 1.15rem; margin-bottom: 0.6rem; }
.value-grid p { color: var(--muted); font-size: 0.96rem; margin: 0; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.75rem; perspective: 1000px; }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.7);
  border-radius: 14px;
  padding: 1.75rem; text-align: left;
  box-shadow: 0 16px 32px -18px rgba(13,26,48,0.18), 0 1px 2px rgba(13,26,48,0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover {
  transform: translateY(-4px) rotateX(2deg);
  box-shadow: 0 26px 40px -18px rgba(13,26,48,0.22), 0 2px 4px rgba(13,26,48,0.06);
}
section.alt .card { background: rgba(255,255,255,0.85); }
section.dark .card { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.14); box-shadow: 0 16px 32px -18px rgba(0,0,0,0.4); }
.card .icon-badge { margin-bottom: 1rem; }
.card h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.card p { color: var(--muted); font-size: 0.94rem; margin: 0; }
section.dark .card p { color: #b7c0cc; }
.card .tag { display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--rose); margin-bottom: 0.6rem; }
/* Same .card look, but as a real link (the Solutions overview's 14 items
   each go to their own page) -- resets the anchor defaults a plain div
   never needed, adds the same "Learn more" arrow convention .tile uses. */
a.card { display: block; text-decoration: none; color: inherit; }
a.card .arrow { color: var(--brand); font-weight: 600; font-size: 0.85rem; margin-top: 0.85rem; display: inline-block; }

.icon-badge {
  width: 2.75rem; height: 2.75rem; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(145deg, #ffffff, var(--cream));
  box-shadow: 0 10px 18px -10px rgba(122,47,69,0.35), inset 0 1px 1px rgba(255,255,255,0.8), inset 0 -1px 1px rgba(122,47,69,0.08);
  color: var(--brand);
}
.icon-badge svg { width: 1.4rem; height: 1.4rem; }
section.dark .icon-badge { background: linear-gradient(145deg, rgba(255,255,255,0.14), rgba(255,255,255,0.04)); color: var(--rose); }

.platform-nav-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; perspective: 1000px; }
.platform-nav-grid a.tile {
  display: block; text-decoration: none;
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.7);
  border-radius: 14px; padding: 1.75rem;
  box-shadow: 0 16px 32px -18px rgba(13,26,48,0.18), 0 1px 2px rgba(13,26,48,0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.platform-nav-grid a.tile:hover {
  border-color: rgba(122,47,69,0.35);
  transform: translateY(-5px) rotateX(2deg);
  box-shadow: 0 28px 42px -18px rgba(13,26,48,0.24), 0 2px 4px rgba(13,26,48,0.06);
}
.platform-nav-grid a.tile h3 { font-size: 1.05rem; margin-bottom: 0.5rem; color: var(--ink); }
.platform-nav-grid a.tile p { color: var(--muted); font-size: 0.92rem; margin: 0; }
.platform-nav-grid a.tile .arrow { color: var(--brand); font-weight: 600; font-size: 0.85rem; margin-top: 0.85rem; display: inline-block; }
/* Date next to a tile's .tag -- only the From Ledgestra news tiles need a
   visible date, so this stays scoped rather than widening .tag itself. */
.platform-nav-grid a.tile .tag + time { font-size: 0.78rem; color: var(--muted); margin-left: 0.5rem; }

.capabilities-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem 3rem; max-width: 46rem; margin: 0 auto; }
.capabilities-list li { font-size: 0.98rem; padding-left: 1.5rem; position: relative; }
.capabilities-list li::before { content: "—"; position: absolute; left: 0; color: var(--rose); }

.steps { counter-reset: step; list-style: none; padding: 0; max-width: 40rem; margin: 0 auto; }
.steps li { position: relative; padding: 0 0 2rem 3rem; border-left: 2px solid var(--border); margin-left: 1rem; }
.steps li:last-child { border-color: transparent; padding-bottom: 0; }
.steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: -1.1rem; top: 0; width: 2.2rem; height: 2.2rem;
  background: linear-gradient(145deg, var(--rose), var(--brand)); color: var(--cream); border-radius: 50%;
  box-shadow: 0 10px 18px -8px rgba(122,47,69,0.5), inset 0 1px 1px rgba(255,255,255,0.35);
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.9rem;
}
.steps h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.steps p { color: var(--muted); font-size: 0.95rem; margin: 0; }

.about-body { max-width: 42rem; margin: 0 auto; text-align: center; color: var(--muted); font-size: 1.05rem; }

.photo-frame {
  border-radius: 18px; overflow: hidden;
  box-shadow: 0 24px 48px -20px rgba(13,26,48,0.3);
}
.photo-frame img { display: block; width: 100%; height: 100%; object-fit: cover; }
.about-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; max-width: 50rem; margin: 3rem auto 0; }
.about-photos .photo-frame { aspect-ratio: 4 / 3; }
@media (max-width: 720px) {
  .about-photos { grid-template-columns: 1fr; }
}

/* Interactive 3D architecture diagram -- pure CSS 3D transforms, no
   WebGL/Three.js dependency. Drag (or auto-rotate when idle) spins the
   stack around the Y axis via JS updating one custom property. */
.scene-3d-wrap { display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.scene-3d {
  width: 100%; max-width: 40rem; height: 26rem;
  perspective: 1400px;
  cursor: grab;
  user-select: none; touch-action: none;
}
.scene-3d:active { cursor: grabbing; }
.scene-inner {
  width: 100%; height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transform: rotateX(-14deg) rotateY(var(--scene-rotate, 0deg));
}
.layer-card {
  position: absolute; left: 50%; top: 50%;
  width: 20rem; height: 6.5rem;
  margin-left: -10rem; margin-top: -3.25rem;
  transform-style: preserve-3d;
}
.card-face {
  position: absolute; inset: 0;
  border-radius: 16px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  padding: 1rem;
  backface-visibility: hidden;
  box-shadow: 0 20px 40px -15px rgba(13,26,48,0.4);
  border: 1px solid rgba(255,255,255,0.5);
}
.card-face.card-back { transform: rotateY(180deg); }
.card-face .layer-label { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 0.35rem; }
.card-face h4 { font-family: Georgia, serif; font-size: 1.15rem; margin: 0 0 0.3rem; }
.card-face p { font-size: 0.78rem; margin: 0; opacity: 0.85; }
.layer-banks { transform: translateZ(7rem) translateY(-7rem); }
.layer-core { transform: translateZ(0) translateY(0); z-index: 2; }
.layer-systems { transform: translateZ(-7rem) translateY(7rem); }
.layer-banks .card-face, .layer-systems .card-face { background: linear-gradient(145deg, #f0e2e6, #e6ccd4); color: var(--brand-dark); }
.layer-core .card-face { background: linear-gradient(145deg, var(--brand), var(--brand-dark)); color: var(--cream); }
.scene-connector {
  position: absolute; left: 50%; top: 50%; width: 2px; height: 5.2rem;
  background: repeating-linear-gradient(180deg, var(--rose) 0 4px, transparent 4px 8px);
  transform-style: preserve-3d;
}
.scene-connector.top { transform: translateX(-1px) translateY(-6.5rem) translateZ(3.5rem) rotateX(90deg); }
.scene-connector.bottom { transform: translateX(-1px) translateY(1.3rem) translateZ(-3.5rem) rotateX(90deg); }
.scene-hint { font-size: 0.8rem; color: var(--muted); }
.scene-hint svg { width: 0.9rem; height: 0.9rem; vertical-align: -0.1rem; }
@media (prefers-reduced-motion: reduce) {
  .scene-inner { transition: none !important; }
}
@media (max-width: 640px) {
  .scene-3d { height: 22rem; }
  .layer-card { width: 15rem; margin-left: -7.5rem; height: 5.5rem; }
}

/* Solutions page tree diagram -- same card-face system as the Technology
   page's stacked scene, arranged as a root + two branches instead of a
   stack. Connector length/position is solved geometrically so each line
   starts and ends exactly at the card's edge (not its center) -- root and
   branches sit 2x the card's half-height apart, so every connector crosses
   the near card's border at exactly a quarter of the way along its length,
   the same fraction at both ends. */
.tree-3d-wrap { display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.tree-3d {
  width: 100%; max-width: 40rem; height: 24rem;
  perspective: 1400px;
  cursor: grab;
  user-select: none; touch-action: none;
}
.tree-3d:active { cursor: grabbing; }
.tree-inner {
  width: 100%; height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transform: rotateX(-12deg) rotateY(var(--tree-rotate, 0deg));
}
.tree-node {
  position: absolute; left: 50%; top: 50%;
  width: 16rem; height: 6rem;
  margin-left: -8rem; margin-top: -3rem;
  transform-style: preserve-3d;
}
.tree-root { transform: translateY(-6rem); z-index: 2; }
.tree-erp { transform: translateX(-9rem) translateY(6rem) translateZ(3rem); }
.tree-banks { transform: translateX(9rem) translateY(6rem) translateZ(-3rem); }
.tree-root .card-face { background: linear-gradient(145deg, var(--brand), var(--brand-dark)); color: var(--cream); }
.tree-erp .card-face, .tree-banks .card-face { background: linear-gradient(145deg, #f0e2e6, #e6ccd4); color: var(--brand-dark); }
.tree-connector {
  position: absolute; left: 50%; top: 50%; width: 2px; height: 7.5rem;
  background: repeating-linear-gradient(180deg, var(--rose) 0 4px, transparent 4px 8px);
  transform-style: preserve-3d;
  transform-origin: top center;
}
.tree-connector.to-erp { transform: translateY(-3rem) translateX(-2.25rem) translateZ(1.5rem) rotate(36.87deg); }
.tree-connector.to-banks { transform: translateY(-3rem) translateX(2.25rem) translateZ(-1.5rem) rotate(-36.87deg); }
@media (max-width: 640px) {
  .tree-3d { height: 20rem; }
  .tree-node { width: 12rem; height: 5.5rem; margin-left: -6rem; margin-top: -2.75rem; }
  .tree-root { transform: translateY(-5.5rem); }
  .tree-erp { transform: translateX(-5.5rem) translateY(5.5rem) translateZ(3rem); }
  .tree-banks { transform: translateX(5.5rem) translateY(5.5rem) translateZ(-3rem); }
  .tree-connector { height: 6.15rem; }
  .tree-connector.to-erp { transform: translateY(-2.75rem) translateX(-1.375rem) translateZ(1.5rem) rotate(26.57deg); }
  .tree-connector.to-banks { transform: translateY(-2.75rem) translateX(1.375rem) translateZ(-1.5rem) rotate(-26.57deg); }
}

/* Interactive sample-data dashboard (Treasury Management solutions page) --
   real hover-driven SVG bar/line charts built at runtime from JS data, not
   a static screenshot. All figures are illustrative placeholders. */
.demo-dashboard {
  position: relative;
  border: 1px solid var(--border); border-radius: 20px; background: #fff;
  padding: 1.5rem; box-shadow: 0 30px 60px -30px rgba(13,26,48,0.18);
}
.demo-badge {
  display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--brand);
  background: rgba(122,47,69,0.08); padding: 0.3rem 0.7rem; border-radius: 999px; margin-bottom: 1rem;
}
.demo-badge .dot { width: 0.4rem; height: 0.4rem; border-radius: 50%; background: #2fa86b; }
.demo-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.7rem; margin-bottom: 0.9rem; }
.demo-stat { border: 1px solid var(--border); border-radius: 12px; padding: 0.85rem 1rem; background: var(--cream); }
.demo-stat .label { font-size: 0.65rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.demo-stat .value { font-family: 'Fraunces', Georgia, 'Times New Roman', serif; font-size: 1.2rem; color: var(--ink); margin-top: 0.3rem; }
.demo-stat .value.pos { color: #1a7f4b; }
.demo-stat .value.warn { color: #b8791f; }
.demo-stat .value.neg { color: #b23b3b; }
.demo-charts-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; margin-top: 0.9rem; }
.demo-charts-row.cols-3 { grid-template-columns: repeat(3, 1fr); margin-top: 0; }
.demo-dashboard.no-stats { padding: 1.1rem; }
.demo-chart-card { border: 1px solid var(--border); border-radius: 14px; padding: 1.1rem 1.2rem 0.6rem; background: #fff; position: relative; }
.demo-chart-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.6rem; gap: 0.5rem; }
.demo-chart-head h4 { font-size: 0.85rem; font-family: 'Geist', Arial, Helvetica, sans-serif; color: var(--ink); margin: 0; }
.demo-select {
  font-size: 0.72rem; border: 1px solid var(--border); border-radius: 8px; padding: 0.25rem 0.5rem;
  color: var(--muted); background: var(--cream); font-family: inherit; cursor: pointer;
}
.demo-chart-card svg { width: 100%; height: auto; display: block; overflow: visible; }
.demo-bar { fill: var(--brand); opacity: 1; transition: opacity 0.15s ease; cursor: pointer; }
.demo-bar.dim { opacity: 0.25; }
.demo-axis-label { fill: var(--muted); font-size: 10px; font-family: 'Geist', Arial, Helvetica, sans-serif; }
.demo-gridline { stroke: var(--border); stroke-width: 1; }
.demo-line-path { fill: none; stroke: var(--brand); stroke-width: 2.5; }
.demo-line-path.dashed { stroke: var(--rose); stroke-dasharray: 5 4; }
.demo-line-dot { fill: var(--brand); stroke: #fff; stroke-width: 1.5; cursor: pointer; }
.demo-line-dot.rose { fill: var(--rose); }
.demo-legend { display: flex; gap: 1rem; font-size: 0.72rem; color: var(--muted); margin-bottom: 0.4rem; }
.demo-legend span { display: inline-flex; align-items: center; gap: 0.35rem; }
.demo-legend .swatch { width: 0.6rem; height: 0.6rem; border-radius: 2px; background: var(--brand); }
.demo-legend .swatch.rose { background: var(--rose); }
.demo-tooltip {
  position: absolute; pointer-events: none; z-index: 5;
  background: var(--ink); color: var(--cream); font-size: 0.72rem; line-height: 1.35;
  padding: 0.4rem 0.6rem; border-radius: 8px; box-shadow: 0 12px 24px -10px rgba(13,26,48,0.4);
  opacity: 0; transform: translate(-50%, -110%); transition: opacity 0.12s ease;
  white-space: nowrap;
}
.demo-tooltip.visible { opacity: 1; }
@media (max-width: 820px) {
  .demo-stats { grid-template-columns: repeat(2, 1fr); }
  .demo-charts-row, .demo-charts-row.cols-3 { grid-template-columns: 1fr; }
}

/* Flat radial hub diagram (Solutions page) -- a static, hover-interactive
   wheel rather than a rotating 3D scene: Ledgestra at the center, the five
   solutions as clickable wedges around it. Wedge and label-arc geometry is
   precomputed (not hand-guessed) so the curved text and wedge borders line
   up exactly; see gen_radial2.js in the working notes for the derivation. */
.radial-wrap { display: flex; justify-content: center; }
.radial-diagram { width: 100%; max-width: 34rem; height: auto; }
.radial-wedge { fill: #182747; transition: fill 0.2s ease; }
.radial-wedge.alt { fill: #40233a; }
.radial-wedge-link:hover .radial-wedge, .radial-wedge-link:focus .radial-wedge { fill: var(--brand); }
.radial-wedge-link { cursor: pointer; }
.radial-label {
  fill: var(--cream); font-size: 12.5px; font-weight: 700; letter-spacing: 0.09em;
  font-family: 'Geist', Arial, Helvetica, sans-serif;
}
.radial-bullet {
  fill: #aab3c4; font-size: 12.5px;
  font-family: 'Geist', Arial, Helvetica, sans-serif;
  transition: fill 0.2s ease;
}
.radial-wedge-link:hover .radial-bullet, .radial-wedge-link:focus .radial-bullet { fill: var(--cream); }
.radial-hub-title { fill: var(--cream); font-family: 'Fraunces', Georgia, 'Times New Roman', serif; font-size: 27px; }
.radial-hub-sub { fill: rgba(246,243,236,0.75); font-size: 12px; font-family: 'Geist', Arial, Helvetica, sans-serif; }
@media (prefers-reduced-motion: reduce) {
  .radial-wedge, .radial-bullet { transition: none; }
}

.faq-panels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; align-items: start; }
.faq-panel {
  background: rgba(255,255,255,0.75); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.7); border-radius: 16px; padding: 1.5rem;
  box-shadow: 0 16px 32px -18px rgba(13,26,48,0.18);
}
.faq-panel .panel-head { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 1.25rem; }
.faq-panel .panel-head .icon-badge { margin-bottom: 0; }
.faq-panel .panel-head h3 { font-size: 1.05rem; }
.faq-panel details {
  border-bottom: 1px solid var(--border); padding: 0.85rem 0;
}
.faq-panel details:last-of-type { border-bottom: none; padding-bottom: 0; }
.faq-panel details:first-of-type { padding-top: 0; }
.faq-panel summary {
  cursor: pointer; font-size: 0.92rem; font-weight: 600; color: var(--ink);
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 0.5rem;
}
.faq-panel summary::-webkit-details-marker { display: none; }
.faq-panel summary::after {
  content: "+"; color: var(--brand); font-size: 1.1rem; font-weight: 400; flex-shrink: 0;
  transition: transform 0.2s ease;
}
.faq-panel details[open] summary::after { transform: rotate(45deg); }
.faq-panel details p { font-size: 0.87rem; color: var(--muted); margin: 0.6rem 0 0; line-height: 1.6; }
@media (max-width: 900px) {
  .faq-panels { grid-template-columns: 1fr; }
}

.office-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: 1.5rem; max-width: 68rem; margin: 0 auto; }
.office-grid .card { text-align: center; }
.office-grid .icon-badge { margin: 0 auto 1rem; }
.office-grid h3 { font-size: 1rem; margin-bottom: 0.5rem; }
.office-grid p { color: var(--muted); font-size: 0.92rem; margin: 0; line-height: 1.6; }
.office-grid a { color: var(--brand); font-weight: 600; text-decoration: none; }
.office-grid a:hover { text-decoration: underline; }

.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: center; max-width: 62rem; margin: 0 auto; }
.contact-layout .photo-frame { aspect-ratio: 3 / 4; }
@media (max-width: 820px) {
  .contact-layout { grid-template-columns: 1fr; }
  .contact-layout .photo-frame { display: none; }
}

.cta-final { text-align: center; }
.cta-final h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); margin-bottom: 1.25rem; }
.cta-final .ctas { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
/* Previous/next between news posts -- same .btn look, laid out as a pager. */
.news-pager { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
section.dark .btn-secondary { border-color: rgba(255,255,255,0.25); color: var(--cream); }
section.dark .btn-secondary:hover { border-color: var(--rose); color: var(--rose); }

.contact-box {
  max-width: 34rem; margin: 0 auto; text-align: center;
  background: rgba(255,255,255,0.75); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.7); border-radius: 16px; padding: 2.5rem;
  box-shadow: 0 20px 40px -20px rgba(13,26,48,0.2);
}
.contact-box p { color: var(--muted); margin-bottom: 1.75rem; }
.contact-box a.email { font-weight: 600; color: var(--brand); text-decoration: none; }

.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; max-width: 50rem; margin: 0 auto; }

.contact-form {
  max-width: 34rem; margin: 0 auto; text-align: left;
  background: rgba(255,255,255,0.75); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.7); border-radius: 16px; padding: 2.5rem;
  box-shadow: 0 20px 40px -20px rgba(13,26,48,0.2);
}
.contact-form .field { margin-bottom: 1.25rem; }
.contact-form .field.split { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.contact-form label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 0.4rem; color: var(--ink); }
.contact-form input, .contact-form textarea {
  width: 100%; font-family: inherit; font-size: 0.95rem; color: var(--ink);
  background: #fff; border: 1px solid var(--border); border-radius: 10px;
  padding: 0.7rem 0.9rem; transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(122,47,69,0.12);
}
.contact-form textarea { resize: vertical; min-height: 7rem; }
.contact-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-form button[type="submit"] {
  width: 100%; border: none; cursor: pointer; font-family: inherit;
}
.contact-form button[type="submit"]:disabled { opacity: 0.6; cursor: default; }
.contact-form .form-note { font-size: 0.82rem; color: var(--muted); margin-top: 1rem; text-align: center; }
.contact-form .form-status { font-size: 0.88rem; margin-top: 1rem; text-align: center; }
.contact-form .form-status.success { color: #2f7a4d; }
.contact-form .form-status.error { color: #b3323a; }

.contact-alt { text-align: center; margin-top: 2.5rem; color: var(--muted); font-size: 0.92rem; }
.contact-alt a { color: var(--brand); font-weight: 600; text-decoration: none; }
.contact-alt a:hover { text-decoration: underline; }

@media (max-width: 560px) {
  .contact-form .field.split { grid-template-columns: 1fr; }
}

footer.site-footer { border-top: 1px solid var(--border); padding: 2.5rem 0; }
footer.site-footer .wrap { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
footer.site-footer p { color: var(--muted); font-size: 0.85rem; margin: 0; }
footer.site-footer .foot-links { display: flex; flex-wrap: wrap; gap: 0.6rem 1.5rem; }
footer.site-footer .foot-links a { font-size: 0.85rem; color: var(--muted); text-decoration: none; }
footer.site-footer .foot-links a:hover { color: var(--brand); }
footer.site-footer .foot-contact a { color: var(--muted); text-decoration: none; }
footer.site-footer .foot-contact a:hover { color: var(--brand); }

@media (max-width: 820px) {
  footer.site-footer .wrap { flex-direction: column; align-items: flex-start; }
  .hero { padding-top: 3.5rem; padding-bottom: 3rem; }
  .capabilities-list { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }

  /* Every "bubble" grid (tiles, cards, the homepage value props) becomes
     a swipeable horizontal carousel instead of a long vertical stack --
     one card at a time, snapping into place, with the next one peeking
     in from the edge as a hint there's more. Bleeds to the viewport
     edges (negative margin matching .wrap's own side padding) so the
     first/last card's shadow isn't clipped and there's real edge-to-edge
     swipe room, while cards themselves still align with the page's
     normal left margin via matching padding. */
  .grid, .platform-nav-grid, .value-grid {
    display: flex;
    overflow-x: auto;
    overflow-y: visible;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 1rem;
    margin: 0 -1.5rem;
    padding: 0.3rem 1.5rem 1.5rem;
  }
  .grid::-webkit-scrollbar, .platform-nav-grid::-webkit-scrollbar, .value-grid::-webkit-scrollbar { display: none; }
  .grid > *, .platform-nav-grid > *, .value-grid > * {
    flex: 0 0 82%;
    scroll-snap-align: center;
  }
  /* The desktop "centre an incomplete last row" trick only applies at
     821px+ (see the min-width:821px block below) -- nothing to undo here. */
}

/* ==========================================================================
   2026-09-22 design refresh — applies site-wide (homepage redesign carried to
   every page through this stylesheet + _partials/footer.html)
   ========================================================================== */

/* Travelling page glow: one soft rose light + a trailing burgundy light that
   follow the cursor, and float top-to-bottom through the viewport when idle.
   Fixed + overflow:hidden so it can never widen the page on any device.
   It sits ABOVE section backgrounds but BELOW all content (see z-index rules
   below), so it never covers text. Script lives in _partials/footer.html. */
.page-glow { position: fixed; inset: 0; z-index: 1; overflow: hidden; pointer-events: none; }
.page-glow > div { position: absolute; top: 0; left: 0; aspect-ratio: 1; border-radius: 50%; filter: blur(70px); will-change: transform; }
.page-glow-a { width: 680px; max-width: 90vw; background: radial-gradient(circle, rgba(201,115,140,0.26), rgba(201,115,140,0) 68%); transform: translate3d(30vw, 10vh, 0); }
.page-glow-b { width: 460px; max-width: 70vw; background: radial-gradient(circle, rgba(122,47,69,0.14), rgba(122,47,69,0) 68%); transform: translate3d(45vw, 25vh, 0); }

/* Content layers above the glow; section backgrounds stay below it. */
main > section > :not(.hero-parallax),
footer.site-footer > * { position: relative; z-index: 2; }

/* The old per-section blobs were clipped at section edges (visible hard
   lines under the glow) -- the page glow replaces them everywhere. */
.mesh { isolation: auto; }
.mesh::before, .mesh::after { content: none; }
.hero-parallax { display: none; }

/* Soft section edges: cream bands fade into the page instead of starting and
   ending on a hard line. Dark CTA bands are now light, matching the homepage. */
section.alt,
section.dark {
  background: linear-gradient(180deg, var(--background) 0, var(--cream) min(8rem, 30%), var(--cream) calc(100% - min(8rem, 30%)), var(--background) 100%);
  color: var(--ink);
}
section.dark h2, section.dark h3 { color: var(--ink); }
section.dark p { color: var(--muted); }
section.dark .card { background: rgba(255,255,255,0.85); border-color: rgba(255,255,255,0.7); box-shadow: 0 16px 32px -18px rgba(13,26,48,0.18), 0 1px 2px rgba(13,26,48,0.04); }
section.dark .card p { color: var(--muted); }
section.dark .icon-badge { background: linear-gradient(145deg, #ffffff, var(--cream)); color: var(--brand); }
section.dark .btn-secondary { border-color: var(--border); color: var(--ink); }

/* Gradient accent: same flowing burgundy-to-rose on every highlighted word;
   each wrapped line gets the full sweep. */
.gradient-text { -webkit-box-decoration-break: clone; box-decoration-break: clone; }

/* Wider homepage headline: 2-3 lines instead of 4. */
.hero h1 { max-width: 67rem; }

/* Outline buttons: stronger hover + visible keyboard focus. */
.btn-secondary:hover { background: #fff; box-shadow: 0 12px 24px -12px rgba(122,47,69,0.45); }
.btn:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
.section-cta { display: flex; justify-content: center; margin-top: 2.75rem; }

/* Homepage dashboard: centred chart cards. */
.hero .demo-chart-card { text-align: center; }
.hero .demo-chart-head { justify-content: center; }
.hero .demo-legend { justify-content: center; }

/* Product tiles: an incomplete last row is centred under the row above. */
@media (min-width: 821px) {
  .platform-nav-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .platform-nav-grid > * { grid-column: span 2; }
  .platform-nav-grid > :nth-child(3n+1):nth-last-child(2) { grid-column: 2 / span 2; }
  .platform-nav-grid > :nth-child(3n+2):last-child { grid-column: 4 / span 2; }
  .platform-nav-grid > :nth-child(3n+1):last-child { grid-column: 3 / span 2; }
}

/* Performance stats (count up on scroll -- script in _partials/footer.html). */
.stat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; max-width: 67rem; margin: 0 auto; }
.stat-card {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0.9rem;
  padding: 2.5rem 2rem 2rem; background: rgba(255,255,255,0.75); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.7); border-radius: 14px;
  box-shadow: 0 16px 32px -18px rgba(13,26,48,0.18), 0 1px 2px rgba(13,26,48,0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.stat-card:hover { transform: translateY(-6px); border-color: rgba(122,47,69,0.35); box-shadow: 0 28px 42px -18px rgba(122,47,69,0.28), 0 2px 4px rgba(13,26,48,0.06); }
.stat-num { font-family: 'Fraunces', Georgia, 'Times New Roman', serif; font-size: clamp(2.6rem, 5vw, 3.75rem); font-weight: 700; line-height: 1.05; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.stat-bar { width: 4rem; height: 4px; border-radius: 999px; background: var(--cream); overflow: hidden; }
.stat-bar > span { display: block; width: 0; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--brand), var(--rose)); }
.stat-label { color: var(--muted); font-size: 0.96rem; max-width: 16rem; }
.stat-card .stat-num, .stat-card .stat-label { opacity: 0; transform: translateY(28px); transition: opacity 0.2s linear; }
.stat-card.counted .stat-num, .stat-card.counted .stat-label { opacity: 1; transform: none; }
@media (max-width: 820px) { .stat-grid { grid-template-columns: 1fr; } }

/* Footer: multi-column, with Products + Solutions. */
footer.site-footer { border-top: 0; padding: 3.5rem 0 2.5rem; }
footer.site-footer .wrap { display: block; }
.foot-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 3rem; }
.foot-cols { display: grid; grid-template-columns: repeat(5, max-content); gap: 0 2.75rem; }
.foot-col { display: flex; flex-direction: column; gap: 0.6rem; }
.foot-col h4 { font-family: 'Geist', Arial, Helvetica, sans-serif; font-size: 0.9rem; font-weight: 600; color: var(--ink); margin: 0 0 0.2rem; }
.foot-col a { font-size: 0.88rem; color: var(--muted); text-decoration: none; }
.foot-col a:hover { color: var(--brand); }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
footer.site-footer .foot-bottom p { font-size: 0.82rem; }
@media (max-width: 1080px) { .foot-top { flex-direction: column; } }
@media (max-width: 820px) {
  footer.site-footer .wrap { display: block; }
  .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 1.5rem; }
  .foot-bottom { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  .stat-card:hover { transform: none; }
  .stat-card .stat-num, .stat-card .stat-label { opacity: 1; transform: none; }
}

/* ---------- News & Insights articles ----------
   Category covers: each topic gets its own on-brand gradient plus a
   faint ledger-grid texture and a large line icon, so cards read as a
   set without needing stock photography. */
.post-cover {
  --c1: var(--ink); --c2: var(--brand);
  position: relative; overflow: hidden; isolation: isolate;
  aspect-ratio: 16 / 8; border-radius: 12px 12px 0 0;
  background: linear-gradient(135deg, var(--c1), var(--c2));
  color: rgba(246,243,236,0.92);
}
.post-cover::before { /* ledger grid */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0.16;
  background-image:
    repeating-linear-gradient(0deg, rgba(255,255,255,0.5) 0 1px, transparent 1px 22px),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.35) 0 1px, transparent 1px 22px);
  -webkit-mask-image: linear-gradient(120deg, transparent 10%, #000 70%); mask-image: linear-gradient(120deg, transparent 10%, #000 70%);
}
.post-cover::after { /* soft glow */
  content: ""; position: absolute; z-index: -1; width: 70%; aspect-ratio: 1; right: -18%; top: -30%;
  border-radius: 50%; background: radial-gradient(circle, rgba(201,115,140,0.55), transparent 65%);
}
.post-cover[data-cat="industry"]   { --c1: #0d1a30; --c2: #7a2f45; }
.post-cover[data-cat="accounting"] { --c1: #5b2334; --c2: #9b4460; }
.post-cover[data-cat="reporting"]  { --c1: #0d1a30; --c2: #2b4468; }
.post-cover[data-cat="inventory"]  { --c1: #7a2f45; --c2: #c9738c; }
.post-cover[data-cat="tax"]        { --c1: #2a1520; --c2: #5b2334; }
.post-cover[data-cat="security"]   { --c1: #0b1526; --c2: #1f3252; }
.post-cover-pill {
  position: absolute; left: 1rem; top: 1rem; font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase; padding: 0.3rem 0.65rem; border-radius: 999px;
  background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.22); backdrop-filter: blur(4px);
}
.post-cover-icon { position: absolute; right: 1.1rem; bottom: 0.9rem; width: 34%; max-width: 6.5rem; transition: transform 0.35s ease; }
.post-cover-icon svg { display: block; width: 100%; height: auto; }

/* Cards */
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
a.post-card {
  display: flex; flex-direction: column; text-decoration: none; color: var(--ink);
  background: #fff; border: 1px solid var(--border); border-radius: 13px;
  box-shadow: 0 16px 32px -22px rgba(13,26,48,0.22);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
a.post-card[hidden] { display: none; }
a.post-card:hover { transform: translateY(-5px); border-color: rgba(122,47,69,0.3); box-shadow: 0 28px 44px -24px rgba(13,26,48,0.32); }
a.post-card:hover .post-cover-icon { transform: scale(1.08) rotate(-4deg); }
a.post-card:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
.post-card-body { display: flex; flex-direction: column; flex: 1; padding: 1.25rem 1.35rem 1.4rem; }
a.post-card h3 { font-size: 1.1rem; line-height: 1.35; margin: 0 0 0.55rem; transition: color 0.2s ease; }
a.post-card:hover h3 { color: var(--brand); }
a.post-card p { color: var(--muted); font-size: 0.92rem; margin: 0 0 1.1rem; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
a.post-card .arrow { color: var(--brand); font-weight: 600; font-size: 0.85rem; }
.post-meta { display: flex; align-items: center; gap: 0.35rem; flex-wrap: wrap; font-size: 0.78rem; color: var(--muted); margin-bottom: 0.55rem; }
.post-flag { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--cream); background: var(--brand); padding: 0.18rem 0.5rem; border-radius: 999px; margin-right: 0.25rem; }

/* Featured (newest) card spans the row, cover on the left */
.post-list:not(.filtered) a.post-card.featured { grid-column: 1 / -1; flex-direction: row; }
.post-list:not(.filtered) a.post-card.featured .post-cover { aspect-ratio: auto; flex: 0 0 46%; min-height: 17rem; border-radius: 12px 0 0 12px; }
.post-list:not(.filtered) a.post-card.featured .post-card-body { padding: 2.1rem 2.25rem; justify-content: center; }
.post-list:not(.filtered) a.post-card.featured h3 { font-size: clamp(1.35rem, 2.3vw, 1.75rem); line-height: 1.25; }
.post-list:not(.filtered) a.post-card.featured p { font-size: 1rem; -webkit-line-clamp: 4; flex: 0 0 auto; }
.post-list:not(.filtered) a.post-card.featured .post-cover-icon { max-width: 9rem; width: 30%; }

/* Topic filters */
.post-filters { display: none; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin: -1.5rem auto 2.25rem; }
html.js .post-filters { display: flex; }
.post-chip {
  font: inherit; font-size: 0.86rem; font-weight: 600; color: var(--ink); cursor: pointer;
  padding: 0.5rem 0.95rem; border-radius: 999px; border: 1px solid var(--border); background: #fff;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.post-chip span { font-weight: 500; color: var(--muted); margin-left: 0.2rem; }
.post-chip:hover { border-color: var(--brand); color: var(--brand); }
.post-chip[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: var(--cream); }
.post-chip[aria-pressed="true"] span { color: rgba(246,243,236,0.75); }
.post-chip:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.post-empty { text-align: center; color: var(--muted); }

/* ---------- Article page ---------- */
.read-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 40; pointer-events: none; }
.read-progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), var(--rose)); transform-origin: 0 50%; transform: scaleX(0); }
.post-hero { padding-bottom: 2.5rem; }
.post-hero h1 { max-width: 48rem; }
.post-hero .sub { max-width: 44rem; }
.post-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 0.45rem; font-size: 0.8rem; font-weight: 600; margin-bottom: 1.1rem; }
.post-crumbs a { color: var(--muted); text-decoration: none; }
.post-crumbs a:last-child { color: var(--rose); text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.74rem; }
.post-crumbs a:hover { color: var(--brand); }
.post-crumbs span { color: var(--border); }
.post-byline { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 2rem; }
.post-byline img { border-radius: 10px; background: #fff; border: 1px solid var(--border); padding: 4px; }
.post-byline strong { display: block; font-size: 0.9rem; color: var(--ink); }
.post-byline span { font-size: 0.82rem; color: var(--muted); }
.post-cover.post-cover-hero { aspect-ratio: auto; height: clamp(9rem, 22vw, 15rem); border-radius: 16px; box-shadow: 0 30px 60px -34px rgba(13,26,48,0.5); }
.post-cover-hero .post-cover-pill { left: 1.5rem; top: 1.4rem; font-size: 0.75rem; }
.post-cover-hero .post-cover-icon { max-width: 9rem; width: 22%; right: 2rem; bottom: 1.2rem; }

.post-section { padding: 1rem 0 4.5rem; }
.post-layout { display: grid; grid-template-columns: 15rem minmax(0, 44rem); justify-content: center; gap: 3.5rem; align-items: start; }
.post-aside { position: sticky; top: 6rem; display: flex; flex-direction: column; gap: 1.5rem; }
.post-toc summary { list-style: none; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--rose); margin-bottom: 0.75rem; cursor: default; }
.post-toc summary::-webkit-details-marker { display: none; }
.post-toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--border); }
.post-toc li a { display: block; font-size: 0.86rem; line-height: 1.4; color: var(--muted); text-decoration: none; padding: 0.4rem 0 0.4rem 0.9rem; margin-left: -2px; border-left: 2px solid transparent; transition: color 0.15s ease, border-color 0.15s ease; }
.post-toc li a:hover { color: var(--ink); }
.post-toc li a.active { color: var(--brand); border-left-color: var(--brand); font-weight: 600; }
.post-share { display: flex; align-items: center; gap: 0.5rem; padding-top: 1.25rem; border-top: 1px solid var(--border); }
.post-share > span { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); margin-right: 0.25rem; }
.post-share a, .post-copy {
  position: relative; display: inline-flex; align-items: center; justify-content: center; width: 2.2rem; height: 2.2rem;
  border-radius: 50%; border: 1px solid var(--border); background: #fff; color: var(--ink); cursor: pointer; padding: 0;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.post-share a:hover, .post-copy:hover { color: var(--brand); border-color: var(--brand); }
.post-share svg { width: 0.95rem; height: 0.95rem; }
.post-copy-done { position: absolute; left: 50%; bottom: calc(100% + 6px); transform: translateX(-50%); font-size: 0.72rem; font-weight: 600; background: var(--ink); color: var(--cream); padding: 0.2rem 0.5rem; border-radius: 6px; opacity: 0; pointer-events: none; transition: opacity 0.15s ease; white-space: nowrap; }
.post-copy.copied .post-copy-done { opacity: 1; }

.post-body { font-size: 1.06rem; line-height: 1.78; color: #27344a; }
.post-body > :first-child { margin-top: 0; }
.post-body p { margin: 0 0 1.2rem; }
.post-body p.lead { font-size: 1.2rem; line-height: 1.7; color: var(--ink); padding-left: 1.1rem; border-left: 3px solid var(--rose); margin-bottom: 1.8rem; }
.post-body h2 { font-size: clamp(1.35rem, 2.4vw, 1.62rem); margin: 2.6rem 0 0.9rem; scroll-margin-top: 6rem; }
.post-body ul { margin: 0 0 1.4rem; padding: 0; list-style: none; }
.post-body li { position: relative; margin-bottom: 0.6rem; padding-left: 1.5rem; }
.post-body li::before { content: ""; position: absolute; left: 0.2rem; top: 0.72em; width: 0.45rem; height: 0.45rem; border-radius: 2px; background: var(--rose); transform: rotate(45deg); }
.post-body strong { color: var(--ink); }
.post-body a { color: var(--brand); text-underline-offset: 3px; }
.post-table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 0.5rem 0 1.6rem; font-size: 0.93rem; line-height: 1.5; background: #fff; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; box-shadow: 0 12px 28px -24px rgba(13,26,48,0.3); }
.post-table th { text-align: left; background: var(--ink); color: var(--cream); font-weight: 600; padding: 0.75rem 1rem; }
.post-table td { padding: 0.7rem 1rem; border-top: 1px solid var(--border); vertical-align: top; }
.post-table tbody tr:nth-child(even) td { background: #fbf9f5; }
.post-table td:first-child { font-weight: 600; color: var(--ink); }
.post-sources { margin-top: 2.5rem; padding: 1.1rem 1.25rem; background: var(--cream); border-radius: 12px; font-size: 0.9rem; }
.post-sources h2 { font-size: 0.8rem; margin: 0 0 0.5rem; font-family: 'Geist', Arial, Helvetica, sans-serif; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.post-sources ul { margin: 0; }
.post-sources li { margin-bottom: 0.25rem; }
.post-author { display: flex; gap: 1rem; align-items: flex-start; margin-top: 3rem; padding: 1.5rem; border: 1px solid var(--border); border-radius: 14px; background: #fff; }
.post-author img { flex-shrink: 0; border-radius: 12px; background: var(--cream); padding: 6px; }
.post-author strong { display: block; color: var(--ink); font-size: 1rem; margin-bottom: 0.25rem; }
.post-author p { font-size: 0.92rem; color: var(--muted); margin: 0 0 0.5rem; line-height: 1.55; }
.post-author a { font-size: 0.88rem; font-weight: 600; text-decoration: none; }

@media (max-width: 980px) {
  .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .post-layout { grid-template-columns: minmax(0, 44rem); gap: 1.5rem; }
  .post-aside { position: static; flex-direction: row; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 1rem; padding: 1rem 1.1rem; background: #fff; border: 1px solid var(--border); border-radius: 12px; }
  .post-toc { flex: 1 1 14rem; }
  .post-toc summary { cursor: pointer; margin: 0; display: flex; align-items: center; gap: 0.4rem; }
  .post-toc summary::after { content: ""; width: 0.45rem; height: 0.45rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform 0.2s ease; }
  .post-toc[open] summary::after { transform: rotate(-135deg) translateY(-1px); }
  .post-toc[open] ol { margin-top: 0.75rem; }
  .post-share { border-top: 0; padding-top: 0; }
}
@media (max-width: 760px) {
  .post-list:not(.filtered) a.post-card.featured { flex-direction: column; }
  .post-list:not(.filtered) a.post-card.featured .post-cover { flex: none; min-height: 0; aspect-ratio: 16 / 8; border-radius: 12px 12px 0 0; }
  .post-list:not(.filtered) a.post-card.featured .post-card-body { padding: 1.25rem 1.35rem 1.4rem; }
}
@media (max-width: 640px) {
  .post-grid { grid-template-columns: 1fr; }
  .post-filters { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; margin: -1.5rem -1.5rem 1.75rem; padding: 0.25rem 1.5rem; scrollbar-width: none; }
  .post-filters::-webkit-scrollbar { display: none; }
  .post-chip { flex-shrink: 0; }
  .post-body { font-size: 1rem; }
  .post-body p.lead { font-size: 1.08rem; }
  .post-table { font-size: 0.84rem; }
  .post-table th, .post-table td { padding: 0.55rem 0.6rem; }
  .post-author { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  a.post-card, .post-cover-icon { transition: none; }
  a.post-card:hover { transform: none; }
  a.post-card:hover .post-cover-icon { transform: none; }
}
.post-hero-ctas { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.post-byline img, .post-author img { object-fit: contain; }
.post-byline img, .post-author img { padding: 0; border: 0; background: none; }

/* Demo-chat widget -- floating bubble bottom-right, every page (round144). */
.chat-widget { position: fixed; right: 1.5rem; bottom: 1.5rem; z-index: 998; font-family: 'Geist', Arial, Helvetica, sans-serif; }
.chat-widget-toggle {
  width: 3.5rem; height: 3.5rem; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--brand); color: #fff; box-shadow: 0 10px 24px -8px rgba(122,47,69,0.55);
  display: flex; align-items: center; justify-content: center; transition: background 0.15s ease, transform 0.15s ease;
}
.chat-widget-toggle:hover { background: var(--brand-dark); transform: translateY(-2px); }
.chat-widget-toggle:focus-visible { outline: 2px solid var(--brand-dark); outline-offset: 3px; }
.chat-widget-toggle svg { width: 1.6rem; height: 1.6rem; }
.chat-widget-toggle .chat-widget-close-icon { display: none; }
.chat-widget.open .chat-widget-chat-icon { display: none; }
.chat-widget.open .chat-widget-close-icon { display: block; }

.chat-widget-panel {
  position: absolute; right: 0; bottom: calc(100% + 0.85rem);
  width: 21rem; max-width: calc(100vw - 2.5rem);
  background: #fff; border-radius: 16px; border: 1px solid var(--border);
  box-shadow: 0 20px 48px -16px rgba(13,26,48,0.28);
  overflow: hidden;
  opacity: 0; visibility: hidden; transform: translateY(0.75rem) scale(0.97);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  transform-origin: bottom right;
}
.chat-widget.open .chat-widget-panel { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }

.chat-widget-header { background: var(--brand); padding: 0.95rem 1.1rem; }
.chat-widget-header h4 { font-family: 'Geist', Arial, Helvetica, sans-serif; font-size: 0.95rem; font-weight: 700; margin: 0; color: #fff; }
.chat-widget-header p { margin: 0.15rem 0 0; font-size: 0.78rem; color: rgba(255,255,255,0.82); }

.chat-widget-body { padding: 1rem 1.1rem 1.1rem; max-height: 26rem; overflow-y: auto; }
.chat-widget-bubble {
  background: var(--cream); border-radius: 12px 12px 12px 3px; padding: 0.7rem 0.85rem;
  font-size: 0.86rem; color: var(--ink); line-height: 1.5; margin-bottom: 1rem;
}
.chat-widget-body .field { margin-bottom: 0.75rem; }
.chat-widget-body label { display: block; font-size: 0.78rem; font-weight: 600; margin-bottom: 0.3rem; color: var(--ink); }
.chat-widget-body input, .chat-widget-body textarea {
  width: 100%; font-family: inherit; font-size: 0.88rem; color: var(--ink);
  background: #fff; border: 1px solid var(--border); border-radius: 9px;
  padding: 0.55rem 0.75rem; transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.chat-widget-body input:focus, .chat-widget-body textarea:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(122,47,69,0.12);
}
.chat-widget-body textarea { resize: vertical; min-height: 4rem; }
.chat-widget-body .field.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.chat-widget-send {
  width: 100%; margin-top: 0.25rem; border: 0; border-radius: 9px; cursor: pointer;
  background: var(--brand); color: #fff; font-family: inherit; font-size: 0.88rem; font-weight: 700;
  padding: 0.65rem 0.9rem; transition: background 0.15s ease;
}
.chat-widget-send:hover { background: var(--brand-dark); }
.chat-widget-send:disabled { opacity: 0.6; cursor: not-allowed; }
.chat-widget-status { font-size: 0.82rem; margin-top: 0.6rem; text-align: center; }
.chat-widget-status.error { color: #b3323a; }
.chat-widget-thanks { text-align: center; padding: 1.5rem 0.5rem 0.5rem; }
.chat-widget-thanks svg { width: 2.25rem; height: 2.25rem; color: #2f7a4d; margin-bottom: 0.6rem; }
.chat-widget-thanks p { margin: 0; font-size: 0.9rem; color: var(--ink); }
.chat-widget-thanks p.muted { margin-top: 0.35rem; font-size: 0.8rem; color: var(--muted); }

@media (max-width: 480px) {
  .chat-widget { right: 1rem; bottom: 1rem; }
  .chat-widget-panel { width: calc(100vw - 2rem); }
}

/* === Live demo tour (/demo/, and the locked teaser on /trial/) === */
.demo-tour-modules { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.demo-tour-chip {
  font-family: inherit; font-size: 0.85rem; font-weight: 600; cursor: pointer;
  padding: 0.5rem 1rem; border-radius: 999px; border: 1px solid var(--border);
  background: #fff; color: var(--muted); transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.demo-tour-chip:hover { border-color: var(--brand); color: var(--brand); }
.demo-tour-chip.active { background: var(--brand); border-color: var(--brand); color: var(--cream); }

.demo-tour-steps { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 2rem; }
.demo-tour-dot {
  width: 2rem; height: 2rem; border-radius: 50%; border: 1px solid var(--border);
  background: #fff; color: var(--muted); font-size: 0.8rem; font-weight: 700; cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.demo-tour-dot:hover { border-color: var(--brand); color: var(--brand); }
.demo-tour-dot.active { background: var(--brand); border-color: var(--brand); color: var(--cream); }
.demo-tour-dot.done { border-color: var(--rose); color: var(--rose); }

.demo-tour-stage { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 860px) {
  .demo-tour-stage { grid-template-columns: 300px 1fr; align-items: start; }
  .demo-tour-text { position: sticky; top: 6.5rem; }
}
.demo-tour-text h2 { font-size: 1.5rem; margin: 0.5rem 0 0.75rem; }
.demo-tour-text p { color: var(--muted); margin: 0 0 1.5rem; }
.demo-tour-nav { display: flex; align-items: center; gap: 1rem; }
.demo-tour-counter { font-size: 0.85rem; color: var(--muted); font-weight: 600; }

.demo-tour-frame {
  border-radius: 14px; overflow: hidden; border: 1px solid var(--border);
  background: #fff; box-shadow: 0 20px 40px -20px rgba(13,26,48,0.25);
}
.demo-tour-frame-bar {
  display: flex; align-items: center; gap: 0.4rem; padding: 0.6rem 0.9rem;
  background: #f1ede4; border-bottom: 1px solid var(--border);
}
.demo-tour-dot3 { width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--border); }
.demo-tour-urlchip {
  margin-left: 0.75rem; font-size: 0.78rem; color: var(--muted);
  background: #fff; border: 1px solid var(--border); border-radius: 999px; padding: 0.2rem 0.75rem;
}
.demo-tour-shot { position: relative; aspect-ratio: 8 / 5; overflow: hidden; background: #f1ede4; }
.demo-tour-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }

.demo-tour-footnote { margin-top: 2rem; text-align: center; color: var(--muted); font-size: 0.85rem; }

/* Locked teaser variant used on /trial/ -- same frame, blurred screenshot,
   lock badge on top. Nothing legible is shown until the gate is filled in. */
.demo-tour-frame-locked .demo-tour-shot img { filter: blur(16px) saturate(0.7); transform: scale(1.08); }
.demo-tour-lock {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.5rem; color: var(--cream); background: rgba(13,26,48,0.4); text-align: center; padding: 1rem;
}
.demo-tour-lock svg { width: 2rem; height: 2rem; }
.demo-tour-lock span { font-size: 0.85rem; font-weight: 700; }

/* === Demo gate popup (/trial/) === */
.demo-gate-overlay {
  position: fixed; inset: 0; z-index: 500; display: flex; align-items: center; justify-content: center;
  padding: 1.5rem; background: rgba(13,26,48,0.6); backdrop-filter: blur(4px);
}
.demo-gate-modal {
  width: 100%; max-width: 26rem; max-height: 90vh; overflow-y: auto;
  background: #fff; border-radius: 16px; padding: 2rem;
  box-shadow: 0 30px 60px -20px rgba(13,26,48,0.45);
}
.demo-gate-modal h2 { font-size: 1.3rem; margin-bottom: 0.4rem; }
.demo-gate-modal .sub { color: var(--muted); font-size: 0.9rem; margin: 0 0 1.5rem; }
.demo-gate-modal select {
  width: 100%; font-family: inherit; font-size: 0.95rem; color: var(--ink);
  background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 0.7rem 0.9rem;
}
