/*
Theme Name: APEX (Hyper Bytes)
Author: Hyper Bytes Technology
Description: Marketing site for APEX Document Processor.
Version: 1.2.3
Update URI: false
Requires at least: 6.5
Requires PHP: 7.4
Text Domain: apex
*/

@font-face {
  font-family: 'Space Grotesk'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url('assets/fonts/space-grotesk-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url('assets/fonts/jetbrains-mono-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --paper:    #101A22;
  --card:     #182430;
  --line:     #2A3B4A;
  --line2:    #35485A;
  --ink:      #E9EFF3;
  --sub:      #9DAFBC;
  --faint:    #8698A6;
  --espresso: #0C141B;
  --espresso2:#0F1922;
  --accent:   #EFA43B;
  --accentSoft: rgba(239,164,59,.12);
  --accentSoft2: rgba(239,164,59,.20);
  --green:    #5BBF8A;
  --amber:    #EFA43B;
  --blue:     #5C9EE0;
  --shadow:   rgba(0,0,0,.45);
  --on-accent: #101A22;
  --maxw:     1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Space Grotesk', sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
.mono { font-family: 'JetBrains Mono', monospace; }

/* ── grain overlay ─────────────────────────────────────────────────── */
.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 999;
  opacity: .05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%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");
}

/* ── shared bits ───────────────────────────────────────────────────── */
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; }
.brand-word { font: 700 20px/1 'Space Grotesk'; letter-spacing: -.021em; color: var(--ink); }
.brand-x { color: var(--accent); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font: 600 11px 'JetBrains Mono', monospace; letter-spacing: .14em;
  color: var(--accent); margin: 0 0 16px;
}
.eyebrow-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: none; }
.section-head.light .eyebrow { color: #F5C57E; }
.section-head.light .eyebrow-dot { background: #F5C57E; }

h1, h2, h3 {
  font-family: 'Space Grotesk', sans-serif; font-weight: 700; margin: 0; letter-spacing: -.01em;
  max-width: 100%; overflow-wrap: break-word; word-break: break-word;
}
p { line-height: 1.65; color: var(--sub); margin: 0; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font: 600 14.5px 'Space Grotesk'; padding: 13px 22px; border-radius: 10px;
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn-primary {
  background: var(--accent); color: var(--on-accent);
  box-shadow: 0 3px 14px -2px rgba(239,164,59,.45);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 20px -4px rgba(239,164,59,.55); }
.btn-ghost { color: var(--ink); border-color: var(--line2); background: transparent; }
.btn-ghost:hover { background: rgba(233,239,243,.06); }
.btn-sm { padding: 9px 16px; font-size: 13px; }
.btn-lg { padding: 16px 30px; font-size: 16px; }

.section-head { max-width: 620px; margin: 0 0 56px; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 38px); line-height: 1.15; }

/* ── nav ───────────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(16,26,34,.82); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 16px 28px;
  display: flex; align-items: center; gap: 28px;
}
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a {
  font: 600 13.5px 'Space Grotesk'; color: var(--sub); text-decoration: none;
  transition: color .15s ease;
}
.nav-links a:hover { color: var(--ink); }

/* ── hero ──────────────────────────────────────────────────────────── */
.hero { position: relative; padding: 86px 28px 120px; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background-image:
    radial-gradient(circle, rgba(239,164,59,.14) 0, transparent 60%),
    radial-gradient(1.5px 1.5px at 0 0, var(--line2) 1.5px, transparent 0);
  background-size: 100% 100%, 26px 26px;
  background-position: 78% -10%, 0 0;
}
.hero-inner {
  position: relative; z-index: 1; max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center;
}
.hero-copy { animation: rise .7s cubic-bezier(.2,.8,.2,1) both; }
.hero-trust { animation-delay: .3s; }
h1 {
  font-size: clamp(38px, 5.6vw, 60px); line-height: 1.05; margin: 6px 0 22px;
}
.hl { color: var(--accent); }
.lede { font-size: 17.5px; max-width: 480px; margin-bottom: 34px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 38px; }
.hero-trust {
  display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
  font: 600 11.5px 'JetBrains Mono', monospace; letter-spacing: .04em; color: var(--faint);
}
.hero-trust .sep { color: var(--line2); }

/* hero art — abstracted "flow" mockup, no real screenshots */
.hero-art {
  position: relative; height: 460px;
  animation: rise .8s .15s cubic-bezier(.2,.8,.2,1) both;
}
.card {
  position: absolute; width: 240px; background: var(--card);
  border: 1px solid var(--line); border-radius: 14px; padding: 16px;
  box-shadow: 0 18px 38px -12px var(--shadow);
}
.card-head {
  display: flex; align-items: center; gap: 8px;
  font: 600 11px 'Space Grotesk'; color: var(--sub); margin-bottom: 14px;
  text-transform: uppercase; letter-spacing: .08em;
}
.dot { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.dot-amber  { background: var(--amber); }
.dot-accent { background: var(--accent); }
.dot-green  { background: var(--green); }
.bar { display: block; height: 8px; border-radius: 4px; background: var(--line2); margin-bottom: 9px; }
.bar.faint { background: var(--line); }
.bar.w-70 { width: 70%; } .bar.w-60 { width: 60%; } .bar.w-50 { width: 50%; }
.bar.w-40 { width: 40%; } .bar.w-30 { width: 30%; } .bar.w-20 { width: 20%; }
.row { display: flex; gap: 8px; margin-bottom: 9px; }
.row .bar { margin-bottom: 0; }
.chip {
  display: inline-flex; margin-top: 6px; padding: 4px 9px; border-radius: 6px;
  font: 700 9.5px 'Space Grotesk'; letter-spacing: .05em; text-transform: uppercase; color: #fff;
}
.chip-amber { background: var(--amber); color: var(--on-accent); }
.chip-green { background: var(--green); color: var(--on-accent); }
.chip-mono  { background: var(--espresso); font-family: 'JetBrains Mono', monospace; text-transform: none; letter-spacing: 0; }

.card-email { top: 8px;   left: 0;   z-index: 1; animation: floatA 5s ease-in-out infinite; }
.card-ai    { top: 150px; left: 130px; z-index: 2; animation: floatB 6s ease-in-out infinite; }
.card-ns    { top: 300px; left: 30px;  z-index: 3; border-color: rgba(91,191,138,.35); animation: floatC 5.5s ease-in-out infinite; }

/* Continuous gentle bob, staggered per card so the hero scene reads as
   alive without anything actually changing — keeps the printed rotation
   from the original static layout baked into each frame. */
@keyframes floatA { 0%,100% { transform: rotate(-3deg)  translateY(0); } 50% { transform: rotate(-3deg)  translateY(-8px); } }
@keyframes floatB { 0%,100% { transform: rotate(1.5deg) translateY(0); } 50% { transform: rotate(1.5deg) translateY(-10px); } }
@keyframes floatC { 0%,100% { transform: rotate(-1.5deg) translateY(0); } 50% { transform: rotate(-1.5deg) translateY(-7px); } }

.flow-arrow {
  position: absolute; color: var(--accent); font-size: 22px; opacity: .65;
  animation: arrowPulse 1.8s ease-in-out infinite;
}
.arrow-1 { top: 128px; left: 215px; }
.arrow-2 { top: 278px; left: 130px; animation-delay: .5s; }
@keyframes arrowPulse {
  0%,100% { opacity: .35; transform: translateX(0); }
  50%     { opacity: 1;   transform: translateX(4px); }
}

@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }

/* ── flow / how it works ──────────────────────────────────────────── */
.flow { max-width: var(--maxw); margin: 0 auto; padding: 100px 28px 40px; }
.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px;
  position: relative;
}
.step {
  position: relative; padding: 28px 22px 24px; background: var(--card);
  border: 1px solid var(--line); border-radius: 16px;
  opacity: 0; transform: translateY(16px);
  transition: opacity .6s ease, transform .6s ease;
}
.step.in-view { opacity: 1; transform: translateY(0); }
.step-num {
  display: block; font: 700 13px 'JetBrains Mono', monospace; color: var(--accent);
  margin-bottom: 14px;
}
.step h3 { font-size: 16.5px; margin-bottom: 9px; }
.step p { font-size: 13.5px; }
.step:not(:last-child)::after {
  content: ''; position: absolute; top: 38px; right: -22px; width: 22px; height: 1px;
  background: repeating-linear-gradient(to right, var(--line2) 0 6px, transparent 6px 11px);
}

/* ── review mockup — silhouette of the review screen ─────────────────── */
.review-demo { max-width: var(--maxw); margin: 0 auto; padding: 20px 28px 110px; }
.review-mock {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 0; align-items: stretch;
}
.review-mock-pane {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 22px;
  opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease;
}
.review-mock-pane.in-view { opacity: 1; transform: translateY(0); }
.review-mock-head {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font: 600 12px 'Space Grotesk'; color: var(--sub); margin-bottom: 16px;
}
.review-mock-connected { margin-top: 0; margin-left: auto; }
.review-mock-table { margin-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.review-mock-row { display: flex; gap: 10px; align-items: center; }
.review-mock-row .bar { margin-bottom: 0; }
.review-mock-field {
  display: flex; align-items: center; gap: 12px; padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.review-mock-field:last-of-type { border-bottom: none; }
.review-mock-field .bar { flex: 1; margin-bottom: 0; }
.review-mock-label {
  flex: 0 0 110px; font: 600 11.5px 'Space Grotesk'; color: var(--faint);
}
.review-mock-field.flagged { background: rgba(239,164,59,.10); margin: 0 -22px; padding: 10px 22px; border-radius: 8px; border-bottom: none; }
.review-mock-field.flagged .chip-amber { animation: flagPulse 1.6s ease-in-out infinite; }
@keyframes flagPulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(239,164,59,.45); }
  50%     { box-shadow: 0 0 0 6px rgba(239,164,59,0); }
}
.review-mock-cta {
  margin-top: 18px; text-align: center; padding: 12px; border-radius: 10px;
  background: var(--green); color: var(--on-accent); font: 600 13px 'Space Grotesk';
}
.review-mock-divider {
  display: flex; align-items: center; justify-content: center; width: 56px;
  color: var(--accent); font-size: 20px; opacity: .7;
  animation: dividerBounce 2.4s ease-in-out infinite;
}
@keyframes dividerBounce {
  0%, 50%, 100% { transform: translateX(0); }
  25%           { transform: translateX(4px); }
  75%           { transform: translateX(-4px); }
}

/* ── features ──────────────────────────────────────────────────────── */
.features { max-width: var(--maxw); margin: 0 auto; padding: 60px 28px 110px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature {
  padding: 28px 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--card);
  opacity: 0; transform: translateY(16px);
  transition: opacity .6s ease, transform .6s ease, box-shadow .2s ease, border-color .2s ease;
}
.feature.in-view { opacity: 1; transform: translateY(0); }
.feature:hover { transform: translateY(-4px); box-shadow: 0 14px 30px -10px var(--shadow); border-color: var(--line2); }
.feature h3 { font-size: 16px; margin-bottom: 8px; }
.feature p { font-size: 13.5px; }
.feature-icon {
  display: block; width: 38px; height: 38px; border-radius: 10px; margin-bottom: 18px;
  background: var(--accentSoft); position: relative;
}
.feature-icon::before, .feature-icon::after { content: ''; position: absolute; }
.icon-inbox::before  { left: 9px; top: 12px; width: 20px; height: 13px; border: 2px solid var(--accent); border-radius: 2px; }
.icon-ai::before     { left: 11px; top: 9px; width: 16px; height: 16px; border: 2px solid var(--accent); border-radius: 50%; }
.icon-ai::after      { left: 18px; top: 24px; width: 2px; height: 7px; background: var(--accent); }
.icon-match::before  { left: 9px; top: 14px; width: 11px; height: 11px; border-radius: 50%; border: 2px solid var(--accent); }
.icon-match::after   { left: 20px; top: 14px; width: 11px; height: 11px; border-radius: 50%; border: 2px solid var(--accent); }
.icon-review::before { left: 9px; top: 9px; width: 9px; height: 20px; border: 2px solid var(--accent); border-radius: 2px; }
.icon-review::after  { left: 21px; top: 9px; width: 9px; height: 20px; border: 2px solid var(--accent); border-radius: 2px; }
.icon-dash::before   { left: 9px; top: 20px; width: 6px; height: 9px; background: var(--accent); border-radius: 1px; }
.icon-dash::after    { left: 17px; top: 11px; width: 6px; height: 18px; background: var(--accent); border-radius: 1px; box-shadow: 8px 4px 0 0 var(--accent); }
.icon-audit::before  { left: 11px; top: 8px; width: 16px; height: 22px; border: 2px solid var(--accent); border-radius: 2px; }
.icon-audit::after   { left: 15px; top: 14px; width: 8px; height: 2px; background: var(--accent); box-shadow: 0 5px 0 0 var(--accent), 0 10px 0 0 var(--accent); }

/* ── numbers ───────────────────────────────────────────────────────── */
.numbers { background: var(--espresso); color: var(--ink); position: relative; overflow: hidden; }
.numbers::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 85% 0%, rgba(239,164,59,.18), transparent 55%);
}
.numbers-inner { position: relative; z-index: 1; max-width: var(--maxw); margin: 0 auto; padding: 100px 28px; text-align: center; }
.section-head.light { margin: 0 auto 56px; }
.section-head.light h2 { color: var(--ink); }
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat {
  padding: 28px 16px; border: 1px solid rgba(255,255,255,.1); border-radius: 16px;
  background: rgba(255,255,255,.04);
  opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease;
}
.stat.in-view { opacity: 1; transform: translateY(0); }
.stat-num {
  display: inline-block;
  font: 700 32px 'JetBrains Mono', monospace; letter-spacing: -.02em;
  background: linear-gradient(100deg, var(--ink) 35%, var(--accent) 50%, var(--ink) 65%);
  background-size: 260% 100%; background-position: 100% 0;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: statShimmer 4.5s ease-in-out infinite;
}
.stat:nth-child(2) .stat-num { animation-delay: .3s; }
.stat:nth-child(3) .stat-num { animation-delay: .6s; }
.stat:nth-child(4) .stat-num { animation-delay: .9s; }
@keyframes statShimmer {
  0%, 15%  { background-position: 100% 0; }
  50%      { background-position: 0% 0; }
  85%, 100% { background-position: 100% 0; }
}
.stat-arrow { color: var(--accent); }
.stat-label { font: 500 12.5px 'Space Grotesk'; color: var(--sub); margin-top: 10px; }
.numbers-note { font-size: 12px; color: var(--faint); margin-top: 30px; }

