/* =========================================================
   SkyDBI Design System
   Visual language inspired by bitscale.ai: warm painterly hero,
   pill navigation, black/white contrast CTAs, rounded feature
   cards, ribbon trust badges, generous whitespace.
   ========================================================= */

/* Fonts are loaded via <link> in the document head, not @import.
   An @import here is render blocking and serialises the request: the
   browser must fetch and parse this file before it even discovers the
   font URL. */

:root {
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Raleway', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --ink: #0a0a0a;
  --ink-soft: #33322f;
  --paper: #ffffff;
  --cream: #f6f3ec;
  --cream-deep: #ece6d8;
  --line: #e6e1d4;
  --line-soft: rgba(10, 10, 10, 0.08);
  --accent: #1c3d2e;
  --accent-soft: #eef1ea;
  --gold: #b98a3d;
  --gold-ink: #8c6526;
  --gray: #6f6c63;
  --shadow-sm: 0 1px 2px rgba(10, 10, 10, 0.04);
  --shadow-md: 0 12px 32px rgba(10, 10, 10, 0.08);
  --shadow-lg: 0 24px 64px rgba(10, 10, 10, 0.14);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 28px;
  --radius-pill: 999px;
  --container: 1220px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.02em; }
h1, h2 { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.01em; }

.section-tag {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-ink);
}

.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head.center { max-width: 680px; margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 42px); margin-top: 14px; line-height: 1.15; }
.section-head p { margin-top: 16px; font-size: 17px; line-height: 1.6; color: var(--gray); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 26px;
  border-radius: var(--radius-pill);
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), box-shadow 0.25s var(--ease), color 0.25s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { box-shadow: var(--shadow-md); }
.btn-light { background: #fff; color: var(--ink); border-color: var(--line-soft); }
.btn-light:hover { box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-arrow {
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(255,255,255,0.16);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 14px;
}
.btn-light .btn-arrow, .btn-outline .btn-arrow { background: var(--accent-soft); }
.btn-block { width: 100%; }
.btn-sm { padding: 11px 20px; font-size: 13px; }

/* =========================================================
   Header
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 1px 0 rgba(10,10,10,0.02); }
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
  gap: 12px;
}
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 21px; font-weight: 600; letter-spacing: -0.01em; }
.brand-mark {
  width: 32px; height: 32px; border-radius: 9px;
  background: linear-gradient(155deg, var(--ink) 0%, var(--accent) 100%);
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-family: var(--font-body); font-size: 14px; font-weight: 800;
}
.nav-links { display: flex; align-items: center; gap: 0; flex-wrap: nowrap; }
.nav-links > li > a {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 13px; border-radius: var(--radius-pill);
  font-size: 13.5px; font-weight: 600; color: var(--ink-soft);
  white-space: nowrap;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.nav-links > li > a:hover { background: var(--cream); color: var(--ink); }
.caret { font-size: 9px; opacity: 0.6; transform: translateY(1px); }
.nav-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.nav-login { padding: 10px 10px; font-size: 13.5px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.nav-toggle {
  display: none; width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--line); background: #fff;
  align-items: center; justify-content: center; flex-direction: column; gap: 4px;
}
.nav-toggle span { width: 16px; height: 2px; background: var(--ink); border-radius: 2px; }

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  padding-top: 48px;
  padding-bottom: 56px;
  overflow: hidden;
  background: #dfe1e4;
}
.hero-bg {
  position: absolute; inset: 0;
  /* The painting's top third is near-empty sky. Anchoring low shows the
     sun, castle and water band instead, so the hero reads as a complete
     image rather than a pale wash. The scrim is kept heaviest on the left,
     under the headline, and light elsewhere so the art stays visible. */
  background-image:
    linear-gradient(103deg, rgba(246,243,236,0.93) 0%, rgba(246,243,236,0.76) 32%, rgba(246,243,236,0.34) 54%, rgba(246,243,236,0.12) 70%, rgba(246,243,236,0.26) 86%, rgba(246,243,236,0.58) 100%),
    linear-gradient(180deg, rgba(246,243,236,0.05) 0%, rgba(246,243,236,0.12) 58%, rgba(246,243,236,0.88) 100%),
    url('../img/hero-bg.jpg');
  background-size: cover, cover, cover;
  background-position: center, center, center 62%;
  filter: saturate(0.92) brightness(1.02);
}
.hero-inner { position: relative; z-index: 2; }
.hero-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 32px; }
.hero-copy { max-width: 760px; }
.hero-copy .eyebrow { margin-bottom: 22px; text-shadow: 0 1px 16px rgba(246,243,236,0.9); }
.hero h1 {
  font-size: clamp(34px, 5.1vw, 64px);
  line-height: 1.06;
  color: var(--ink);
  text-shadow: 0 2px 28px rgba(246,243,236,0.85);
}
.hero h1 em { font-style: italic; font-weight: 500; color: var(--gold); }
.hero-sub { margin-top: 22px; font-size: 18px; line-height: 1.6; color: var(--ink-soft); max-width: 540px; text-shadow: 0 1px 20px rgba(246,243,236,0.9); }
.hero-ctas { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }

