/* ============================================================
   MARKETING.CSS
   PMO Portal — Marketing Site
   Reuses the portal's own design tokens (colours, type scale,
   spacing, radii) so the marketing site and app feel like one
   product. See client/assets/css/base.css for the source system.
============================================================ */

:root {
  --slate-950: #0c1117;
  --slate-900: #111827;
  --slate-800: #1c2534;
  --slate-700: #253044;
  --slate-600: #334155;
  --slate-500: #475569;
  --slate-400: #64748b;
  --slate-300: #94a3b8;
  --slate-200: #cbd5e1;
  --slate-100: #e2e8f0;
  --slate-50:  #f1f5f9;

  --teal-700:  #0f766e;
  --teal-600:  #0d9488;
  --teal-500:  #14b8a6;
  --teal-400:  #2dd4bf;
  --teal-300:  #5eead4;
  --teal-100:  #ccfbf1;

  --green-500: #22c55e;
  --amber-500: #f59e0b;
  --red-500:   #ef4444;
  --blue-500:  #3b82f6;
  --purple-400: #c084fc;

  --bg-app:      var(--slate-950);
  --bg-surface:  var(--slate-900);
  --bg-elevated: var(--slate-800);
  --bg-overlay:  var(--slate-700);
  --bg-card:     var(--slate-800);

  --border-subtle:  rgba(255, 255, 255, 0.06);
  --border-default: rgba(255, 255, 255, 0.10);
  --border-strong:  rgba(255, 255, 255, 0.18);

  --text-primary:   #f1f5f9;
  --text-secondary: #94a3b8;
  --text-tertiary:  #64748b;
  --text-inverse:   #0c1117;

  --accent:        var(--teal-500);
  --accent-bright: var(--teal-400);
  --accent-dim:    var(--teal-600);
  --accent-subtle: rgba(20, 184, 166, 0.10);
  --accent-glow:   rgba(20, 184, 166, 0.20);

  --status-success-text: var(--green-500);
  --status-warning-text: var(--amber-500);
  --status-danger-text:  var(--red-500);
  --status-info-text:    var(--blue-500);

  --font-display: 'Syne', sans-serif;
  --font-body:    'DM Sans', sans-serif;
  --font-mono:    'DM Mono', monospace;

  --text-xs:   11px;
  --text-sm:   12.5px;
  --text-base: 14px;
  --text-md:   15px;
  --text-lg:   18px;
  --text-xl:   22px;
  --text-2xl:  28px;
  --text-3xl:  36px;
  --text-4xl:  48px;

  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  20px;
  --space-6:  24px;
  --space-8:  32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  --transition: 0.18s ease;
  --transition-md: 0.28s ease;

  --shadow-sm: 0 1px 4px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.35);

  --content-max: 1200px;
  --header-h: 72px;
}

/* ── Light theme override ─────────────────────────────────
   Mirrors client/assets/css/base.css's [data-theme="light"] block.
   Applied when <html data-theme="light"> is set.
──────────────────────────────────────────────────────────── */
[data-theme="light"] {
  --bg-app:      #f8fafc;
  --bg-surface:  #ffffff;
  --bg-elevated: #f1f5f9;
  --bg-overlay:  #e2e8f0;
  --bg-card:     #ffffff;

  --border-subtle:  rgba(0, 0, 0, 0.06);
  --border-default: rgba(0, 0, 0, 0.10);
  --border-strong:  rgba(0, 0, 0, 0.18);

  --text-primary:   #0f172a;
  --text-secondary: #334155;
  --text-tertiary:  #64748b;
  --text-inverse:   #f1f5f9;

  --shadow-sm: 0 1px 4px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.10);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.14);

  --accent:        var(--teal-600);
  --accent-bright: var(--teal-700);
  --accent-dim:    var(--teal-700);
  --accent-subtle: rgba(13, 148, 136, 0.10);
  --accent-glow:   rgba(13, 148, 136, 0.16);
}

[data-theme="light"] .mkt-header {
  background: rgba(248, 250, 252, 0.85);
}

/* ── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-app);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
button {
  font-family: var(--font-body);
  font-size: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}
input, select, textarea { font-family: var(--font-body); font-size: inherit; }
img, svg { display: block; max-width: 100%; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}
:focus:not(:focus-visible) { outline: none; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-primary);
}
h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }

p { color: var(--text-secondary); line-height: 1.7; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ── Layout helpers ────────────────────────────────────── */
.mkt-container {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.mkt-section { padding: var(--space-20) 0; }
.mkt-section--tight { padding: var(--space-12) 0; }
.mkt-section--alt { background: var(--bg-surface); }

.mkt-flex { display: flex; align-items: center; }
.mkt-grid { display: grid; gap: var(--space-6); }

/* ── Header / nav ──────────────────────────────────────── */
.mkt-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(12, 17, 23, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-subtle);
}

.mkt-header-inner {
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
}