/* ── cta ───────────────────────────────────────────────────────────── */
.cta { padding: 120px 28px; text-align: center; position: relative; }
.cta-inner { max-width: 620px; margin: 0 auto; position: relative; }
.cta-tri {
  display: block; width: 0; height: 0; margin: 0 auto 22px;
  border-left: 16px solid transparent; border-right: 16px solid transparent;
  border-bottom: 26px solid var(--accent);
}
.cta h2 { font-size: clamp(28px, 4vw, 42px); margin-bottom: 18px; }
.cta p { font-size: 16px; margin-bottom: 36px; }

/* ── footer ────────────────────────────────────────────────────────── */
.footer { border-top: 1px solid var(--line); }
.footer-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 30px 28px;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.footer-inner p { font-size: 12.5px; color: var(--faint); margin-left: auto; }

/* ── responsive ────────────────────────────────────────────────────── */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { display: none; }
  .steps, .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .step:not(:last-child)::after { display: none; }
  .review-mock { grid-template-columns: 1fr; }
  .review-mock-divider { width: auto; height: 40px; }
}
@media (max-width: 600px) {
  .nav-links { display: none; }
  .steps, .feature-grid, .stat-row { grid-template-columns: 1fr; }
  .hero { padding: 60px 20px 90px; }
  h1 { font-size: clamp(28px, 9vw, 38px); }
}