.ribbon {
  flex-shrink: 0;
  background: rgba(20, 19, 16, 0.86);
  color: #fff;
  padding: 20px 26px 30px;
  border-radius: 4px 4px 0 0;
  text-align: center;
  min-width: 180px;
  position: relative;
  backdrop-filter: blur(4px);
}
.ribbon::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: -14px;
  height: 14px;
  background: inherit;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 60%, 0 100%);
}
.ribbon .rlabel { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; opacity: 0.72; font-weight: 700; }
.ribbon .rnum { font-family: var(--font-display); font-style: italic; font-size: 34px; font-weight: 600; margin: 6px 0 4px; }
.ribbon .rcap { font-size: 12.5px; line-height: 1.5; opacity: 0.85; }

/* Capability list below the stat band on the homepage.
   Chips rather than a space-between row: even gaps read as deliberate,
   whereas space-between stretches items into ragged, uneven columns. */
.capability-strip { margin-top: 64px; padding-top: 34px; border-top: 1px solid var(--line); }
.capability-label {
  display: block;
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--gray);
  margin-bottom: 20px;
}
.capability-list { display: flex; flex-wrap: wrap; gap: 10px; }
.capability-list li {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px;
  border: 1px solid var(--line); border-radius: var(--radius-pill);
  background: var(--cream);
  font-size: 13.5px; font-weight: 600; color: var(--ink-soft);
  white-space: nowrap;
}
.capability-list li::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%;
  background: var(--gold); flex-shrink: 0;
}

@media (max-width: 760px) {
  .capability-strip { margin-top: 44px; padding-top: 26px; }
  .capability-list { gap: 8px; }
  .capability-list li { padding: 8px 13px; font-size: 12.5px; }
}
/* =========================================================
   Stat cards band
   ========================================================= */
.stat-band { padding: 72px 0 8px; }
.stat-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.stat-card {
  background: var(--cream);
  border-radius: var(--radius-md);
  padding: 30px 26px;
  border: 1px solid var(--line);
}
.stat-card .num { font-family: var(--font-display); font-style: italic; font-size: 42px; font-weight: 600; letter-spacing: -0.01em; }
.stat-card .lbl { margin-top: 8px; font-size: 14.5px; color: var(--gray); line-height: 1.5; }
.stat-card .tag { display: inline-block; margin-top: 16px; font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-ink); }

/* =========================================================
   Feature sections
   ========================================================= */
.feature {
  padding: 96px 0;
  border-top: 1px solid var(--line);
}
.feature-grid {
  display: grid; grid-template-columns: 0.92fr 1.08fr; gap: 72px; align-items: center;
}
.feature.reverse .feature-grid { grid-template-columns: 1.08fr 0.92fr; }
.feature.reverse .feature-media { order: 2; }
.feature.reverse .feature-copy { order: 1; }
.feature-copy .section-tag { display: block; margin-bottom: 14px; }
.feature-copy h2 { font-size: clamp(26px, 3vw, 36px); line-height: 1.18; }
.feature-copy p.lead { margin-top: 16px; font-size: 16.5px; line-height: 1.65; color: var(--gray); }
.feature-points { margin-top: 28px; display: flex; flex-direction: column; gap: 18px; }
.feature-point { display: flex; gap: 14px; }
.feature-point .fp-icon {
  flex-shrink: 0; width: 30px; height: 30px; border-radius: 9px;
  background: var(--accent-soft); color: var(--accent);
  display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 800;
}
.feature-point .fp-title { font-weight: 700; font-size: 15.5px; }
.feature-point .fp-desc { margin-top: 3px; font-size: 14.5px; color: var(--gray); line-height: 1.55; }
.feature-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 30px; font-weight: 700; font-size: 14.5px; }
.feature-link .arrow { transition: transform 0.25s var(--ease); }
.feature-link:hover .arrow { transform: translateX(4px); }