.mkt-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.mkt-logo img { width: 34px; height: 34px; object-fit: contain; }

.mkt-logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-lg);
  color: var(--text-primary);
}

.mkt-nav {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.mkt-nav-links { display: flex; align-items: center; gap: var(--space-6); }

.mkt-nav-link {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition);
}
.mkt-nav-link:hover, .mkt-nav-link.is-active { color: var(--text-primary); }

.mkt-nav-actions { display: flex; align-items: center; gap: var(--space-3); }

.mkt-nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-2);
}
.mkt-nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 1px;
}

.mkt-mobile-nav {
  display: none;
  flex-direction: column;
  gap: var(--space-1);
  padding: var(--space-4) var(--space-6) var(--space-6);
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-surface);
}
.mkt-mobile-nav.is-open { display: flex; }
.mkt-mobile-nav .mkt-nav-link { padding: var(--space-3) 0; font-size: var(--text-md); }

/* ── Buttons ───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 600;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: var(--text-inverse);
}
.btn-primary:hover { background: var(--accent-bright); transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  border: 1px solid var(--border-default);
  color: var(--text-primary);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent-bright); }

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
}
.btn-ghost:hover { color: var(--text-primary); }

.btn-lg { padding: var(--space-4) var(--space-6); font-size: var(--text-md); }
.btn-block { width: 100%; }

/* ── Hero ──────────────────────────────────────────────── */
.mkt-hero {
  padding: var(--space-20) 0 var(--space-16);
  position: relative;
  overflow: hidden;
}

.mkt-hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 60%;
  height: 140%;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
}
/* On narrow viewports the glow's 60%-of-container radius shrinks
   enough that its transparent-70% fade edge lands inside the visible
   area as a visible seam. Widen and soften the falloff so it blends
   out before the edge of the screen instead of cutting off. */
@media (max-width: 720px) {
  .mkt-hero::before {
    width: 130%;
    height: 90%;
    right: -30%;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 100%);
  }
}

.mkt-hero-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--space-6);
  position: relative;
}

.mkt-hero-content { max-width: 720px; }

.mkt-hero h1 { margin: var(--space-4) 0 var(--space-5); }
.mkt-hero-sub {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  max-width: 560px;
  margin-bottom: var(--space-8);
}

.mkt-hero-actions { display: flex; gap: var(--space-4); flex-wrap: wrap; }

/* ── Cards ─────────────────────────────────────────────── */
.mkt-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: border-color var(--transition);
}
.mkt-card:hover { border-color: var(--border-strong); }

/* Corner-bracket "focus" hover: two opposing L-marks animate
   into view, like a technical drawing callout or camera focus
   frame - matches the drafting-sheet theme without moving the
   card itself. Reused (not reinvented) on the Features/Pricing/
   Contact pages' own repeating blocks - feature-area rows, tier
   cards, and contact-point rows - so hover feedback reads as one
   system across the whole marketing site. */
.mkt-card::before, .mkt-card::after,
.mkt-proof-card::before, .mkt-proof-card::after,
.mkt-feature-area::before, .mkt-feature-area::after,
.mkt-tier::before, .mkt-tier::after,
.mkt-contact-point::before, .mkt-contact-point::after {
  content: '';
  position: absolute;
  width: 14px;
  height: 14px;
  opacity: 0;
  transition: opacity 0.25s ease, width 0.25s ease, height 0.25s ease;
  pointer-events: none;
}
.mkt-card::before, .mkt-proof-card::before,
.mkt-feature-area::before, .mkt-contact-point::before {
  top: -1px; left: -1px;
  border-top: 2px solid var(--accent-bright);
  border-left: 2px solid var(--accent-bright);
  border-radius: var(--radius-lg) 0 0 0;
}
.mkt-card::after, .mkt-proof-card::after,
.mkt-feature-area::after, .mkt-contact-point::after {
  bottom: -1px; right: -1px;
  border-bottom: 2px solid var(--accent-bright);
  border-right: 2px solid var(--accent-bright);
  border-radius: 0 0 var(--radius-lg) 0;
}
.mkt-tier::before {
  top: -1px; left: -1px;
  border-top: 2px solid var(--accent-bright);
  border-left: 2px solid var(--accent-bright);
  border-radius: var(--radius-xl) 0 0 0;
}
.mkt-tier::after {
  bottom: -1px; right: -1px;
  border-bottom: 2px solid var(--accent-bright);
  border-right: 2px solid var(--accent-bright);
  border-radius: 0 0 var(--radius-xl) 0;
}
.mkt-card:hover::before, .mkt-card:hover::after,
.mkt-proof-card:hover::before, .mkt-proof-card:hover::after,
.mkt-feature-area:hover::before, .mkt-feature-area:hover::after,
.mkt-tier:hover::before, .mkt-tier:hover::after,
.mkt-contact-point:hover::before, .mkt-contact-point:hover::after {
  opacity: 1;
  width: 22px;
  height: 22px;
}
.mkt-feature-area, .mkt-contact-point { position: relative; }
.mkt-contact-point { padding: var(--space-3); margin: 0 calc(var(--space-3) * -1); border-radius: var(--radius-md); transition: background var(--transition); }
.mkt-contact-point:hover { background: var(--bg-overlay); }

