/* ============================================================
   Section template stylesheet — loaded by every rendered
   custom page (and by the SectionPicker preview iframe).
   All rules use the `tpl-*` prefix so they cannot collide
   with the verbatim static-page CSS or Tailwind utilities.

   Mirrors the visual language of the static marketing pages:
   - Mona Sans display + Inter body (set in globals.css)
   - Same design tokens (--ink, --bg-soft, --line, --accent)
   - PayPal-style restraint: tight typography, hairline borders,
     generous vertical rhythm.
   ============================================================ */

.tpl-section {
  padding: 96px 0;
  background: var(--bg, #fff);
  color: var(--ink, #0a0a0a);
}
.tpl-container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 32px;
}

/* Typography building blocks */
.tpl-eyebrow {
  font-family: var(--font-mona, 'Mona Sans', system-ui, sans-serif);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent, #1a7f5a);
  margin-bottom: 14px;
}
.tpl-h1 {
  font-family: var(--font-mona, 'Mona Sans', system-ui, sans-serif);
  font-weight: 800;
  font-stretch: 108%;
  font-size: clamp(40px, 5.4vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin: 0 0 22px;
}
.tpl-h2 {
  font-family: var(--font-mona, 'Mona Sans', system-ui, sans-serif);
  font-weight: 800;
  font-size: clamp(32px, 3.8vw, 52px);
  line-height: 1.06;
  letter-spacing: -0.03em;
  margin: 0 0 18px;
}
.tpl-italic {
  font-family: var(--font-instrument, 'Instrument Serif', Georgia, serif);
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.015em;
}
.tpl-lede {
  font-family: var(--font-inter, 'Inter', system-ui, sans-serif);
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.55;
  color: var(--ink-dim, #6b6b6b);
  margin: 0 0 28px;
  max-width: 60ch;
}

/* Buttons */
.tpl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  font-family: var(--font-mona, 'Mona Sans', system-ui, sans-serif);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink, #0a0a0a);
  background: transparent;
  border: 1px solid var(--ink, #0a0a0a);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.tpl-btn:hover { background: var(--ink, #0a0a0a); color: #fff; }
.tpl-btn-primary {
  background: var(--ink, #0a0a0a);
  color: #fff;
}
.tpl-btn-primary:hover { background: #1f1f1f; }
.tpl-btn-lg { height: 52px; padding: 0 30px; font-size: 15px; }

/* ====================== 1. Hero centered ====================== */
.tpl-hero-centered { padding: 140px 0 80px; text-align: center; }
.tpl-hero-inner   { max-width: 880px; margin: 0 auto; }
.tpl-hero-centered .tpl-lede { margin-left: auto; margin-right: auto; }
.tpl-hero-actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

/* ====================== 2. Stats 4-up ========================= */
.tpl-stats {
  padding: 60px 0;
  border-top: 1px solid var(--line, rgba(10,10,10,0.08));
  border-bottom: 1px solid var(--line, rgba(10,10,10,0.08));
}
.tpl-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.tpl-stat-num {
  font-family: var(--font-mona, 'Mona Sans', system-ui, sans-serif);
  font-weight: 800;
  font-size: clamp(36px, 4vw, 56px);
  line-height: 1;
  letter-spacing: -0.03em;
}
.tpl-stat-unit { font-size: 0.55em; vertical-align: top; margin-left: 2px; }
.tpl-stat-label {
  margin-top: 8px;
  font-size: 13px;
  color: var(--ink-dim, #6b6b6b);
  line-height: 1.35;
}
@media (max-width: 900px) {
  .tpl-stats-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============== 2b. Stats proof band (serif) ================= */
.tpl-statband { background: var(--bg-soft, #f6f7f5); padding: 120px 0; }
.tpl-statband-h2 {
  font-family: var(--font-instrument, 'Instrument Serif', Georgia, serif);
  font-weight: 400;
  font-size: clamp(44px, 5.5vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  max-width: 920px;
  margin: 0 0 80px;
  color: var(--ink, #0a0a0a);
}
.tpl-statband-h2 .tpl-italic { font-style: italic; }
.tpl-statband-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  border-top: 1px solid var(--line, rgba(10,10,10,0.08));
  padding-top: 48px;
}
.tpl-statband-num {
  font-family: var(--font-instrument, 'Instrument Serif', Georgia, serif);
  font-size: 76px;
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  color: var(--ink, #0a0a0a);
}
.tpl-statband-num .tpl-statband-unit { font-size: 32px; color: var(--ink-mute, #a3a3a3); }
.tpl-statband-label { font-size: 14px; line-height: 1.5; color: var(--ink-dim, #6b6b6b); }
@media (max-width: 760px) {
  .tpl-statband-grid { grid-template-columns: 1fr 1fr; }
  .tpl-statband-h2 { margin-bottom: 48px; }
}

/* ====================== 3. Cards 3-up ========================= */
.tpl-cards-3up-section { padding: 100px 0; }
.tpl-section-head { margin-bottom: 48px; }
.tpl-cards-3up {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line, rgba(10,10,10,0.08));
  border-bottom: 1px solid var(--line, rgba(10,10,10,0.08));
}
.tpl-card {
  padding: 36px 28px;
  border-right: 1px solid var(--line, rgba(10,10,10,0.08));
}
.tpl-card:last-child { border-right: none; }
.tpl-card-num {
  font-family: var(--font-mona, 'Mona Sans', system-ui, sans-serif);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-mute, #a3a3a3);
  letter-spacing: 0.08em;
  margin-bottom: 18px;
}
.tpl-card-icon {
  width: 28px;
  height: 28px;
  color: var(--accent, #1a7f5a);
  margin-bottom: 18px;
  display: block;
}
.tpl-card-title {
  font-family: var(--font-mona, 'Mona Sans', system-ui, sans-serif);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
  color: var(--ink, #0a0a0a);
}
.tpl-card-body {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-dim, #6b6b6b);
  margin: 0;
}
@media (max-width: 900px) {
  .tpl-cards-3up { grid-template-columns: 1fr; }
  .tpl-card { border-right: none; border-bottom: 1px solid var(--line, rgba(10,10,10,0.08)); }
  .tpl-card:last-child { border-bottom: none; }
}

/* ====================== 4. Split + features =================== */
.tpl-split { padding: 120px 0; }
.tpl-split-wrap {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  align-items: center;
}
.tpl-split-visual {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 24px;
  overflow: hidden;
  background: var(--ink, #0a0a0a);
  box-shadow: 0 24px 60px rgba(10,10,10,0.10);
}
.tpl-split-visual img,
.tpl-split-visual video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.tpl-split-visual-placeholder {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; padding: 24px;
  color: rgba(255,255,255,0.65);
  background:
    linear-gradient(135deg, rgba(255,255,255,0.04), rgba(255,255,255,0)),
    repeating-linear-gradient(45deg, rgba(255,255,255,0.04) 0 1px, transparent 1px 12px);
  font-family: var(--font-mona, 'Mona Sans', system-ui, sans-serif);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.tpl-split-visual-placeholder small {
  display: block;
  margin-top: 6px;
  font-size: 10.5px;
  letter-spacing: 0.04em;
  text-transform: none;
  color: rgba(255,255,255,0.4);
}
.tpl-split-content { min-width: 0; }
.tpl-feature-stack { margin-top: 12px; }
.tpl-feature-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid var(--line, rgba(10,10,10,0.08));
  color: var(--ink, #0a0a0a);
  text-decoration: none;
  font-family: var(--font-mona, 'Mona Sans', system-ui, sans-serif);
  font-size: 17px;
  font-weight: 600;
  transition: color 0.15s, padding-left 0.15s;
}
.tpl-feature-item:last-child { border-bottom: 1px solid var(--line, rgba(10,10,10,0.08)); }
.tpl-feature-item:hover { color: var(--accent, #1a7f5a); padding-left: 8px; }
.tpl-feature-arrow {
  width: 18px; height: 18px;
  color: currentColor;
  flex-shrink: 0;
  transition: transform 0.15s;
}
.tpl-feature-item:hover .tpl-feature-arrow { transform: translateX(4px); }
@media (max-width: 900px) {
  .tpl-split-wrap { grid-template-columns: 1fr; gap: 40px; }
  .tpl-split-visual { max-width: 480px; margin: 0 auto; }
}

/* ====================== 5. CTA band ============================ */
.tpl-cta-band {
  background: var(--bg-soft, #f6f7f5);
  padding: 120px 0;
}
.tpl-cta-inner { text-align: center; max-width: 720px; margin: 0 auto; }
.tpl-cta-eyebrow { margin-bottom: 18px; }
.tpl-cta-title {
  font-family: var(--font-mona, 'Mona Sans', system-ui, sans-serif);
  font-weight: 800;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 32px;
}
.tpl-cta-actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

/* ====================== 6. Compliance frameworks (bento) ======= */
.tpl-compliance { background: var(--bg-soft, #f6f7f5); }
.tpl-compliance .tpl-compliance-head { max-width: 880px; margin: 0 0 40px; }
.tpl-compliance-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: minmax(180px, auto);
  gap: 12px;
}
.tpl-compliance-card {
  background: var(--bg, #fff);
  border: 1px solid transparent;
  border-radius: 18px;
  padding: 30px 28px;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: background .25s, transform .25s, border-color .25s;
}
.tpl-compliance-card:hover { background: #f0eee7; transform: translateY(-2px); border-color: rgba(10,10,10,0.06); }
.tpl-compliance-badge {
  font-family: var(--font-mona, 'Mona Sans', sans-serif);
  font-weight: 800; font-size: 22px; letter-spacing: -0.015em;
  color: var(--ink, #0a0a0a);
  margin-bottom: 14px;
  display: inline-flex; align-items: center; gap: 12px;
}
.tpl-compliance-badge::after { content: ''; width: 8px; height: 8px; background: var(--accent, #0027ff); border-radius: 50%; opacity: 0.7; }
.tpl-compliance-card p { font-size: 13.5px; line-height: 1.55; color: var(--ink-dim, #6b6b6b); margin: 0; }

/* bento spans */
.tpl-compliance-card:nth-child(1) { grid-column: span 4; }
.tpl-compliance-card:nth-child(2) { grid-column: span 2; }
.tpl-compliance-card:nth-child(3) { grid-column: span 2; }
.tpl-compliance-card:nth-child(4) { grid-column: span 4; }
.tpl-compliance-card:nth-child(5) { grid-column: span 3; }
.tpl-compliance-card:nth-child(6) { grid-column: span 3; }
.tpl-compliance-card:nth-child(7) { grid-column: span 2; }
.tpl-compliance-card:nth-child(8) { grid-column: span 2; }
.tpl-compliance-card:nth-child(9) { grid-column: span 2; }

/* featured card — charcoal → blue (brand) */
.tpl-compliance-card:nth-child(1) {
  background: linear-gradient(135deg, #0a0a0a 0%, #0a1a44 70%, #16307a 100%);
  color: #fff; min-height: 240px; position: relative; overflow: hidden;
}
.tpl-compliance-card:nth-child(1)::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse at 80% 20%, rgba(91,123,255,0.22), transparent 50%),
    radial-gradient(ellipse at 20% 90%, rgba(0,39,255,0.20), transparent 60%);
}
.tpl-compliance-card:nth-child(1) > * { position: relative; }
.tpl-compliance-card:nth-child(1):hover { background: linear-gradient(135deg, #0a0a0a 0%, #0a1a44 70%, #16307a 100%); transform: translateY(-2px); }
.tpl-compliance-card:nth-child(1) .tpl-compliance-badge { color: #fff; font-size: 28px; }
.tpl-compliance-card:nth-child(1) .tpl-compliance-badge::after { background: #5b7bff; opacity: 1; width: 10px; height: 10px; }
.tpl-compliance-card:nth-child(1) p { color: rgba(255,255,255,0.78); font-size: 15px; max-width: 480px; }

/* second wide card — soft peer treatment */
.tpl-compliance-card:nth-child(4) { background: #f0eee7; min-height: 200px; }
.tpl-compliance-card:nth-child(4):hover { background: #e8e4d8; }
.tpl-compliance-card:nth-child(4) .tpl-compliance-badge { font-size: 24px; }

@media (max-width: 1080px) {
  .tpl-compliance-grid { grid-template-columns: repeat(4, 1fr); }
  .tpl-compliance-card:nth-child(1), .tpl-compliance-card:nth-child(4) { grid-column: span 4; }
  .tpl-compliance-card:nth-child(2), .tpl-compliance-card:nth-child(3),
  .tpl-compliance-card:nth-child(5), .tpl-compliance-card:nth-child(6) { grid-column: span 2; }
  .tpl-compliance-card:nth-child(7), .tpl-compliance-card:nth-child(8),
  .tpl-compliance-card:nth-child(9) { grid-column: span 4; }
}
@media (max-width: 640px) {
  .tpl-compliance-grid { grid-template-columns: 1fr; }
  .tpl-compliance-card, .tpl-compliance-card:nth-child(n) { grid-column: span 1 !important; }
}

/* ====================== 7. Prose / legal long-form ============= */
.tpl-prose { padding: 88px 0; }
.tpl-prose-container { max-width: 820px; }
.tpl-prose-body { font-size: 16px; line-height: 1.7; color: var(--ink, #0a0a0a); }
.tpl-prose-body > * + * { margin-top: 1em; }
.tpl-prose-body h1 {
  font-family: var(--font-mona, 'Mona Sans', sans-serif);
  font-weight: 800; font-stretch: 108%;
  font-size: clamp(34px, 4.4vw, 54px); line-height: 1.05; letter-spacing: -0.02em;
  margin: 0 0 4px;
}
.tpl-prose-body h2 {
  font-family: var(--font-mona, 'Mona Sans', sans-serif);
  font-weight: 800; font-size: clamp(22px, 2.4vw, 28px); line-height: 1.15; letter-spacing: -0.015em;
  margin: 1.8em 0 0.2em;
}
.tpl-prose-body .tpl-prose-meta { color: var(--ink-mute, #a3a3a3); font-size: 14px; margin-top: 0.4em; }
.tpl-prose-body p { margin-top: 0.9em; }
.tpl-prose-body ul { list-style: disc; padding-left: 1.4em; margin-top: 0.6em; }
.tpl-prose-body li { margin: 0.3em 0; }
.tpl-prose-body li::marker { color: var(--accent, #0027ff); }
.tpl-prose-body a { color: var(--accent, #0027ff); text-decoration: underline; text-underline-offset: 3px; }
.tpl-prose-body strong { font-weight: 700; }
.tpl-prose-body h3 {
  font-family: var(--font-mona, 'Mona Sans', sans-serif);
  font-weight: 700; font-size: 18px; letter-spacing: -0.01em;
  margin: 1.4em 0 0.1em;
}
.tpl-prose-body hr { border: 0; border-top: 1px solid var(--line, rgba(10,10,10,0.12)); margin: 2em 0; }
.tpl-prose-body table { width: 100%; border-collapse: collapse; font-size: 15px; margin-top: 0.8em; }
.tpl-prose-body thead th { text-align: left; background: var(--bg-soft, #f6f7f5); font-family: var(--font-mona, 'Mona Sans', sans-serif); font-weight: 700; }
.tpl-prose-body th, .tpl-prose-body td { border: 1px solid var(--line, rgba(10,10,10,0.12)); padding: 10px 14px; }

/* Restricted / gated notice callout */
.tpl-prose-body .tpl-prose-notice {
  margin-top: 1.2em;
  border: 1px solid var(--line, rgba(10,10,10,0.12));
  border-left: 3px solid var(--accent, #0027ff);
  background: var(--bg-soft, #f6f7f5);
  border-radius: 10px;
  padding: 16px 18px;
}
.tpl-prose-body .tpl-prose-notice > strong {
  display: block;
  font-family: var(--font-mona, 'Mona Sans', sans-serif);
  font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent, #0027ff);
  margin-bottom: 6px;
}
.tpl-prose-body .tpl-prose-notice p { margin: 0; font-size: 14.5px; color: var(--ink-dim, #555); }

@media (max-width: 640px) {
  .tpl-prose { padding: 56px 0; }
  .tpl-prose-body table { font-size: 13.5px; }
}

/* ====================== 7b. Contact methods (3-up) ============= */
.tpl-contact { padding: 100px 0; }
.tpl-contact-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  border-top: 1px solid var(--line, rgba(10,10,10,0.08));
  border-bottom: 1px solid var(--line, rgba(10,10,10,0.08));
}
.tpl-contact-card { padding: 40px 28px; border-right: 1px solid var(--line, rgba(10,10,10,0.08)); }
.tpl-contact-card:last-child { border-right: none; }
.tpl-contact-icon { width: 28px; height: 28px; color: var(--accent, #0027ff); margin-bottom: 24px; display: block; }
.tpl-contact-label {
  font-family: var(--font-mona, 'Mona Sans', sans-serif);
  font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-dim, #6b6b6b); margin-bottom: 14px;
}
.tpl-contact-value {
  font-family: var(--font-instrument, 'Instrument Serif', Georgia, serif); font-style: italic; font-weight: 500;
  font-size: clamp(23px, 2.4vw, 30px); line-height: 1.1; letter-spacing: -0.01em;
  color: var(--accent, #0027ff); text-decoration: none; display: block; margin-bottom: 16px;
}
.tpl-contact-value:hover { text-decoration: underline; text-underline-offset: 3px; }
.tpl-contact-desc { font-size: 14.5px; line-height: 1.55; color: var(--ink-dim, #6b6b6b); margin: 0 0 22px; }
.tpl-contact-link {
  font-family: var(--font-mona, 'Mona Sans', sans-serif); font-size: 14px; font-weight: 600;
  color: var(--ink, #0a0a0a); text-decoration: none; display: inline-flex; align-items: center; gap: 6px;
  transition: gap 0.15s;
}
.tpl-contact-link:hover { gap: 10px; }
@media (max-width: 900px) {
  .tpl-contact-grid { grid-template-columns: 1fr; }
  .tpl-contact-card { border-right: none; border-bottom: 1px solid var(--line, rgba(10,10,10,0.08)); }
  .tpl-contact-card:last-child { border-bottom: none; }
}

/* ====================== 7c. Contact CTA (big centered) ======== */
.tpl-contact-cta { padding: 120px 0; text-align: center; }
.tpl-contact-cta-inner { max-width: 1040px; margin: 0 auto; }
.tpl-contact-cta-eyebrow {
  font-family: var(--font-mona, 'Mona Sans', sans-serif); font-size: 13px; font-weight: 700;
  color: var(--ink, #0a0a0a); display: inline-flex; align-items: center; gap: 12px; margin-bottom: 28px;
}
.tpl-contact-cta-eyebrow::before { content: ''; width: 28px; height: 1px; background: var(--ink, #0a0a0a); }
.tpl-contact-cta h2 {
  font-family: var(--font-mona, 'Mona Sans', sans-serif); font-weight: 800; font-stretch: 108%;
  font-size: clamp(44px, 7vw, 104px); line-height: 0.98; letter-spacing: -0.03em; margin: 0 0 28px;
}
.tpl-contact-cta p {
  font-size: clamp(16px, 1.5vw, 20px); line-height: 1.5; color: var(--ink-dim, #6b6b6b);
  max-width: 680px; margin: 0 auto 36px;
}
.tpl-contact-cta p a { color: var(--ink, #0a0a0a); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 640px) { .tpl-contact, .tpl-contact-cta { padding: 64px 0; } }

/* Combined contact section: CTA headline + pill, then the 3-method grid
   beneath a divider. The grid resets the CTA's centered alignment. */
.tpl-contact-full .tpl-contact-grid {
  text-align: left;
  margin-top: 72px;
  border-top: 1px solid var(--line, rgba(10,10,10,0.08));
}

/* ============== Founder quote (dark band) ==================== */
.tpl-founderq { background: #0a0a18; color: #fff; padding: 120px 0; position: relative; overflow: hidden; }
.tpl-founderq::after {
  content: ''; position: absolute; top: -200px; right: -200px; width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(0,39,255,0.18), transparent 65%); pointer-events: none;
}
.tpl-founderq .tpl-container { position: relative; }
.tpl-founderq-eyebrow {
  font-family: var(--font-inter, 'Inter', sans-serif);
  font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(255,255,255,0.55); margin-bottom: 36px; display: flex; align-items: center; gap: 12px;
}
.tpl-founderq-eyebrow::before { content: ''; width: 28px; height: 1px; background: rgba(255,255,255,0.35); }
.tpl-founderq-quote {
  font-family: var(--font-instrument, 'Instrument Serif', Georgia, serif);
  font-weight: 400; font-size: clamp(28px, 3vw, 44px); line-height: 1.25; letter-spacing: -0.015em;
  color: #fff; max-width: 1000px; margin: 0 auto 48px; text-align: center;
}
.tpl-founderq-quote .accent { font-style: italic; color: #5b7bff; }
.tpl-founderq-byline { display: flex; align-items: center; justify-content: center; gap: 16px; }
.tpl-founderq-avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; display: block; flex: none; }
.tpl-founderq-name { font-family: var(--font-inter, 'Inter', sans-serif); font-size: 16px; font-weight: 600; color: #fff; }
.tpl-founderq-role { font-family: var(--font-inter, 'Inter', sans-serif); font-size: 14px; color: rgba(255,255,255,0.6); }
@media (max-width: 640px) { .tpl-founderq { padding: 72px 0; } }

/* ============== Hero — split (text + media) ================= */
.tpl-herosplit-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 80px; align-items: center; }
.tpl-herosplit-eyebrow {
  font-family: var(--font-mona, 'Mona Sans', sans-serif); font-size: 14px; font-weight: 700;
  color: var(--ink, #0a0a0a); margin-bottom: 24px; display: inline-flex; align-items: center; gap: 12px;
}
.tpl-herosplit-eyebrow::before { content: ''; width: 28px; height: 1px; background: var(--ink, #0a0a0a); }
.tpl-herosplit-h1 {
  font-family: var(--font-mona, 'Mona Sans', sans-serif); font-weight: 800;
  font-size: clamp(48px, 6.8vw, 92px); line-height: 0.98; letter-spacing: -0.02em;
  margin: 0 0 32px; color: var(--ink, #0a0a0a);
}
.tpl-herosplit-h1 .tpl-italic { font-style: italic; font-weight: 500; font-family: var(--font-instrument, 'Instrument Serif', serif); letter-spacing: -0.015em; }
.tpl-herosplit-sub { font-family: var(--font-inter, 'Inter', sans-serif); font-size: 19px; line-height: 1.5; color: var(--ink, #0a0a0a); max-width: 580px; margin: 0 0 36px; }
.tpl-herosplit-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.tpl-herosplit-visual {
  aspect-ratio: 4 / 5; border-radius: 28px; overflow: hidden; position: relative;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(0,39,255,0.5), transparent 55%),
    radial-gradient(ellipse at 70% 80%, rgba(216,255,61,0.18), transparent 50%),
    #0a0a0a;
}
.tpl-herosplit-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 860px) {
  .tpl-herosplit-grid { grid-template-columns: 1fr; gap: 40px; }
  .tpl-herosplit-visual { aspect-ratio: 4 / 3; }
}

/* ===== Inline-editor format wrappers (alignment + text size) =====
   Applied via the floating toolbar; class-based so they survive the HTML
   sanitizer and persist inside a field's saved innerHTML. */
.meem-fmt { display: block; }
.meem-al-center { text-align: center; }
.meem-al-right { text-align: right; }
.meem-fs-sm { font-size: 0.82em; }
.meem-fs-lg { font-size: 1.25em; }
.meem-fs-xl { font-size: 1.6em; }
.meem-accent { font-family: var(--font-instrument, 'Instrument Serif', Georgia, serif); font-style: italic; font-weight: 500; }
.meem-c-blue { color: #5b7bff; }
/* Sections hidden via the editor's eye toggle (custom pages + any class-based). */
.meem-section-hidden { display: none !important; }

/* ====================== 8. Location pages (North Texas) ======== */
/* Location pages render through the SAME tpl-* design system as the rest of
   the site (hero, compliance bento, split + features, cta band). These are
   only the small additions the bespoke content needs: a soft section variant,
   a 2-column feature list, capability cards, and the floating section pill. */

/* soft (alternating) section background */
.tpl-section-soft { background: var(--bg-soft, #f6f7f5); }

/* tighten the hero when the floating section nav sits directly above it */
.loc-subnav + .tpl-hero-centered { padding-top: 64px; }

/* 2-column feature list (challenges / when-to-call) + non-link static rows */
.tpl-feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 56px; }
.tpl-feature-item.tpl-feature-static { cursor: default; }
.tpl-feature-item.tpl-feature-static:hover { color: var(--ink, #0a0a0a); padding-left: 0; }
@media (max-width: 760px) { .tpl-feature-grid { grid-template-columns: 1fr; gap: 0; } }

/* capability groups ("what we actually help with") — 4 themed cards, 2×2 */
.tpl-cap-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 8px; }
.tpl-cap-group {
  border: 1px solid var(--line, rgba(10,10,10,0.10)); border-radius: 18px; padding: 30px 30px 26px;
  background: var(--bg, #fff); transition: border-color .2s, transform .2s;
}
.tpl-cap-group:hover { border-color: var(--accent, #0027ff); transform: translateY(-2px); }
.tpl-cap-group-title {
  font-family: var(--font-mona, 'Mona Sans', sans-serif); font-weight: 800; font-size: 18px; letter-spacing: -0.015em;
  color: var(--ink, #0a0a0a); margin: 0 0 18px; padding-bottom: 16px;
  border-bottom: 1px solid var(--line, rgba(10,10,10,0.08));
  display: flex; align-items: center; gap: 10px;
}
.tpl-cap-group-title::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--accent, #0027ff); opacity: 0.7; }
.tpl-cap-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.tpl-cap-list li {
  display: flex; align-items: center; gap: 11px;
  font-family: var(--font-inter, 'Inter', sans-serif); font-size: 14.5px; line-height: 1.4; color: var(--ink-dim, #6b6b6b);
}
.tpl-cap-list li::before { content: ''; flex: none; width: 5px; height: 5px; background: var(--accent, #0027ff); transform: rotate(45deg); opacity: 0.6; }
@media (max-width: 760px) { .tpl-cap-grid { grid-template-columns: 1fr; } }

/* anchored sections should clear the sticky header + section pill on jump */
.custom-page section[id] { scroll-margin-top: 150px; }

/* ---- floating section nav (sticks under the 76px site header, → pill) ---- */
.loc-subnav {
  background: var(--bg, #fff); border-bottom: 1px solid var(--line, rgba(10,10,10,0.08));
  position: sticky; top: 76px; z-index: 90;
  transition: background .25s ease, border-color .25s ease, padding .25s ease;
}
.loc-subnav-inner {
  max-width: 1080px; margin: 0 auto; padding: 15px 32px;
  display: flex; align-items: center; gap: 22px;
  overflow-x: auto; white-space: nowrap;
  transition: background .25s ease, padding .25s ease, box-shadow .25s ease;
}
.loc-subnav-label { font-family: var(--font-mona, 'Mona Sans', sans-serif); font-weight: 700; font-size: 14px; color: var(--ink, #0a0a0a); flex-shrink: 0; }
.loc-subnav-link { font-size: 13px; color: var(--ink-dim, #6b6b6b); text-decoration: none; transition: color .2s ease, background .2s ease; flex-shrink: 0; }
.loc-subnav-link:hover { color: var(--ink, #0a0a0a); }
.loc-subnav.is-pill { background: transparent; border-bottom-color: transparent; padding: 10px 0; pointer-events: none; }
.loc-subnav.is-pill .loc-subnav-inner {
  width: max-content; max-width: calc(100% - 32px); margin: 0 auto; pointer-events: auto;
  gap: 4px; padding: 6px; background: var(--ink, #0a0a0a); border-radius: 999px;
  box-shadow: 0 12px 34px rgba(10,10,10,0.22); counter-reset: navidx;
}
.loc-subnav.is-pill .loc-subnav-label { display: none; }
.loc-subnav.is-pill .loc-subnav-link {
  counter-increment: navidx; font-family: var(--font-mona, 'Mona Sans', sans-serif); font-weight: 500;
  color: rgba(255,255,255,0.62); padding: 9px 18px; border-radius: 999px;
}
.loc-subnav.is-pill .loc-subnav-link::after { content: counter(navidx, decimal-leading-zero); font-size: 0.62em; vertical-align: super; margin-left: 3px; font-weight: 600; opacity: 0.7; }
.loc-subnav.is-pill .loc-subnav-link:hover { color: #fff; }
.loc-subnav.is-pill .loc-subnav-link.is-active { background: #fff; color: var(--ink, #0a0a0a); }
@media (max-width: 600px) { .loc-subnav-inner { padding: 12px 20px; } }

/* ====================== 9. Metro Relay in-article CTAs (.mr-*) ===
   Brand CTAs (lead magnet, visibility, industry, framework) used in the
   Section Library. Self-contained + scoped under `.mr-ctas`; fonts mapped to
   the site's local families (no external Google Fonts). */
.mr-ctas, .mr-ctas * { box-sizing: border-box; margin: 0; padding: 0; }
.mr-ctas {
  --yellow:#ffe500; --mrink:#111111; --body:#333333; --muted:#6b6b6b; --mrline:#e6e4de; --paper:#ffffff;
  --panel:#141414; --panel-soft:#bdb6a7; --on-panel:#f4f1ea;
  --display:var(--font-mona,'Mona Sans',system-ui,sans-serif);
  --serif:var(--font-instrument,'Instrument Serif',Georgia,serif);
  --text:var(--font-inter,'Inter',system-ui,sans-serif);
  font-family:var(--text); color:var(--mrink); width:100%; max-width:1080px; margin:0 auto;
}
.mr-eyebrow { display:flex; align-items:center; gap:12px; font-weight:700; font-size:13px; color:var(--mrink); margin-bottom:22px; }
.mr-eyebrow .dash { width:26px; height:2px; background:var(--mrink); flex:none; }
.mr-h { font-family:var(--display); font-weight:800; line-height:.98; letter-spacing:-.02em; color:var(--mrink); }
.mr-h em { font-family:var(--serif); font-style:italic; font-weight:500; letter-spacing:0; }
.mr-sub { font-size:16px; line-height:1.55; color:var(--body); margin-top:18px; max-width:46ch; }
.mr-actions { display:flex; align-items:center; gap:12px; flex-wrap:wrap; margin-top:28px; }
.mr-pill { display:inline-flex; align-items:center; font-family:var(--display); font-weight:700; font-size:15px; background:var(--mrink); color:#fff; text-decoration:none; padding:14px 26px; border-radius:999px; border:1.5px solid var(--mrink); transition:background .16s, transform .12s; }
.mr-pill:hover { background:#000; }
.mr-pill.ghost { background:transparent; color:var(--mrink); }
.mr-pill.ghost:hover { background:rgba(17,17,17,.06); }
.mr-pill:active { transform:translateY(1px); }
.mr-lm { display:grid; grid-template-columns:1fr 1fr; border-radius:22px; overflow:hidden; }
.mr-lm .intro { background:#f6f4ee; padding:38px 34px; }
.mr-lm .intro .mr-h { font-size:clamp(24px,4vw,32px); line-height:1.0; }
.mr-lm .intro .mr-sub { font-size:15px; margin-top:16px; max-width:none; }
.mr-lm .trust { display:flex; align-items:flex-start; gap:9px; margin-top:20px; font-size:13.5px; color:var(--muted); }
.mr-lm .trust .tick { width:18px; height:18px; border-radius:50%; flex:none; background:var(--mrink); display:grid; place-items:center; margin-top:1px; }
.mr-lm .trust .tick svg { width:10px; height:10px; stroke:#fff; }
.mr-lm .offer { background:var(--panel); padding:34px 32px; display:flex; flex-direction:column; }
.mr-lm .kicker { font-weight:700; font-size:11px; letter-spacing:.14em; text-transform:uppercase; color:var(--yellow); margin-bottom:14px; }
.mr-lm .oh { font-family:var(--display); font-weight:800; font-size:clamp(20px,3.2vw,25px); line-height:1.08; letter-spacing:-.01em; color:var(--on-panel); }
.mr-lm .art { margin:20px 0; border:1.5px dashed rgba(244,241,234,.32); border-radius:12px; min-height:96px; display:grid; place-items:center; text-align:center; color:var(--panel-soft); font-size:12.5px; line-height:1.4; padding:14px; }
.mr-lm .spacer { flex:1; }
.mr-lm .dl { display:inline-flex; align-items:center; justify-content:center; gap:9px; width:100%; font-family:var(--display); font-weight:700; font-size:15px; background:#f4f1ea; color:var(--mrink); text-decoration:none; padding:14px 22px; border-radius:999px; transition:background .16s, transform .12s; }
.mr-lm .dl:hover { background:#fff; }
.mr-lm .dl:active { transform:translateY(1px); }
.mr-lm .dl svg { width:17px; height:17px; stroke:var(--mrink); }
.mr-lm .micro { font-size:12.5px; color:var(--panel-soft); margin-top:12px; text-align:center; }
.mr-lm .micro .alt { color:var(--on-panel); font-weight:600; text-decoration:none; }
.mr-lm .micro .alt:hover { text-decoration:underline; }
.mr-card { background:var(--paper); border:1px solid var(--mrline); border-radius:20px; padding:38px 40px; }
.mr-cta.one .mr-h { font-size:clamp(30px,6vw,46px); }
.mr-cta.two .mr-h { font-size:clamp(28px,5.4vw,42px); }
.mr-cta.two .mr-h em { display:inline-block; }
.mr-detail { font-size:15px; line-height:1.55; color:var(--body); margin-top:16px; max-width:50ch; }
.mr-cta.three .mr-card { background:var(--yellow); border:0; padding:54px 40px; text-align:center; }
.mr-cta.three .mr-h { font-size:clamp(34px,7.4vw,56px); }
.mr-cta.three .mr-sub { color:#1a1a1a; margin:18px auto 0; max-width:40ch; }
.mr-cta.three .mr-actions { justify-content:center; }
.mr-cta.three .mr-micro { font-size:13px; color:#2a2a2a; margin-top:18px; font-weight:500; }
@media (max-width:560px){
  .mr-lm { grid-template-columns:1fr; }
  .mr-lm .intro, .mr-lm .offer { padding:28px 24px; }
  .mr-card { padding:30px 26px; }
  .mr-cta.three .mr-card { padding:42px 26px; }
}

/* ===== HIRING — dark wide card (Indeed / careers) ===== */
.mr-cta.hire .mr-card {
  background: radial-gradient(120% 130% at 85% 0%, #1a347e 0%, #0a0d1a 46%, #08080c 100%);
  border: 0; border-radius: 28px; padding: clamp(36px,5vw,60px); color: var(--on-panel);
}
.mr-hire-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 56px; align-items: start; }
.mr-cta.hire .mr-eyebrow { color: rgba(244,241,234,.9); margin-bottom: 24px; }
.mr-cta.hire .mr-eyebrow .dash { background: rgba(244,241,234,.6); }
.mr-cta.hire .mr-h { color: #fff; font-size: clamp(34px,5vw,52px); }
.mr-cta.hire .mr-h em { color: #5b7bff; }
.mr-cta.hire .mr-sub { color: rgba(244,241,234,.62); max-width: none; }
.mr-hire-side { display: flex; flex-direction: column; gap: 12px; }
.mr-hire-label { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(244,241,234,.5); margin-bottom: 6px; }
.mr-hire-btn { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 17px 26px; border-radius: 999px; font-family: var(--display); font-weight: 600; font-size: 16px; text-decoration: none; transition: background .16s, transform .12s; }
.mr-hire-btn:active { transform: translateY(1px); }
.mr-hire-btn.primary { background: #fff; color: #0a0a0a; }
.mr-hire-btn.primary:hover { background: #f0f0f0; }
.mr-hire-btn.ghost { background: rgba(255,255,255,.04); color: var(--on-panel); border: 1px solid rgba(255,255,255,.22); }
.mr-hire-btn.ghost:hover { background: rgba(255,255,255,.1); }
.mr-hire-btn svg { width: 18px; height: 18px; flex: none; stroke: currentColor; }
@media (max-width:720px){ .mr-hire-grid { grid-template-columns: 1fr; gap: 28px; } }

/* CTA buttons must beat ambient <a> link styling (e.g. inside .prose-article on
   insight articles, where links render blue + underlined). Scoped under
   .mr-ctas so the specificity (0,0,2,x) wins over `.prose-article a`. */
.mr-ctas a { text-decoration: none; }
.mr-ctas .mr-pill { color: #fff; }
.mr-ctas .mr-pill.ghost { color: var(--mrink); }
.mr-ctas .mr-lm .dl { color: var(--mrink); }
.mr-ctas .mr-hire-btn.primary { color: #0a0a0a; }
.mr-ctas .mr-hire-btn.ghost { color: var(--on-panel); }

/* ============================================================
   Executive Checklist CTA (exec-checklist) — copy + hand-drawn
   animated "Start here" arrow on the left, bound lead-magnet card right.
   ============================================================ */
.tpl-exec { --exec-arrow: #e8602c; }
.tpl-exec-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center; }
.tpl-exec-title { font-family: 'Mona Sans', var(--font-mona), sans-serif; font-weight: 800; font-size: clamp(26px, 3.2vw, 40px); line-height: 1.08; letter-spacing: -0.02em; margin: 10px 0 14px; max-width: 18ch; }
.tpl-exec-sub { font-size: 15px; color: #5a5f66; margin: 0; }
.tpl-exec-start { position: relative; display: inline-flex; align-items: center; gap: 6px; margin-top: 20px; }
.tpl-exec-starttext { font-family: 'Bradley Hand', 'Segoe Script', 'Comic Sans MS', cursive; font-size: 23px; font-weight: 700; font-style: italic; color: var(--exec-arrow); transform: rotate(-6deg); white-space: nowrap; }
.tpl-exec-arrow { width: 120px; height: 62px; transform-origin: 50% 50%; animation: tpl-exec-wiggle 2.6s ease-in-out infinite; }
.tpl-exec-arrowline { stroke-dasharray: 300; stroke-dashoffset: 300; animation: tpl-exec-draw 1.2s ease-out 0.2s forwards; }
@keyframes tpl-exec-draw { to { stroke-dashoffset: 0; } }
@keyframes tpl-exec-wiggle { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(3deg); } }
@media (max-width: 820px) {
  .tpl-exec-grid { grid-template-columns: 1fr; gap: 22px; }
  .tpl-exec-start { margin-top: 6px; }
  .tpl-exec-arrow { width: 90px; height: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  .tpl-exec-arrow { animation: none; }
  .tpl-exec-arrowline { animation: none; stroke-dashoffset: 0; }
}

/* ============================================================
   Insights block (insights-block) — editable topic-head + a
   server-hydrated 3-up grid of insight cards.
   ============================================================ */
.tpl-iblock-head { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: end; margin-bottom: 28px; }
.tpl-iblock-eb { color: var(--accent, #0027ff); margin-bottom: 8px; }
.tpl-iblock-h2 { font-family: 'Mona Sans', var(--font-mona), sans-serif; font-weight: 800; font-size: clamp(30px, 4vw, 52px); line-height: 1.02; letter-spacing: -0.025em; margin: 0; }
.tpl-iblock-h2 .tpl-italic { font-family: 'Instrument Serif', Georgia, serif; font-weight: 400; font-style: italic; }
.tpl-iblock-headr { padding-bottom: 6px; }
.tpl-iblock-lead { font-size: 16px; line-height: 1.55; color: #5a5f66; margin: 0 0 16px; max-width: 46ch; }
.tpl-iblock-seeall { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: #0a0a0a; text-decoration: none; }
.tpl-iblock-seeall::after { content: '›'; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 7px; background: #0a0a0a; color: #fff; font-size: 16px; line-height: 1; }
/* Self-contained insight cards — markup + values mirror the public /insights
   carousel cards (.carousel-card) EXACTLY, so the block looks identical on any
   static or custom page WITHOUT the app's Tailwind bundle. Per-card colors /
   icon / image come inline from the insight's coverConfig (server-rendered). */
.tpl-iblock-grid { display: block; }
.tpl-iblock-track {
  display: flex; gap: 16px;
  overflow-x: auto; overflow-y: hidden;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
  -ms-overflow-style: none; scrollbar-width: none;
}
.tpl-iblock-track::-webkit-scrollbar { display: none; }
.tpl-iblock-card {
  flex: 0 0 280px;
  aspect-ratio: 5 / 7;
  border-radius: 0;
  padding: 28px 26px;
  display: flex; flex-direction: column; justify-content: space-between;
  text-decoration: none; color: inherit;
  scroll-snap-align: start;
  transition: transform 0.3s ease;
  position: relative; overflow: hidden;
}
.tpl-iblock-card:hover { transform: translateY(-4px); }
.tpl-iblock-eyebrow {
  font-family: 'Mona Sans', var(--font-mona), sans-serif;
  font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; font-weight: 600;
  margin-bottom: 18px;
}
.tpl-iblock-title {
  font-family: 'Mona Sans', var(--font-mona), sans-serif;
  font-weight: 700; font-size: 21px;
  line-height: 1.2; letter-spacing: -0.015em;
  position: relative; z-index: 2;
}
.tpl-iblock-visual {
  margin-top: 16px; flex: 1;
  display: flex; align-items: flex-end; justify-content: center;
  opacity: 0.9; max-height: 500px; overflow: hidden;
}
.tpl-iblock-visual svg { width: 80%; max-width: 160px; height: auto; }
.tpl-iblock-empty { padding: 40px; text-align: center; color: #999; font-size: 14px; border: 1px dashed var(--line, rgba(10,10,10,.16)); border-radius: 8px; }
/* Carousel prev/next buttons (base layout is inline on the element so they
   render without this file; this just adds the hover invert). */
.tpl-iblock-navbtn:hover { background: #0a0a0a !important; color: #fff !important; }
@media (max-width: 860px) {
  .tpl-iblock-head { grid-template-columns: 1fr; gap: 18px; align-items: start; }
}