/* ── WordPress additions ───────────────────────────────────────────── */
/* The hero text is the page's largest paint; fading it in held back LCP by ~2.8s on mobile.
   The floating cards beside it keep their entrance animation. */
.hero-copy { animation: none; }

.admin-bar .nav { top: 32px; }
@media (max-width: 782px) { .admin-bar .nav { top: 46px; } }

/* Menu links jump to section anchors; keep the heading clear of the sticky header. */
main [id] { scroll-margin-top: 84px; }

/* ── Mobile menu ───────────────────────────────────────────────────── */
.nav-toggle { display: none; }
@media (max-width: 820px) {
  .nav-inner { gap: 14px; }
  .nav-inner .btn { margin-left: auto; }
  .nav-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 40px; height: 40px; padding: 0 10px; border-radius: 10px; cursor: pointer;
    background: transparent; border: 1px solid var(--line2);
  }
  .nav-toggle span {
    display: block; height: 2px; border-radius: 2px; background: var(--ink);
    transition: transform .2s ease, opacity .2s ease;
  }
  .nav.open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav.open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav.open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

  .nav .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0; margin: 0;
    flex-direction: column; gap: 0; padding: 8px 20px 16px;
    background: rgba(16,26,34,.97); backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line); box-shadow: 0 18px 30px -18px var(--shadow);
  }
  .nav.open .nav-links { display: flex; }
  .nav .nav-links a { padding: 14px 4px; font-size: 16px; border-bottom: 1px solid var(--line); }
  .nav .nav-links a:last-child { border-bottom: none; }
}