.mkt-card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  background: var(--accent-subtle);
  color: var(--accent-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
}

.mkt-card h3 { font-size: var(--text-lg); margin-bottom: var(--space-2); }
.mkt-card p { font-size: var(--text-sm); }

/* ── Section headings ──────────────────────────────────── */
.mkt-section-head {
  max-width: 640px;
  margin: 0 auto var(--space-10);
  text-align: center;
}
.mkt-section-head h2 { margin: var(--space-3) 0 var(--space-3); }

/* ── Feature area blocks (Features page) ──────────────── */
.mkt-feature-area {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-10);
  align-items: center;
  padding: var(--space-12) 0;
  border-bottom: 1px solid var(--border-subtle);
}
.mkt-feature-area:last-child { border-bottom: none; }
.mkt-feature-area.is-reverse { direction: rtl; }
.mkt-feature-area.is-reverse > * { direction: ltr; }

.mkt-feature-list { margin-top: var(--space-5); display: flex; flex-direction: column; gap: var(--space-3); }
.mkt-feature-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--text-secondary);
}
.mkt-feature-item svg { flex-shrink: 0; margin-top: 2px; color: var(--accent-bright); }

.mkt-feature-visual {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-subtle);
}

/* ── Pricing table ─────────────────────────────────────── */
.mkt-pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  align-items: stretch;
}

.mkt-tier {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: var(--space-8) var(--space-6);
  display: flex;
  flex-direction: column;
  transition: border-color var(--transition);
}
.mkt-tier:hover { border-color: var(--border-strong); }

.mkt-tier--featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), var(--shadow-lg);
  position: relative;
}

.mkt-tier-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--text-inverse);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

.mkt-tier-name { font-family: var(--font-mono); font-size: var(--text-sm); color: var(--accent-bright); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }
.mkt-tier-suited { font-size: var(--text-sm); color: var(--text-secondary); margin: var(--space-3) 0 var(--space-6); min-height: 40px; }
.mkt-tier-cta { margin-top: var(--space-6); }

.mkt-tier-rows { display: flex; flex-direction: column; gap: var(--space-4); flex: 1; }
.mkt-tier-row { border-top: 1px solid var(--border-subtle); padding-top: var(--space-4); }
.mkt-tier-row-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-tertiary);
  margin-bottom: var(--space-2);
}
.mkt-tier-row-value { font-size: var(--text-sm); color: var(--text-secondary); line-height: 1.6; }

/* Comparison table (wide screens) - each tier is a visually separate
   column (vertical rules + a shaded "lane" for the featured tier),
   not just three unbroken rows of text. */
.mkt-compare-wrap { overflow-x: auto; margin-top: var(--space-16); }
.mkt-compare {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 760px;
}
.mkt-compare th, .mkt-compare td {
  text-align: left;
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--border-subtle);
  border-left: 1px solid var(--border-subtle);
  font-size: var(--text-sm);
  vertical-align: top;
}
.mkt-compare th:first-child, .mkt-compare td:first-child { border-left: none; }
.mkt-compare th {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-tertiary);
  font-weight: 600;
  border-bottom: 1px solid var(--border-default);
}
.mkt-compare td:first-child, .mkt-compare th:first-child {
  color: var(--text-primary);
  font-weight: 600;
  white-space: nowrap;
}
.mkt-compare tbody tr:hover { background: var(--bg-overlay); }
/* Featured (Professional) column: shaded lane + accent header, so the
   three tiers read as distinct columns rather than one flat grid. */
.mkt-compare th.is-featured, .mkt-compare td.is-featured {
  background: var(--accent-subtle);
  border-left: 1px solid var(--accent-dim);
  border-right: 1px solid var(--accent-dim);
}
.mkt-compare th.is-featured { color: var(--accent-bright); }
.mkt-compare tbody tr:hover td.is-featured { background: var(--accent-subtle); }
.mkt-compare thead th.is-featured { border-top: 2px solid var(--accent-bright); }

/* ── Form ──────────────────────────────────────────────── */
.mkt-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  max-width: 560px;
  margin: 0 auto;
}

.mkt-field { margin-bottom: var(--space-5); }
.mkt-field label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}
.mkt-field input,
.mkt-field select,
.mkt-field textarea {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  transition: border-color var(--transition);
}
.mkt-field input:focus,
.mkt-field select:focus,
.mkt-field textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.mkt-field textarea { resize: vertical; min-height: 100px; }
.mkt-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }

.mkt-form-note { font-size: var(--text-xs); color: var(--text-tertiary); margin-top: var(--space-4); text-align: center; }

.mkt-form-status {
  display: none;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  margin-bottom: var(--space-5);
}
.mkt-form-status.is-visible { display: block; }
.mkt-form-status--success {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.2);
  color: var(--status-success-text);
}
.mkt-form-status--error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: var(--status-danger-text);
}

/* ── Contact page layout ───────────────────────────────── */
.mkt-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: var(--space-12);
  align-items: start;
}

.mkt-contact-side h2 { margin-bottom: var(--space-4); }
.mkt-contact-points { margin-top: var(--space-8); display: flex; flex-direction: column; gap: var(--space-5); }
.mkt-contact-point { display: flex; gap: var(--space-4); align-items: flex-start; }
.mkt-contact-point svg { color: var(--accent-bright); flex-shrink: 0; margin-top: 2px; }
.mkt-contact-point strong { display: block; color: var(--text-primary); font-size: var(--text-sm); }
.mkt-contact-point span { font-size: var(--text-sm); color: var(--text-secondary); }

/* ── CTA band ──────────────────────────────────────────── */
.mkt-cta {
  background: linear-gradient(135deg, var(--bg-card), var(--bg-surface));
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: var(--space-12);
  text-align: center;
}
.mkt-cta h2 { margin-bottom: var(--space-3); }
.mkt-cta p { max-width: 520px; margin: 0 auto var(--space-6); }
.mkt-cta-actions { display: flex; justify-content: center; gap: var(--space-4); flex-wrap: wrap; }

/* ── Footer ────────────────────────────────────────────── */
.mkt-footer {
  border-top: 1px solid var(--border-subtle);
  padding: var(--space-12) 0 var(--space-8);
  background: var(--bg-surface);
}
.mkt-footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: var(--space-8);
}
.mkt-footer-links { display: flex; gap: var(--space-6); flex-wrap: wrap; }
.mkt-footer-links a { font-size: var(--text-sm); color: var(--text-secondary); }
.mkt-footer-links a:hover { color: var(--text-primary); }
.mkt-footer-copy { font-size: var(--text-xs); color: var(--text-tertiary); margin-top: var(--space-6); }

/* ── Problem/solution list (Home) ─────────────────────── */
.mkt-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-10);
}
.mkt-split-col h3 { margin-bottom: var(--space-4); }
.mkt-split-list { display: flex; flex-direction: column; gap: var(--space-3); }
.mkt-split-item {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  font-size: var(--text-sm);
  color: var(--text-secondary);
  padding: var(--space-3) 0;
  padding-left: var(--space-2);
  margin-left: calc(var(--space-2) * -1);
  border-bottom: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  transition: padding-left var(--transition), background var(--transition), color var(--transition);
}
.mkt-split-item svg { transition: transform var(--transition); }
.mkt-split-item:hover {
  padding-left: var(--space-4);
  background: var(--bg-overlay);
  color: var(--text-primary);
}
.mkt-split-item:hover svg { transform: scale(1.05); }
.mkt-split-item svg { flex-shrink: 0; margin-top: 2px; }
.mkt-split-item.is-problem svg { color: var(--status-danger-text); }
.mkt-split-item.is-solution svg { color: var(--status-success-text); }

/* ── Gantt journey: phase tokens ──────────────────────────
   Mirrors the app's own 5-phase legend (phase-initiate/plan/
   execute/monitor/close) so the marketing site reads as the
   same product. */
:root {
  --phase-initiate: var(--blue-500);
  --phase-plan:     var(--purple-400);
  --phase-execute:  var(--green-500);
  --phase-monitor:  var(--amber-500);
  --phase-close:    var(--slate-400);
}

/* ── Signal network background ────────────────────────────
   A quiet constellation of nodes and connecting lines behind
   the whole page - reads as a live dependency/signals graph
   (the product's own findings/signals engine), not a generic
   grid. The whole layer drifts a few px with scroll and mouse
   position; a handful of nodes pulse slowly to feel "live".
   Kept dim - texture, not decoration. */
.mkt-signal-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: var(--bg-app);
}
.mkt-signal-bg::after {
  content: '';
  position: absolute;
  inset: -10%;
  background: radial-gradient(ellipse at 70% 20%, var(--accent-glow) 0%, transparent 55%);
  opacity: 0.5;
}
.mkt-signal-bg svg {
  position: absolute;
  inset: -6% -4%;
  width: 108%;
  height: 112%;
}
.mkt-signal-bg .sg-line { stroke: var(--border-strong); stroke-width: 1; fill: none; opacity: 0.5; }
.mkt-signal-bg .sg-node { fill: var(--node-c, var(--accent)); opacity: 0.55; }
@media (prefers-reduced-motion: no-preference) {
  .mkt-signal-bg svg {
    transform: translate3d(calc(var(--mx, 0) * 8px), calc(var(--scroll-y, 0) * -0.03px), 0);
  }
  .mkt-signal-bg .sg-node--pulse { animation: mkt-signal-pulse 4.5s ease-in-out infinite; }
  .mkt-signal-bg .sg-node--pulse:nth-of-type(2n) { animation-delay: -1.5s; }
  .mkt-signal-bg .sg-node--pulse:nth-of-type(3n) { animation-delay: -3s; }
}
@keyframes mkt-signal-pulse {
  0%, 100% { opacity: 0.35; r: var(--r, 4); }
  50%      { opacity: 0.9;  r: calc(var(--r, 4) * 1.6); }
}