.feature-media {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative;
  min-height: 380px;
  display: flex; flex-direction: column; justify-content: space-between;
  box-shadow: var(--shadow-md);
}
.fm-callout {
  position: absolute; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-md); padding: 14px 16px; box-shadow: var(--shadow-md);
  font-size: 13px; font-weight: 700; display: flex; align-items: center; gap: 10px;
}
.fm-callout .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.fm-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md); padding: 18px; }
.fm-panel + .fm-panel { margin-top: 12px; }
.fm-row { display: flex; align-items: center; justify-content: space-between; font-size: 13.5px; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.fm-row:last-child { border-bottom: none; }
.fm-row .fm-name { font-weight: 700; }
.fm-row .fm-meta { color: var(--gray); font-size: 12.5px; }
.fm-badge { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: var(--radius-pill); background: var(--accent-soft); color: var(--accent); }
.fm-badge.gold { background: #f7ecd9; color: var(--gold-ink); }
.fm-big-num { font-family: var(--font-display); font-style: italic; font-size: 32px; font-weight: 600; }
.fm-progress { height: 6px; border-radius: 4px; background: var(--line); overflow: hidden; margin-top: 10px; }
.fm-progress > span { display: block; height: 100%; background: var(--accent); border-radius: 4px; }

/* Partner CTA (data/intent vendors) */
.partner-cta {
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 64px;
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center;
  margin: 0 32px;
  max-width: calc(var(--container) - 64px);
  margin-left: auto; margin-right: auto;
}
.partner-cta .section-tag { color: var(--gold); }
.partner-cta h2 { color: #fff; font-size: clamp(26px, 3vw, 38px); margin-top: 14px; line-height: 1.2; }
.partner-cta p { margin-top: 16px; color: rgba(255,255,255,0.72); font-size: 16px; line-height: 1.65; }
.partner-chip-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.partner-chip {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius-md);
  padding: 18px 16px;
}
.partner-chip .pc-icon { font-size: 18px; }
.partner-chip .pc-label { margin-top: 10px; font-weight: 700; font-size: 14px; }
.partner-chip .pc-desc { margin-top: 4px; font-size: 12.5px; color: rgba(255,255,255,0.6); line-height: 1.5; }
.partner-cta .hero-ctas { margin-top: 30px; }

/* =========================================================
   Programs / playbooks grid
   ========================================================= */
.programs { padding: 96px 0; background: var(--cream); }
.program-tabs { display: flex; gap: 8px; margin-bottom: 40px; flex-wrap: wrap; }
.program-tab {
  padding: 11px 20px; border-radius: var(--radius-pill); font-size: 13.5px; font-weight: 700;
  background: #fff; border: 1px solid var(--line); color: var(--ink-soft);
  transition: all 0.2s var(--ease);
}
.program-tab.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.program-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.program-panel { display: none; }
.program-panel.active { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.program-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: 22px; transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.program-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.program-icons { display: flex; gap: 6px; margin-bottom: 16px; }
.program-icons span {
  width: 26px; height: 26px; border-radius: 7px; background: var(--accent-soft);
  display: inline-flex; align-items: center; justify-content: center; font-size: 12px;
}
.program-card h4 { font-size: 15px; }
.program-card p { margin-top: 8px; font-size: 13px; color: var(--gray); line-height: 1.55; }

.program-roi { margin-top: 56px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.roi-card { text-align: center; }
.roi-card .roi-num { font-family: var(--font-display); font-style: italic; font-size: 32px; font-weight: 600; }
.roi-card .roi-lbl { margin-top: 6px; font-size: 13.5px; color: var(--gray); }

/* =========================================================
   Testimonial
   ========================================================= */
.testimonial-banner {
  padding: 88px 0; background: var(--accent); color: #fff; position: relative; overflow: hidden;
}
.testimonial-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.testimonial-inner .section-tag { color: #d9c48f; }
.testimonial-inner h2 { color: #fff; font-size: clamp(24px, 2.8vw, 34px); margin-top: 12px; line-height: 1.25; }
.testimonial-inner p.lead { margin-top: 14px; color: rgba(255,255,255,0.72); font-size: 15.5px; line-height: 1.6; }
.t-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 30px; }
.t-stats div .n { font-family: var(--font-display); font-style: italic; font-size: 27px; font-weight: 600; }
.t-stats div .l { margin-top: 4px; font-size: 12.5px; color: rgba(255,255,255,0.6); }
.quote-card { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.18); border-radius: var(--radius-lg); padding: 36px; }
.quote-card .stars { color: #e8c874; letter-spacing: 3px; margin-bottom: 18px; }
.quote-card blockquote { margin: 0; font-family: var(--font-display); font-style: italic; font-size: 20px; line-height: 1.5; font-weight: 500; }
.quote-card .qperson { margin-top: 22px; display: flex; align-items: center; gap: 12px; }
.qperson .avatar { width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,0.16); display: flex; align-items: center; justify-content: center; font-weight: 800; }
.qperson .qname { font-weight: 700; font-size: 14.5px; }
.qperson .qrole { font-size: 12.5px; color: rgba(255,255,255,0.6); }

/* =========================================================
   Trust / compliance
   ========================================================= */
.trust { padding: 96px 0; }
.trust-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.trust-badges { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.trust-badge {
  border: 1px solid var(--line); border-radius: var(--radius-md); padding: 22px;
  display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 14px;
}
.trust-badge .tb-icon { font-size: 20px; }

/* Success stories cards */
.stories { padding: 96px 0; border-top: 1px solid var(--line); }
.story-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.story-card { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px; }
.story-card .story-quote { font-size: 15px; line-height: 1.6; color: var(--ink-soft); }
.story-card .story-foot { margin-top: 22px; display: flex; align-items: center; justify-content: space-between; }
.story-foot .story-name { font-weight: 700; font-size: 14px; }
.story-foot .story-role { font-size: 12.5px; color: var(--gray); }
.story-metric { text-align: right; }
.story-metric .n { font-family: var(--font-display); font-style: italic; font-size: 23px; font-weight: 600; color: var(--accent); }
.story-metric .l { font-size: 11px; color: var(--gray); }

/* =========================================================
   Closing CTA
   ========================================================= */
.closing-cta {
  margin: 0 32px 0; max-width: calc(var(--container) - 64px); margin-left: auto; margin-right: auto;
  border-radius: var(--radius-lg);
  padding: 84px 64px;
  text-align: center;
  background: var(--cream);
  border: 1px solid var(--line);
}
.closing-cta h2 { font-size: clamp(28px, 3.6vw, 44px); line-height: 1.15; }
.closing-cta p { max-width: 620px; margin: 18px auto 0; color: var(--gray); font-size: 16px; line-height: 1.6; }
.closing-cta .hero-ctas { justify-content: center; margin-top: 32px; }

/* =========================================================
   FAQ
   ========================================================= */
.faq { padding: 96px 0; }
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 24px 4px; background: none; border: none; text-align: left;
  font-size: 16.5px; font-weight: 700; color: var(--ink);
}
.faq-q .plus { font-size: 20px; font-weight: 400; transition: transform 0.25s var(--ease); flex-shrink: 0; margin-left: 20px; }
.faq-item.open .faq-q .plus { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s var(--ease); }
.faq-a p { padding: 0 4px 24px; font-size: 15px; line-height: 1.65; color: var(--gray); max-width: 700px; }
.faq-top { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 8px;}

/* =========================================================
   Footer
   ========================================================= */
.site-footer { background: var(--ink); color: rgba(255,255,255,0.7); padding: 72px 0 28px; margin-top: 96px; }
.footer-top { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 32px; padding-bottom: 56px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-brand .brand { color: #fff; }
.footer-brand p { margin-top: 16px; font-size: 14px; line-height: 1.6; max-width: 260px; color: rgba(255,255,255,0.55); }
.footer-social { display: flex; gap: 10px; margin-top: 22px; }
.footer-social a { width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.18); display: flex; align-items: center; justify-content: center; font-size: 13px; }
.footer-col h5 { font-size: 12.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.4); margin-bottom: 18px; }
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col a { font-size: 14px; color: rgba(255,255,255,0.72); transition: color 0.2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { padding-top: 28px; display: flex; align-items: center; justify-content: space-between; font-size: 13px; color: rgba(255,255,255,0.45); flex-wrap: wrap; gap: 12px; }
.footer-bottom ul { display: flex; gap: 22px; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1240px) {
  .nav-login { display: none; }
  .nav-links > li > a { padding: 10px 10px; font-size: 13px; }
}
@media (max-width: 1080px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: 1fr; gap: 40px; }
  .feature.reverse .feature-grid { grid-template-columns: 1fr; }
  .feature.reverse .feature-media { order: 1; }
  .feature.reverse .feature-copy { order: 2; }
  .partner-cta { grid-template-columns: 1fr; padding: 48px 36px; }
  .program-grid, .program-panel.active { grid-template-columns: repeat(2, 1fr); }
  .program-roi { grid-template-columns: repeat(2, 1fr); }
  .testimonial-inner { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr; }
  .story-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .container { padding: 0 20px; }
  .nav-links, .nav-actions .nav-login { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-actions .btn-light { display: none; }
  .hero { padding-top: 96px; }
  .hero-top { flex-direction: column; }
  .ribbon { align-self: flex-start; }
  .stat-grid { grid-template-columns: 1fr; }
  .partner-chip-grid { grid-template-columns: 1fr; }
  .program-grid, .program-panel.active { grid-template-columns: 1fr; }
  .program-roi { grid-template-columns: repeat(2, 1fr); }
  .closing-cta { padding: 56px 28px; margin: 0 20px; }
  .partner-cta { margin: 0 20px; padding: 40px 24px; }
  .footer-top { grid-template-columns: 1fr; }
}

/* Mobile nav panel */
.mobile-nav {
  position: fixed; inset: 78px 0 0 0; background: #fff; z-index: 190;
  transform: translateY(-8px); opacity: 0; pointer-events: none;
  transition: all 0.25s var(--ease); overflow-y: auto; padding: 24px 20px 40px;
}
.mobile-nav.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
.mobile-nav ul { display: flex; flex-direction: column; }
.mobile-nav a { display: block; padding: 16px 4px; font-size: 18px; font-weight: 700; border-bottom: 1px solid var(--line); }
.mobile-nav .mobile-ctas { display: flex; flex-direction: column; gap: 12px; margin-top: 24px; }

/* =========================================================
   Editorial diagrams
   ========================================================= */
.figure {
  margin: 40px 0 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--cream);
  padding: 34px 34px 26px;
}
.figure svg { width: 100%; height: auto; display: block; }
.figure figcaption {
  margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line);
  font-size: 13.5px; line-height: 1.6; color: var(--gray);
}
.figure figcaption strong { color: var(--ink); font-weight: 700; }

/* Diagram type scale, kept small so the drawing leads */
.dgm-label { font-family: var(--font-body); font-size: 11px; font-weight: 700;
             letter-spacing: 0.08em; text-transform: uppercase; fill: var(--gray); }
.dgm-title { font-family: var(--font-body); font-size: 12.5px; font-weight: 700; fill: var(--ink); }
.dgm-note  { font-family: var(--font-body); font-size: 11.5px; fill: var(--gray); }
.dgm-num   { font-family: var(--font-display); font-style: italic; font-size: 19px;
             font-weight: 600; fill: var(--ink); }
.dgm-stroke     { stroke: var(--line); stroke-width: 1.5; fill: none; }
.dgm-stroke-ink { stroke: var(--ink);  stroke-width: 1.5; fill: none; }
.dgm-flow       { stroke: var(--gold); stroke-width: 1.5; fill: none; stroke-dasharray: 4 4; }
.dgm-fill-soft  { fill: #fff; stroke: var(--line); stroke-width: 1.5; }
.dgm-fill-accent{ fill: var(--accent); }
.dgm-fill-ink   { fill: var(--ink); }
.dgm-fill-gold  { fill: var(--gold); }

/* Hidden on desktop, where the diagram fits; enabled in the mobile block
   below. Declared first so the media query can override it. */
.figure .scroll-hint { display: none; }

@media (max-width: 760px) {
  .figure { padding: 22px 0 18px; border-radius: var(--radius-md); }
  .figure figcaption { padding-left: 18px; padding-right: 18px; }

  /* A flow diagram cannot restack the way a table can. Scaled to fit a
     375px screen its labels land near 4px, so it scrolls instead, at a
     min-width chosen to keep the smallest label above 9px on screen. */
  .figure-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; padding: 0 18px; }
  .figure svg { min-width: 700px; }
  .figure .scroll-hint {
    display: block; padding: 10px 18px 0;
    font-size: 11.5px; font-weight: 600; letter-spacing: 0.04em;
    text-transform: uppercase; color: var(--gray);
  }
}

/* =========================================================
   Keyboard access
   ========================================================= */
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 400;
  background: var(--ink); color: #fff;
  padding: 12px 20px; border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-size: 14px; font-weight: 700;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 0; }

/* Visible focus ring for keyboard users only, never on mouse click */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}
.btn-dark:focus-visible, .partner-cta :focus-visible, .site-footer :focus-visible,
.testimonial-banner :focus-visible { outline-color: #d9c48f; }
.faq-q:focus-visible { outline-offset: -2px; }

/* =========================================================
   Reveal
   Short travel plus a small stagger inside grids, so groups
   resolve as a sequence rather than one uniform slab.
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}
.reveal.in-view { opacity: 1; transform: none; }

/* Headings settle with no vertical travel, just a soft fade, which
   reads calmer than sliding type. */
.section-head.reveal, .page-header .reveal { transform: none; }

/* Stagger siblings within a grid */
.stat-grid .reveal:nth-child(2),
.hub-grid .reveal:nth-child(2),
.persona-grid .reveal:nth-child(2),
.story-grid .reveal:nth-child(2),
.pricing-grid .reveal:nth-child(2) { transition-delay: 70ms; }
.stat-grid .reveal:nth-child(3),
.hub-grid .reveal:nth-child(3),
.persona-grid .reveal:nth-child(3),
.story-grid .reveal:nth-child(3),
.pricing-grid .reveal:nth-child(3) { transition-delay: 140ms; }
.stat-grid .reveal:nth-child(4),
.hub-grid .reveal:nth-child(4),
.persona-grid .reveal:nth-child(4) { transition-delay: 210ms; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; transition-delay: 0ms !important; }
  .btn:hover, .program-card:hover, .hub-card:hover { transform: none; }
  .logo-track { animation: none; flex-wrap: wrap; width: 100%; justify-content: center; }
  .logo-item[aria-hidden="true"] { display: none; }
  .skip-link { transition: none; }
}

/* =========================================================
   Client logos bar (constant across all pages)
   ========================================================= */
/* White background, not cream: many supplied logos ship with an opaque white
   backing rather than transparency, which reads as visible white boxes on any
   tinted surface. */
.client-logos-bar {
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
  overflow: hidden;
}
.client-logos-inner { display: flex; align-items: center; gap: 26px; }
.client-logos-label {
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--gray); flex-shrink: 0; white-space: nowrap;
}