/* The dot is drawn in CSS so eyebrows stay plain editable text. */
.eyebrow::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); flex: none;
}
.section-head.light .eyebrow::before { background: #F5C57E; }

.step p.step-num { font-size: 13px; }

figure.shot { margin: 0; }
.shot img { height: auto; }
.shot-wide { margin-top: 24px; max-width: 900px; }
figure.shot-wide { margin-top: 24px; }
.steps-spaced { margin-top: 32px; }
.beat-column { margin: 0 auto; display: flex; flex-direction: column; align-items: center; }
.queued-spaced { margin-top: 24px; }
.tick, .measure-tile p { line-height: 1.4; }

/* ── FAQ ───────────────────────────────────────────────────────────── */
.faq { max-width: 900px; margin: 0 auto; padding: 110px 28px 20px; }
.faq .wp-block-details {
  border: 1px solid var(--line); border-radius: 14px; background: var(--card);
  margin: 0 0 12px; padding: 0; transition: border-color .2s ease;
}
.faq .wp-block-details[open] { border-color: var(--line2); }
.faq summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 20px 56px 20px 24px; font: 600 16.5px 'Space Grotesk', sans-serif; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; position: absolute; right: 24px; top: 50%; transform: translateY(-50%);
  font: 500 22px 'JetBrains Mono', monospace; color: var(--accent);
}
.faq .wp-block-details[open] summary::after { content: '−'; }
.faq summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 14px; }
.faq .wp-block-details p { padding: 0 24px 22px; font-size: 15px; }