/* Quiet variant of the signal network - Contact page only. Fewer
   nodes/lines, no pulse animation, lower base opacity, so the
   background reads as texture behind the form instead of competing
   with it for attention. */
.mkt-signal-bg--quiet .sg-line { opacity: 0.3; }
.mkt-signal-bg--quiet .sg-node { opacity: 0.35; }
.mkt-signal-bg--quiet::after { opacity: 0.3; }

/* ── Document-stack background (Features page) ────────────
   Layered rectangle outlines at different depths/rotations,
   evoking stacked deliverables / document control. Each layer
   parallaxes at a slightly different rate via --scroll-y/--mx
   (same custom properties initBlueprintParallax already sets),
   so the stack shifts subtly as the page scrolls - depth without
   motion sickness. Kept dim - texture, not decoration. */
.mkt-docstack-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: var(--bg-app);
}
.mkt-docstack-bg::after {
  content: '';
  position: absolute;
  inset: -10%;
  background: radial-gradient(ellipse at 25% 15%, var(--accent-glow) 0%, transparent 55%);
  opacity: 0.4;
}
.mkt-docstack-bg svg {
  position: absolute;
  inset: -6% -4%;
  width: 108%;
  height: 112%;
  /* Fades the pattern out toward the page edges so it reads as a
     hero-anchored texture, not a fixed line that stays put and cuts
     through every section as the page scrolls behind it. */
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, black 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, black 0%, transparent 75%);
}
.mkt-docstack-bg .ds-sheet { fill: none; stroke: var(--border-strong); stroke-width: 1; opacity: 0.22; }
.mkt-docstack-bg .ds-corner { fill: var(--accent-bright); opacity: 0.2; }
@media (prefers-reduced-motion: no-preference) {
  .mkt-docstack-bg .ds-layer--1 { transform: translate3d(calc(var(--mx, 0) * 5px), calc(var(--scroll-y, 0) * -0.02px), 0); }
  .mkt-docstack-bg .ds-layer--2 { transform: translate3d(calc(var(--mx, 0) * 9px), calc(var(--scroll-y, 0) * -0.035px), 0); }
  .mkt-docstack-bg .ds-layer--3 { transform: translate3d(calc(var(--mx, 0) * 13px), calc(var(--scroll-y, 0) * -0.05px), 0); }
}

/* ── Ascending tier-step background (Pricing page) ─────────
   A faint staircase of rectangular step outlines rising
   left-to-right, evoking plan tiers. The featured tier's step
   (middle, matching .mkt-tier--featured) sits brighter than the
   other two. Drifts with the same --scroll-y/--mx properties. */
.mkt-stairs-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: var(--bg-app);
}
.mkt-stairs-bg::after {
  content: '';
  position: absolute;
  inset: -10%;
  background: radial-gradient(ellipse at 75% 25%, var(--accent-glow) 0%, transparent 55%);
  opacity: 0.4;
}
.mkt-stairs-bg svg {
  position: absolute;
  inset: -6% -4%;
  width: 108%;
  height: 112%;
  /* Fades the staircase out toward the page edges so the step edges
     stop reading as a fixed vertical rule running through the tier
     cards and comparison table below. */
  mask-image: radial-gradient(ellipse 65% 55% at 60% 28%, black 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse 65% 55% at 60% 28%, black 0%, transparent 72%);
}
.mkt-stairs-bg .st-step { fill: none; stroke: var(--border-strong); stroke-width: 1; opacity: 0.22; }
.mkt-stairs-bg .st-step--featured { stroke: var(--accent-bright); opacity: 0.3; }
.mkt-stairs-bg .st-tick { fill: var(--accent-bright); opacity: 0.18; }
@media (prefers-reduced-motion: no-preference) {
  .mkt-stairs-bg svg {
    transform: translate3d(calc(var(--mx, 0) * 8px), calc(var(--scroll-y, 0) * -0.03px), 0);
  }
}

/* Every section/header sits above the fixed background layer */
.mkt-header, .mkt-hero, .mkt-section, .mkt-footer, .mkt-mobile-nav { position: relative; z-index: 1; }

/* ── Drawing-sheet section labels ─────────────────────────
   Each section is tagged like a sheet in a drawing register -
   ties the page to the same document-numbering language the
   product itself uses (IFR/IFA/IFC, gate stamps). */
