/* ─────────────────────────────────────────────────────────────
   MARCO — Enterprise Account Execution Intelligence
   Design tokens + global styles
   ───────────────────────────────────────────────────────────── */

:root {
  /* Palette — warm white page, deep ink, muted teal accent */
  --bg:           #FFFFFF;
  --bg-2:         #FAFAF6;
  --panel:        #F6F5F1;
  --panel-2:      #EFEEE9;
  --panel-3:      #E7E6DF;
  --border:       #E6E4DD;
  --border-soft:  #EEEDE6;
  --border-strong:#D2D0C8;

  --fg:           #15181D;
  --fg-2:         #2C3138;
  --fg-dim:       #565C64;
  --fg-mute:      #898E97;
  --fg-faint:     #BCBFC4;

  --accent:       #1F6E5C;
  --accent-2:     #2A8975;
  --accent-dim:   #C5DDD5;
  --accent-glow:  rgba(31, 110, 92, 0.08);
  --accent-soft-bg: rgba(31, 110, 92, 0.05);

  --warn:         #A6783E;
  --danger:       #B85742;

  /* Type */
  --font-sans:    'Geist', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-mono:    'Geist Mono', 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --font-serif:   'Instrument Serif', 'Cormorant Garamond', Georgia, serif;

  /* Scale */
  --radius-sm:    4px;
  --radius:       8px;
  --radius-lg:    12px;
  --radius-xl:    16px;

  --shadow-sm:    0 1px 2px rgba(20,24,30,0.04);
  --shadow:       0 8px 24px rgba(20,24,30,0.06);
  --shadow-lg:    0 24px 60px rgba(20,24,30,0.10);

  --nav-h:        64px;
  --container:    1240px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { background: var(--bg); }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--fg);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'ss01', 'cv11';
  letter-spacing: -0.005em;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

/* Type pairing overrides (toggled via Tweaks) */
body[data-type="geist"]    { --font-sans: 'Geist', system-ui, sans-serif; --font-mono: 'Geist Mono', ui-monospace, monospace; }
body[data-type="inter"]    { --font-sans: 'Inter Tight', system-ui, sans-serif; --font-mono: 'JetBrains Mono', ui-monospace, monospace; }
body[data-type="sohne"]    { --font-sans: 'DM Sans', system-ui, sans-serif; --font-mono: 'IBM Plex Mono', ui-monospace, monospace; }
body[data-type="serif"]    { --font-sans: 'Inter Tight', system-ui, sans-serif; --font-mono: 'JetBrains Mono', ui-monospace, monospace; }
body[data-type="serif"] h1,
body[data-type="serif"] h2.serif-h,
body[data-type="serif"] .display { font-family: 'Instrument Serif', Georgia, serif; font-weight: 400; letter-spacing: -0.02em; }

/* ─── Type scale ─────────────────────────────────────────── */
h1, h2, h3, h4 { margin: 0; font-weight: 500; letter-spacing: -0.025em; line-height: 1.05; }
h1 { font-size: clamp(40px, 6.4vw, 88px); font-weight: 500; letter-spacing: -0.035em; line-height: 1.02; }
h2 { font-size: clamp(32px, 4.2vw, 56px); letter-spacing: -0.03em; line-height: 1.06; }
h3 { font-size: clamp(20px, 1.6vw, 24px); letter-spacing: -0.018em; line-height: 1.2; }
h4 { font-size: 17px; font-weight: 500; line-height: 1.3; }
p  { margin: 0; color: var(--fg-2); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--accent);
  opacity: 0.5;
}
.eyebrow.no-rule::before { display: none; }

.lead {
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.5;
  color: var(--fg-dim);
  max-width: 640px;
  letter-spacing: -0.01em;
}
.muted { color: var(--fg-dim); }
.mono  { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: -0.005em; }
.serif-italic { font-family: var(--font-serif); font-style: italic; font-weight: 400; }