/* ── Footer ────────────────────────────────────────────────────────── */
.footer-cols {
  max-width: var(--maxw); margin: 0 auto; padding: 48px 28px 8px;
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px;
}
.footer-about p { font-size: 13.5px; color: var(--faint); margin-top: 12px; max-width: 300px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h2 { font: 600 11px 'JetBrains Mono', monospace; letter-spacing: .14em; color: var(--accent); text-transform: uppercase; margin-bottom: 4px; }
.footer-col a { font-size: 13.5px; color: var(--sub); text-decoration: none; transition: color .15s ease; }
.footer-col a:hover { color: var(--ink); }
.footer-inner p { margin-left: 0; }
@media (max-width: 820px) {
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; }
}

/* ── Page hero (pricing, security, blog, posts…) ───────────────────── */
.page-hero { max-width: 860px; margin: 0 auto; padding: 80px 28px 24px; }
.page-hero h1 { font-size: clamp(32px, 5vw, 50px); line-height: 1.08; margin: 6px 0 20px; }
.page-hero .lede { max-width: 680px; margin-bottom: 0; }
.page-hero .lede p { color: inherit; }
.nav-links a[aria-current="page"] { color: var(--ink); }

/* ── Long-form text (posts and guide pages) ────────────────────────── */
.prose { max-width: 760px; margin: 0 auto; padding: 24px 28px 40px; }
.prose > * + * { margin-top: 18px; }
.prose h2 { font-size: clamp(22px, 3vw, 28px); line-height: 1.2; margin-top: 48px; }
.prose h3 { font-size: 19px; margin-top: 32px; }
.prose p, .prose li { font-size: 16.5px; line-height: 1.75; color: var(--sub); }
.prose strong { color: var(--ink); }
.prose a { color: var(--accent); }
.prose ul, .prose ol { padding-left: 22px; }
.prose li + li { margin-top: 8px; }
.prose blockquote {
  margin: 28px 0; padding: 6px 0 6px 22px; border-left: 3px solid var(--accent);
}
.prose blockquote p { color: var(--ink); font-size: 18px; }
.prose figure { margin: 28px 0; }
.prose img { height: auto; border-radius: 14px; border: 1px solid var(--line); }
.prose figcaption { font-size: 12.5px; color: var(--faint); margin-top: 10px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.prose th, .prose td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); color: var(--sub); }
.prose th { color: var(--ink); font-weight: 600; background: var(--card); }
.prose .wp-block-table { overflow-x: auto; }
/* WordPress's table block draws 1px currentColor borders, which glare on the dark theme. */
.prose .wp-block-table table, .prose .wp-block-table th, .prose .wp-block-table td,
.prose .wp-block-table thead, .prose .wp-block-table tfoot { border: none; }
.prose .wp-block-table table { border: 1px solid var(--line); border-radius: 12px; border-collapse: separate; border-spacing: 0; overflow: hidden; }
.prose .wp-block-table th, .prose .wp-block-table td { border-bottom: 1px solid var(--line); }
.prose .wp-block-table tr:last-child td { border-bottom: none; }
.prose .wp-block-table th + th, .prose .wp-block-table td + td { border-left: 1px solid var(--line); }
.prose code { font-family: 'JetBrains Mono', monospace; font-size: .9em; background: var(--card); padding: 2px 6px; border-radius: 5px; }
.prose hr { border: none; border-top: 1px solid var(--line); margin: 40px 0; }

