/* Black Atlas — site styles (custom software positioning, light theme) */

:root {
  --bg: #F4F2ED;
  --surface: #FFFFFF;
  --ink: #111214;
  --ink-2: #2A2D31;
  --ink-3: #3A3E43;
  --body: #4A4F55;
  --muted: #6A6F75;
  --bronze: #B23A2A;
  --bronze-dark: #8F2C1F;
  --bronze-light: #E38A72;
  --blue: #3F6A94;
  --rust: #B23A2A;
  --line: rgba(17, 18, 20, .07);
  --line-2: rgba(17, 18, 20, .10);
  --line-3: rgba(17, 18, 20, .12);
  --line-4: rgba(17, 18, 20, .18);

  --sans: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --serif: 'Instrument Serif', Georgia, serif;

  --wrap: 1280px;
  --gutter: 24px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
[id] { scroll-margin-top: 72px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--bronze); text-decoration: none; }
a:hover { color: var(--bronze-dark); }
::selection { background: var(--bronze); color: var(--bg); }
:focus-visible { outline: 2px solid var(--bronze); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { margin: 0; font-weight: 500; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 50;
  background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { top: 12px; color: var(--bg); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

/* ---------- Type helpers ---------- */
.serif { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
.mono { font-family: var(--mono); }
.accent { color: var(--bronze); }
.accent-light { color: var(--bronze-light); }
.blue { color: var(--blue); }
.rust { color: var(--rust); }

.eyebrow { font-size: 12px; letter-spacing: .16em; color: var(--bronze); text-transform: uppercase; }
.label { font-size: 11px; letter-spacing: .14em; color: var(--muted); text-transform: uppercase; }
.label.accent { color: var(--bronze); }
.label.accent-light { color: var(--bronze-light); }
.label-plain { font-size: 11px; color: var(--muted); }

.h2 {
  margin-top: 18px;
  font-size: clamp(36px, 4.6vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}
.h2-sm { font-size: clamp(32px, 4vw, 56px); line-height: 1.04; }
.h2.narrow { max-width: 820px; }

.gridbg {
  background-image:
    linear-gradient(rgba(17, 18, 20, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 18, 20, .045) 1px, transparent 1px);
  background-size: 64px 64px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  font-family: inherit; font-weight: 500; font-size: 15px; white-space: nowrap;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--bronze); color: var(--bg); }
.btn-primary:hover { background: var(--bronze-dark); color: var(--bg); }
.btn-ghost { border: 1px solid var(--line-4); color: var(--ink); }
.btn-ghost:hover { border-color: rgba(17, 18, 20, .45); color: #000; }
.btn-sm { min-height: 44px; font-size: 14px; }
.btn-lg { min-height: 56px; padding: 0 30px; font-size: 16px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.btn-row.center { justify-content: center; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(244, 242, 237, .9);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-top: 10px; padding-bottom: 10px;
}
.brand { display: flex; align-items: center; margin-left: -8px; }
.brand img { height: 56px; width: auto; }
.nav-menu { display: flex; align-items: center; gap: 28px; }
.navlink { color: var(--body); font-size: 14px; }
.navlink:hover { color: var(--ink); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px; border-radius: 999px;
  border: 1px solid var(--line-4); background: transparent; cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block; width: 16px; height: 1.5px; background: var(--ink); border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ''; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -5px; }
.nav-toggle-bars::after { top: 5px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-5px) rotate(-45deg); }

@media (max-width: 920px) {
  .nav { flex-wrap: wrap; }
  .nav-toggle { display: inline-flex; }
  .nav-menu {
    display: none; width: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px 0 16px;
  }
  .nav-menu.is-open { display: flex; }
  .navlink { padding: 14px 4px; font-size: 16px; border-bottom: 1px solid var(--line); }
  .nav-menu .btn { margin-top: 16px; }
}
/* Without JS the menu can't open, so keep links visible */
.no-js .nav-toggle { display: none; }
.no-js .nav-menu { display: flex; }

/* ---------- Entrance animations (only when motion is welcome) ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes meridian { 0%, 100% { transform: scaleX(1); } 50% { transform: scaleX(.04); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes strike { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes dim { from { opacity: 1; } to { opacity: .32; } }
@keyframes grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(178, 58, 42, .55); } 50% { box-shadow: 0 0 0 8px rgba(178, 58, 42, 0); } }
@keyframes scan { from { transform: translateY(-100%); } to { transform: translateY(420%); } }
@keyframes blockOut { 0%, 30% { opacity: 1; transform: scaleX(1); } 55%, 100% { opacity: 0; transform: scaleX(0); } }
@keyframes blockIn { 0%, 45% { opacity: 0; transform: scaleX(0); } 70%, 100% { opacity: 1; transform: scaleX(1); } }
@keyframes dash { from { stroke-dashoffset: 1600; } to { stroke-dashoffset: 0; } }

/* Final states are the defaults; animations only play when motion is allowed,
   so content is never stuck invisible if an animation doesn't run. */
@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise .9s cubic-bezier(.2, .7, .2, 1) var(--delay, 0s) both; }
  .livedot { animation: pulse 2s infinite; }
  .meridian { animation: meridian 9s linear infinite; }
  .meridian-slow { animation-duration: 12s; }
  .orbit { animation: spin 24s linear infinite; }
  .orbit-slow { animation: spin 40s linear infinite reverse; }
  .globe-trace { animation: dash 3s .4s ease both; }
  .dim { animation: dim .5s ease var(--delay, 0s) both; }
  .strike { animation: strike .5s ease var(--delay, 0s) both; }
  .marquee-track { animation: marquee 38s linear infinite; }
  .bar { animation: grow 1.2s cubic-bezier(.2, .7, .2, 1) var(--delay, 0s) both; }
  .week-bar .out { animation: blockOut 6s var(--row-delay, 0s) ease-in-out infinite alternate; }
  .week-bar .in { animation: blockIn 6s var(--row-delay, 0s) ease-in-out infinite alternate; }
  .band-scan { animation: scan 5s linear infinite; }
  .card { transition: border-color .3s ease, transform .3s ease; }
  .card:hover { transform: translateY(-3px); }
}
/* Pause entrance animations below the fold until they scroll into view */
.js .bars:not(.in-view) .bar,
.js .week:not(.in-view) i,
.js .week:not(.in-view) b { animation-play-state: paused; }

.livedot { width: 8px; height: 8px; border-radius: 50%; background: var(--bronze); flex: none; }

/* ---------- Hero ---------- */
.hero { position: relative; border-bottom: 1px solid var(--line); }
.hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 520px), 1fr));
  gap: 64px; align-items: center;
  padding-top: 96px; padding-bottom: 112px;
}
.pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px; border: 1px solid var(--line-3); border-radius: 999px;
  font-size: 12px; letter-spacing: .12em; color: var(--body); text-transform: uppercase;
  background: rgba(244, 242, 237, .7);
}
.hero-title {
  margin-top: 28px;
  font-size: clamp(44px, 6.6vw, 92px); line-height: .98; letter-spacing: -0.045em;
}
.hero-serif { font-size: 1.08em; }
.hero-sub { margin-top: 28px; max-width: 540px; font-size: 19px; color: var(--body); }
.hero-copy .btn-row { margin-top: 40px; }
.hero-stats { margin-top: 56px; display: flex; flex-wrap: wrap; gap: 40px; }
.stat-num { font-size: 44px; letter-spacing: -0.03em; line-height: 1; color: var(--ink); }
.stat-num.blue { color: var(--blue); }
.stat-unit { font-size: 18px; color: var(--muted); }
.stat-label { margin-top: 8px; font-size: 13px; color: var(--muted); letter-spacing: .04em; }
.stat-divider { width: 1px; background: var(--line-3); }