/* ─── Layout ─────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}
section { position: relative; }
.section {
  padding: clamp(80px, 11vw, 160px) 0;
  border-top: 1px solid var(--border-soft);
}
.section.tight { padding: clamp(64px, 8vw, 120px) 0; }
.section.no-rule { border-top: 0; }
.section-head {
  display: grid;
  grid-template-columns: 1fr 1.8fr;
  gap: 64px;
  align-items: start;
  margin-bottom: 72px;
}
.section-head .label { padding-top: 6px; }
@media (max-width: 880px) {
  .section-head { grid-template-columns: 1fr; gap: 28px; margin-bottom: 48px; }
}

/* ─── Nav ────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--border-soft);
}
.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  letter-spacing: 0.01em;
  font-size: 15px;
}
.brand-mark {
  width: 18px; height: 18px;
  border-radius: 4px;
  background: linear-gradient(135deg, var(--fg) 0%, var(--fg-2) 45%, var(--accent) 100%);
  position: relative;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.20), 0 1px 2px rgba(20,24,30,0.08);
}
.brand-mark::after{
  content:''; position:absolute; left:4px; top:4px; right:6px; bottom:6px;
  background: rgba(255,255,255,0.08);
  border-radius: 1px;
}
.brand-mark::before{
  content:''; position:absolute; right:3px; bottom:3px;
  width:4px; height:4px; border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 8px rgba(95,179,154,0.6);
  z-index: 1;
}
.brand-name { color: var(--fg); }
.brand-name b { font-weight: 500; letter-spacing: 0.02em; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links a {
  color: var(--fg-dim);
  font-size: 13.5px;
  padding: 8px 14px;
  border-radius: 6px;
  transition: color .15s ease, background .15s ease;
}
.nav-links a:hover { color: var(--fg); background: var(--panel); }
.nav-links a.active { color: var(--fg); }
.nav-cta { display: flex; align-items: center; gap: 10px; }

/* Resources dropdown */
.nav-drop { position: relative; }
.nav-drop > button.nav-droptrigger {
  color: var(--fg-dim);
  font-size: 13.5px;
  padding: 8px 14px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color .15s ease, background .15s ease;
}
.nav-drop > button.nav-droptrigger:hover,
.nav-drop[data-open="true"] > button.nav-droptrigger {
  color: var(--fg);
  background: var(--panel);
}
.nav-drop .caret {
  width: 8px; height: 8px; opacity: 0.6;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform .2s ease;
}
.nav-drop[data-open="true"] .caret { transform: rotate(-135deg) translateY(0); }
.nav-dropmenu {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  min-width: 200px;
  transform: translateX(-50%) translateY(-4px);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 6px;
  box-shadow: 0 12px 32px rgba(20,24,30,0.10), 0 2px 6px rgba(20,24,30,0.04);
  opacity: 0;
  visibility: hidden;
  transition: opacity .15s ease, transform .15s ease, visibility .15s;
  z-index: 60;
}
.nav-drop:hover .nav-dropmenu,
.nav-drop:focus-within .nav-dropmenu,
.nav-drop[data-open="true"] .nav-dropmenu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.nav-dropmenu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  border-radius: 7px;
  font-size: 13.5px;
  color: var(--fg-2);
  white-space: nowrap;
  gap: 12px;
}
.nav-dropmenu a:hover { background: var(--panel); color: var(--fg); }
.nav-dropmenu a .desc {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--fg-mute);
  letter-spacing: 0.04em;
}
@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-cta .btn { display: none; }
}

/* Mobile hamburger button */
.nav-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 6px;
  color: var(--fg-dim);
  flex-shrink: 0;
  transition: background .15s ease, color .15s ease;
}
.nav-menu-btn:hover { background: var(--panel); color: var(--fg); }
@media (max-width: 760px) { .nav-menu-btn { display: flex; } }

/* Mobile nav drawer */
.nav-mobile {
  display: none;
  position: absolute;
  top: var(--nav-h);
  left: 0; right: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 12px 24px 20px;
  flex-direction: column;
  gap: 2px;
  box-shadow: 0 8px 24px rgba(20,24,30,0.08);
  z-index: 49;
}
.nav[data-mobile-open="true"] .nav-mobile { display: flex; }
.nav-mobile a {
  padding: 10px 14px;
  border-radius: 7px;
  font-size: 15px;
  color: var(--fg-2);
  transition: background .12s ease, color .12s ease;
}
.nav-mobile a:hover { background: var(--panel); color: var(--fg); }
.nav-mobile .btn { margin-top: 8px; justify-content: center; width: 100%; }

