/* ════════════════════════════════════════════════════════════
   INFLOWSTRUCTURE — shared design system
   Loaded before nav.css (nav.css consumes the :root tokens).
   Page-specific styles stay in each page's own <style> block.
   ════════════════════════════════════════════════════════════ */

/* ── Tokens ── */
:root {
  --dark: #19445c;
  --teal: #0e9baf;
  --text: #2c363c;
  --bg: #f4f6f7;
  --white: #ffffff;

  /* Derived / supporting */
  --teal-fade: rgba(14, 155, 175, 0.1);
  --dark-fade: rgba(25, 68, 92, 0.07);
  --border: rgba(25, 68, 92, 0.1);
  --muted: #54616b;            /* body copy on light bg — 6.2:1 on white */
  --muted-soft: #6b7780;       /* captions / fine print — 4.6:1 on white */
  --teal-ink: #0a7585;         /* teal that passes 4.5:1 for small text on light bg */
  --navy-deep: #0d1b26;        /* blueprint-dark sections */

  /* Radii */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 22px;
  --r-pill: 100px;

  /* Shadows */
  --shadow-sm: 0 2px 12px rgba(25, 68, 92, 0.06);
  --shadow-md: 0 8px 30px rgba(25, 68, 92, 0.08);
  --shadow-lg: 0 20px 60px rgba(25, 68, 92, 0.12);
  --shadow-teal: 0 4px 18px rgba(14, 155, 175, 0.3);

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --t-fast: 0.18s;
  --t-med: 0.3s;
}

/* ── Reset & base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;                 /* 16px minimum everywhere */
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg, video { max-width: 100%; height: auto; }
img { display: block; }

/* ── Accessibility ── */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--dark); color: #fff;
  padding: 0.75rem 1.25rem; border-radius: 0 0 var(--r-sm) 0;
  font-weight: 600; text-decoration: none; font-size: 0.9rem;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 2px;
  border-radius: 4px;
}
a, button, summary, input, select, textarea { touch-action: manipulation; }
a, button, summary, [role="button"] { cursor: pointer; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* ── Typography ── */
h1, h2, h3, h4, h5 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--dark);
  letter-spacing: -0.02em;
  line-height: 1.15;
  text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 4.2vw, 3.7rem); font-weight: 800; color: var(--text); margin-bottom: 1.25rem; }
h1 .tl, h2 .tl { color: var(--teal); }
h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 800; margin-bottom: 0.85rem; }
h3 { font-size: 1.2rem; font-weight: 700; }

p { max-width: 68ch; }

.label {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--teal-ink); margin-bottom: 0.85rem;
}
.label::before { content: ''; width: 20px; height: 2px; background: var(--teal); border-radius: 1px; }
.label.centered { justify-content: center; }
.label.centered::after { content: ''; width: 20px; height: 2px; background: var(--teal); border-radius: 1px; }

.lead { font-size: 1.02rem; color: var(--muted); line-height: 1.8; max-width: 58ch; }
.fine { font-size: 0.8rem; color: var(--muted-soft); }