.hero-visual { position: relative; min-height: 600px; }
.globe {
  position: absolute; inset: 0; margin: auto;
  width: 560px; max-width: 100%; height: auto; aspect-ratio: 1;
}
.globe ellipse, .globe circle, .globe g { transform-origin: 280px 280px; }
.globe-trace { stroke-dasharray: 1600; transform: rotate(-90deg); }

.stack-card {
  position: absolute; right: 0; top: 40px; width: 360px; max-width: 92%;
  border: 1px solid var(--line-3); border-radius: 18px;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  padding: 22px;
}
.card-head { display: flex; justify-content: space-between; align-items: center; }
.stack-list { margin-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.stack-list li { display: flex; justify-content: space-between; font-size: 14px; opacity: .32; }
.stack-list li .struck:first-child { color: var(--ink-2); }
.stack-list li .struck.mono { color: var(--body); }
.struck { position: relative; }
.strike {
  position: absolute; left: 0; right: 0; top: 50%; height: 1px;
  background: var(--rust); transform-origin: left;
}
.stack-foot {
  margin-top: 18px; padding-top: 14px; border-top: 1px dashed rgba(17, 18, 20, .14);
  display: flex; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--muted);
}

.system-card {
  position: absolute; left: 0; bottom: 30px; width: 380px; max-width: 94%;
  border: 1px solid rgba(178, 58, 42, .4); border-radius: 18px;
  background: var(--surface); padding: 22px;
  box-shadow: 0 30px 80px rgba(17, 18, 20, .12);
}
.system-head { display: flex; align-items: center; gap: 10px; }
.system-title { margin-top: 14px; font-size: 22px; letter-spacing: -0.02em; font-weight: 500; line-height: 1.3; }
.system-title .serif { font-size: 26px; }
.system-modules { margin-top: 16px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.system-modules > div { border: 1px solid var(--line-2); border-radius: 10px; padding: 10px; font-size: 13px; }
.system-modules .mono { font-size: 10px; color: var(--muted); margin-bottom: 4px; }

@media (max-width: 760px) {
  .hero-grid { padding-top: 56px; padding-bottom: 64px; gap: 40px; }
  .hero-sub { font-size: 17px; }
  .hero-stats { gap: 24px; }
  .stat-num { font-size: 34px; }
  .hero-visual { min-height: 520px; }
  .stack-card { top: 0; }
  .system-card { bottom: 0; }
}

/* ---------- Marquee ---------- */
.marquee { border-bottom: 1px solid var(--line); padding: 26px 0; overflow: hidden; }
.marquee-track { display: flex; width: max-content; }
.marquee-list { display: flex; }
.marquee-list li {
  display: flex; align-items: center; gap: 28px; padding-right: 28px;
  white-space: nowrap; font-size: 22px; letter-spacing: -0.01em; color: var(--ink-2);
}
.marquee-list li::after { content: '✦'; color: var(--bronze); font-size: 14px; }
@media (prefers-reduced-motion: reduce) {
  .marquee-track { width: auto; }
  .marquee-list { flex-wrap: wrap; justify-content: center; row-gap: 8px; padding: 0 var(--gutter); }
  .marquee-list[aria-hidden="true"] { display: none; }
  .marquee-list li { font-size: 18px; }
}

/* ---------- Sections ---------- */
.section { padding-top: 128px; padding-bottom: 96px; }
.section-tight { padding-top: 32px; padding-bottom: 96px; }
.section-head { display: flex; flex-wrap: wrap; gap: 24px 32px; }
.section-head.split { justify-content: space-between; align-items: flex-end; }
.head-main { max-width: 760px; }
.head-aside { max-width: 360px; color: var(--body); }
.head-aside strong { color: var(--ink); font-weight: 500; }
.lede { margin-top: 22px; color: var(--body); max-width: 460px; font-size: 18px; }

@media (max-width: 760px) {
  .section { padding-top: 88px; padding-bottom: 64px; }
}

.card {
  border: 1px solid var(--line-2); border-radius: 22px; background: var(--surface);
  position: relative; overflow: hidden;
}
.card:hover { border-color: rgba(178, 58, 42, .45); }

/* ---------- Proof ---------- */
#proof { padding-bottom: 64px; }
.proof-grid {
  margin-top: 64px; display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
}
.proof-card { padding: 32px; }
.proof-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.proof-num { margin-top: 10px; font-size: clamp(44px, 5vw, 56px); line-height: 1; letter-spacing: -0.04em; font-weight: 500; }
.proof-num span { font-size: 20px; color: var(--muted); }
.tag { font-size: 11px; padding: 6px 10px; border-radius: 999px; border: 1px solid rgba(178, 58, 42, .35); color: var(--bronze); }
.tag-blue { border-color: rgba(63, 106, 148, .4); color: var(--blue); }

.bars {
  margin-top: 36px; height: 220px; position: relative;
  display: flex; align-items: flex-end; gap: 10px;
  border-bottom: 1px solid var(--line-3);
}
.bar { flex: 1; height: var(--h); border-radius: 6px 6px 0 0; transform-origin: bottom; }
.bar.before { background: rgba(178, 58, 42, .55); }
.bar.after { background: var(--bronze); }
.bars-marker { position: absolute; left: 50%; top: 0; bottom: 0; border-left: 1px dashed rgba(178, 58, 42, .6); }
.bars-marker-label { position: absolute; left: calc(50% + 10px); top: 0; font-size: 11px; color: var(--bronze); letter-spacing: .08em; }
.bars-axis { margin-top: 12px; display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); }
.fineprint { margin-top: 20px; font-size: 12px; color: var(--muted); }