/* ─── CTA form (index.html final-cta) ────────────────────── */
.cta-form { width: 100%; max-width: 540px; margin: 0 auto; }
.cta-form-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}
.cta-input {
  flex: 1;
  min-width: 200px;
  height: 50px;
  padding: 0 16px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: var(--bg);
  color: var(--fg);
  font: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.cta-input::placeholder { color: var(--fg-mute); }
.cta-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.cta-form-alt {
  margin-top: 14px;
  font-size: 13px;
  color: var(--fg-mute);
  text-align: center;
}
.cta-form-alt a { color: var(--fg-dim); text-decoration: underline; text-underline-offset: 3px; }
.cta-form-alt a:hover { color: var(--fg); }
.cta-form-success {
  margin-top: 16px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 0.02em;
}

/* ─── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 16px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  transition: background .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--fg);
  color: #FFFFFF;
  box-shadow: 0 1px 0 rgba(255,255,255,0.10) inset, 0 1px 2px rgba(0,0,0,0.10);
}
.btn-primary:hover { background: #000; }
.btn-ghost {
  background: transparent;
  color: var(--fg);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--border-strong); background: var(--panel); }
.btn-link {
  height: auto; padding: 0;
  color: var(--fg);
  background: none;
  border: 0;
}
.btn-link .arrow { transition: transform .2s ease; }
.btn-link:hover .arrow { transform: translateX(3px); }
.btn-lg { height: 46px; padding: 0 22px; font-size: 14.5px; }
.btn .arrow { font-size: 12px; line-height: 1; }

/* ─── Pills & chips ──────────────────────────────────────── */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 26px;
  padding: 0 10px;
  border-radius: 99px;
  background: var(--panel);
  border: 1px solid var(--border);
  font-size: 11.5px;
  color: var(--fg-dim);
  font-family: var(--font-mono);
}
.pill .dot {
  width: 5px; height: 5px;
  border-radius: 99px;
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent);
}

/* ─── Hero ───────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: clamp(88px, 10vw, 156px) 0 clamp(100px, 11vw, 172px);
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  pointer-events: none;
  background:
    radial-gradient(900px 460px at 85% 5%, rgba(31,110,92,0.05), transparent 65%),
    radial-gradient(1200px 600px at 5% 95%, rgba(20,24,30,0.025), transparent 65%);
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(20,24,30,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20,24,30,0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 0%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 0%, transparent 100%);
  pointer-events: none;
}
.hero-inner { position: relative; }
.hero-row {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 72px;
  align-items: start;
}
@media (max-width: 1024px) {
  .hero-row { grid-template-columns: 1fr; gap: 56px; align-items: start; }
  .hero h1 br { display: none; }
}

/* ─── Hero screenshot — premium focal treatment ────────── */
.hero-shot {
  position: relative;
  margin-top: 48px;
  width: calc(100% + 280px);
}
.hero-shot .product-shot {
  box-shadow:
    0 0 0 1px rgba(20,24,30,0.08),
    0 64px 128px -32px rgba(20,24,30,0.22),
    0 24px 52px -16px rgba(20,24,30,0.10);
}
@media (max-width: 1024px) {
  .hero-shot { width: 100%; margin-top: 0; }
}
.hero h1 {
  margin-top: 28px;
  max-width: 14ch;
  line-height: 1.08;
}
.hero h1 .accent-soft {
  color: #5FB39A;
}
.hero .lead { margin-top: 24px; max-width: 520px; font-size: clamp(16px, 1.2vw, 18px); }
.hero-cta { margin-top: 36px; display: flex; gap: 12px; flex-wrap: wrap; }
.hero-meta {
  margin-top: 56px;
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--fg-mute);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.hero-meta .div { width: 1px; height: 12px; background: var(--border); }