/* Marquee: track holds two identical logo sets and slides exactly one set width */
.logo-marquee {
  flex: 1; overflow: hidden; position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.logo-track { display: flex; align-items: center; width: max-content; animation: logo-scroll 90s linear infinite; }
.logo-marquee:hover .logo-track { animation-play-state: paused; }
.logo-item { flex-shrink: 0; padding: 0 26px; display: flex; align-items: center; justify-content: center; }
.logo-item img {
  height: 30px; width: auto; max-width: 132px; object-fit: contain;
  filter: grayscale(1); opacity: 0.62;
  transition: filter 0.3s var(--ease), opacity 0.3s var(--ease);
}
.logo-item:hover img { filter: grayscale(0); opacity: 1; }

@keyframes logo-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* =========================================================
   Inner-page header band (non-homepage pages)
   ========================================================= */
.page-header { padding: 56px 0 48px; background: var(--cream); border-bottom: 1px solid var(--line); }
.page-header .section-tag { display: block; margin-bottom: 14px; }
.page-header h1 { font-family: var(--font-display); font-weight: 500; font-size: clamp(30px, 4.2vw, 48px); line-height: 1.12; letter-spacing: -0.01em; max-width: 820px; }
.page-header .page-sub { margin-top: 16px; font-size: 17px; line-height: 1.65; color: var(--gray); max-width: 640px; }
.page-header .hero-ctas { margin-top: 28px; }

.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--gray); margin-bottom: 20px; flex-wrap: wrap; }
.breadcrumb a { color: var(--gray); font-weight: 600; }
/* Larger touch area on phones without changing the visual size */
@media (max-width: 760px) {
  .breadcrumb { gap: 6px; margin-bottom: 16px; }
  .breadcrumb a { padding: 6px 2px; display: inline-block; }
}
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb .sep { opacity: 0.5; }
.breadcrumb .current { color: var(--ink); font-weight: 700; }