.week { margin-top: 36px; display: flex; flex-direction: column; gap: 10px; }
.week-row { display: grid; grid-template-columns: 44px minmax(0, 1fr); align-items: center; gap: 12px; --row-delay: var(--delay); }
.week-row .mono { font-size: 11px; color: var(--muted); }
.week-bar { position: relative; height: 30px; display: flex; gap: 4px; }
.week-bar i { flex: 3; border-radius: 6px; background: rgba(17, 18, 20, .14); }
.week-bar i:nth-child(n+2) { flex: 2; }
.week-bar .out { background: rgba(178, 58, 42, .55); transform-origin: left; opacity: 0; transform: scaleX(0); }
.week-bar .in {
  position: absolute; left: calc(60% * .72); width: calc(40% * .72); top: 0; bottom: 0;
  border-radius: 6px; background: var(--blue); transform-origin: left;
}
.legend { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 18px; font-size: 12px; color: var(--body); }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.swatch { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.rust-bg { background: rgba(178, 58, 42, .55); }
.blue-bg { background: var(--blue); }

/* ---------- Photo band ---------- */
.band-wrap { padding-top: 64px; padding-bottom: 64px; }
.band {
  position: relative; border-radius: 28px; overflow: hidden; min-height: 520px;
  border: 1px solid var(--line-2); display: flex; align-items: center;
}
.photo { filter: grayscale(1) contrast(1.05) brightness(1.02); }
.band .photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.band-fade {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(244, 242, 237, .95) 0%, rgba(244, 242, 237, .7) 45%, rgba(244, 242, 237, .1) 100%);
}
.band-scan {
  position: absolute; left: 0; right: 0; top: 0; height: 25%;
  background: linear-gradient(180deg, transparent, rgba(178, 58, 42, .10), transparent);
  transform: translateY(-100%);
}
.band-copy { position: relative; padding: clamp(32px, 6vw, 80px); max-width: 640px; }
.band-copy p { margin-top: 22px; color: var(--ink-3); font-size: 18px; }
.chips { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { font-size: 12px; padding: 8px 12px; border-radius: 999px; background: rgba(17, 18, 20, .08); color: var(--ink-2); }
@media (max-width: 760px) {
  .band { min-height: 0; }
  .band-fade { background: linear-gradient(180deg, rgba(244, 242, 237, .94) 0%, rgba(244, 242, 237, .82) 100%); }
}

/* ---------- Solutions ---------- */
#build { padding-top: 96px; }
.solutions {
  margin-top: 56px; display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
}
.solution { border-radius: 20px; padding: 30px; display: flex; flex-direction: column; gap: 18px; min-height: 280px; }
.solution-top { display: flex; justify-content: space-between; align-items: center; }
.icon {
  width: 48px; height: 48px; border-radius: 14px;
  border: 1px solid rgba(178, 58, 42, .35);
  display: grid; place-items: center; color: var(--bronze);
}
.num { font-size: 12px; color: var(--muted); }
.solution h3 { margin-top: 8px; font-size: 24px; letter-spacing: -0.02em; }
.solution p { color: var(--body); font-size: 15px; }
.replaces { margin-top: auto; font-size: 12px; color: var(--bronze); letter-spacing: .04em; }

/* ---------- Calculator ---------- */
.calc { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.calc-grid {
  display: grid; gap: 48px; align-items: center;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 480px), 1fr));
  padding-top: 120px; padding-bottom: 120px;
}
.calc-card {
  margin: 0;
  border: 1px solid var(--line-3); border-radius: 24px;
  background: rgba(255, 255, 255, .92);
  padding: clamp(24px, 4vw, 40px);
}
.calc-fields { display: flex; flex-direction: column; gap: 30px; }
.field-row { display: flex; justify-content: space-between; gap: 12px; }
.field-row label { font-size: 15px; color: var(--ink-2); }
.field-row output { color: var(--ink); white-space: nowrap; }
.field input { margin-top: 14px; }

input[type=range] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 4px; background: rgba(17, 18, 20, .12); border-radius: 4px;
  outline: none; cursor: pointer;
}
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%;
  background: var(--bronze); border: 4px solid var(--bg); box-shadow: 0 0 0 1px var(--bronze);
}
input[type=range]::-moz-range-thumb {
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--bronze); border: 4px solid var(--bg);
}
input[type=range]:focus-visible { outline: 2px solid var(--bronze); outline-offset: 6px; }

.calc-results {
  margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--line-2);
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px;
}
.calc-num { margin-top: 8px; font-size: clamp(28px, 3.4vw, 44px); letter-spacing: -0.03em; line-height: 1; }
.calc-foot { margin-top: 26px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.calc-foot span { font-size: 13px; color: var(--muted); }
@media (max-width: 760px) {
  .calc-grid { padding-top: 88px; padding-bottom: 88px; }
}

/* ---------- Process ---------- */
.steps {
  margin-top: 64px; display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  border-top: 1px solid var(--line-3);
}
.steps li { position: relative; padding: 32px 28px 32px 0; border-right: 1px solid rgba(17, 18, 20, .06); }
.steps li::before {
  content: ''; position: absolute; top: -5px; left: 0;
  width: 9px; height: 9px; border-radius: 50%; background: var(--bronze);
}
.step-n { font-size: 13px; color: var(--muted); }
.steps h3 { margin-top: 18px; font-size: 26px; letter-spacing: -0.02em; }
.steps p { margin-top: 12px; color: var(--body); font-size: 15px; padding-right: 12px; }
@media (max-width: 600px) {
  .steps { border-top: 0; border-left: 1px solid var(--line-3); margin-left: 4px; }
  .steps li { border-right: 0; padding: 0 0 36px 28px; }
  .steps li::before { top: 4px; left: -5px; }
  .steps h3 { margin-top: 8px; }
}

/* ---------- Why ---------- */
.why-grid {
  margin-top: 48px; display: grid; gap: 1px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  background: var(--line-2); border: 1px solid var(--line-2); border-radius: 22px; overflow: hidden;
}
.why { background: var(--bg); padding: 32px 28px; }
.why h3 { font-size: 20px; letter-spacing: -0.02em; }
.why p { margin-top: 10px; color: var(--body); font-size: 15px; }

/* ---------- Team + testimonial ---------- */
.duo {
  padding-top: 32px; padding-bottom: 128px;
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 480px), 1fr));
}
.team-panel {
  position: relative; border-radius: 24px; overflow: hidden; min-height: 460px;
  background: var(--ink); color: var(--bg);
  display: flex; align-items: flex-end;
}
.team-mark {
  position: absolute; right: -60px; top: -40px; width: 380px; height: auto; opacity: .09;
}
.team-panel::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(244, 242, 237, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 242, 237, .05) 1px, transparent 1px);
  background-size: 64px 64px;
}
.team-copy { position: relative; padding: 32px; }
.team-title { margin-top: 10px; font-size: clamp(26px, 3vw, 34px); line-height: 1.15; letter-spacing: -0.02em; font-weight: 500; max-width: 460px; }
.team-title .serif { color: var(--bronze-light); }

.quote-card { margin: 0; border-radius: 24px; min-height: 460px; padding: 40px 32px 32px; display: flex; flex-direction: column; }
.quote-mark { font-size: 96px; line-height: .6; color: var(--bronze); margin-top: 16px; }
.quote-card blockquote { margin: 16px 0 0; font-size: 24px; line-height: 1.4; letter-spacing: -0.01em; }
.quote-card figcaption {
  margin-top: auto; padding-top: 24px;
  display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap;
}
.quote-name { font-weight: 500; }
.quote-role { font-size: 13px; color: var(--muted); }
.quote-card .mono { font-size: 13px; }
@media (max-width: 760px) {
  .duo { padding-bottom: 88px; }
  .team-panel, .quote-card { min-height: 360px; }
}