/* ─── Workflow viz (hero + later) ─ stays a dark surface ─ */
.workflow {
  /* Scope dark tokens inside this product preview */
  --bg: #0E1014; --bg-2: #0B0D11;
  --panel: #14181F; --panel-2: #1A1F28; --panel-3: #232A35;
  --border: #232932; --border-soft: #1B2028; --border-strong: #2C3340;
  --fg: #E6E8EC; --fg-2: #C8CCD3; --fg-dim: #8B95A3;
  --fg-mute: #5C6573; --fg-faint: #3E454F;
  --accent: #5FB39A; --accent-2: #7AC4AE;
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(600px 300px at 60% 0%, rgba(95,179,154,0.06), transparent 70%),
    linear-gradient(180deg, var(--panel) 0%, var(--bg-2) 100%);
  color: var(--fg);
  padding: 28px;
  overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(20,24,30,0.22), 0 0 0 1px rgba(20,24,30,0.04);
}
.workflow::before {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
  mask-image: linear-gradient(180deg, #000 0%, transparent 80%);
}
.workflow-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-mute);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-soft);
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}
.wf-nodes {
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  z-index: 1;
}
.wf-node {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 10px;
  background: rgba(20, 24, 31, 0.7);
  border: 1px solid var(--border-soft);
  transition: border-color .3s ease, background .3s ease, transform .3s ease;
}
.wf-node.active {
  border-color: var(--accent);
  background: linear-gradient(90deg, rgba(95,179,154,0.08), rgba(95,179,154,0.02));
  box-shadow: 0 0 0 1px rgba(95,179,154,0.12), 0 0 30px rgba(95,179,154,0.08);
}
.wf-node .idx {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-dim);
  display: grid; place-items: center;
  background: var(--bg);
  transition: color .3s ease, border-color .3s ease;
}
.wf-node.active .idx { color: var(--accent); border-color: var(--accent); }
.wf-node .title { color: var(--fg); font-size: 14px; font-weight: 500; }
.wf-node .desc  { color: var(--fg-mute); font-size: 11.5px; font-family: var(--font-mono); margin-top: 2px; }
.wf-node .status {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-mute);
}
.wf-node.active .status { color: var(--accent); }
.wf-node .status .pulse {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 6px;
  box-shadow: 0 0 8px var(--accent);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

/* ─── Cards ──────────────────────────────────────────────── */
.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color .2s ease, transform .2s ease;
}
.card:hover { border-color: var(--border-strong); }
.card h3 { margin-bottom: 10px; }
.card .card-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-mute);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 880px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
}

/* ─── Problem section ────────────────────────────────────── */
.problem-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--border-soft);
}
.problem-list .item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border-soft);
}
.problem-list .item:nth-child(odd) { padding-right: 32px; border-right: 1px solid var(--border-soft); }
.problem-list .item:nth-child(even) { padding-left: 32px; }
.problem-list .num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-mute);
  letter-spacing: 0.06em;
}
.problem-list .item h4 { margin-bottom: 6px; }
.problem-list .item p { font-size: 13.5px; color: var(--fg-dim); line-height: 1.55; }
@media (max-width: 880px) {
  .problem-list { grid-template-columns: 1fr; }
  .problem-list .item:nth-child(odd) { padding-right: 0; border-right: 0; }
  .problem-list .item:nth-child(even) { padding-left: 0; }
}

/* ─── Comparison (Why tools fail) ────────────────────────── */
.compare {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--panel);
}
.compare .col {
  padding: 32px;
  border-right: 1px solid var(--border-soft);
}
.compare .col:last-child { border-right: 0; }
.compare .col h4 { margin-bottom: 14px; font-size: 15px; color: var(--fg); }
.compare .col p { font-size: 13.5px; color: var(--fg-dim); }
.compare .label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--fg-mute);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.compare .marco { background: linear-gradient(180deg, var(--accent-soft-bg), transparent 80%); }
.compare .marco .label { color: var(--accent); }
@media (max-width: 880px) {
  .compare { grid-template-columns: 1fr; }
  .compare .col { border-right: 0; border-bottom: 1px solid var(--border-soft); }
  .compare .col:last-child { border-bottom: 0; }
}