/* Gate stamp: styled like the app's own stage-gate approval
   stamp rather than an invented drawing-register convention -
   a bordered badge, slightly rotated like a real ink stamp.
   .mkt-section-head is text-align:center, but a flex child
   ignores text-align - centre it explicitly there. The hero
   and CTA tags stay left/centre per their own container. */
.mkt-section-head .mkt-gate-tag { margin-inline: auto; }
.mkt-gate-tag {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--accent-bright);
  border: 1.5px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 4px 10px;
  margin-bottom: var(--space-4);
}
.mkt-gate-tag__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-bright);
}

/* ── Scroll reveal ─────────────────────────────────────────
   Generic fade/rise-in, toggled by IntersectionObserver in
   marketing.js. Staggers via nth-child transition-delay on
   list/grid children. Static (already visible) under
   prefers-reduced-motion. */
.mkt-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.mkt-reveal.is-in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .mkt-reveal { opacity: 1; transform: none; transition: none; }
}
.mkt-split-item.mkt-reveal:nth-child(1) { transition-delay: 0.03s; }
.mkt-split-item.mkt-reveal:nth-child(2) { transition-delay: 0.09s; }
.mkt-split-item.mkt-reveal:nth-child(3) { transition-delay: 0.15s; }
.mkt-split-item.mkt-reveal:nth-child(4) { transition-delay: 0.21s; }
.mkt-card.mkt-reveal:nth-child(1) { transition-delay: 0.03s; }
.mkt-card.mkt-reveal:nth-child(2) { transition-delay: 0.08s; }
.mkt-card.mkt-reveal:nth-child(3) { transition-delay: 0.13s; }
.mkt-card.mkt-reveal:nth-child(4) { transition-delay: 0.18s; }
.mkt-card.mkt-reveal:nth-child(5) { transition-delay: 0.23s; }
.mkt-card.mkt-reveal:nth-child(6) { transition-delay: 0.28s; }
.mkt-proof-card.mkt-reveal:nth-child(1) { transition-delay: 0.03s; }
.mkt-proof-card.mkt-reveal:nth-child(2) { transition-delay: 0.1s; }
.mkt-proof-card.mkt-reveal:nth-child(3) { transition-delay: 0.17s; }
.mkt-proof-card.mkt-reveal:nth-child(4) { transition-delay: 0.24s; }
.mkt-tier.mkt-reveal:nth-child(1) { transition-delay: 0.03s; }
.mkt-tier.mkt-reveal:nth-child(2) { transition-delay: 0.1s; }
.mkt-tier.mkt-reveal:nth-child(3) { transition-delay: 0.17s; }
.mkt-contact-point.mkt-reveal:nth-child(1) { transition-delay: 0.03s; }
.mkt-contact-point.mkt-reveal:nth-child(2) { transition-delay: 0.09s; }
.mkt-contact-point.mkt-reveal:nth-child(3) { transition-delay: 0.15s; }

/* ── Hero diagram: self-drawing project structure ─────────
   A central "Project" node branching into the 5 PMBOK phases,
   each with a small gate-stamp marker. Lines draw themselves
   in via stroke-dashoffset on load (pathLength=1 trick), then
   nodes/labels fade in staggered behind them. */
.mkt-hero-diagram {
  position: absolute;
  top: 50%;
  right: -2%;
  transform: translateY(-50%);
  width: 48%;
  max-width: 520px;
  min-width: 340px;
  pointer-events: none;
}
.mkt-hero-diagram svg { width: 100%; height: auto; overflow: visible; }
.mkt-hero-diagram .hd-line {
  fill: none;
  stroke: var(--border-strong);
  stroke-width: 1.5;
  pathLength: 1;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}
.mkt-hero-diagram .hd-node { fill: var(--bg-app); stroke: var(--border-strong); stroke-width: 1.5; opacity: 0; }
.mkt-hero-diagram .hd-node--root { stroke: var(--accent-bright); }
.mkt-hero-diagram .hd-gate { fill: var(--phase-c, var(--accent)); opacity: 0; }
.mkt-hero-diagram .hd-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.05em;
  fill: var(--text-tertiary);
  opacity: 0;
}
.mkt-hero-diagram[data-phase="initiate"] .hd-gate { --phase-c: var(--phase-initiate); }