/* =========================================================
   AEO/GEO answer block
   ========================================================= */
.answer-block {
  background: var(--cream); border: 1px solid var(--line); border-left: 3px solid var(--accent);
  border-radius: var(--radius-md); padding: 22px 26px; margin: 0 0 48px;
}
.answer-block .ab-label { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-ink); margin-bottom: 8px; }
.answer-block p { margin: 0; font-size: 16px; line-height: 1.65; color: var(--ink-soft); }

/* =========================================================
   Comparison table
   ========================================================= */
.compare-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; }
.compare-table { width: 100%; border-collapse: collapse; min-width: 560px; }
.compare-table th, .compare-table td { text-align: left; padding: 16px 20px; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.compare-table thead th { background: var(--cream); font-weight: 700; font-size: 13px; letter-spacing: 0.03em; text-transform: uppercase; color: var(--ink-soft); }
.compare-table tbody th { font-weight: 700; color: var(--ink); white-space: nowrap; }
.compare-table tbody tr:last-child td, .compare-table tbody tr:last-child th { border-bottom: none; }
.compare-table .yes { color: var(--accent); font-weight: 700; }
.compare-table .no { color: var(--gray); }
.compare-table td.highlight, .compare-table th.highlight { background: var(--accent-soft); }

/* =========================================================
   Numbered process steps
   ========================================================= */
.steps-list { display: flex; flex-direction: column; }
.step-row { display: flex; gap: 22px; padding: 26px 0; border-top: 1px solid var(--line); }
.step-row:last-child { border-bottom: 1px solid var(--line); }
.step-num {
  flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%;
  background: var(--ink); color: #fff; font-family: var(--font-display); font-style: italic; font-weight: 600;
  display: flex; align-items: center; justify-content: center; font-size: 16px;
}
.step-body h3 { font-family: var(--font-body); font-weight: 700; font-size: 16.5px; letter-spacing: 0; }
.step-body p { margin-top: 6px; font-size: 14.5px; line-height: 1.65; color: var(--gray); max-width: 620px; }

/* =========================================================
   Objection handling
   ========================================================= */
.objection-list { display: flex; flex-direction: column; gap: 16px; }
.objection-item { border: 1px solid var(--line); border-radius: var(--radius-md); padding: 20px 22px; background: var(--cream); }
.objection-item .oq { font-weight: 700; font-size: 15px; }
.objection-item .oa { margin-top: 6px; font-size: 14.5px; line-height: 1.6; color: var(--gray); }

/* =========================================================
   Persona / use-case cards
   ========================================================= */
.persona-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.persona-card { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; background: #fff; }
.persona-card .persona-role { font-size: 11.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-ink); }
.persona-card h3 { font-family: var(--font-body); font-weight: 700; font-size: 17px; margin-top: 10px; letter-spacing: 0; }
.persona-card p { margin-top: 10px; font-size: 14.5px; line-height: 1.65; color: var(--gray); }

/* =========================================================
   Hub link cards (pillar/solutions/resources hubs)
   ========================================================= */
.hub-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.hub-card {
  display: block; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px; background: #fff; transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.hub-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.hub-card .hc-icon {
  width: 40px; height: 40px; border-radius: 11px; background: var(--accent-soft); color: var(--accent);
  display: flex; align-items: center; justify-content: center; font-size: 18px; margin-bottom: 18px;
}
.hub-card h3 { font-family: var(--font-body); font-weight: 700; font-size: 17px; letter-spacing: 0; }
.hub-card p { margin-top: 10px; font-size: 14.5px; line-height: 1.6; color: var(--gray); }
.hub-card .hc-link { margin-top: 16px; display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 700; color: var(--ink); }

/* =========================================================
   Pricing
   ========================================================= */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.pricing-card { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px; background: #fff; display: flex; flex-direction: column; }
.pricing-card.featured { background: var(--ink); border-color: var(--ink); color: #fff; box-shadow: var(--shadow-lg); }
.pricing-card .price-tier { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-ink); }
.pricing-card.featured .price-tier { color: #d9c48f; }
.pricing-card h3 { font-family: var(--font-display); font-weight: 500; font-style: italic; font-size: 26px; margin-top: 10px; }
.pricing-card .price-desc { margin-top: 10px; font-size: 14px; line-height: 1.6; color: var(--gray); }
.pricing-card.featured .price-desc { color: rgba(255,255,255,0.7); }
.pricing-card .price-features { margin-top: 22px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.pricing-card .price-features li { display: flex; gap: 10px; font-size: 13.5px; line-height: 1.5; }
.pricing-card .price-features li::before { content: '✓'; color: var(--accent); font-weight: 700; flex-shrink: 0; }
.pricing-card.featured .price-features li::before { color: #d9c48f; }
.pricing-card .btn { margin-top: 24px; }

/* =========================================================
   Case studies / EEAT author bio
   ========================================================= */
.case-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.author-bio {
  display: flex; align-items: center; gap: 14px; margin-top: 40px; padding: 20px 24px;
  border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--cream);
}
.author-bio .ab-avatar {
  width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(155deg, var(--ink) 0%, var(--accent) 100%);
  color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-family: var(--font-body);
}
.author-bio .ab-name { font-weight: 700; font-size: 14.5px; }
.author-bio .ab-cred { font-size: 13px; color: var(--gray); margin-top: 2px; }

/* =========================================================
   Team (renders only when templates/team.json is populated)
   ========================================================= */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.team-card { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; background: #fff; }
.team-photo, .team-initials {
  width: 64px; height: 64px; border-radius: 50%; margin-bottom: 18px; object-fit: cover;
}
.team-initials {
  background: linear-gradient(155deg, var(--ink) 0%, var(--accent) 100%);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-body); font-weight: 800; font-size: 20px;
}
.team-name { font-weight: 700; font-size: 16.5px; }
.team-role { margin-top: 3px; font-size: 12.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-ink); }
.team-bio { margin-top: 12px; font-size: 14.5px; line-height: 1.65; color: var(--gray); }
.team-link { display: inline-block; margin-top: 14px; font-size: 13.5px; font-weight: 700; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 1080px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px)  { .team-grid { grid-template-columns: 1fr; } }

/* =========================================================
   Guide articles
   ========================================================= */
.article-prose { max-width: 720px; }
.article-prose h2 { font-size: clamp(21px, 2.4vw, 27px); margin: 42px 0 14px; }
.article-prose h3 { font-family: var(--font-body); font-weight: 700; font-size: 17px; margin: 26px 0 8px; letter-spacing: 0; }
.article-prose p { font-size: 16.5px; line-height: 1.75; color: var(--ink-soft); margin: 0 0 16px; }
.article-prose ul, .article-prose ol { margin: 0 0 18px; padding-left: 22px; }
.article-prose ul { list-style: disc; }
.article-prose ol { list-style: decimal; }
.article-prose li { font-size: 16px; line-height: 1.7; color: var(--ink-soft); margin-bottom: 9px; }
.article-prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.article-prose strong { color: var(--ink); }
.article-meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--gray); margin-top: 16px; }
.article-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--gray); }