/* ─── Platform / product UI mock ─────────────────────────── */
.platform-frame {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg);
  overflow: hidden;
  box-shadow: 0 40px 80px -24px rgba(20,24,30,0.18), 0 0 0 1px rgba(20,24,30,0.03);
}
.platform-tabs {
  display: flex;
  gap: 4px;
  padding: 12px 14px 0;
  border-bottom: 1px solid var(--border-soft);
  background: var(--bg-2);
  overflow-x: auto;
}
.platform-tab {
  padding: 10px 14px;
  border-radius: 8px 8px 0 0;
  font-size: 13px;
  color: var(--fg-dim);
  white-space: nowrap;
  position: relative;
  font-weight: 500;
  font-family: var(--font-mono);
  letter-spacing: -0.005em;
  background: transparent;
  border: 0;
  cursor: pointer;
  transition: color .15s ease, background .15s ease;
}
.platform-tab:hover { color: var(--fg); background: rgba(20,24,30,0.03); }
.platform-tab.active {
  color: var(--fg);
  background: var(--bg);
}
.platform-tab.active::after {
  content: '';
  position: absolute;
  left: 10px; right: 10px; bottom: -1px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}
.platform-tab .ico {
  width: 14px; height: 14px;
  margin-right: 8px;
  vertical-align: -2px;
  opacity: .7;
  display: inline-block;
}
.platform-body {
  position: relative;
  background: var(--bg);
}
.platform-panel {
  display: none;
}
.platform-panel.active { display: block; }
.platform-panel img {
  display: block;
  width: 100%;
  height: auto;
}

/* ─── Product screenshot frame (used in hero + capability sections) ─ */
.product-shot {
  position: relative;
  border-radius: 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  box-shadow:
    0 40px 80px -24px rgba(20,24,30,0.18),
    0 12px 30px -12px rgba(20,24,30,0.08),
    0 0 0 1px rgba(20,24,30,0.02);
  overflow: hidden;
  display: block;
}
.product-shot img {
  display: block;
  width: 100%;
  height: auto;
}
.product-shot .shot-caption {
  position: absolute;
  left: 16px; bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  background: rgba(20,24,30,0.78);
  color: #FFF;
  border-radius: 99px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}
.product-shot .shot-caption .dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 6px var(--accent-2);
}

/* Inside-product chrome */
.app-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.app-bar .crumbs {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--fg-mute);
  letter-spacing: 0.04em;
  display: flex; align-items: center; gap: 8px;
}
.app-bar .crumbs span.now { color: var(--fg); }
.app-bar .crumbs .sep { color: var(--fg-faint); }
.app-bar .actions { display: flex; gap: 8px; }
.app-bar .iconbtn {
  height: 28px; padding: 0 10px;
  border: 1px solid var(--border-soft);
  border-radius: 6px;
  font-size: 11.5px;
  color: var(--fg-dim);
  font-family: var(--font-mono);
  display: inline-flex; align-items: center; gap: 6px;
}

/* Account header (Morning Brief) */
.acct-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border-soft);
  margin-bottom: 22px;
}
.acct-head .name {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.acct-head .sub {
  color: var(--fg-mute);
  font-size: 12.5px;
  font-family: var(--font-mono);
  display: flex; gap: 12px; align-items: center;
}
.acct-head .sub .dot { width: 3px; height: 3px; background: var(--fg-faint); border-radius: 50%; }
.kpi-row {
  display: flex; gap: 24px;
  padding: 8px 0;
}
.kpi {
  text-align: right;
}
.kpi .v { font-size: 18px; font-weight: 500; }
.kpi .l {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--fg-mute);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 2px;
}
.kpi.up .v::after { content: '↗'; color: var(--accent); margin-left: 4px; font-size: 12px; }
.kpi.flat .v::after { content: '→'; color: var(--fg-mute); margin-left: 4px; font-size: 12px; }