@media (prefers-reduced-motion: no-preference) {
  .mkt-hero-diagram.is-drawn .hd-line { transition: stroke-dashoffset 1s cubic-bezier(0.16, 1, 0.3, 1); stroke-dashoffset: 0; }
  .mkt-hero-diagram.is-drawn .hd-node,
  .mkt-hero-diagram.is-drawn .hd-gate,
  .mkt-hero-diagram.is-drawn .hd-label { transition: opacity 0.5s ease; opacity: 1; }
  .mkt-hero-diagram .hd-line:nth-of-type(1) { transition-delay: 0.1s; }
  .mkt-hero-diagram .hd-line:nth-of-type(2) { transition-delay: 0.25s; }
  .mkt-hero-diagram .hd-line:nth-of-type(3) { transition-delay: 0.4s; }
  .mkt-hero-diagram .hd-line:nth-of-type(4) { transition-delay: 0.55s; }
  .mkt-hero-diagram .hd-line:nth-of-type(5) { transition-delay: 0.7s; }
  .mkt-hero-diagram.is-drawn .hd-node--n1, .mkt-hero-diagram.is-drawn .hd-gate--g1, .mkt-hero-diagram.is-drawn .hd-label--l1 { transition-delay: 0.35s; }
  .mkt-hero-diagram.is-drawn .hd-node--n2, .mkt-hero-diagram.is-drawn .hd-gate--g2, .mkt-hero-diagram.is-drawn .hd-label--l2 { transition-delay: 0.5s; }
  .mkt-hero-diagram.is-drawn .hd-node--n3, .mkt-hero-diagram.is-drawn .hd-gate--g3, .mkt-hero-diagram.is-drawn .hd-label--l3 { transition-delay: 0.65s; }
  .mkt-hero-diagram.is-drawn .hd-node--n4, .mkt-hero-diagram.is-drawn .hd-gate--g4, .mkt-hero-diagram.is-drawn .hd-label--l4 { transition-delay: 0.8s; }
  .mkt-hero-diagram.is-drawn .hd-node--n5, .mkt-hero-diagram.is-drawn .hd-gate--g5, .mkt-hero-diagram.is-drawn .hd-label--l5 { transition-delay: 0.95s; }
}
@media (prefers-reduced-motion: reduce) {
  .mkt-hero-diagram .hd-line { stroke-dashoffset: 0; }
  .mkt-hero-diagram .hd-node, .mkt-hero-diagram .hd-gate, .mkt-hero-diagram .hd-label { opacity: 1; }
}

/* ── Hero stat strip ───────────────────────────────────────
   Count-up KPI chips beneath the hero copy - product facts,
   not vague marketing claims. */
.mkt-stat-strip {
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: var(--space-8);
  margin-top: var(--space-10);
  padding-top: var(--space-8);
  border-top: 1px solid var(--border-subtle);
}
.mkt-stat { cursor: default; }
.mkt-stat__num {
  font-family: var(--font-mono);
  font-size: var(--text-2xl);
  font-weight: 600;
  color: var(--accent-bright);
  line-height: 1;
  display: inline-block;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), text-shadow 0.2s ease;
}
.mkt-stat:hover .mkt-stat__num { text-shadow: 0 0 12px var(--accent-glow); }
.mkt-stat__label {
  margin-top: 6px;
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  max-width: 130px;
  line-height: 1.4;
  transition: color var(--transition);
}
.mkt-stat:hover .mkt-stat__label { color: var(--text-secondary); }

/* ── Monitor & Control section ────────────────────────────*/
.mkt-monitor-split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-10);
  align-items: center;
}
.mkt-signal-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.mkt-signal-panel__row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--border-subtle);
  font-size: var(--text-sm);
}
.mkt-signal-panel__row:last-child { border-bottom: none; padding-bottom: 0; }
.mkt-signal-panel__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--dot-c, var(--accent));
  box-shadow: 0 0 8px 1px color-mix(in srgb, var(--dot-c, var(--accent)) 60%, transparent);
  flex-shrink: 0;
}
.mkt-signal-panel__label { color: var(--text-secondary); flex: 1; }
.mkt-signal-panel__value { font-family: var(--font-mono); color: var(--text-primary); font-weight: 600; font-size: var(--text-xs); }

@media (max-width: 900px) {
  .mkt-monitor-split { grid-template-columns: 1fr; }
}

/* ── Proof-point grid (new "why PMs switch" section) ──────*/
.mkt-proof-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-6);
}
.mkt-proof-card {
  border: 1px solid var(--border-subtle);
  border-top: 2px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  background: var(--bg-card);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-top-color 0.25s ease;
}
.mkt-proof-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 0 1px var(--accent), var(--shadow-md);
  border-top-color: var(--accent-bright);
}
.mkt-proof-card:hover .mkt-proof-card__stat { letter-spacing: 0.05em; }
.mkt-proof-card__stat {
  font-family: var(--font-mono);
  font-size: var(--text-md);
  color: var(--accent-bright);
  letter-spacing: 0.02em;
  transition: letter-spacing 0.25s ease;
  margin-bottom: var(--space-2);
}
.mkt-proof-card h3 { font-size: var(--text-md); margin-bottom: var(--space-2); }
.mkt-proof-card p { font-size: var(--text-sm); color: var(--text-secondary); }

/* ── Phase rail (desktop) ─────────────────────────────────
   Fixed vertical progress marker down the left edge, tracking
   which PMBOK phase the visible section maps to. */