.guide-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.guide-card {
  display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 26px; background: #fff;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.guide-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.guide-card .gc-tag { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-ink); }
.guide-card h3 { font-family: var(--font-body); font-weight: 700; font-size: 16.5px; margin-top: 10px; letter-spacing: 0; line-height: 1.35; }
.guide-card p { margin-top: 9px; font-size: 14px; line-height: 1.6; color: var(--gray); flex: 1; }
.guide-card .gc-link { margin-top: 16px; font-size: 13.5px; font-weight: 700; color: var(--ink); }

@media (max-width: 1080px) { .guide-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px)  { .guide-grid { grid-template-columns: 1fr; } }

/* =========================================================
   Legal / long-form prose
   ========================================================= */
.legal-prose { max-width: 760px; }
.legal-prose h2 { font-size: 22px; margin-top: 40px; margin-bottom: 14px; }
.legal-prose h2:first-child { margin-top: 0; }
.legal-prose p { font-size: 15.5px; line-height: 1.75; color: var(--ink-soft); margin: 0 0 16px; }
.legal-prose ul { margin: 0 0 16px; padding-left: 22px; list-style: disc; }
.legal-prose li { font-size: 15.5px; line-height: 1.75; color: var(--ink-soft); margin-bottom: 8px; }
.legal-prose .updated { font-size: 13.5px; color: var(--gray); margin-bottom: 32px; }

/* =========================================================
   Responsive: new components
   ========================================================= */
@media (max-width: 1080px) {
  .persona-grid { grid-template-columns: 1fr; }
  .hub-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .case-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .client-logos-inner { flex-direction: column; align-items: flex-start; gap: 12px; }
  .logo-marquee { width: 100%; }
  .logo-item { padding: 0 18px; }
  .logo-item img { height: 26px; max-width: 110px; }
  .hub-grid { grid-template-columns: 1fr; }
  .author-bio { flex-direction: column; align-items: flex-start; text-align: left; }

  /* Comparison tables restack into one card per row rather than scrolling
     sideways. Each value is prefixed with its column heading, injected at
     build time, so a bare figure still says which side it belongs to. */
  .compare-wrap { border: none; background: transparent; overflow: visible; border-radius: 0; }
  .compare-table { min-width: 0; width: 100%; }
  .compare-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .compare-table, .compare-table tbody, .compare-table tr,
  .compare-table tbody th, .compare-table td { display: block; width: 100%; }
  .compare-table tbody tr {
    border: 1px solid var(--line); border-radius: var(--radius-md);
    background: #fff; margin-bottom: 14px; overflow: hidden;
  }
  .compare-table tbody th {
    background: var(--cream); border-bottom: 1px solid var(--line);
    padding: 13px 16px; font-size: 14.5px; white-space: normal;
  }
  .compare-table tbody td {
    border: none; padding: 11px 16px; font-size: 14px; line-height: 1.5;
    display: flex; gap: 10px; align-items: baseline;
  }
  .compare-table tbody td + td { border-top: 1px dashed var(--line); }
  .compare-table tbody td::before {
    content: attr(data-label);
    flex: 0 0 40%; font-size: 11px; font-weight: 700;
    letter-spacing: 0.06em; text-transform: uppercase; color: var(--gray);
  }
  .compare-table td.highlight { background: var(--accent-soft); }
}