/* Brief grid */
.brief {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 18px;
}
@media (max-width: 1100px) { .brief { grid-template-columns: 1fr; } }
.panel {
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  background: var(--panel);
  padding: 18px;
}
.panel h5 {
  margin: 0 0 14px;
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--fg-mute);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.panel h5 .tag {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--accent);
  background: rgba(95,179,154,0.08);
  padding: 2px 7px;
  border-radius: 99px;
  letter-spacing: 0.06em;
}

/* Signal list */
.signal {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-soft);
  align-items: start;
}
.signal:last-child { border-bottom: 0; }
.signal .time {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-mute);
  padding-top: 1px;
}
.signal .body { font-size: 13px; color: var(--fg-2); line-height: 1.5; }
.signal .body strong { color: var(--fg); font-weight: 500; }
.signal .src {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--fg-mute);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.signal .src::before {
  content: '';
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--fg-faint);
}
.signal[data-src="call"]  .src::before { background: var(--accent); }
.signal[data-src="crm"]   .src::before { background: #7CA0E4; }
.signal[data-src="email"] .src::before { background: #C8A47A; }
.signal[data-src="slack"] .src::before { background: #C089D8; }

/* Next-best actions */
.action {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-soft);
  align-items: start;
}
.action:last-child { border-bottom: 0; }
.action .lbl { font-size: 13px; color: var(--fg-2); line-height: 1.5; }
.action .lbl em { font-style: normal; color: var(--accent); font-family: var(--font-mono); font-size: 11.5px; }
.action .meta {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--fg-mute);
  letter-spacing: 0.04em;
  margin-top: 4px;
}
.action .why {
  font-size: 11.5px;
  color: var(--fg-mute);
  margin-top: 4px;
  font-style: italic;
}
.action .pri {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 7px;
  border-radius: 4px;
  border: 1px solid var(--border-soft);
  color: var(--fg-dim);
}
.action .pri.high { color: var(--accent); border-color: rgba(95,179,154,0.35); }
.action .pri.med  { color: var(--warn);   border-color: rgba(200,164,122,0.35); }

/* Stakeholder map */
.stakeholders {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.sh {
  background: var(--bg);
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  padding: 14px;
  display: flex; flex-direction: column; gap: 6px;
}
.sh .name { font-size: 13px; font-weight: 500; color: var(--fg); }
.sh .role { font-size: 11.5px; color: var(--fg-mute); font-family: var(--font-mono); }
.sh-meter {
  display: grid; grid-template-columns: 70px 1fr 30px; gap: 8px;
  font-size: 10.5px;
  font-family: var(--font-mono);
  color: var(--fg-mute);
  align-items: center;
  margin-top: 4px;
}
.sh-bar {
  height: 3px; background: var(--border-soft); border-radius: 99px; overflow: hidden;
}
.sh-bar > i {
  display: block; height: 100%; background: var(--accent);
  border-radius: 99px;
}
.sh.cool .sh-bar > i { background: #7CA0E4; }
.sh.warm .sh-bar > i { background: var(--warn); }
.sh.cold .sh-bar > i { background: #5C6573; }
.sh-meter .v { color: var(--fg-2); text-align: right; }

/* Account plan timeline */
.plan {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 0;
}
.plan .step {
  display: contents;
}
.plan .rail {
  position: relative;
}
.plan .rail::before {
  content: '';
  position: absolute;
  left: 13px; top: 0; bottom: -1px;
  width: 1px; background: var(--border-soft);
}
.plan .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  position: absolute;
  top: 18px; left: 9px;
  z-index: 1;
}
.plan .dot.done { background: var(--accent); border-color: var(--accent); }
.plan .dot.now  { background: var(--bg); border-color: var(--accent); box-shadow: 0 0 0 3px rgba(95,179,154,0.15); }
.plan .body {
  padding: 14px 0 14px 8px;
  border-bottom: 1px solid var(--border-soft);
}
.plan .step:last-child .body { border-bottom: 0; }
.plan .head {
  display: flex; align-items: baseline; gap: 10px;
}
.plan .ttl { font-size: 13.5px; font-weight: 500; color: var(--fg); }
.plan .date { font-family: var(--font-mono); font-size: 11px; color: var(--fg-mute); }
.plan .det { font-size: 12.5px; color: var(--fg-dim); margin-top: 4px; line-height: 1.5; }

/* ─── Evidence section ───────────────────────────────────── */
.evidence {
  display: grid;
  grid-template-columns: 1fr 1.4fr 1fr;
  gap: 32px;
  align-items: start;
}
@media (max-width: 1024px) {
  .evidence { grid-template-columns: 1fr; }
}
.ev-col h5 {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-mute);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.src-stack { display: flex; flex-direction: column; gap: 6px; }
.src-stack .row {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  background: var(--panel);
  font-size: 12.5px;
}
.src-stack .row .lbl { color: var(--fg-2); }
.src-stack .row .ct {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--fg-mute);
}
.ev-output {
  background:
    radial-gradient(400px 240px at 50% 0%, rgba(31,110,92,0.06), transparent 70%),
    var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
}
.ev-output .rec-title {
  font-size: 17px;
  font-weight: 500;
  margin-bottom: 12px;
  color: var(--fg);
  letter-spacing: -0.015em;
}
.ev-output .rec {
  font-size: 14px;
  color: var(--fg-2);
  line-height: 1.6;
}
.ev-output .why {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--border-soft);
}
.ev-output .why .label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--fg-mute);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.ev-cite {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--border-soft);
  font-size: 12.5px;
  color: var(--fg-dim);
  line-height: 1.5;
}
.ev-cite:last-child { border-bottom: 0; }
.ev-cite .pin {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--accent);
  letter-spacing: 0.06em;
  padding-top: 2px;
  white-space: nowrap;
}