/* Key figures inside posts and pages */
.stat-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin: 30px 0; }
.stat-strip .stat-box { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 20px 16px; }
.stat-strip .stat-box strong { display: block; font: 700 26px 'JetBrains Mono', monospace; color: var(--accent); }
.stat-strip .stat-box span { display: block; font-size: 13px; color: var(--sub); margin-top: 6px; line-height: 1.4; }

/* Plain info cards (security, EDI, pricing) */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; max-width: var(--maxw); margin: 0 auto; padding: 24px 28px 60px; }
.info-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 26px 22px; }
.info-card h2, .info-card h3 { font-size: 17px; margin-bottom: 10px; }
.info-card p { font-size: 14.5px; }

/* ── Pricing ───────────────────────────────────────────────────────── */
.price-card {
  max-width: 560px; margin: 24px auto 0; padding: 36px 32px; text-align: left;
  background: var(--card); border: 1px solid rgba(239,164,59,.4); border-radius: 20px;
  box-shadow: 0 24px 50px -24px rgba(239,164,59,.35);
}
.price-card .price { font: 700 52px/1 'Space Grotesk', sans-serif; color: var(--ink); margin: 8px 0 6px; }
.price-card .price small { font-size: 17px; font-weight: 500; color: var(--sub); }
.price-card .price-sub { font-size: 15px; color: var(--sub); }
.price-card ul { list-style: none; padding: 0; margin: 24px 0; display: grid; gap: 10px; }
.price-card li { display: flex; gap: 10px; font-size: 15px; color: var(--sub); }
.price-card li::before { content: '✓'; color: var(--green); font-weight: 700; }
.price-card .btn { width: 100%; justify-content: center; }