/* ---------- FAQ ---------- */
.faq-wrap { border-top: 1px solid var(--line); padding-top: 96px; }
.faq-grid { display: grid; gap: 48px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); align-items: start; }
.faq { border-top: 1px solid var(--line-3); }
.faq details { border-bottom: 1px solid var(--line-3); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 22px 0; font-size: 18px; letter-spacing: -0.01em; font-weight: 500;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; font-family: var(--mono); font-weight: 400; color: var(--bronze); font-size: 20px;
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 32px 22px 0; color: var(--body); }

/* ---------- CTA ---------- */
.cta { position: relative; border-top: 1px solid var(--line); overflow: hidden; }
.cta-globe {
  position: absolute; left: 50%; top: 50%; width: 1100px; height: 1100px;
  transform: translate(-50%, -50%); opacity: .5;
}
.cta-globe ellipse, .cta-globe circle { transform-origin: 280px 280px; }
.cta-inner { position: relative; max-width: 960px; margin: 0 auto; padding: 160px var(--gutter); text-align: center; }
.cta-title { margin-top: 22px; font-size: clamp(48px, 7vw, 104px); line-height: .96; letter-spacing: -0.05em; }
.cta-inner p { margin: 28px auto 0; max-width: 560px; color: var(--body); font-size: 19px; }
.cta-inner .btn-row { margin-top: 44px; }
@media (max-width: 760px) {
  .cta-inner { padding-top: 104px; padding-bottom: 104px; }
  .cta-inner p { font-size: 17px; }
}

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.footer-grid {
  display: grid; gap: 40px; padding-top: 56px; padding-bottom: 40px;
  grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr));
}
.footer-brand img { height: 64px; width: auto; margin-left: -10px; }
.footer-brand p { margin-top: 8px; max-width: 320px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col .label { margin-bottom: 4px; }
.footer-col a { color: var(--body); }
.footer-col a:hover { color: var(--ink); }
.footer-base { padding-top: 20px; padding-bottom: 32px; border-top: 1px solid var(--line); font-size: 13px; }
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

/* =========================================================
   Inner pages
   ========================================================= */
.navlink[aria-current="page"] { color: var(--ink); }

.page-hero { border-bottom: 1px solid var(--line); }
.page-hero-inner { padding-top: 88px; padding-bottom: 96px; }
.page-hero-inner > * { max-width: 980px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.crumbs a { color: var(--bronze); }
.crumbs span[aria-hidden] { color: var(--line-4); }
.page-title {
  margin-top: 24px;
  font-size: clamp(42px, 6vw, 84px); line-height: 1; letter-spacing: -0.045em;
}
.page-lede { margin-top: 28px; max-width: 640px; font-size: 19px; color: var(--body); }
.page-hero .btn-row { margin-top: 40px; }
@media (max-width: 760px) {
  .page-hero-inner { padding-top: 56px; padding-bottom: 64px; }
  .page-lede { font-size: 17px; }
}

/* Two-column detail: list + side cards */
.detail-grid {
  display: grid; gap: 20px; align-items: start;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
}
@media (max-width: 900px) { .detail-grid { grid-template-columns: 1fr; } }

.build-card { padding: clamp(28px, 4vw, 40px); }
.build-card h2 { font-size: clamp(26px, 3vw, 34px); letter-spacing: -0.03em; line-height: 1.1; }
.build-list { margin-top: 28px; display: grid; gap: 0; }
.build-list li {
  display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; align-items: start;
  padding: 16px 0; border-top: 1px solid var(--line-2); font-size: 16px; color: var(--ink-2);
}
.build-list li:last-child { border-bottom: 1px solid var(--line-2); }
.build-list li::before {
  content: ''; width: 22px; height: 22px; margin-top: 1px; border-radius: 7px;
  border: 1px solid rgba(178, 58, 42, .35);
  background: no-repeat center / 12px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%23B23A2A' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 6.2l2.3 2.3 4.7-5'/%3E%3C/svg%3E");
}

.side-stack { display: flex; flex-direction: column; gap: 20px; }
.side-card { padding: 28px; }
.side-card p { margin-top: 12px; color: var(--body); }
.outcome-card { padding: 32px 28px; background: var(--ink); color: var(--bg); border-color: var(--ink); }
.outcome-card:hover { border-color: var(--ink); }
.outcome-card .label { color: var(--bronze-light); }
.outcome-text { margin-top: 14px; font-size: 26px; line-height: 1.25; letter-spacing: -0.02em; }
.note { margin-top: 20px; font-size: 13px; color: var(--muted); }

/* Card grids that link somewhere */
.link-card { color: inherit; display: flex; flex-direction: column; }
.link-card:hover { color: inherit; }
.link-card .more { margin-top: auto; padding-top: 8px; font-size: 13px; color: var(--bronze); font-weight: 500; }
.link-card .more::after { content: ' →'; }
.solutions .solution.link-card { gap: 18px; }

.industry-grid {
  margin-top: 56px; display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
}
.industry-card { border-radius: 20px; padding: 28px; gap: 12px; min-height: 230px; }
.industry-card h3 { font-size: 22px; line-height: 1.25; letter-spacing: -0.02em; }
.industry-card p { color: var(--body); font-size: 15px; }

.chip-links { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 10px; }
.chip-links a {
  font-size: 14px; padding: 10px 16px; border-radius: 999px;
  border: 1px solid var(--line-4); color: var(--ink-2);
}
.chip-links a:hover { border-color: var(--bronze); color: var(--bronze); }

.callout {
  margin-top: 64px; padding: clamp(28px, 4vw, 48px); border-radius: 24px;
  border: 1px solid var(--line-3); background: rgba(255, 255, 255, .6);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
}
.callout h2 { font-size: clamp(26px, 3vw, 36px); letter-spacing: -0.03em; line-height: 1.1; }
.callout p { margin-top: 10px; max-width: 620px; color: var(--body); }

/* Compact CTA band for inner pages */
.cta-compact .cta-inner { padding-top: 120px; padding-bottom: 120px; }
.cta-compact .cta-title { font-size: clamp(42px, 6vw, 80px); }

/* About */
.prose { max-width: 720px; }
.prose p { font-size: 19px; color: var(--ink-3); line-height: 1.65; }
.prose p + p { margin-top: 22px; }
.about-grid { display: grid; gap: 48px; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); align-items: start; }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } }

/* Contact */
.contact-grid {
  display: grid; gap: 20px; align-items: start;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.form-card { padding: clamp(24px, 4vw, 40px); }
.form-intro { margin-top: 10px; color: var(--body); font-size: 15px; }
/* 123FormBuilder iframe: reserve space so the page does not jump while it loads */
.form-embed { margin-top: 12px; min-height: 640px; }
.form-embed iframe { width: 100% !important; border: 0; }

.contact-list { margin-top: 18px; display: flex; flex-direction: column; gap: 6px; }
.contact-list a { font-size: 20px; letter-spacing: -0.01em; color: var(--ink); }
.contact-list a:hover { color: var(--bronze); }
.expect { margin-top: 18px; counter-reset: expect; display: flex; flex-direction: column; gap: 16px; }
.expect li { counter-increment: expect; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; color: var(--body); font-size: 15px; }
.expect li::before { content: counter(expect, decimal-leading-zero); font-family: var(--mono); font-size: 12px; color: var(--bronze); padding-top: 3px; }
.expect strong { color: var(--ink); font-weight: 500; }

/* Footer extra column */

/* =========================================================
   Ads landing page (/free-audit/) and thank-you page
   ========================================================= */
.lp-header .nav { padding-top: 10px; padding-bottom: 10px; }
.lp-header .btn svg { flex: none; }

.lp-hero { border-bottom: 1px solid var(--line); }
.lp-hero-grid {
  display: grid; gap: 48px; align-items: start;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  padding-top: 72px; padding-bottom: 88px;
}
@media (max-width: 960px) {
  .lp-hero-grid { grid-template-columns: 1fr; padding-top: 48px; padding-bottom: 56px; gap: 36px; }
}
.lp-title {
  margin-top: 24px;
  font-size: clamp(40px, 5.2vw, 72px); line-height: 1; letter-spacing: -0.045em;
}
.check-list { margin-top: 28px; display: flex; flex-direction: column; gap: 12px; }
.check-list li {
  display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px; align-items: start;
  font-size: 17px; color: var(--ink-2);
}
.check-list li::before {
  content: ''; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%;
  background: var(--bronze) no-repeat center / 12px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%23F4F2ED' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 6.2l2.3 2.3 4.7-5'/%3E%3C/svg%3E");
}
.lp-stats { margin-top: 40px; }
.lp-form { box-shadow: 0 30px 80px rgba(17, 18, 20, .10); scroll-margin-top: 24px; }
.lp-form:hover { transform: none; }
.lp-form-title { margin-top: 10px; font-size: clamp(24px, 2.6vw, 30px); letter-spacing: -0.03em; line-height: 1.15; }

.lp-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.lp-footer a { color: var(--body); }

/* Sticky mobile CTA, hidden on desktop and while the form is on screen */
.sticky-cta {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 30;
  display: none; gap: 8px; padding: 8px;
  background: rgba(244, 242, 237, .94);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--line-3); border-radius: 999px;
  box-shadow: 0 12px 40px rgba(17, 18, 20, .16);
  transition: transform .25s ease, opacity .25s ease;
}
.sticky-cta .btn-primary { flex: 1; }
.sticky-cta.is-hidden { transform: translateY(140%); opacity: 0; pointer-events: none; }
@media (max-width: 760px) {
  .sticky-cta { display: flex; }
  body.lp { padding-bottom: 84px; }
}

/* Comparison table (custom CRM page) */
.compare-wrap { margin-top: 40px; overflow-x: auto; border: 1px solid var(--line-2); border-radius: 22px; background: var(--surface); }
.compare { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 15px; }
.compare th, .compare td { padding: 18px 24px; text-align: left; vertical-align: top; border-top: 1px solid var(--line-2); }
.compare thead th { border-top: 0; font-size: 17px; font-weight: 500; letter-spacing: -0.01em; }
.compare thead th span { display: block; margin-top: 4px; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 400; }
.compare tbody th { width: 18%; font-weight: 500; color: var(--ink); }
.compare td { color: var(--body); }
.compare .ours { background: rgba(178, 58, 42, .06); color: var(--ink-2); }
.compare thead .ours { color: var(--bronze); }
@media (max-width: 640px) {
  .compare-wrap { overflow: visible; }
  .compare { min-width: 0; }
  .compare thead { display: none; }
  .compare tbody, .compare tr, .compare th, .compare td { display: block; width: 100%; }
  .compare tbody tr { border-top: 1px solid var(--line-2); }
  .compare tbody tr:first-child { border-top: 0; }
  .compare tbody th { width: 100%; padding: 18px 20px 6px; border-top: 0; font-size: 16px; }
  .compare td { border-top: 0; padding: 8px 20px; }
  .compare td:last-child { padding-bottom: 18px; }
  .compare td::before {
    content: attr(data-label); display: block; margin-bottom: 2px;
    font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
  }
  .compare td.ours { background: none; }
  .compare td.ours::before { color: var(--bronze); }
}

/* Card links: only the title is the link (clean anchor text); its ::after
   stretches over the card so the whole card stays clickable */
.link-card { position: relative; }
.card-link { color: inherit; }
.card-link:hover { color: inherit; }
.card-link::after { content: ''; position: absolute; inset: 0; border-radius: inherit; }
.card-link:focus-visible { outline: none; }
.link-card:has(.card-link:focus-visible) { outline: 2px solid var(--bronze); outline-offset: 3px; }