/* ─── Workflows architecture ─────────────────────────────── */
.arch {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel);
  padding: 32px;
  position: relative;
  overflow: hidden;
}
.arch-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 32px;
  align-items: stretch;
  position: relative;
}
@media (max-width: 880px) { .arch-grid { grid-template-columns: 1fr; } }
.arch-col h5 {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-mute);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 16px;
}
.arch-stack { display: flex; flex-direction: column; gap: 8px; }
.arch-stack .row {
  padding: 10px 12px;
  border: 1px solid var(--border-soft);
  border-radius: 6px;
  background: var(--bg);
  font-size: 12.5px;
  color: var(--fg-2);
}
.arch-mid {
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  position: relative;
}
.arch-mid .ttl {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.arch-mid .name {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.arch-mid .layers { display: grid; gap: 6px; font-family: var(--font-mono); font-size: 11.5px; color: var(--fg-dim); }
.arch-mid .layers > div { padding: 6px 10px; background: var(--bg); border-radius: 4px; }

/* ─── Integrations ───────────────────────────────────────── */
.integrations {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border-soft);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  overflow: hidden;
}
@media (max-width: 880px) { .integrations { grid-template-columns: repeat(2, 1fr); } }
.intg {
  background: var(--bg);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  transition: background .2s ease;
}
.intg:hover { background: var(--panel); }
.intg .logo-mark {
  height: 32px;
  display: flex; align-items: center;
  color: var(--fg);
  opacity: 1;
}
.intg .logo-mark img,
.intg .logo-mark svg {
  height: 28px;
  width: auto;
  max-width: 110px;
  display: block;
  object-fit: contain;
}
.intg .logo-mark .wordmark {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.025em;
  line-height: 1;
}
.intg .name { font-size: 13.5px; color: var(--fg); font-weight: 500; }
.intg .kind { font-family: var(--font-mono); font-size: 10.5px; color: var(--fg-mute); letter-spacing: 0.06em; text-transform: uppercase; }

/* ─── Trust / security ───────────────────────────────────── */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 880px) { .trust-grid { grid-template-columns: 1fr; } }
.trust-card {
  background: var(--panel);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  padding: 26px;
}
.trust-card .ic {
  width: 32px; height: 32px;
  border: 1px solid var(--border);
  border-radius: 6px;
  display: grid; place-items: center;
  color: var(--accent);
  margin-bottom: 18px;
}
.trust-card h4 { margin-bottom: 8px; }
.trust-card p { font-size: 13px; color: var(--fg-dim); line-height: 1.55; }
.trust-meta {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--border-soft);
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--fg-mute);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ─── Category section (editorial) ───────────────────────── */
.category {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
  align-items: start;
}
@media (max-width: 880px) { .category { grid-template-columns: 1fr; gap: 32px; } }
.category h2 { max-width: 14ch; }
.cat-body p {
  font-size: 17px;
  line-height: 1.65;
  color: var(--fg-2);
  margin-bottom: 22px;
  max-width: 60ch;
}
.cat-body p.pull {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(22px, 2.4vw, 32px);
  line-height: 1.3;
  color: var(--fg);
  padding-left: 24px;
  border-left: 1px solid var(--accent);
  margin: 32px 0;
  font-weight: 400;
}