.mkt-phase-rail {
  position: fixed;
  left: var(--space-6);
  top: 50%;
  transform: translateY(-50%);
  z-index: 30;
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: flex-start;
}
.mkt-phase-rail::before {
  content: '';
  position: absolute;
  left: 5px;
  top: 5px;
  bottom: 5px;
  width: 2px;
  background: var(--border-default);
  z-index: -1;
}
.mkt-phase-rail__item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-tertiary);
}
.mkt-phase-rail__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg-app);
  border: 2px solid var(--border-strong);
  transition: background var(--transition), border-color var(--transition), box-shadow var(--transition);
  flex-shrink: 0;
}
.mkt-phase-rail__label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.04em;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity var(--transition), transform var(--transition), color var(--transition);
}
.mkt-phase-rail__item:hover .mkt-phase-rail__label,
.mkt-phase-rail__item.is-active .mkt-phase-rail__label { opacity: 1; transform: translateX(0); }
.mkt-phase-rail__item[data-phase="initiate"].is-active .mkt-phase-rail__dot { background: var(--phase-initiate); border-color: var(--phase-initiate); box-shadow: 0 0 0 4px rgba(59,130,246,0.18); }
.mkt-phase-rail__item[data-phase="plan"].is-active .mkt-phase-rail__dot     { background: var(--phase-plan);     border-color: var(--phase-plan);     box-shadow: 0 0 0 4px rgba(192,132,252,0.18); }
.mkt-phase-rail__item[data-phase="execute"].is-active .mkt-phase-rail__dot  { background: var(--phase-execute);  border-color: var(--phase-execute);  box-shadow: 0 0 0 4px rgba(34,197,94,0.18); }
.mkt-phase-rail__item[data-phase="monitor"].is-active .mkt-phase-rail__dot  { background: var(--phase-monitor);  border-color: var(--phase-monitor);  box-shadow: 0 0 0 4px rgba(245,158,11,0.18); }
.mkt-phase-rail__item[data-phase="close"].is-active .mkt-phase-rail__dot    { background: var(--phase-close);    border-color: var(--phase-close);    box-shadow: 0 0 0 4px rgba(100,116,139,0.18); }
.mkt-phase-rail__item.is-active .mkt-phase-rail__label { color: var(--text-primary); }

@media (max-width: 1100px) {
  .mkt-phase-rail { display: none; }
}

/* ── Phase-tinted feature cards ───────────────────────────
   Each card gets a top accent stripe in its phase colour so the
   feature grid reads as consecutive rows of one schedule.
   (A border, not a ::before - those are claimed by the corner-
   bracket hover marks above.) */
.mkt-card { border-top: 3px solid var(--card-phase, var(--accent)); }
.mkt-card[data-phase="initiate"] { --card-phase: var(--phase-initiate); }
.mkt-card[data-phase="plan"]     { --card-phase: var(--phase-plan); }
.mkt-card[data-phase="execute"]  { --card-phase: var(--phase-execute); }
.mkt-card[data-phase="monitor"]  { --card-phase: var(--phase-monitor); }
.mkt-card[data-phase="close"]    { --card-phase: var(--phase-close); }
.mkt-card[data-phase] .mkt-card-icon { background: color-mix(in srgb, var(--card-phase) 16%, transparent); color: var(--card-phase); }

/* ── Section completion bar (CTA/footer, "Close" phase) ──── */
.mkt-complete-bar {
  max-width: 320px;
  margin: 0 auto var(--space-6);
}
.mkt-complete-bar__track {
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--bg-overlay);
  overflow: hidden;
}
.mkt-complete-bar__fill {
  height: 100%;
  width: 0%;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--accent-dim), var(--accent-bright));
  transition: width 1.1s cubic-bezier(0.16, 1, 0.3, 1);
}
.mkt-complete-bar.is-visible .mkt-complete-bar__fill { width: 100%; }
.mkt-complete-bar__label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  margin-top: var(--space-2);
  letter-spacing: 0.04em;
}

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 1100px) {
  .mkt-hero-diagram { display: none; }
}

@media (max-width: 900px) {
  .mkt-feature-area { grid-template-columns: 1fr; }
  .mkt-feature-area.is-reverse { direction: ltr; }
  .mkt-pricing-grid { grid-template-columns: 1fr; }
  .mkt-contact-grid { grid-template-columns: 1fr; }
  .mkt-split { grid-template-columns: 1fr; }
  .mkt-stat-strip { grid-template-columns: repeat(2, auto); row-gap: var(--space-5); }
}

@media (max-width: 720px) {
  .mkt-nav-links, .mkt-nav-actions .btn-outline { display: none; }
  .mkt-nav-toggle { display: flex; }
  .mkt-hero h1 { font-size: var(--text-3xl); }
  .mkt-field-row { grid-template-columns: 1fr; }
}