/* On-dark text helpers */
.on-dark h2, .on-dark h3, .on-dark h4 { color: #fff; }
.on-dark .label { color: #2fc4d8; }
.on-dark .label::before, .on-dark .label.centered::after { background: #2fc4d8; }
.on-dark .lead, .on-dark p { color: rgba(255, 255, 255, 0.72); }

/* ── Layout ── */
section { padding: clamp(3.25rem, 5.5vw, 4.75rem) 5%; }
.section-inner { max-width: 1140px; margin: 0 auto; }
.section-head { max-width: 640px; margin: 0 auto 2.5rem; text-align: center; }
.section-head .lead { margin: 0 auto; }
.section-head-left { max-width: 640px; margin-bottom: 3rem; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

@media (max-width: 900px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 580px) {
  .grid-4 { grid-template-columns: 1fr; }
}

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  text-decoration: none; border: none;
  padding: 0.85rem 1.85rem; min-height: 48px;
  border-radius: var(--r-pill);
  font-family: 'DM Sans', sans-serif; font-size: 0.92rem; font-weight: 600;
  transition: transform var(--t-fast) ease, box-shadow var(--t-med) ease,
              background var(--t-fast) ease, border-color var(--t-fast) ease,
              color var(--t-fast) ease;
}
.btn-primary { background: var(--teal); color: #fff; box-shadow: var(--shadow-teal); }
.btn-primary:hover { background: var(--dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(25, 68, 92, 0.22); }
.btn-ghost { background: transparent; color: var(--dark); border: 1.5px solid var(--border); }
.btn-ghost:hover { border-color: var(--teal); color: var(--teal-ink); transform: translateY(-2px); }
.btn-white { background: #fff; color: var(--dark); font-weight: 700; box-shadow: 0 6px 24px rgba(0, 0, 0, 0.15); }
.btn-white:hover { box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2); transform: translateY(-2px); }
.btn-outline-w { background: transparent; color: rgba(255, 255, 255, 0.88); border: 1.5px solid rgba(255, 255, 255, 0.35); }
.btn-outline-w:hover { border-color: rgba(255, 255, 255, 0.85); color: #fff; transform: translateY(-2px); }
.btn:disabled { opacity: 0.65; cursor: progress; transform: none; }

.text-link {
  display: inline-flex; align-items: center; gap: 0.35rem;
  color: var(--teal-ink); font-weight: 600; font-size: 0.9rem;
  text-decoration: none; border-bottom: 1.5px solid transparent;
  transition: border-color var(--t-fast) ease, gap var(--t-fast) ease;
}
.text-link:hover { border-color: var(--teal); gap: 0.55rem; }

/* ── Cards & chips ── */
.card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 2rem;
  transition: transform var(--t-med) var(--ease-out), box-shadow var(--t-med) ease, border-color var(--t-med) ease;
}
.card.hoverable:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: rgba(14, 155, 175, 0.2); }

.icon-box {
  width: 48px; height: 48px; flex-shrink: 0;
  border-radius: var(--r-md);
  display: grid; place-items: center;
  background: var(--teal-fade); color: var(--teal-ink);
}
.icon-box.on-navy { background: linear-gradient(135deg, var(--dark), #1a6a8a); color: #4ed3e6; box-shadow: 0 8px 24px rgba(25, 68, 92, 0.2); }
.icon-box svg { width: 22px; height: 22px; }

.chip {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--r-pill); padding: 0.6rem 1.1rem; min-height: 44px;
  font-size: 0.85rem; font-weight: 500; color: var(--dark);
  transition: border-color var(--t-fast) ease, color var(--t-fast) ease;
}
.chip svg { width: 16px; height: 16px; color: var(--teal-ink); flex-shrink: 0; }
.chip:hover { border-color: var(--teal); color: var(--teal-ink); }

.stat-chip {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 0.8rem 0.9rem;
}
.stat-chip strong { display: block; font-family: 'Plus Jakarta Sans', sans-serif; font-size: 1.05rem; color: var(--dark); line-height: 1.2; }
.stat-chip span { display: block; margin-top: 0.2rem; font-size: 0.76rem; color: var(--muted); line-height: 1.4; }
.stat-chip.on-white { background: #fff; }

/* Check list (shared bullet pattern) */
.check-list { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; }
.check-list li { display: flex; align-items: flex-start; gap: 0.7rem; font-size: 0.92rem; color: var(--text); line-height: 1.6; }
.check-list li::before {
  content: ''; width: 19px; height: 19px; flex-shrink: 0; margin-top: 2px; border-radius: 6px;
  background: var(--teal-fade) url("data:image/svg+xml,%3Csvg width='11' height='11' viewBox='0 0 10 10' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 5.5l2 2 4-4' stroke='%230a7585' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center;
}

.arrow-list { list-style: none; display: flex; flex-direction: column; gap: 0.65rem; }
.arrow-list li { display: flex; align-items: flex-start; gap: 0.65rem; font-size: 0.92rem; line-height: 1.6; }
.arrow-list li::before { content: '→'; color: var(--teal); font-weight: 700; flex-shrink: 0; }

/* ── Forms ── */
.field { margin-bottom: 1rem; }
.field label { display: block; font-size: 0.82rem; font-weight: 600; color: var(--dark); margin-bottom: 0.4rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: 0.8rem 1rem; min-height: 48px;
  border-radius: var(--r-sm); border: 1.5px solid rgba(25, 68, 92, 0.14);
  font-family: 'DM Sans', sans-serif; font-size: 1rem; color: var(--text);
  background: #fff; outline: none;
  transition: border-color var(--t-fast) ease, box-shadow var(--t-fast) ease;
}
.field textarea { min-height: 110px; resize: vertical; line-height: 1.6; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--teal); box-shadow: 0 0 0 3px rgba(14, 155, 175, 0.15);
}
.field input::placeholder, .field textarea::placeholder { color: #9aa5ad; }

.form-alert {
  display: none;
  background: rgba(192, 57, 43, 0.07); border: 1px solid rgba(192, 57, 43, 0.25);
  border-radius: var(--r-sm); padding: 0.9rem 1.1rem; margin-bottom: 1.1rem;
  font-size: 0.87rem; color: #a93226;
}

/* ── Blueprint texture (brand signature) ── */
.blueprint-grid-bg { position: relative; }
.blueprint-grid-bg::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(14, 155, 175, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14, 155, 175, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* ── Scroll reveal (site.js adds .in when visible) ── */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }

/* ── Vertical landing-page hero (shared by who-we-help pages) ── */
.vp-hero { position: relative; overflow: hidden; background: #060f18; padding: 9rem 5% 4.5rem; }
.vp-hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(14,155,175,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14,155,175,0.06) 1px, transparent 1px);
  background-size: 48px 48px;
}
.vp-hero::after {
  content: ''; position: absolute; top: -25%; left: 50%; transform: translateX(-50%);
  width: 900px; height: 520px; pointer-events: none;
  background: radial-gradient(ellipse, rgba(14,155,175,0.12) 0%, transparent 65%);
}
.vp-hero-inner { position: relative; z-index: 1; max-width: 1140px; margin: 0 auto; }
.vp-hero h1 { color: #fff; font-size: clamp(2.3rem, 5vw, 4rem); margin-bottom: 1.25rem; max-width: 17ch; }
.vp-hero h1 em { font-style: normal; color: var(--teal); }
.vp-hero .lead { color: rgba(255,255,255,0.62); max-width: 56ch; margin-bottom: 2rem; }
.vp-hero-actions { display: flex; gap: 0.85rem; flex-wrap: wrap; }
@media (max-width: 580px) {
  .vp-hero { padding: 7rem 6% 3.5rem; }
  .vp-hero-actions { flex-direction: column; align-items: stretch; }
  .vp-hero-actions .btn { width: 100%; }
}

/* Two delivery modes band (monday.com vs custom) */
.vp-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.vp-mode { background: var(--bg); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 1.75rem; }
.vp-mode h3 { margin-bottom: 0.5rem; }
.vp-mode p { font-size: 0.9rem; color: var(--muted); line-height: 1.7; }
@media (max-width: 700px) { .vp-modes { grid-template-columns: 1fr; } }

/* Proof callout linking to a case study */
.vp-proof {
  background: var(--dark); border-radius: var(--r-xl); padding: clamp(2rem, 4vw, 3rem);
  position: relative; overflow: hidden;
}
.vp-proof blockquote { font-size: clamp(1.1rem, 2vw, 1.5rem); color: #fff; font-weight: 700; line-height: 1.35; letter-spacing: -0.01em; max-width: 30ch; margin-bottom: 1.25rem; }
.vp-proof cite { display: block; font-style: normal; font-size: 0.8rem; font-weight: 700; color: #2fc4d8; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 1.5rem; }

/* ── Blog / Insights ── */
.blog-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
@media (max-width: 760px) { .blog-grid { grid-template-columns: 1fr; } }
.blog-card {
  display: flex; flex-direction: column; gap: 0.6rem;
  background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 1.75rem; text-decoration: none;
  transition: transform var(--t-med) var(--ease-out), box-shadow var(--t-med) ease, border-color var(--t-med) ease;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: rgba(14,155,175,0.2); }
.blog-card-date { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-soft); }
.blog-card h2 { font-size: 1.2rem; line-height: 1.25; margin: 0; }
.blog-card p { font-size: 0.9rem; color: var(--muted); line-height: 1.65; }
.blog-card-more { margin-top: auto; font-size: 0.8rem; font-weight: 700; color: var(--teal-ink); }

.post { background: #fff; }
.post-inner { max-width: 720px; margin: 0 auto; padding: 7.5rem 5% 3.5rem; }
.post-back { display: inline-block; font-size: 0.8rem; font-weight: 600; color: var(--teal-ink); text-decoration: none; margin-bottom: 1.5rem; }
.post-back:hover { text-decoration: underline; }
.post-inner h1 { font-size: clamp(2rem, 4vw, 3rem); margin: 0.5rem 0 0.75rem; }
.post-meta { font-size: 0.82rem; color: var(--muted-soft); margin-bottom: 2.5rem; }
.post-prose { font-size: 1.02rem; color: var(--text); line-height: 1.85; }
.post-prose > * + * { margin-top: 1.2rem; }
.post-prose h2 { font-size: 1.5rem; margin-top: 2.5rem; }
.post-prose h3 { font-size: 1.2rem; margin-top: 2rem; }
.post-prose ul, .post-prose ol { padding-left: 1.4rem; }
.post-prose li { margin-top: 0.4rem; }
.post-prose a { color: var(--teal-ink); text-decoration: underline; text-underline-offset: 2px; }
.post-prose strong { color: var(--dark); }
.post-prose blockquote { border-left: 3px solid var(--teal); padding: 0.4rem 0 0.4rem 1.25rem; color: var(--muted); font-style: italic; }
.post-prose code { background: var(--bg); border: 1px solid var(--border); border-radius: 5px; padding: 0.1em 0.4em; font-size: 0.9em; }
.post-prose pre { background: var(--navy-deep); color: #e8eef2; border-radius: var(--r-md); padding: 1.25rem; overflow: auto; }
.post-prose pre code { background: none; border: none; padding: 0; color: inherit; }
.post-prose img { max-width: 100%; height: auto; border-radius: var(--r-md); }
.post-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 2.5rem; }
.post-tags span { font-size: 0.72rem; font-weight: 600; color: var(--muted); background: var(--bg); border: 1px solid var(--border); border-radius: var(--r-pill); padding: 0.3rem 0.8rem; }

/* ── Footer ── */
footer { background: var(--navy-deep); padding: 4rem 5% 2rem; }
.footer-top {
  max-width: 1140px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem;
  padding-bottom: 3rem; border-bottom: 1px solid rgba(255, 255, 255, 0.08); margin-bottom: 2rem;
}
.f-brand-name { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 1rem; font-weight: 800; color: #fff; letter-spacing: -0.01em; line-height: 1.05; }
.f-brand-sub { font-size: 0.55rem; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255, 255, 255, 0.55); font-weight: 600; margin: 0.25rem 0 0.95rem; display: block; }
.f-brand-desc { font-size: 0.82rem; color: rgba(255, 255, 255, 0.5); line-height: 1.75; max-width: 250px; }
.footer-col h3 { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 0.72rem; font-weight: 700; color: rgba(255, 255, 255, 0.9); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 1rem; }
.footer-col a { display: inline-block; text-decoration: none; color: rgba(255, 255, 255, 0.55); font-size: 0.85rem; padding: 0.22rem 0; transition: color var(--t-fast) ease; }
.footer-col a:hover { color: #2fc4d8; }
.footer-col ul { list-style: none; }
.footer-bottom {
  max-width: 1140px; margin: 0 auto;
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-size: 0.75rem; color: rgba(255, 255, 255, 0.35);
}
.footer-bottom a { color: rgba(255, 255, 255, 0.55); text-decoration: none; transition: color var(--t-fast) ease; }
.footer-bottom a:hover { color: #2fc4d8; }

@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 580px) { .footer-top { grid-template-columns: 1fr; } }