/* ─── Final CTA ──────────────────────────────────────────── */
.final-cta {
  position: relative;
  border-top: 1px solid var(--border-soft);
  padding: clamp(96px, 12vw, 160px) 0;
  text-align: center;
  overflow: hidden;
}
.final-cta::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(700px 400px at 50% 0%, rgba(31,110,92,0.06), transparent 70%),
    radial-gradient(900px 500px at 50% 100%, rgba(20,24,30,0.025), transparent 70%);
  pointer-events: none;
}
.final-cta-inner { position: relative; max-width: 720px; margin: 0 auto; padding: 0 32px; }
.final-cta h2 { margin-bottom: 20px; }
.final-cta .lead { margin: 0 auto 36px; }
.final-cta-actions { display: inline-flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* ─── Footer ─────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border-soft);
  background: var(--bg-2);
  padding: 64px 0 40px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}
@media (max-width: 880px) {
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
}
.footer h5 {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--fg-mute);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 0 18px;
  font-weight: 500;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col li a { color: var(--fg-dim); font-size: 13.5px; }
.footer-col li a:hover { color: var(--fg); }
.footer-tag {
  color: var(--fg-dim);
  font-size: 13px;
  max-width: 280px;
  margin-top: 14px;
  line-height: 1.55;
}
.footer-meta {
  max-width: var(--container);
  margin: 56px auto 0;
  padding: 24px 32px 0;
  border-top: 1px solid var(--border-soft);
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-mute);
  letter-spacing: 0.04em;
}

/* ─── Scroll reveal ──────────────────────────────────────── */
[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1);
}
[data-reveal].in {
  opacity: 1;
  transform: none;
}

/* ─── Small viz primitives ───────────────────────────────── */
.fragment-viz {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  padding: 0;
  align-items: stretch;
}
.fragment-viz .tile {
  height: 64px;
  border: 1px solid var(--border-soft);
  background: var(--panel);
  border-radius: 6px;
  position: relative;
  overflow: hidden;
}
.fragment-viz .tile::before {
  content: attr(data-l);
  position: absolute;
  top: 6px; left: 8px;
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--fg-mute);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.fragment-viz .tile::after {
  content: '';
  position: absolute;
  left: 8px; right: 8px; bottom: 8px;
  height: 8px;
  background: linear-gradient(90deg, var(--fg-faint), transparent 70%);
  border-radius: 2px;
}
.fragment-viz .tile.on { border-color: var(--border-strong); }
.fragment-viz .tile.on::after { background: linear-gradient(90deg, var(--accent), transparent 80%); opacity: .8; }

/* ─── Two-up generic ─────────────────────────────────────── */
.split {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 1024px) { .split { grid-template-columns: 1fr; gap: 40px; } }

/* ─── Tweaks panel overrides ─────────────────────────────── */
.tweaks-mini {
  font-family: var(--font-mono);
}

/* ─── Sub-page hero ──────────────────────────────────────── */
.subhero {
  padding: clamp(72px, 9vw, 120px) 0 clamp(48px, 6vw, 72px);
  position: relative;
}
.subhero .eyebrow { margin-bottom: 24px; }
.subhero h1 { max-width: 18ch; font-size: clamp(40px, 5.4vw, 72px); }
.subhero .lead { margin-top: 24px; max-width: 620px; }

/* ─── Anchor offset for sticky nav ──────────────────────── */
[id] { scroll-margin-top: calc(var(--nav-h) + 16px); }