/* ── ROI calculator ────────────────────────────────────────────────── */
.roi-calc {
  max-width: 980px; margin: 8px auto 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  background: var(--card); border: 1px solid var(--line); border-radius: 20px; overflow: hidden;
}
.roi-inputs { padding: 30px; display: grid; gap: 20px; border-right: 1px solid var(--line); }
.roi-inputs label { display: block; font: 600 13.5px 'Space Grotesk', sans-serif; color: var(--ink); }
.roi-inputs .hint { display: block; font-weight: 400; font-size: 12.5px; color: var(--faint); margin-top: 3px; }
.roi-inputs input {
  width: 100%; margin-top: 8px; padding: 12px 14px; border-radius: 10px;
  background: var(--espresso); color: var(--ink); border: 1px solid var(--line2);
  font: 500 17px 'JetBrains Mono', monospace;
}
.roi-inputs input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accentSoft2); }
.roi-results { padding: 30px; display: grid; gap: 14px; align-content: start; background: var(--espresso2); }
.roi-row { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.roi-row span { font-size: 14px; color: var(--sub); }
.roi-row output { font: 700 19px 'JetBrains Mono', monospace; color: var(--ink); text-align: right; }
.roi-row.big output { font-size: 28px; color: var(--accent); }
.roi-negative .roi-row.big output { color: var(--sub); }
.roi-note { font-size: 12.5px; color: var(--faint); }
.roi-note-volume { color: var(--accent); }
@media (max-width: 820px) {
  .roi-calc { grid-template-columns: 1fr; }
  .roi-inputs { border-right: none; border-bottom: 1px solid var(--line); }
}

/* ── Blog ──────────────────────────────────────────────────────────── */
.blog-cats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.blog-cats a {
  font: 600 12.5px 'Space Grotesk', sans-serif; color: var(--sub); text-decoration: none;
  border: 1px solid var(--line2); border-radius: 999px; padding: 7px 14px;
}
.blog-cats a:hover, .blog-cats a[aria-current="page"] { color: var(--on-accent); background: var(--accent); border-color: var(--accent); }
.blog-list { max-width: var(--maxw); margin: 0 auto; padding: 24px 28px 100px; }
.blog-empty { text-align: center; padding: 40px 0; }
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.post-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; transition: transform .2s ease, border-color .2s ease; }
.post-card:hover { transform: translateY(-3px); border-color: var(--line2); }
.post-card-link { display: flex; flex-direction: column; height: 100%; text-decoration: none; }
.post-card-media { aspect-ratio: 1200 / 630; background: var(--espresso); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.post-card-media img { width: 100%; height: 100%; object-fit: cover; }
.post-card-fallback { font: 700 34px 'Space Grotesk', sans-serif; color: var(--ink); letter-spacing: -.02em; }
.post-card-body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-card-body .eyebrow { margin: 0; }
.post-card-body h2 { font-size: 19px; line-height: 1.3; color: var(--ink); }
.post-card-body p { font-size: 14px; }
.post-card-body p.eyebrow { font-size: 11px; }
.post-card-body .post-meta { margin-top: auto; }
.post-meta { font: 500 12.5px 'JetBrains Mono', monospace; color: var(--faint); }
.post-head .post-meta { margin-top: 18px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font: 500 12.5px 'JetBrains Mono', monospace; color: var(--faint); margin-bottom: 18px; }
.crumbs a { color: var(--sub); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.post-cover { max-width: 960px; margin: 16px auto 0; padding: 0 28px; }
.post-cover img { width: 100%; height: auto; border-radius: 16px; border: 1px solid var(--line); }
.post-cta {
  max-width: 760px; margin: 20px auto 0; padding: 30px; border-radius: 18px; text-align: center;
  background: var(--card); border: 1px solid rgba(239,164,59,.35);
}
.post-cta h2 { font-size: 22px; margin-bottom: 10px; }
.post-cta p { margin: 0 auto 20px; max-width: 520px; }
.related { max-width: var(--maxw); margin: 0 auto; padding: 70px 28px 100px; }
.related > h2 { font-size: 24px; margin-bottom: 22px; }
.pagination { margin-top: 36px; }
.pagination .nav-links { position: static; display: flex; flex-direction: row; gap: 8px; justify-content: center; padding: 0; background: none; border: none; box-shadow: none; }
.pagination .page-numbers { padding: 8px 14px; border: 1px solid var(--line2); border-radius: 10px; color: var(--sub); text-decoration: none; font-size: 14px; }
.pagination .page-numbers.current { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }

/* Shared "book a demo" block used at the bottom of marketing pages */
.page-cta { padding-top: 80px; }
.numbers-links { margin-top: 18px; font-size: 14px; }
.numbers-links a { color: var(--accent); text-decoration: none; }
.numbers-links a:hover { text-decoration: underline; }

/* ── Legal pages (privacy policy) ──────────────────────────────────── */
.legal { max-width: 760px; margin: 0 auto; padding: 80px 28px 100px; }
.legal h1 { font-size: clamp(32px, 5vw, 46px); line-height: 1.1; margin: 6px 0 28px; }
.legal h2 { font-size: 21px; margin: 44px 0 12px; }
.legal p, .legal li { font-size: 15.5px; line-height: 1.7; color: var(--sub); }
.legal p + p { margin-top: 14px; }
.legal ul { margin: 12px 0 14px; padding-left: 22px; }
.legal li + li { margin-top: 6px; }
.legal strong { color: var(--ink); }
.legal a { color: var(--accent); }

/* ── Book a demo form ──────────────────────────────────────────────── */
.apex-form .form-privacy { margin-top: 14px; font-size: 12.5px; color: var(--faint); text-align: center; }
.apex-form .form-privacy a { color: var(--sub); }
.apex-form {
  max-width: 520px; margin: 0 auto; text-align: left;
  --wpforms-field-background-color: var(--espresso);
  --wpforms-field-border-color: var(--line2);
  --wpforms-field-text-color: var(--ink);
  --wpforms-label-color: var(--sub);
  --wpforms-label-sublabel-color: var(--faint);
  --wpforms-label-error-color: #E0645B;
  --wpforms-button-background-color: var(--accent);
  --wpforms-button-text-color: var(--on-accent);
  --wpforms-background-color: transparent;
}
.apex-form .wpforms-container { margin: 0 auto; padding: 0; background: transparent; }
.apex-form .wpforms-field { padding: 0 0 18px; }
.apex-form .wpforms-field-label {
  display: block; margin: 0 0 7px; color: var(--sub);
  font: 600 13px 'Space Grotesk', sans-serif;
}
.apex-form .wpforms-required-label { color: var(--accent); }
.apex-form input[type="text"],
.apex-form input[type="email"],
.apex-form textarea {
  width: 100%; max-width: 100%; padding: 12px 14px; border-radius: 10px;
  background: var(--espresso); color: var(--ink); border: 1px solid var(--line2);
  font: 400 15px 'Space Grotesk', sans-serif; box-shadow: none;
}
.apex-form input:focus, .apex-form textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accentSoft2);
}
.apex-form textarea { min-height: 110px; height: 110px; resize: vertical; }
.apex-form label.wpforms-error, .apex-form em.wpforms-error { color: #E0645B; font: 500 12.5px 'Space Grotesk', sans-serif; }
.apex-form .wpforms-submit-container { padding: 6px 0 0; text-align: center; }
.apex-form button.wpforms-submit {
  display: inline-flex; align-items: center; justify-content: center; width: 100%; height: auto;
  padding: 16px 30px; border: 1px solid transparent; border-radius: 10px; cursor: pointer;
  background: var(--accent); color: var(--on-accent);
  font: 600 16px 'Space Grotesk', sans-serif;
  box-shadow: 0 3px 14px -2px rgba(239,164,59,.45);
  transition: transform .15s ease, box-shadow .15s ease;
}
.apex-form button.wpforms-submit:hover {
  background: var(--accent); transform: translateY(-1px);
  box-shadow: 0 8px 20px -4px rgba(239,164,59,.55);
}
.apex-form .wpforms-confirmation-container-full {
  background: var(--card); border: 1px solid rgba(91,191,138,.35); border-radius: 14px; padding: 20px 24px;
}
.apex-form .wpforms-confirmation-container-full p { color: var(--ink); margin: 0; }