/* Links inside running text */
.text-link { color: var(--bronze); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.text-link:hover { color: var(--bronze-dark); }
.build-note { margin-top: 20px; color: var(--body); font-size: 15px; }
#by-industry .lede { margin-top: 14px; max-width: 640px; }

/* Footer with an Industries column */
@media (min-width: 961px) { .footer-grid.cols-5 { grid-template-columns: minmax(0, 1.3fr) repeat(4, minmax(0, 1fr)); } }
@media (min-width: 761px) and (max-width: 960px) {
  .footer-grid.cols-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid.cols-5 .footer-brand { grid-column: 1 / -1; }
}

/* Expanded solution / industry page sections */
.section-tight .lede { margin-top: 14px; max-width: 680px; }
.why-grid { margin-top: 40px; }
.feature-grid {
  margin-top: 40px; display: grid; gap: 36px 48px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
}
.feature { padding-top: 22px; border-top: 1px solid var(--line-3); }
.feature h3 { font-size: 21px; letter-spacing: -0.02em; line-height: 1.25; }
.feature p { margin-top: 10px; color: var(--body); }
.feature-more { display: inline-block; margin-top: 12px; font-size: 14px; }
.feature-more::after { content: ' →'; }
.steps-tight { margin-top: 40px; }
.replaces-grid {
  margin-top: 32px; display: grid; gap: 28px 48px; align-items: start;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
}
.replaces-body { font-size: 18px; color: var(--ink-3); line-height: 1.6; }
.replaces-grid .chips { margin-top: 0; }
@media (max-width: 860px) { .replaces-grid { grid-template-columns: 1fr; } }

/* Touch targets: footer links, breadcrumbs and slider handles at least ~44px tall on phones */
@media (max-width: 760px) {
  .footer-col { gap: 0; }
  .footer-col .label { margin-bottom: 6px; }
  .footer-col a { display: flex; align-items: center; min-height: 44px; }
  .crumbs { margin: -12px 0; }
  .crumbs a, .crumbs span[aria-current] { display: inline-flex; align-items: center; min-height: 44px; }
  .label, .eyebrow { font-size: 12px; }
}
@media (pointer: coarse) {
  input[type=range] { height: 6px; }
  input[type=range]::-webkit-slider-thumb { width: 30px; height: 30px; }
  input[type=range]::-moz-range-thumb { width: 22px; height: 22px; }
}

/* =========================================================
   Dark theme: black + deep purple. Set by data-theme on <html>
   (device setting by default, sun/moon toggle in the header).
   ========================================================= */
html[data-theme="dark"] {
  --bg: #0A0910;
  --surface: #14111D;
  --ink: #F1EEF8;
  --ink-2: #DCD6E8;
  --ink-3: #C9C2D8;
  --body: #ADA5BD;
  --muted: #8C8499;
  --bronze: #B9A2FF;
  --bronze-dark: #D3C4FF;
  --bronze-light: #C8B6FF;
  --blue: #7FB1E8;
  --rust: #E38A72;
  --purple: #6D44E0;
  --purple-deep: #1B1230;
  --line: rgba(255, 255, 255, .07);
  --line-2: rgba(255, 255, 255, .10);
  --line-3: rgba(255, 255, 255, .13);
  --line-4: rgba(255, 255, 255, .22);
  color-scheme: dark;
}
html[data-theme="dark"] body {
  background:
    radial-gradient(900px 520px at 85% -120px, rgba(109, 68, 224, .22), transparent 70%),
    radial-gradient(700px 420px at -10% 30%, rgba(109, 68, 224, .08), transparent 70%),
    var(--bg);
}
html[data-theme="dark"] ::selection { background: var(--purple); color: #fff; }
html[data-theme="dark"] .gridbg {
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
}
html[data-theme="dark"] .site-header { background: rgba(10, 9, 16, .82); }
html[data-theme="dark"] .pill { background: rgba(20, 17, 29, .7); }
html[data-theme="dark"] .btn-primary { background: var(--purple); color: #fff; }
html[data-theme="dark"] .btn-primary:hover { background: #7C55EE; color: #fff; }
html[data-theme="dark"] .btn-ghost:hover { border-color: rgba(255, 255, 255, .5); color: #fff; }

/* SVG line art (globes) carries light-theme colors as attributes */
html[data-theme="dark"] svg [stroke^="rgba(17,18,20"] { stroke: rgba(255, 255, 255, .10); }
html[data-theme="dark"] .globe circle[stroke="rgba(17,18,20,.14)"] { stroke: rgba(255, 255, 255, .16); }
html[data-theme="dark"] svg [stroke="#B23A2A"] { stroke: #9B7BFF; }
html[data-theme="dark"] svg [fill="#B23A2A"] { fill: #9B7BFF; }
html[data-theme="dark"] svg [fill="#111214"] { fill: var(--ink); }
html[data-theme="dark"] svg [fill="#3F6A94"] { fill: var(--blue); }

/* Hero cards */
html[data-theme="dark"] .stack-card { background: rgba(20, 17, 29, .86); }
html[data-theme="dark"] .stack-foot { border-top-color: rgba(255, 255, 255, .14); }
html[data-theme="dark"] .system-card { border-color: rgba(185, 162, 255, .35); box-shadow: 0 30px 80px rgba(0, 0, 0, .5), 0 0 60px rgba(109, 68, 224, .18); }

/* Cards and accents */
html[data-theme="dark"] .card:hover { border-color: rgba(185, 162, 255, .45); }
html[data-theme="dark"] .icon,
html[data-theme="dark"] .tag { border-color: rgba(185, 162, 255, .35); }
html[data-theme="dark"] .bars-marker { border-left-color: rgba(185, 162, 255, .6); }
html[data-theme="dark"] .bar.after { background: #8F6CF5; }
html[data-theme="dark"] .week-bar i { background: rgba(255, 255, 255, .10); }
html[data-theme="dark"] .week-bar .out { background: rgba(227, 138, 114, .6); }
html[data-theme="dark"] .steps li { border-right-color: var(--line); }
html[data-theme="dark"] .callout { background: rgba(255, 255, 255, .03); }
html[data-theme="dark"] .compare .ours { background: rgba(155, 123, 255, .08); }
html[data-theme="dark"] .chips li { background: rgba(255, 255, 255, .08); }
html[data-theme="dark"] .livedot { background: #9B7BFF; }

/* Photo band */
html[data-theme="dark"] .band .photo { filter: grayscale(1) contrast(1.05) brightness(.55); }
html[data-theme="dark"] .band-fade { background: linear-gradient(90deg, rgba(10, 9, 16, .96) 0%, rgba(10, 9, 16, .75) 45%, rgba(27, 18, 48, .35) 100%); }
html[data-theme="dark"] .band-scan { background: linear-gradient(180deg, transparent, rgba(155, 123, 255, .14), transparent); }
html[data-theme="dark"] .band-copy p { color: var(--ink-3); }
@media (max-width: 760px) {
  html[data-theme="dark"] .band-fade { background: linear-gradient(180deg, rgba(10, 9, 16, .92) 0%, rgba(10, 9, 16, .84) 100%); }
}

/* Calculator */
html[data-theme="dark"] .calc-card { background: rgba(20, 17, 29, .92); }
html[data-theme="dark"] input[type=range] { background: rgba(255, 255, 255, .14); }
html[data-theme="dark"] input[type=range]::-webkit-slider-thumb { background: var(--purple); box-shadow: 0 0 0 1px #9B7BFF; }
html[data-theme="dark"] input[type=range]::-moz-range-thumb { background: var(--purple); }

/* Panels that used ink as a background */
html[data-theme="dark"] .team-panel { background: linear-gradient(160deg, #24164A, var(--purple-deep) 60%, #120C20); color: var(--ink); }
html[data-theme="dark"] .outcome-card { background: linear-gradient(160deg, #24164A, var(--purple-deep)); color: var(--ink); border-color: rgba(185, 162, 255, .25); }
html[data-theme="dark"] .outcome-card:hover { border-color: rgba(185, 162, 255, .25); }

/* The 123FormBuilder iframe reads the theme through prefers-color-scheme,
   which follows the iframe element's color-scheme (see form-123.css) */
.form-embed iframe { color-scheme: light; }
html[data-theme="dark"] .form-embed iframe { color-scheme: dark; }
html[data-theme="dark"] .lp-form { box-shadow: 0 30px 80px rgba(0, 0, 0, .5), 0 0 80px rgba(109, 68, 224, .25); }

html[data-theme="dark"] .sticky-cta { background: rgba(10, 9, 16, .94); }

/* Logo swap */
.logo-dark { display: none; }
html[data-theme="dark"] .logo-light { display: none; }
html[data-theme="dark"] .logo-dark { display: block; }

/* Theme toggle */
.theme-toggle {
  width: 44px; height: 44px; border-radius: 999px; flex: none;
  border: 1px solid var(--line-4); background: transparent; color: var(--ink); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.theme-toggle:hover { border-color: var(--bronze); color: var(--bronze); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-sun { display: none; }
html[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
html[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
@media (max-width: 920px) { .nav-menu .theme-toggle { margin-top: 16px; } }

/* =========================================================
   Alternating section strips: every other content section gets a
   full-width tinted band so sections read as distinct blocks.
   Sections with their own background (heroes, grid, CTA) are skipped.
   ========================================================= */
:root { --bg-alt: #ECE9E1; }
html[data-theme="dark"] { --bg-alt: #17121F; }
main > section:nth-of-type(even):not(.hero):not(.page-hero):not(.lp-hero):not(.gridbg):not(.cta):not(.marquee) {
  position: relative;
  isolation: isolate;
  padding-top: 96px;
  padding-bottom: 96px;
}
main > section:nth-of-type(even):not(.hero):not(.page-hero):not(.lp-hero):not(.gridbg):not(.cta):not(.marquee)::before {
  content: '';
  position: absolute;
  z-index: -1;
  top: 0;
  bottom: 0;
  left: calc(50% - 50vw);
  right: calc(50% - 50vw);
  background: var(--bg-alt);
  border-top: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
}
/* faq sections draw their own top rule; inside a strip the strip edge replaces it */
main > section.faq-wrap:nth-of-type(even) { border-top: 0; }
@media (max-width: 760px) {
  main > section:nth-of-type(even):not(.hero):not(.page-hero):not(.lp-hero):not(.gridbg):not(.cta):not(.marquee) {
    padding-top: 64px;
    padding-bottom: 64px;
  }
}

/* =========================================================
   Homepage visuals: lead flow, per-seat chart, year-one chart,
   animated process timeline. Final states are the defaults; motion
   only plays (once in view) when the visitor allows it.
   ========================================================= */
:root { --accent-rgb: 178, 58, 42; }
html[data-theme="dark"] { --accent-rgb: 155, 123, 255; }

/* Shared chart card */
.chart-card { padding: 28px; margin: 0; }
.chart-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.chart-card svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart-grid line { stroke: var(--line-2); stroke-dasharray: 3 5; }
.chart-axis { stroke: var(--line-4); }
.chart-label { fill: var(--muted); font-family: var(--mono); font-size: 11px; }
.chart-note { font-family: var(--sans); font-size: 13px; font-weight: 500; }
.saas-note { fill: var(--rust); }
.custom-note { fill: var(--bronze); }
.gap-note { fill: var(--bronze); font-family: var(--serif); font-style: italic; font-size: 19px; font-weight: 400; }
.accent-bg { background: var(--bronze); }
.gap-bg { background: rgba(var(--accent-rgb), .22); }
.chart-card .legend { margin-top: 16px; }

/* 1. Lead flow */
.flow { margin-top: 56px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 28px; }
.flow-node { position: relative; padding: 24px 20px; border: 1px solid var(--line-2); border-radius: 18px; background: var(--surface); }
.flow-icon, .why-icon, .step-icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  color: var(--bronze); border: 1px solid rgba(var(--accent-rgb), .35);
}
.flow-icon svg, .why-icon svg, .step-icon svg { width: 22px; height: 22px; }
.flow-step { margin-top: 18px; font-size: 12px; color: var(--muted); }
.flow-node h3 { margin-top: 6px; font-size: 18px; letter-spacing: -0.02em; }
.flow-node p { margin-top: 6px; font-size: 14px; color: var(--body); }
.flow-link { position: absolute; top: 46px; left: 100%; width: 28px; height: 2px; background: var(--line-3); }
.flow-link i { position: absolute; top: -3px; left: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--bronze); opacity: 0; box-shadow: 0 0 12px rgba(var(--accent-rgb), .8); }
.flow-foot { margin-top: 28px; }
@media (max-width: 1100px) {
  .flow { grid-template-columns: 1fr; gap: 24px; }
  .flow-node { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 16px; align-items: start; }
  .flow-icon { grid-row: span 3; }
  .flow-step { margin-top: 0; }
  .flow-link { top: 100%; left: 41px; width: 2px; height: 24px; }
  .flow-link i { top: 0; left: -3px; }
}
@keyframes flowLit {
  0%, 24%, 100% { border-color: var(--line-2); box-shadow: none; }
  3%, 16% { border-color: rgba(var(--accent-rgb), .7); box-shadow: 0 0 0 4px rgba(var(--accent-rgb), .12), 0 18px 40px rgba(var(--accent-rgb), .14); }
}
@keyframes flowIcon {
  0%, 24%, 100% { background: transparent; color: var(--bronze); }
  3%, 16% { background: var(--bronze); color: var(--bg); }
}
@keyframes flowDot { 0% { left: 0; opacity: 0; } 2% { opacity: 1; } 9% { left: calc(100% - 8px); opacity: 1; } 11%, 100% { left: calc(100% - 8px); opacity: 0; } }
@keyframes flowDotV { 0% { top: 0; opacity: 0; } 2% { opacity: 1; } 9% { top: calc(100% - 8px); opacity: 1; } 11%, 100% { top: calc(100% - 8px); opacity: 0; } }
@media (prefers-reduced-motion: no-preference) {
  .flow-node { animation: flowLit 10s ease calc(var(--i) * 2s) infinite; }
  .flow-node .flow-icon { animation: flowIcon 10s ease calc(var(--i) * 2s) infinite; }
  .flow-link i { animation: flowDot 10s ease-in-out calc(var(--i) * 2s + 1.4s) infinite; }
  .js .flow:not(.in-view) .flow-node,
  .js .flow:not(.in-view) .flow-icon,
  .js .flow:not(.in-view) .flow-link i { animation-play-state: paused; }
}
@media (prefers-reduced-motion: no-preference) and (max-width: 1100px) {
  .flow-link i { animation-name: flowDotV; }
}

/* 2. Per-seat cost chart + compact reasons */
.why-split { margin-top: 48px; display: grid; gap: 48px; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: center; }
@media (max-width: 960px) { .why-split { grid-template-columns: 1fr; gap: 36px; } }
.seat-saas { fill: none; stroke: var(--rust); stroke-width: 3; stroke-linejoin: round; }
.seat-custom { fill: none; stroke: var(--bronze); stroke-width: 3; }
.seat-gap { fill: rgba(var(--accent-rgb), .16); }
.why-list { display: flex; flex-direction: column; gap: 24px; }
.why-list li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; align-items: start; }
.why-list h3 { font-size: 19px; letter-spacing: -0.02em; line-height: 1.3; }
.why-list p { margin-top: 4px; color: var(--body); font-size: 15px; }
@media (prefers-reduced-motion: no-preference) {
  .seat-saas, .seat-custom { stroke-dasharray: 1; transition: stroke-dashoffset 1.8s cubic-bezier(.4, 0, .2, 1); }
  .seat-custom { transition-delay: .3s; }
  .js .seat-chart:not(.in-view) .seat-saas,
  .js .seat-chart:not(.in-view) .seat-custom { stroke-dashoffset: 1; }
  .seat-gap, .gap-note { transition: opacity .8s ease 1.7s; }
  .js .seat-chart:not(.in-view) .seat-gap,
  .js .seat-chart:not(.in-view) .gap-note { opacity: 0; }
}

/* 3. Year-one savings chart */
.year-grid { display: grid; gap: 48px; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); align-items: center; }
@media (max-width: 960px) { .year-grid { grid-template-columns: 1fr; gap: 36px; } }
.year-counter { margin: 32px 0 28px; }
.year-num { margin-top: 8px; font-family: var(--sans); font-weight: 500; font-size: clamp(52px, 6.4vw, 84px); line-height: 1; letter-spacing: -0.045em; color: var(--bronze); font-variant-numeric: tabular-nums; }
.year-month { margin-top: 10px; font-size: 13px; color: var(--muted); }
.year-bar { fill: rgba(var(--accent-rgb), .2); transform-box: fill-box; transform-origin: bottom; transform: scaleY(var(--s, 1)); }
.year-bar.is-paid { fill: rgba(var(--accent-rgb), .7); }
.year-bar.is-active { fill: var(--bronze); }
.year-build { transform: translateY(var(--y)); }
.year-build line { stroke: var(--ink); stroke-width: 1.5; stroke-dasharray: 6 5; }
.year-build-label { fill: var(--ink-2); }
.year-paid-label { fill: var(--bronze); }
.year-paid-label.is-hidden { opacity: 0; }
.year-controls { margin: 22px 0 6px; display: grid; gap: 22px 32px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.year-controls .field input { margin-top: 12px; }
@media (max-width: 600px) { .year-controls { grid-template-columns: 1fr; } }
.year-chart svg { cursor: crosshair; touch-action: pan-y; }
.year-readout { margin-top: 14px; min-height: 1.5em; font-size: 13px; color: var(--ink-2); }
.year-readout strong { color: var(--bronze); font-weight: 500; }
@media (prefers-reduced-motion: no-preference) {
  .year-bar { transition: transform .5s cubic-bezier(.2, .7, .2, 1) calc(var(--i) * .18s); }
  .js .year-chart:not(.in-view) .year-bar { transform: scaleY(0); }
  .year-chart.in-view.is-live .year-bar { transition: transform .35s cubic-bezier(.2, .7, .2, 1), fill .2s; }
  .year-build { transition: transform .35s cubic-bezier(.2, .7, .2, 1); }
  .js .year-chart:not(.in-view) .year-build, .js .year-chart:not(.in-view) .year-paid-label { opacity: 0; }
  .year-build, .year-paid-label { transition: transform .35s cubic-bezier(.2, .7, .2, 1), opacity .4s 2.2s; }
  .year-chart.is-live .year-paid-label, .year-chart.is-live .year-build { transition: transform .35s cubic-bezier(.2, .7, .2, 1), opacity .2s; }
}

/* 4. Process timeline */
.step-icon { margin-bottom: 16px; background: var(--bg); }
.steps-animated { position: relative; }
.steps-animated::after {
  content: ''; position: absolute; left: 0; top: -1px; height: 2px; width: 100%;
  background: var(--bronze); transform-origin: left;
}
@media (max-width: 600px) {
  .steps-animated::after { top: 0; left: -1px; width: 2px; height: 100%; transform-origin: top; }
}
@media (prefers-reduced-motion: no-preference) {
  .steps-animated::after { transition: transform 1.8s cubic-bezier(.4, 0, .2, 1); }
  .js .steps-animated:not(.in-view)::after { transform: scaleX(0); }
  .steps-animated li { transition: opacity .6s ease, transform .6s ease; }
  .steps-animated li:nth-child(2) { transition-delay: .4s; }
  .steps-animated li:nth-child(3) { transition-delay: .8s; }
  .steps-animated li:nth-child(4) { transition-delay: 1.2s; }
  .js .steps-animated:not(.in-view) li { opacity: 0; transform: translateY(14px); }
}
@media (prefers-reduced-motion: no-preference) and (max-width: 600px) {
  .js .steps-animated:not(.in-view)::after { transform: scaleY(0); }
}
/* Charts scale down on phones; enlarge their SVG text so it stays readable */
@media (max-width: 600px) {
  .chart-card { padding: 20px; }
  .chart-card .chart-label { font-size: 18px; }
  .chart-card .chart-note { font-size: 20px; }
  .chart-card .gap-note { font-size: 26px; }
  .year-chart .chart-label:nth-of-type(even) { display: none; }
}

/* Short hero: one big serif headline + a single-line subhead */
.hero-title-short { font-size: clamp(64px, 10vw, 140px); line-height: .95; letter-spacing: -0.035em; }
.hero-title-short .hero-serif { font-size: 1em; }
.hero-sub-lead {
  margin-top: 22px; max-width: 560px;
  font-size: clamp(24px, 2.6vw, 34px); line-height: 1.2; letter-spacing: -0.025em;
  font-weight: 500; color: var(--ink);
}
.build-lede { max-width: 640px; }
@media (max-width: 760px) { .hero-sub-lead { font-size: 24px; } }

/* Case studies */
.cs-stats-wrap { padding-top: 0; }
.page-hero + .cs-stats-wrap { margin-top: -40px; position: relative; }
.cs-stats { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.cs-stat { padding: 28px; }
.cs-stat .proof-num { font-size: clamp(36px, 4vw, 48px); }
.cs-stat p { margin-top: 14px; color: var(--body); font-size: 15px; }
.cs-card-num { font-size: 22px; letter-spacing: -0.02em; color: var(--ink); }
.page-hero-inner .pill { margin: 24px 0 20px; }

/* Hero visual on phones: cards in normal flow, no floating offsets or stray globe arc */
@media (max-width: 760px) {
  .hero-visual { min-height: 0; display: flex; flex-direction: column; }
  .hero-visual .globe { display: none; }
  .stack-card { position: relative; top: auto; right: auto; width: 100%; max-width: none; padding: 20px 20px 44px; }
  .system-card { position: relative; bottom: auto; left: auto; width: calc(100% - 24px); max-width: none; margin: -24px auto 0; padding: 20px; }
  .stack-list li, .stack-foot { font-size: 13px; }
  .system-modules > div { padding: 10px 8px; font-size: 12px; }
}

/* Light theme: accent and "waste" share one red, so the per-seat chart's custom line goes ink to stay distinct */
html:not([data-theme="dark"]) .seat-custom { stroke: var(--ink); }
html:not([data-theme="dark"]) .custom-note { fill: var(--ink); }
html:not([data-theme="dark"]) .seat-chart .accent-bg { background: var(--ink); }
