/*! shipyard-refresh.css v=2026-05-21 */
/* ============================================================================
   Shipyard — Bright Modern SaaS design system
   Crisp white + teal primary, friendly geometric shapes, restrained gradients.

   Tokens → reset → layout → components → page sections → utilities.

   Used by static previews in /site and ported as-is to Hugo at
   themes/agico-hugo/static/css/shipyard-refresh.css
   ============================================================================ */

:root {
  /* color */
  --c-bg:           #FBFCFE;
  --c-surface:      #FFFFFF;
  --c-surface-2:    #F2F6FA;
  --c-ink:          #0B1F2E;
  --c-ink-2:        #374B5C;
  --c-mute:         #6F8497;
  --c-rule:         #E4ECF3;
  --c-rule-soft:    #EEF3F8;
  --c-primary:      #15B6B0;
  --c-primary-dark: #0E837F;
  --c-primary-soft: #E0F6F4;
  --c-coral:        #FF6B5C;
  --c-coral-soft:   #FFE5E1;
  --c-navy:         #0B2D44;
  --c-warn:         #F0B232;
  --c-warn-soft:    #FBE9C4;

  /* type */
  --f-display: "Instrument Sans", "Inter Tight", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --f-body:    "Inter", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --f-mono:    "JetBrains Mono", "SF Mono", ui-monospace, monospace;

  /* radii */
  --r-sm:  6px;
  --r:     10px;
  --r-md:  12px;
  --r-lg:  16px;
  --r-xl:  20px;
  --r-2xl: 24px;

  /* shadows */
  --shadow-sm:      0 2px 8px rgba(11,31,46,0.06);
  --shadow:         0 8px 24px rgba(11,31,46,0.08);
  --shadow-lg:      0 30px 60px -20px rgba(11,31,46,0.18);
  --shadow-primary: 0 8px 20px rgba(21,182,176,0.30);

  /* layout */
  --container: 1280px;
}

/* ── reset ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--c-ink);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--f-display);
  margin: 0;
  letter-spacing: -0.025em;
  line-height: 1.1;
  font-weight: 600;
  color: var(--c-ink);
}
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
hr { border: none; border-top: 1px solid var(--c-rule); margin: 0; }
em, .ital { font-style: italic; }

/* ── layout ────────────────────────────────────────────────────────────── */
.container { max-width: var(--container); margin: 0 auto; padding: 0 32px; }
.container-narrow { max-width: 960px; margin: 0 auto; padding: 0 32px; }
.container-wide { max-width: 1400px; margin: 0 auto; padding: 0 32px; }
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.section-lg { padding: 120px 0; }
.section-tight { padding: 48px 0; }

/* ── nav ──────────────────────────────────────────────────────────────── */
.site-nav {
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--c-rule);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  font-size: 14px;
}
.site-nav__left { display: flex; align-items: center; gap: 40px; }
.site-nav__right { display: flex; align-items: center; gap: 14px; }
.site-nav__menu { display: flex; gap: 28px; }
.site-nav__menu > li > a {
  color: var(--c-ink-2);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 0;
  transition: color .15s ease;
}
.site-nav__menu > li > a:hover { color: var(--c-ink); }
.site-nav__menu .caret { font-size: 10px; color: var(--c-mute); }

/* dropdowns — hover/focus reveal a card-style menu, matching original site's
   "Uses" and "Resources" menus but in the new visual system. */
.site-nav__menu .has-dropdown { position: relative; }
.site-nav__menu .has-dropdown > a { cursor: default; }
.site-nav__dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: -20px;
  min-width: 280px;
  background: var(--c-surface);
  border: 1px solid var(--c-rule);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .15s ease, transform .15s ease, visibility .15s;
  z-index: 60;
}
.site-nav__menu .has-dropdown:hover .site-nav__dropdown,
.site-nav__menu .has-dropdown:focus-within .site-nav__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.site-nav__dropdown::before {
  /* invisible bridge to keep hover state when traveling from trigger to menu */
  content: "";
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 10px;
}
.site-nav__dropdown a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  color: var(--c-ink);
  font-size: 14px;
  font-weight: 500;
  transition: background .12s ease;
}
.site-nav__dropdown a:hover { background: var(--c-surface-2); }
.site-nav__dropdown a img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  flex-shrink: 0;
}
.site-nav__dropdown .ext { margin-left: auto; color: var(--c-mute); font-size: 12px; }
.site-nav .logo { height: 32px; width: auto; display: block; filter: brightness(0); }
.site-nav a.signin { color: var(--c-ink-2); font-weight: 500; }
.site-nav a.signin:hover { color: var(--c-ink); }

/* ── buttons ───────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 10px;
  font-family: var(--f-body);
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: all .15s ease;
  cursor: pointer;
  line-height: 1;
  white-space: nowrap;
}
.btn-sm { padding: 9px 16px; font-size: 14px; border-radius: 8px; }
.btn-lg { padding: 16px 28px; font-size: 16px; border-radius: 12px; }
.btn-primary {
  background: var(--c-primary);
  color: white;
  box-shadow: var(--shadow-primary);
}
.btn-primary:hover { background: var(--c-primary-dark); transform: translateY(-1px); }
.btn-dark { background: var(--c-ink); color: white; }
.btn-dark:hover { background: var(--c-navy); }
.btn-ghost {
  background: var(--c-surface);
  color: var(--c-ink);
  border-color: var(--c-rule);
}
.btn-ghost:hover { border-color: var(--c-ink-2); }
.btn-quiet {
  background: var(--c-surface-2);
  color: var(--c-ink);
}
.btn-quiet:hover { background: var(--c-rule); }
.btn-on-dark { background: white; color: var(--c-primary-dark); }
.btn-on-dark:hover { background: var(--c-primary-soft); }
.btn-outline-on-dark {
  background: transparent;
  color: white;
  border-color: rgba(255,255,255,0.4);
}
.btn-outline-on-dark:hover { border-color: white; background: rgba(255,255,255,0.08); }
.btn-link { padding: 0; background: none; color: var(--c-primary-dark); font-weight: 600; }
.btn-link:hover { color: var(--c-primary); }

/* ── eyebrows / badges / pills ─────────────────────────────────────────── */
.eyebrow {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--c-primary-soft);
  color: var(--c-primary-dark);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.eyebrow.is-coral { background: var(--c-coral-soft); color: #B43D2E; }
.eyebrow.is-navy { background: rgba(11,45,68,0.08); color: var(--c-navy); }
.eyebrow.is-quiet { background: var(--c-surface-2); color: var(--c-ink-2); }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 8px;
  border-radius: 999px;
  background: var(--c-primary-soft);
  color: var(--c-primary-dark);
  font-size: 13px;
  font-weight: 600;
}
.pill__tag {
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--c-primary);
  color: white;
  font-size: 11px;
  letter-spacing: 0.04em;
  font-weight: 700;
}

/* ── cards ─────────────────────────────────────────────────────────────── */
.card {
  background: var(--c-surface);
  border: 1px solid var(--c-rule);
  border-radius: var(--r-lg);
  padding: 28px;
}
.card-lg { padding: 32px; border-radius: var(--r-xl); }
.card-xl { padding: 48px; border-radius: var(--r-2xl); }
.card-quiet {
  background: var(--c-surface-2);
  border: none;
}

/* ── type scale ───────────────────────────────────────────────────────── */
.h1 { font-family: var(--f-display); font-size: clamp(40px, 5vw, 72px); font-weight: 600; line-height: 1.02; letter-spacing: -0.035em; }
.h2 { font-family: var(--f-display); font-size: clamp(32px, 4vw, 48px); font-weight: 600; line-height: 1.1; letter-spacing: -0.03em; }
.h3 { font-family: var(--f-display); font-size: clamp(22px, 2.5vw, 28px); font-weight: 600; line-height: 1.2; letter-spacing: -0.02em; }
.h4 { font-family: var(--f-display); font-size: clamp(18px, 2vw, 22px); font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; }
.lead { font-size: 19px; line-height: 1.5; color: var(--c-ink-2); }
.lead-lg { font-size: 22px; line-height: 1.5; color: var(--c-ink-2); }
.body { font-size: 15px; line-height: 1.6; color: var(--c-ink-2); }
.small { font-size: 13px; color: var(--c-mute); }
.mono { font-family: var(--f-mono); font-size: 13px; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-head .h2 { margin: 16px 0 0; }
.section-head .lead { margin-top: 12px; }
.section-head.left { text-align: left; max-width: none; margin: 0 0 56px; }

.text-primary { color: var(--c-primary); }
.text-primary-dark { color: var(--c-primary-dark); }
.text-mute { color: var(--c-mute); }
.text-ink-2 { color: var(--c-ink-2); }

/* ── hero ──────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: 64px 0 32px;
  overflow: hidden;
}
.hero__orb {
  position: absolute;
  top: -200px;
  right: -200px;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(21,182,176,0.20) 0%, var(--c-primary-soft) 30%, transparent 70%);
  pointer-events: none;
}
.hero__grid {
  position: absolute;
  inset: 0;
  opacity: 0.5;
  pointer-events: none;
  background-image:
    linear-gradient(var(--c-rule) 1px, transparent 1px),
    linear-gradient(90deg, var(--c-rule) 1px, transparent 1px);
  background-size: 80px 80px;
  -webkit-mask-image: linear-gradient(to bottom, black, transparent 70%);
          mask-image: linear-gradient(to bottom, black, transparent 70%);
}
.hero__row {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 64px;
  align-items: center;
  margin-bottom: 40px;
}
.hero h1 { margin: 28px 0 0; }
.hero h1 .ital-accent { color: var(--c-primary); font-style: italic; font-weight: 500; }
.hero p.lead { margin: 24px 0 36px; max-width: 540px; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.hero__sub { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 16px; font-size: 13px; color: var(--c-mute); }
.hero__sub .check { color: var(--c-primary); font-weight: 700; margin-right: 6px; }
.hero__logos {
  position: relative;
  margin-top: 0;
}
.hero__logos-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--c-mute);
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.hero__logos-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 56px;
  flex-wrap: wrap;
}
.hero__logos-row img { height: 28px; opacity: 0.55; filter: saturate(0); }

/* ── hero environments card (the live-app preview) ─────────────────────── */
.envcard {
  position: relative;
}
.envcard__coral {
  position: absolute;
  top: -16px;
  right: -16px;
  width: 80px;
  height: 80px;
  border-radius: 16px;
  background: var(--c-coral);
  transform: rotate(8deg);
  z-index: 0;
}
.envcard__inner {
  position: relative;
  z-index: 1;
  background: var(--c-surface);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg), 0 0 0 1px var(--c-rule);
  overflow: hidden;
}
.envcard__head, .envcard__foot {
  padding: 14px 20px;
  background: var(--c-surface-2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
}
.envcard__head { border-bottom: 1px solid var(--c-rule); }
.envcard__foot { border-top: 1px solid var(--c-rule); }
.envcard__title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}
.envcard__dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--c-primary);
  box-shadow: 0 0 0 4px rgba(21,182,176,0.20);
}
.envcard__body { padding: 12px; }
.envrow {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 10px;
  margin-bottom: 4px;
}
.envrow.is-active { background: var(--c-primary-soft); }
.envrow__pulse { width: 8px; height: 8px; border-radius: 999px; background: var(--c-primary); }
.envrow__pulse.is-warn { background: var(--c-warn); }
.envrow__title { font-size: 14px; font-weight: 600; color: var(--c-ink); }
.envrow__meta { font-size: 12px; color: var(--c-mute); margin-top: 2px; }
.envrow__status {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--c-primary-soft);
  color: var(--c-primary-dark);
  font-weight: 600;
}
.envrow__status.is-warn { background: var(--c-warn-soft); color: #8C6510; }
.envrow__chev { color: var(--c-mute); font-size: 14px; }

/* ── stats inline bar (3 stats) ────────────────────────────────────────── */
.stats-bar {
  background: var(--c-surface);
  border: 1px solid var(--c-rule);
  border-radius: var(--r-lg);
  padding: 22px 32px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
}
.stats-bar__item {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 8px;
}
.stats-bar__item + .stats-bar__item {
  border-left: 1px solid var(--c-rule);
  padding-left: 32px;
}
.stats-bar__icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.stats-bar__icon svg { width: 22px; height: 22px; }
.stats-bar__icon--primary { background: var(--c-primary-soft); color: var(--c-primary-dark); }
.stats-bar__icon--coral   { background: var(--c-coral-soft);   color: #B43D2E; }
.stats-bar__icon--navy    { background: rgba(11,45,68,0.08);   color: var(--c-navy); }
.stats-bar__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.stats-bar__v {
  font-family: var(--f-display);
  font-size: 36px;
  font-weight: 600;
  color: var(--c-ink);
  letter-spacing: -0.03em;
  line-height: 1;
}
.stats-bar__l { font-size: 13px; color: var(--c-ink-2); font-weight: 500; }

/* ── pillars (4-up icon cards) ─────────────────────────────────────────── */
.pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.pillar {
  padding: 28px;
  background: var(--c-surface);
  border: 1px solid var(--c-rule);
  border-radius: var(--r-lg);
}
.pillar__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 20px;
  background: var(--c-primary-soft);
  color: var(--c-primary);
}
.pillar__icon.is-coral { background: var(--c-coral-soft); color: var(--c-coral); }
.pillar__icon.is-navy { background: rgba(11,45,68,0.10); color: var(--c-navy); }
.pillar h3 { font-size: 20px; margin-bottom: 10px; }
.pillar p { font-size: 14px; line-height: 1.55; color: var(--c-ink-2); }

/* ── quote / case study teaser ─────────────────────────────────────────── */
.quote-block {
  background: linear-gradient(135deg, var(--c-primary-soft) 0%, var(--c-surface) 100%);
  border-radius: var(--r-2xl);
  padding: 72px 64px;
  border: 1px solid var(--c-rule);
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 64px;
  align-items: center;
}
.quote-block__logo { height: 36px; margin-bottom: 32px; }
.quote-block blockquote {
  font-family: var(--f-display);
  font-size: 32px;
  line-height: 1.25;
  font-weight: 500;
  margin: 0;
  letter-spacing: -0.015em;
  color: var(--c-ink);
}
.quote-block__author { display: flex; align-items: center; gap: 14px; margin-top: 32px; }
.quote-block__author img { width: 48px; height: 48px; border-radius: 999px; object-fit: cover; }
.quote-block__author-name { font-size: 15px; font-weight: 600; }
.quote-block__author-title { font-size: 13px; color: var(--c-ink-2); }

.metrics-card {
  background: var(--c-surface);
  border-radius: var(--r-lg);
  padding: 28px;
  border: 1px solid var(--c-rule);
}
.metrics-card__label {
  font-size: 12px;
  font-weight: 700;
  color: var(--c-mute);
  letter-spacing: 0.08em;
  margin-bottom: 16px;
  text-transform: uppercase;
}
.metrics-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 14px 0;
  border-top: 1px solid var(--c-rule);
}
.metrics-row__l { font-size: 14px; color: var(--c-ink-2); }
.metrics-row__v {
  font-family: var(--f-display);
  font-size: 28px;
  font-weight: 600;
  color: var(--c-primary-dark);
}

/* ── SDLC numbered steps ───────────────────────────────────────────────── */
.sdlc {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  position: relative;
}
.sdlc::before {
  content: "";
  position: absolute;
  top: 32px;
  left: 12.5%;
  right: 12.5%;
  height: 2px;
  background: repeating-linear-gradient(to right, var(--c-primary) 0 6px, transparent 6px 12px);
  z-index: 0;
}
.sdlc__step { position: relative; z-index: 1; }
.sdlc__num {
  width: 64px;
  height: 64px;
  border-radius: 999px;
  background: var(--c-primary);
  color: white;
  font-family: var(--f-display);
  font-size: 28px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  box-shadow: var(--shadow-primary);
  border: 4px solid var(--c-surface-2);
}
.sdlc__card {
  background: var(--c-surface);
  border-radius: var(--r-lg);
  padding: 24px;
  border: 1px solid var(--c-rule);
  text-align: center;
}
.sdlc__img {
  height: 120px;
  margin-bottom: 16px;
  border-radius: var(--r);
  background: var(--c-surface-2);
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sdlc__img img { max-height: 96px; max-width: 100%; object-fit: contain; }
.sdlc__card h3 { font-size: 18px; margin-bottom: 8px; }
.sdlc__card p { font-size: 13px; line-height: 1.55; color: var(--c-ink-2); }
.sdlc-links { text-align: center; margin-top: 40px; font-size: 14px; }
.sdlc-links a { color: var(--c-primary-dark); font-weight: 600; }
.sdlc-links a:hover { color: var(--c-primary); }
.sdlc-links .sep { color: var(--c-mute); margin: 0 12px; }

/* ── personas (3-up tall cards w/ image) ───────────────────────────────── */
.personas {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.persona {
  padding: 32px;
  background: var(--c-surface);
  border-radius: var(--r-xl);
  border: 1px solid var(--c-rule);
  position: relative;
  overflow: hidden;
}
.persona__blob {
  position: absolute;
  top: -40px;
  right: -40px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: rgba(21,182,176,0.08);
}
.persona.is-coral .persona__blob { background: rgba(255,107,92,0.08); }
.persona.is-navy .persona__blob { background: rgba(11,45,68,0.06); }
.persona__img {
  height: 180px;
  margin-bottom: 20px;
  border-radius: var(--r-md);
  background: var(--c-surface-2);
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}
.persona__img img { max-height: 140px; max-width: 100%; object-fit: contain; }
.persona h3 { font-size: 24px; margin-bottom: 10px; position: relative; z-index: 1; }
.persona p { font-size: 15px; line-height: 1.5; color: var(--c-ink-2); margin-bottom: 20px; position: relative; z-index: 1; }
.persona__link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 600;
  color: var(--c-primary-dark);
  position: relative;
  z-index: 1;
}
.persona.is-coral .persona__link { color: var(--c-coral); }
.persona.is-navy .persona__link { color: var(--c-navy); }

/* ── integrations ──────────────────────────────────────────────────────── */
.integrations {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 64px;
  align-items: center;
}
.integrations__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.integrations__cell {
  background: var(--c-surface);
  height: 88px;
  border-radius: var(--r-md);
  border: 1px solid var(--c-rule);
  display: flex;
  align-items: center;
  justify-content: center;
}
.integrations__cell img { height: 28px; max-width: 70%; filter: invert(1); opacity: 0.85; }

/* ── CTA ───────────────────────────────────────────────────────────────── */
.cta-band {
  background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-primary-dark) 100%);
  border-radius: var(--r-2xl);
  padding: 80px 64px;
  color: white;
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: center;
}
.cta-band::before, .cta-band::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  pointer-events: none;
}
.cta-band::before { top: -100px; left: -100px; width: 400px; height: 400px; }
.cta-band::after { bottom: -150px; right: -50px; width: 350px; height: 350px; }
.cta-band > * { position: relative; z-index: 2; }
.cta-band h2 { color: white; font-size: clamp(36px, 4vw, 56px); margin: 0; line-height: 1.05; }
.cta-band p { color: rgba(255,255,255,0.9); margin: 20px 0 32px; font-size: 17px; line-height: 1.55; max-width: 540px; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-band__crane {
  text-align: right;
}
.cta-band__crane img {
  max-width: 280px;
  margin-left: auto;
}

/* alternate CTA — yellow + dark ink (subscription/lead-gen flavor) */
.cta-warm {
  background: var(--c-warn);
  border-radius: var(--r-2xl);
  padding: 64px;
  text-align: center;
}
.cta-warm h2 { font-size: clamp(32px, 4vw, 44px); margin: 0 0 16px; }
.cta-warm p { font-size: 17px; color: var(--c-ink-2); margin: 0 0 32px; max-width: 640px; margin-left: auto; margin-right: auto; }
.cta-warm__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ── page header (for sub-pages) ───────────────────────────────────────── */
.page-header {
  position: relative;
  padding: 80px 0 64px;
  background: var(--c-bg);
  border-bottom: 1px solid var(--c-rule);
  overflow: hidden;
}
.page-header__orb {
  position: absolute;
  top: -200px; right: -100px;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--c-primary-soft) 0%, transparent 70%);
  pointer-events: none;
}
.page-header__row {
  position: relative;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 64px;
  align-items: center;
}
.page-header h1 {
  font-size: clamp(36px, 4.5vw, 60px);
  margin: 16px 0 20px;
  line-height: 1.05;
}
.page-header .lead { max-width: 560px; }
.page-header__art {
  display: flex;
  justify-content: flex-end;
}
.page-header__art img {
  max-width: 100%;
  max-height: 300px;
}

/* ── pricing ───────────────────────────────────────────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}
.price-card {
  background: var(--c-surface);
  border: 1px solid var(--c-rule);
  border-radius: var(--r-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
}
.price-card.is-featured {
  border-color: var(--c-primary);
  box-shadow: 0 0 0 1px var(--c-primary), var(--shadow-lg);
  transform: translateY(-8px);
}
.price-card__featured-tag {
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--c-primary);
  color: white;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 4px 14px;
  border-radius: 0 0 8px 8px;
  text-transform: uppercase;
}
.price-card__head {
  padding: 32px 32px 24px;
  border-bottom: 1px solid var(--c-rule);
}
.price-card__title {
  font-family: var(--f-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--c-ink);
  margin-bottom: 8px;
}
.price-card__desc { font-size: 14px; color: var(--c-ink-2); min-height: 40px; }
.price-card__price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 20px;
}
.price-card__price-v {
  font-family: var(--f-display);
  font-size: 44px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
}
.price-card__price-unit { font-size: 14px; color: var(--c-mute); }
.price-card__contact {
  font-family: var(--f-display);
  font-size: 28px;
  font-weight: 600;
  color: var(--c-ink);
  margin-top: 20px;
}
.price-card__body { padding: 24px 32px 32px; flex: 1; display: flex; flex-direction: column; }
.price-card__features { margin: 0 0 28px; }
.price-card__features li {
  display: flex;
  gap: 10px;
  padding: 8px 0;
  font-size: 14px;
  color: var(--c-ink-2);
  line-height: 1.5;
}
.price-card__features li::before {
  content: "";
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 3px;
  border-radius: 999px;
  background: var(--c-primary-soft);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'><path d='M2.5 6.5 L5 9 L9.5 3.5' stroke='%230E837F' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
}
.price-card__features li.is-strong { font-weight: 600; color: var(--c-ink); }
.price-card__cta { margin-top: auto; }
.price-card__cta .btn { width: 100%; }

.price-fineprint {
  margin-top: 48px;
  padding: 24px 32px;
  background: var(--c-surface);
  border: 1px solid var(--c-rule);
  border-radius: var(--r-md);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: center;
}
.price-fineprint__label { font-size: 12px; color: var(--c-mute); letter-spacing: 0.06em; text-transform: uppercase; font-weight: 700; }
.price-fineprint__v { font-family: var(--f-display); font-size: 22px; font-weight: 600; margin-top: 4px; }

/* ── persona/feature page (For DevOps etc.) ────────────────────────────── */
.feature-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.feature-item {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: center;
  padding: 40px;
  background: var(--c-surface);
  border: 1px solid var(--c-rule);
  border-radius: var(--r-xl);
}
.feature-item:nth-child(even) {
  grid-template-columns: 1.2fr 1fr;
}
.feature-item:nth-child(even) .feature-item__img { order: -1; }
.feature-item__img {
  background: var(--c-surface-2);
  border-radius: var(--r-md);
  padding: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
}
.feature-item__img img { max-height: 180px; max-width: 100%; object-fit: contain; }
.feature-item h3 {
  font-family: var(--f-display);
  font-size: 26px;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.feature-item p { font-size: 16px; line-height: 1.6; color: var(--c-ink-2); }

/* "Shipyard way" 5-step process */
.process-flow {
  position: relative;
  padding: 40px 0;
}
.process-step {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 32px;
  padding: 24px 0;
  align-items: flex-start;
}
.process-step__num {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: var(--c-primary-soft);
  color: var(--c-primary-dark);
  font-family: var(--f-display);
  font-size: 22px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.process-step:not(:last-child) .process-step__num::after {
  content: "";
  position: absolute;
  top: 56px;
  left: 50%;
  width: 2px;
  height: calc(100% + 48px);
  background: var(--c-primary-soft);
  transform: translateX(-50%);
}
.process-step__body { padding-top: 12px; }
.process-step__body p { font-size: 16px; line-height: 1.6; color: var(--c-ink-2); }

/* form (contact, lead-gen) */
.form-card {
  background: var(--c-surface);
  border: 1px solid var(--c-rule);
  border-radius: var(--r-xl);
  padding: 40px;
}
.form-row { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.form-row label { font-size: 13px; font-weight: 600; color: var(--c-ink-2); }
.form-row input,
.form-row textarea {
  font-family: inherit;
  font-size: 15px;
  padding: 12px 14px;
  background: var(--c-surface);
  border: 1px solid var(--c-rule);
  border-radius: var(--r);
  color: var(--c-ink);
  transition: border-color .15s ease;
  width: 100%;
}
.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--c-primary);
}
.form-row textarea { resize: vertical; min-height: 90px; }

/* ── case study ────────────────────────────────────────────────────────── */
.case-hero {
  position: relative;
  padding: 80px 0 56px;
  background: var(--c-surface);
  border-bottom: 1px solid var(--c-rule);
  overflow: hidden;
}
.case-hero__row {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
}
.case-hero__company-logo { height: 48px; margin-bottom: 24px; }
.case-hero h1 {
  font-size: clamp(36px, 4.5vw, 56px);
  margin: 0 0 24px;
  line-height: 1.05;
}
.case-hero__results {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 32px;
}
.case-hero__result-v {
  font-family: var(--f-display);
  font-size: 36px;
  font-weight: 600;
  color: var(--c-primary-dark);
  letter-spacing: -0.03em;
}
.case-hero__result-l { font-size: 13px; color: var(--c-ink-2); margin-top: 4px; }
.case-hero__visual { display: flex; justify-content: flex-end; }
.case-hero__visual img { max-width: 100%; }
.case-section { padding: 80px 0; }
.case-section__head {
  margin-bottom: 48px;
}
.case-section__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.case-section__row.reverse > :first-child { order: 2; }
.case-section h2 { font-size: 32px; margin-bottom: 20px; }
.case-section .body p { font-size: 17px; line-height: 1.65; color: var(--c-ink-2); margin-bottom: 16px; }
.case-section__img {
  background: var(--c-surface-2);
  border-radius: var(--r-lg);
  padding: 32px;
  border: 1px solid var(--c-rule);
}
.case-section__img img { width: 100%; height: auto; }

.case-pullquote {
  background: linear-gradient(135deg, var(--c-primary-soft) 0%, var(--c-surface) 100%);
  border-radius: var(--r-2xl);
  padding: 72px 64px;
  text-align: center;
  border: 1px solid var(--c-rule);
}
.case-pullquote blockquote {
  font-family: var(--f-display);
  font-size: 32px;
  font-weight: 500;
  line-height: 1.3;
  margin: 0 0 32px;
  letter-spacing: -0.015em;
  color: var(--c-ink);
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
}

/* ── about / team grid ─────────────────────────────────────────────────── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
}
@media (max-width: 1100px) { .team-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 860px)  { .team-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px)  { .team-grid { grid-template-columns: repeat(2, 1fr); } }
.team-member {
  text-align: center;
}
.team-member img {
  width: 120px;
  height: 120px;
  border-radius: 999px;
  object-fit: cover;
  margin: 0 auto 14px;
  background: var(--c-surface-2);
}
.team-member__name { font-size: 15px; font-weight: 600; color: var(--c-ink); margin-bottom: 2px; }
.team-member__role { font-size: 13px; color: var(--c-mute); margin-bottom: 8px; min-height: 18px; }
.team-member__role a { color: var(--c-ink-2); font-weight: 500; }
.team-member__role a:hover { color: var(--c-primary-dark); }
.team-member__social { display: flex; justify-content: center; gap: 8px; }
.team-member__social a {
  width: 30px; height: 30px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px;
  background: var(--c-surface-2);
  color: var(--c-ink-2);
  font-size: 12px;
  transition: background .15s ease, color .15s ease;
}
.team-member__social a svg { width: 14px; height: 14px; display: block; }
.team-member__social a:hover { background: var(--c-primary-soft); color: var(--c-primary-dark); }

/* ── footer ────────────────────────────────────────────────────────────── */
.site-footer {
  padding: 64px 0 32px;
  background: var(--c-surface);
  border-top: 1px solid var(--c-rule);
  font-size: 14px;
}
.site-footer__cols {
  display: grid;
  grid-template-columns: 1.5fr repeat(5, 1fr);
  gap: 48px;
  margin-bottom: 48px;
}
.site-footer__brand { max-width: 280px; }
.site-footer__brand .logo { height: 32px; margin-bottom: 20px; filter: brightness(0); }
.site-footer__brand p { font-size: 14px; color: var(--c-ink-2); line-height: 1.6; }
.site-footer__col-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--c-ink);
  margin-bottom: 16px;
}
.site-footer__col ul li { margin-bottom: 10px; }
.site-footer__col a { color: var(--c-ink-2); }
.site-footer__col a:hover { color: var(--c-primary-dark); }
.site-footer__legal {
  border-top: 1px solid var(--c-rule);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  color: var(--c-mute);
  font-size: 13px;
}
.site-footer__social { display: flex; gap: 10px; }
.site-footer__social a {
  width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--c-surface-2);
  border-radius: 999px;
  color: var(--c-ink-2);
}
.site-footer__social a:hover { background: var(--c-primary-soft); color: var(--c-primary-dark); }

/* announcement banner */
.announce-bar {
  background: var(--c-ink);
  color: white;
  font-size: 13px;
  text-align: center;
  padding: 10px 16px;
}
.announce-bar a { color: white; text-decoration: none; }
.announce-bar__tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--c-primary);
  color: white;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-right: 10px;
}

/* ── content (markdown article body) ─────────────────────────────────── */
.content {
  font-size: 17px;
  line-height: 1.7;
  color: var(--c-ink);
}
.content > * + * { margin-top: 1.1em; }
.content h2 {
  font-family: var(--f-display);
  font-size: 28px;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 2em 0 0.6em;
  color: var(--c-ink);
}
.content h3 {
  font-family: var(--f-display);
  font-size: 22px;
  letter-spacing: -0.015em;
  margin: 1.6em 0 0.5em;
}
.content h4 { font-size: 18px; margin: 1.4em 0 0.4em; }
.content p { color: var(--c-ink-2); }
.content a { color: var(--c-primary-dark); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.content a:hover { color: var(--c-primary); }
.content strong { color: var(--c-ink); font-weight: 600; }
.content ul, .content ol { padding-left: 24px; color: var(--c-ink-2); }
.content ul li, .content ol li { padding-left: 4px; margin-top: 8px; }
.content ul { list-style: disc; }
.content ol { list-style: decimal; }
.content code {
  font-family: var(--f-mono);
  font-size: 0.92em;
  background: var(--c-surface-2);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--c-primary-dark);
}
.content pre {
  background: var(--c-ink);
  color: #E8EDF2;
  padding: 20px 24px;
  border-radius: var(--r-md);
  font-family: var(--f-mono);
  font-size: 14px;
  line-height: 1.6;
  overflow-x: auto;
  margin: 1.6em 0;
}
.content pre code {
  background: transparent;
  color: inherit;
  padding: 0;
  border-radius: 0;
  font-size: inherit;
}
.content blockquote {
  border-left: 3px solid var(--c-primary);
  background: var(--c-primary-soft);
  padding: 18px 24px;
  border-radius: 0 var(--r) var(--r) 0;
  margin: 1.6em 0;
  color: var(--c-ink);
  font-style: italic;
  font-size: 17px;
}
.content blockquote p { color: var(--c-ink); }
.content img {
  border-radius: var(--r-md);
  margin: 1.6em 0;
  width: 100%;
  height: auto;
}
.content hr { margin: 2em 0; border-color: var(--c-rule); }

/* article page wrapper */
.article-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 56px;
  align-items: start;
}
.article-page__body { max-width: 720px; }
.article-header { margin-bottom: 40px; }
.article-header h1 {
  font-family: var(--f-display);
  font-size: clamp(32px, 4.5vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin: 0 0 20px;
}
.article-byline {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  border-top: 1px solid var(--c-rule);
  border-bottom: 1px solid var(--c-rule);
  font-size: 14px;
  color: var(--c-ink-2);
}
.article-byline__author { color: var(--c-ink); font-weight: 600; }
.article-byline__tags { margin-left: auto; display: flex; gap: 6px; flex-wrap: wrap; }
.article-header__cover {
  width: 100%;
  border-radius: var(--r-lg);
  margin-bottom: 32px;
  display: block;
}

/* ── post sidebar ────────────────────────────────────────────────────── */
.post-sidebar {
  position: sticky;
  top: 88px;
  background: var(--c-surface);
  border: 1px solid var(--c-rule);
  border-radius: var(--r-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.post-sidebar__section h3 {
  font-family: var(--f-display);
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 12px;
  color: var(--c-ink);
  letter-spacing: -0.01em;
}
.post-sidebar__section p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--c-ink-2);
  margin: 0 0 12px;
}
.post-sidebar__section p:last-of-type { margin-bottom: 0; }
.post-sidebar__section .btn { width: 100%; margin-top: 16px; }
.post-sidebar__section + .post-sidebar__section {
  padding-top: 24px;
  border-top: 1px solid var(--c-rule);
}
.post-sidebar__socials {
  display: flex;
  gap: 8px;
}
.post-sidebar__socials a {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--c-surface-2);
  border-radius: var(--r-sm);
  color: var(--c-ink-2);
  transition: all .12s ease;
}
.post-sidebar__socials a:hover {
  background: var(--c-primary-soft);
  color: var(--c-primary-dark);
}
.post-sidebar__socials svg { width: 16px; height: 16px; display: block; }
.sidebar-article {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--c-rule);
}
.sidebar-article:first-of-type { border-top: none; padding-top: 0; }
.sidebar-article__img {
  width: 64px;
  height: 64px;
  border-radius: var(--r-sm);
  object-fit: cover;
  background: var(--c-surface-2);
}
.sidebar-article__title {
  font-family: var(--f-body);
  font-size: 13px;
  line-height: 1.35;
  font-weight: 600;
  color: var(--c-ink);
  margin: 0 0 6px;
}
.sidebar-article__date { font-size: 12px; color: var(--c-mute); }

@media (max-width: 880px) {
  .article-page { grid-template-columns: 1fr; gap: 40px; }
  .article-page__body { max-width: none; }
  .post-sidebar { position: static; }
}

/* ── article content mobile guards ───────────────────────────────────── */
.article-page__body { min-width: 0; }
.content { min-width: 0; word-wrap: break-word; overflow-wrap: break-word; }
.content pre {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.content pre code { white-space: pre; }
.content img,
.content video,
.content iframe {
  max-width: 100%;
  height: auto;
}
.content table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.content a { word-break: break-word; }

@media (max-width: 640px) {
  .article-page { gap: 32px; }
  .article-header h1 { font-size: clamp(26px, 7vw, 34px); }
  .content { font-size: 16px; }
  .content pre { padding: 16px; font-size: 13px; border-radius: 10px; }
  .post-sidebar { padding: 20px; gap: 20px; }
  .post-sidebar__section h3 { font-size: 16px; }
  .sidebar-article { grid-template-columns: 56px 1fr; gap: 10px; }
  .sidebar-article__img { width: 56px; height: 56px; }
}
.grid { display: grid; }
.gap-1 { gap: 8px; } .gap-2 { gap: 16px; } .gap-3 { gap: 24px; } .gap-4 { gap: 32px; }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 32px; } .mt-5 { margin-top: 48px; } .mt-6 { margin-top: 64px; }
.mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; } .mb-4 { margin-bottom: 32px; } .mb-5 { margin-bottom: 48px; } .mb-6 { margin-bottom: 64px; }
.center { text-align: center; }

/* responsive collapse */
@media (max-width: 980px) {
  .container, .container-wide, .container-narrow { padding: 0 20px; }
  .hero__row,
  .integrations,
  .quote-block,
  .case-hero__row,
  .case-section__row,
  .cta-band,
  .page-header__row { grid-template-columns: 1fr; gap: 32px; }
  .case-section__row.reverse > :first-child { order: 0; }
  .pillars, .personas, .sdlc, .pricing-grid, .integrations__grid { grid-template-columns: 1fr 1fr; }
  .sdlc::before { display: none; }
  .stats-bar { grid-template-columns: 1fr; gap: 16px; padding: 24px; }
  .stats-bar__item + .stats-bar__item { border-left: none; border-top: 1px solid var(--c-rule); padding-left: 0; padding-top: 16px; }
  .site-footer__cols { grid-template-columns: 1fr 1fr; }
  .site-footer__brand { grid-column: 1 / -1; }
  .site-nav__menu { display: none; }
  .feature-item { grid-template-columns: 1fr; padding: 24px; }
  .feature-item:nth-child(even) .feature-item__img { order: 0; }
  .price-card.is-featured { transform: none; }
}
@media (max-width: 640px) {
  .section, .section-lg { padding: 64px 0; }
  .pillars, .personas, .sdlc, .pricing-grid, .integrations__grid { grid-template-columns: 1fr; }
  .quote-block { padding: 40px 24px; }
  .case-pullquote { padding: 40px 24px; }
  .cta-band { padding: 48px 28px; }
  .cta-warm { padding: 40px 24px; }
  .feature-item__img { min-height: auto; padding: 20px; }
  .price-fineprint { grid-template-columns: 1fr; }
}



/* ============================================================================
   RESPONSIVE — comprehensive mobile pass
   Breakpoints: 1024 (tablet) · 768 (phone) · 480 (small phone) · 380 (iPhone SE)
   ============================================================================ */

/* prevent horizontal scroll from any rogue overflow */
html, body { overflow-x: clip; }

/* ── mobile nav drawer ───────────────────────────────────────────────── */
.site-nav__burger {
  display: none;
  background: transparent;
  border: 0;
  width: 40px;
  height: 40px;
  padding: 0;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-radius: 8px;
}
.site-nav__burger:hover { background: var(--c-surface-2); }
.site-nav__burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--c-ink);
  border-radius: 1px;
  transition: transform .2s ease, opacity .2s ease;
}
.site-nav__close {
  display: none;
  position: absolute;
  top: 14px;
  right: 16px;
  background: transparent;
  border: 0;
  width: 40px;
  height: 40px;
  font-size: 32px;
  line-height: 1;
  color: var(--c-ink);
  cursor: pointer;
  z-index: 71;
}
.site-nav__backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(11, 31, 46, 0.45);
  z-index: 58;
  opacity: 0;
  transition: opacity .2s ease;
}

@media (max-width: 980px) {
  .site-nav__burger { display: inline-flex; }
  .site-nav__menu { display: none; }
  .site-nav__right .signin,
  .site-nav__right .btn-quiet { display: none; }
  .site-nav__right { gap: 8px; }

  /* When open: turn the nav into a full-height drawer */
  .site-nav.is-open {
    position: fixed;
    inset: 0;
    background: var(--c-surface);
    z-index: 70;
    overflow-y: auto;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .site-nav.is-open .site-nav__inner {
    flex-direction: column;
    align-items: stretch;
    padding: 80px 24px 32px;
    gap: 24px;
  }
  .site-nav.is-open .site-nav__left {
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
  }
  .site-nav.is-open .site-nav__menu {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 8px;
  }
  .site-nav.is-open .site-nav__menu > li {
    border-bottom: 1px solid var(--c-rule);
  }
  .site-nav.is-open .site-nav__menu > li > a {
    padding: 16px 4px;
    font-size: 18px;
    color: var(--c-ink);
    font-weight: 600;
    justify-content: space-between;
    width: 100%;
  }
  .site-nav.is-open .site-nav__menu .caret {
    transition: transform .2s ease;
    font-size: 14px;
  }
  .site-nav.is-open .site-nav__menu .has-dropdown.is-expanded > a .caret {
    transform: rotate(180deg);
  }
  .site-nav.is-open .site-nav__dropdown {
    position: static;
    opacity: 1;
    visibility: hidden;
    transform: none;
    box-shadow: none;
    border: 0;
    background: transparent;
    padding: 0 0 12px 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height .25s ease;
  }
  .site-nav.is-open .has-dropdown.is-expanded .site-nav__dropdown {
    visibility: visible;
    max-height: 600px;
  }
  .site-nav.is-open .site-nav__dropdown a {
    padding: 10px 8px;
    font-size: 15px;
    color: var(--c-ink-2);
  }
  .site-nav.is-open .site-nav__right {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-top: 12px;
  }
  .site-nav.is-open .site-nav__right .signin,
  .site-nav.is-open .site-nav__right .btn-quiet { display: inline-flex; justify-content: center; }
  .site-nav.is-open .site-nav__right .btn { width: 100%; justify-content: center; padding: 12px 18px; }
  .site-nav.is-open .site-nav__close { display: flex; align-items: center; justify-content: center; }

  body.is-nav-open { overflow: hidden; }
  body.is-nav-open .site-nav__backdrop { display: block; opacity: 1; }
}

/* ── containers + section padding ────────────────────────────────────── */
@media (max-width: 768px) {
  .container, .container-wide, .container-narrow { padding: 0 16px; }
  .section { padding: 56px 0; }
  .section-sm { padding: 40px 0; }
  .section-lg { padding: 64px 0; }
  .section-tight { padding: 32px 0; }
}
@media (max-width: 480px) {
  .container, .container-wide, .container-narrow { padding: 0 16px; }
  .section { padding: 48px 0; }
  .section-sm { padding: 32px 0; }
}

/* ── type scaling ────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .h1 { font-size: clamp(30px, 8vw, 40px); letter-spacing: -0.02em; }
  .h2 { font-size: clamp(26px, 6vw, 32px); }
  .h3 { font-size: clamp(20px, 4.5vw, 24px); }
  .lead, .lead-lg { font-size: 16px; line-height: 1.55; }
}
@media (max-width: 380px) {
  .h1 { font-size: 28px; line-height: 1.1; }
  .h2 { font-size: 24px; }
}

/* ── force inline-styled grid columns to collapse on mobile ──────────── */
@media (max-width: 768px) {
  /* generic class .grid with inline grid-template-columns — collapse */
  .grid[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }
  /* card-lg with inline grid (e.g. newsletter band) */
  .card-lg[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
    padding: 28px !important;
  }
  /* any element with inline 3-col grid */
  [style*="grid-template-columns: repeat(3, 1fr)"] {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  /* generic 2-col grids */
  [style*="grid-template-columns: 1fr 1fr"],
  [style*="grid-template-columns: 1.1fr 1fr"],
  [style*="grid-template-columns: 1.4fr 1fr"],
  [style*="grid-template-columns: 1.5fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
  /* large inline padding */
  [style*="padding: 56px"] { padding: 32px !important; }
  [style*="padding: 64px"] { padding: 32px !important; }
}

/* ── hero / page-header ──────────────────────────────────────────────── */
@media (max-width: 768px) {
  .hero, .page-header { padding-top: 48px; padding-bottom: 48px; }
  .hero__row, .page-header__row { gap: 32px; }
  .hero__actions { flex-direction: column; align-items: stretch; gap: 12px; }
  .hero__actions .btn { width: 100%; justify-content: center; }
  .hero__sub { flex-direction: column; gap: 12px; align-items: flex-start; }
  .page-header__art { display: none; }
}

/* ── feature item alternating layout ─────────────────────────────────── */
@media (max-width: 768px) {
  .feature-item { padding: 24px 20px; gap: 20px; }
  .feature-item h3 { font-size: 20px; }
  .feature-item p { font-size: 15px; }
}

/* ── pricing grid ────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .pricing-grid { grid-template-columns: 1fr; gap: 16px; }
  .price-card { padding: 28px 22px; }
  .price-card .h2, .price-card h2 { font-size: 28px; }
  .stats-bar { padding: 20px; }
}

/* ── forms ───────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .form-card { padding: 24px; }
  .form-row input, .form-row textarea, .form-row select {
    font-size: 16px; /* prevents iOS auto-zoom */
  }
}

/* ── buttons ─────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .btn { padding: 10px 16px; min-height: 44px; /* iOS touch target */ }
  .btn-sm { padding: 8px 12px; min-height: 36px; }
}

/* ── footer ──────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .site-footer { padding: 48px 0 24px; }
  .site-footer__cols {
    grid-template-columns: 1fr 1fr;
    gap: 32px 24px;
    margin-bottom: 32px;
  }
  .site-footer__brand { grid-column: 1 / -1; max-width: none; }
  .site-footer__brand .logo { height: 28px; }
  .site-footer__legal {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}
@media (max-width: 480px) {
  .site-footer__cols { grid-template-columns: 1fr; }
}

/* ── announce bar ────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .announce-bar { font-size: 12px; padding: 8px 16px; }
  .announce-bar__tag { padding: 2px 6px; margin-right: 6px; font-size: 10px; }
}

/* ── envcard (homepage hero illustration) ────────────────────────────── */
@media (max-width: 768px) {
  .envcard { display: none; }  /* simplify hero on mobile */
}

/* ── case study + article grids ──────────────────────────────────────── */
@media (max-width: 768px) {
  .case-hero__results { grid-template-columns: 1fr; }
  .case-pullquote, .quote-block, .cta-band, .cta-warm { padding: 32px 20px; }
}

/* ── general images ──────────────────────────────────────────────────── */
img, video, iframe { max-width: 100%; height: auto; }

/* ── tables (terms / privacy long content) ──────────────────────────── */
@media (max-width: 768px) {
  .legal-page .legal-prose p,
  .legal-page .legal-prose li { word-wrap: break-word; overflow-wrap: anywhere; }
  .ee-page .ee-toc { display: none; } /* big TOC sidebars off on mobile */
  .ee-page .ee-layout { grid-template-columns: 1fr; }
}

/* ── press grid intro ────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .press-intro { padding: 20px !important; }
}

/* ── job listings ────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .job-card { padding: 16px 18px; gap: 14px; }
  .job-card .btn { width: auto; }
  .jd-header { grid-template-columns: 64px 1fr; gap: 14px; }
  .jd-header__icon { width: 64px; height: 64px; padding: 10px; }
}

/* ── tweak page-header hero text on phone ────────────────────────────── */
@media (max-width: 480px) {
  .pill { font-size: 12px; padding: 4px 12px 4px 6px; }
  .pill__tag { padding: 2px 6px; font-size: 10px; }
  .hero__actions, .page-header .hero__actions { width: 100%; }
}

/* ── stop iOS Safari from auto-coloring tap targets ──────────────────── */
a, button { -webkit-tap-highlight-color: rgba(21,182,176,0.18); }

/* ── safe-area insets for notched devices ────────────────────────────── */
@supports (padding: max(0px)) {
  @media (max-width: 768px) {
    .container, .container-wide, .container-narrow {
      padding-left: max(16px, env(safe-area-inset-left));
      padding-right: max(16px, env(safe-area-inset-right));
    }
  }
}


/* ============================================================================
   HUGO PORT — additional component styles for pages porting from static /site
   ============================================================================ */

/* ── press cards ──────────────────────────────────────────────────────── */
.press-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 980px) { .press-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .press-grid { grid-template-columns: 1fr; } }

.press-card {
  display: flex; flex-direction: column;
  background: var(--c-surface);
  border: 1px solid var(--c-rule);
  border-radius: var(--r-lg);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.press-card:hover { border-color: var(--c-primary); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.press-card__thumb { aspect-ratio: 16 / 9; background: var(--c-surface-2); display: flex; align-items: center; justify-content: center; padding: 24px; border-bottom: 1px solid var(--c-rule); }
.press-card__thumb img { max-width: 100%; max-height: 100%; object-fit: contain; }
.press-card__body { padding: 20px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.press-card__date { font-family: var(--f-mono); font-size: 12px; color: var(--c-mute); text-transform: uppercase; letter-spacing: 0.06em; }
.press-card__title { font-family: var(--f-display); font-weight: 600; font-size: 17px; line-height: 1.3; color: var(--c-ink); letter-spacing: -0.005em; }
.press-card__cta { margin-top: auto; padding-top: 12px; font-size: 14px; font-weight: 500; color: var(--c-primary-dark); }

/* ── legal-prose (privacy / terms / careers single) ─────────────────────── */
.legal-page .legal-prose,
.legal-prose { font-size: 16px; color: var(--c-ink-2); line-height: 1.7; }
.legal-prose h1 { font-family: var(--f-display); font-size: 30px; font-weight: 600; color: var(--c-ink); margin-bottom: 16px; }
.legal-prose h2 { font-family: var(--f-display); font-size: 13px; font-weight: 700; color: var(--c-primary-dark); margin-top: 40px; margin-bottom: 16px; letter-spacing: 0.1em; text-transform: uppercase; padding-top: 32px; border-top: 1px solid var(--c-rule); scroll-margin-top: 100px; }
.legal-prose h2:first-of-type { padding-top: 0; border-top: 0; margin-top: 0; }
.legal-prose h3 { font-family: var(--f-display); font-size: 18px; font-weight: 600; color: var(--c-ink); margin-top: 24px; margin-bottom: 10px; scroll-margin-top: 100px; }
.legal-prose p  { color: var(--c-ink-2); margin-bottom: 14px; font-size: 15px; line-height: 1.7; }
.legal-prose a  { color: var(--c-primary-dark); text-decoration: underline; text-underline-offset: 3px; }
.legal-prose a:hover { color: var(--c-primary); }
.legal-prose ul, .legal-prose ol { margin: 8px 0 16px; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.legal-prose ul li, .legal-prose ol li { color: var(--c-ink-2); font-size: 15px; line-height: 1.6; }
.legal-prose strong { color: var(--c-ink); font-weight: 600; }

/* ── ee-page (learn-more articles with sticky TOC) ──────────────────────── */
.ee-page .article-prose h2 { font-size: 30px; line-height: 1.2; margin-top: 8px; margin-bottom: 14px; scroll-margin-top: 100px; }
.ee-page .article-prose h3 { font-size: 22px; line-height: 1.25; margin-top: 32px; margin-bottom: 12px; scroll-margin-top: 100px; }
.ee-page .article-prose p  { color: var(--c-ink-2); margin-bottom: 16px; font-size: 17px; line-height: 1.65; }
.ee-page .article-prose a  { color: var(--c-primary-dark); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.ee-page .article-prose a:hover { color: var(--c-primary); }
.ee-page .article-prose section + section { margin-top: 56px; }
.ee-page .article-prose ul { margin: 0 0 16px; padding-left: 0; display: flex; flex-direction: column; gap: 10px; }
.ee-page .article-prose ul li { color: var(--c-ink-2); font-size: 17px; line-height: 1.6; padding-left: 22px; position: relative; }
.ee-page .article-prose ul li::before { content: ""; position: absolute; left: 4px; top: 12px; width: 6px; height: 6px; border-radius: 50%; background: var(--c-primary); }
.ee-page .article-prose ol { margin: 0 0 16px; padding-left: 22px; display: flex; flex-direction: column; gap: 10px; }
.ee-page .article-prose ol li { color: var(--c-ink-2); font-size: 17px; line-height: 1.6; }
.ee-page .article-prose strong { color: var(--c-ink); font-weight: 600; }
.ee-page .article-prose img { width: 100%; height: auto; border-radius: var(--r); margin: 8px 0; }

.ee-page .ee-toc { position: sticky; top: 96px; padding: 20px; background: var(--c-surface); border: 1px solid var(--c-rule); border-radius: var(--r-lg); }
.ee-page .ee-toc__label { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--c-mute); margin-bottom: 12px; }
.ee-page .ee-toc ul { list-style: none; padding: 0; margin: 0; }
.ee-page .ee-toc li { padding: 0; margin: 0; }
.ee-page .ee-toc a { display: block; padding: 6px 0; font-size: 14px; color: var(--c-ink-2); border-bottom: 1px solid var(--c-rule-soft); }
.ee-page .ee-toc a:hover { color: var(--c-primary-dark); }
.ee-page .ee-toc > ul > li > ul { margin-left: 12px; padding-top: 4px; border-left: 2px solid var(--c-rule-soft); padding-left: 10px; }
.ee-page .ee-toc > ul > li > ul a { font-size: 13px; border-bottom: 0; }
.ee-page .ee-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 56px; align-items: start; }
@media (max-width: 900px) {
  .ee-page .ee-layout { grid-template-columns: 1fr; gap: 0; }
  .ee-page .ee-toc { position: static; margin-bottom: 32px; display: none; }
}

/* ── blog grid (porting from /site/blog.html inline styles) ──────────── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 980px) { .blog-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .blog-grid { grid-template-columns: 1fr; } }
.blog-card { display: block; background: var(--c-surface); border: 1px solid var(--c-rule); border-radius: var(--r-lg); overflow: hidden; text-decoration: none; color: inherit; transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease; }
.blog-card:hover { border-color: var(--c-primary); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.blog-card__img { aspect-ratio: 16 / 9; background: var(--c-surface-2); overflow: hidden; }
.blog-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.blog-card__body { padding: 20px 22px; }
.blog-card__date { font-family: var(--f-mono); font-size: 12px; color: var(--c-mute); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 8px; }
.blog-card__title { font-family: var(--f-display); font-weight: 600; font-size: 18px; line-height: 1.3; color: var(--c-ink); letter-spacing: -0.005em; margin-bottom: 8px; }
.blog-card__excerpt { color: var(--c-ink-2); font-size: 14px; line-height: 1.5; }

/* ── content (markdown rendered blog body) ─────────────────────────── */
.content.markdown-text { font-size: 16px; line-height: 1.7; color: var(--c-ink-2); }
.content.markdown-text h2 { font-family: var(--f-display); font-size: 28px; font-weight: 600; color: var(--c-ink); margin: 40px 0 16px; line-height: 1.2; }
.content.markdown-text h3 { font-family: var(--f-display); font-size: 22px; font-weight: 600; color: var(--c-ink); margin: 28px 0 12px; line-height: 1.25; }
.content.markdown-text h4 { font-family: var(--f-display); font-size: 18px; font-weight: 600; color: var(--c-ink); margin: 24px 0 10px; }
.content.markdown-text p { margin-bottom: 16px; }
.content.markdown-text a { color: var(--c-primary-dark); text-decoration: underline; text-underline-offset: 3px; }
.content.markdown-text a:hover { color: var(--c-primary); }
.content.markdown-text img { max-width: 100%; height: auto; border-radius: var(--r-lg); margin: 16px 0; }
.content.markdown-text ul, .content.markdown-text ol { margin: 8px 0 16px; padding-left: 22px; }
.content.markdown-text li { margin-bottom: 6px; }
.content.markdown-text pre { background: var(--c-ink); color: white; padding: 16px 20px; border-radius: var(--r); overflow-x: auto; font-size: 14px; line-height: 1.5; margin: 16px 0; }
.content.markdown-text code { font-family: var(--f-mono); font-size: 0.9em; background: var(--c-surface-2); padding: 1px 6px; border-radius: 4px; }
.content.markdown-text pre code { background: transparent; padding: 0; }
.content.markdown-text blockquote { border-left: 3px solid var(--c-primary); padding: 8px 20px; margin: 16px 0; background: var(--c-surface-2); border-radius: 0 var(--r) var(--r) 0; color: var(--c-ink-2); font-style: italic; }


/* ── pricing cards (Hugo port) ───────────────────────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}
@media (max-width: 980px) { .pricing-grid { grid-template-columns: 1fr; } }

.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--c-surface);
  border: 1px solid var(--c-rule);
  border-radius: var(--r-lg);
  padding: 32px 28px;
  overflow: hidden;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.price-card:hover { border-color: var(--c-primary); box-shadow: var(--shadow-sm); }
.price-card.is-featured {
  border-color: var(--c-primary);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}
@media (max-width: 980px) { .price-card.is-featured { transform: none; } }
.price-card__ribbon {
  display: block;
  margin: -32px -28px 24px;
  padding: 10px 24px;
  background: var(--c-primary);
  color: white;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.price-card__head { border-bottom: 1px solid var(--c-rule); padding-bottom: 24px; margin-bottom: 24px; }
.price-card__list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 10px;
  font-size: 14px; color: var(--c-ink-2);
  flex: 1;
}
.price-card__list li { display: flex; align-items: flex-start; gap: 10px; line-height: 1.5; }
.price-card__check { color: var(--c-primary); font-weight: 700; flex-shrink: 0; margin-top: 2px; }


/* ============================================================================
   HUGO PORT — DESIGN-SYSTEM OVERRIDES
   These rules use body scope to beat the legacy SCSS/Bootstrap default
   specificity (which targets .btn, body, h1, etc. without prefix). They
   ensure our type + button + color system always wins regardless of what
   the legacy stylesheets define.
   ============================================================================ */

/* ── reset font on body / headings ───────────────────────────────────── */
html body {
  font-family: var(--f-body) !important;
  font-size: 16px;
  line-height: 1.5;
  color: var(--c-ink);
  background: var(--c-bg);
}
body h1, body h2, body h3, body h4, body h5, body h6,
body .h1, body .h2, body .h3, body .h4 {
  font-family: var(--f-display) !important;
  color: var(--c-ink);
  letter-spacing: -0.025em;
  font-weight: 600;
}
body .h1 { font-size: clamp(40px, 5vw, 72px); line-height: 1.02; letter-spacing: -0.035em; }
body .h2 { font-size: clamp(32px, 4vw, 48px); line-height: 1.1; letter-spacing: -0.03em; }
body .h3 { font-size: clamp(22px, 2.5vw, 28px); line-height: 1.2; letter-spacing: -0.02em; }
body .h4 { font-size: clamp(18px, 2vw, 22px); line-height: 1.3; letter-spacing: -0.01em; }
body .lead { font-size: 19px; line-height: 1.5; color: var(--c-ink-2); }
body p { color: var(--c-ink-2); }

/* ── button overrides (beat Bootstrap + tw-button defaults) ─────────── */
body .btn {
  font-family: var(--f-body) !important;
  font-weight: 600;
  font-size: 14px;
  padding: 10px 18px;
  border-radius: var(--r);
  border: 1px solid transparent;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
  line-height: 1.2;
}
body .btn-sm { padding: 6px 12px; font-size: 13px; }
body .btn-primary {
  background: var(--c-primary) !important;
  color: white !important;
  border-color: var(--c-primary) !important;
  box-shadow: var(--shadow-primary);
}
body .btn-primary:hover { background: var(--c-primary-dark) !important; border-color: var(--c-primary-dark) !important; transform: translateY(-1px); }
body .btn-dark { background: var(--c-ink) !important; color: white !important; border-color: var(--c-ink) !important; }
body .btn-dark:hover { background: var(--c-navy) !important; border-color: var(--c-navy) !important; }
body .btn-ghost {
  background: var(--c-surface) !important;
  color: var(--c-ink) !important;
  border-color: var(--c-rule) !important;
}
body .btn-ghost:hover { border-color: var(--c-ink-2) !important; }
body .btn-quiet { background: var(--c-surface-2) !important; color: var(--c-ink) !important; }
body .btn-quiet:hover { background: var(--c-rule) !important; }
body .btn-on-dark { background: white !important; color: var(--c-primary-dark) !important; }
body .btn-on-dark:hover { background: var(--c-primary-soft) !important; }
body .btn-outline-on-dark {
  background: transparent !important;
  color: white !important;
  border-color: rgba(255,255,255,0.4) !important;
}
body .btn-outline-on-dark:hover { border-color: white !important; background: rgba(255,255,255,0.08) !important; }

/* ── neutralize Bootstrap container at body scope ─────────────────────── */
body .container { max-width: var(--container) !important; padding: 0 32px !important; }
@media (max-width: 768px) { body .container { padding: 0 16px !important; } }

/* ── neutralize legacy banner / nav classes ──────────────────────────── */
.naviagtion.fixed-top { position: static !important; }   /* prevent double-fixed nav */

/* ── eyebrow override ────────────────────────────────────────────────── */
body .eyebrow {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--c-primary-soft);
  color: var(--c-primary-dark);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}


/* ============================================================================
   HUGO PORT — kill legacy SCSS button overlay + lock blog/article styles
   ============================================================================ */

/* The legacy _buttons.scss adds a blue overlay via ::after on .btn-primary.
   Nuke it so the teal background actually shows through. */
body .btn::before,
body .btn::after,
body .btn-primary::before,
body .btn-primary::after,
body .btn-dark::before,
body .btn-dark::after,
body .btn-ghost::before,
body .btn-ghost::after,
body .btn-on-dark::before,
body .btn-on-dark::after,
body .btn-outline-on-dark::before,
body .btn-outline-on-dark::after,
body .btn-quiet::before,
body .btn-quiet::after {
  content: none !important;
  display: none !important;
  background: none !important;
}

/* Some legacy buttons get a 1px box-shadow underline — neutralize. */
body .btn { box-shadow: none !important; }
body .btn-primary { box-shadow: var(--shadow-primary) !important; }

/* ── Blog cards override (legacy _blog.scss / _card.scss use .card with
   different padding, shadow, etc.). Lock our blog-card styles down. ────── */
body .blog-grid { display: grid !important; grid-template-columns: repeat(3, 1fr) !important; gap: 24px !important; }
@media (max-width: 980px) { body .blog-grid { grid-template-columns: 1fr 1fr !important; } }
@media (max-width: 640px) { body .blog-grid { grid-template-columns: 1fr !important; } }
body .blog-card {
  display: block !important;
  background: var(--c-surface) !important;
  border: 1px solid var(--c-rule) !important;
  border-radius: var(--r-lg) !important;
  overflow: hidden !important;
  text-decoration: none !important;
  color: inherit !important;
  box-shadow: none !important;
  padding: 0 !important;
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
body .blog-card:hover { border-color: var(--c-primary) !important; transform: translateY(-2px); box-shadow: var(--shadow-sm) !important; }
body .blog-card__img { aspect-ratio: 16/9 !important; background: var(--c-surface-2) !important; overflow: hidden !important; padding: 0 !important; border-bottom: 0 !important; }
body .blog-card__img img { width: 100% !important; height: 100% !important; object-fit: cover !important; display: block !important; border-radius: 0 !important; }
body .blog-card__body { padding: 20px 22px !important; }
body .blog-card__date { font-family: var(--f-mono) !important; font-size: 12px !important; color: var(--c-mute) !important; text-transform: uppercase !important; letter-spacing: 0.06em !important; margin-bottom: 8px !important; }
body .blog-card__title { font-family: var(--f-display) !important; font-weight: 600 !important; font-size: 18px !important; line-height: 1.3 !important; color: var(--c-ink) !important; letter-spacing: -0.005em !important; margin-bottom: 8px !important; }
body .blog-card__excerpt { color: var(--c-ink-2) !important; font-size: 14px !important; line-height: 1.5 !important; }

/* legacy theme adds page-link blue circles — match our btn style ──────── */
body .page-link {
  border: 1px solid var(--c-rule) !important;
  background: var(--c-surface) !important;
  color: var(--c-ink-2) !important;
  border-radius: var(--r) !important;
  padding: 8px 12px !important;
}
body .page-item.active .page-link { background: var(--c-ink) !important; color: white !important; border-color: var(--c-ink) !important; }

/* ── press cards override too ─────────────────────────────────────────── */
body .press-card {
  background: var(--c-surface) !important;
  border: 1px solid var(--c-rule) !important;
  border-radius: var(--r-lg) !important;
  overflow: hidden !important;
  text-decoration: none !important;
  color: inherit !important;
  display: flex !important; flex-direction: column !important;
  padding: 0 !important;
  box-shadow: none !important;
}
body .press-card:hover { border-color: var(--c-primary) !important; }
body .press-card__thumb { aspect-ratio: 16/9 !important; background: var(--c-surface-2) !important; padding: 24px !important; }
body .press-card__title { color: var(--c-ink) !important; }

/* ── kill legacy "naviagtion fixed-top" — was breaking sticky nav ────── */
.naviagtion.fixed-top { position: static !important; padding: 0 !important; }

/* ── kill any legacy section padding that conflicts ──────────────────── */
body .section { padding: 96px 0; }
body .section-sm { padding: 64px 0; }
@media (max-width: 768px) {
  body .section { padding: 56px 0; }
  body .section-sm { padding: 40px 0; }
}

/* ── reset h1/h2 text-transform that legacy SCSS forces to uppercase ─── */
body h1, body h2, body h3, body h4, body h5, body h6,
body .h1, body .h2, body .h3, body .h4 { text-transform: none !important; }


/* ============================================================================
   HUGO PORT — FINAL button specificity bump
   Legacy uses .btn.btn-primary (2 classes) which beats body .btn-primary.
   Match it with body .btn.btn-X to win every battle.
   ============================================================================ */
body .btn.btn-primary,
body a.btn.btn-primary,
body button.btn.btn-primary {
  background: var(--c-primary) !important;
  background-color: var(--c-primary) !important;
  background-image: none !important;
  color: #ffffff !important;
  border: 1px solid var(--c-primary) !important;
}
body .btn.btn-primary:hover,
body a.btn.btn-primary:hover,
body button.btn.btn-primary:hover {
  background: var(--c-primary-dark) !important;
  background-color: var(--c-primary-dark) !important;
  border-color: var(--c-primary-dark) !important;
}
body .btn.btn-dark, body a.btn.btn-dark, body button.btn.btn-dark {
  background: var(--c-ink) !important;
  background-color: var(--c-ink) !important;
  background-image: none !important;
  color: #ffffff !important;
  border: 1px solid var(--c-ink) !important;
}
body .btn.btn-dark:hover, body a.btn.btn-dark:hover, body button.btn.btn-dark:hover {
  background: var(--c-navy) !important;
  background-color: var(--c-navy) !important;
}
body .btn.btn-ghost, body a.btn.btn-ghost, body button.btn.btn-ghost {
  background: var(--c-surface) !important;
  background-color: var(--c-surface) !important;
  background-image: none !important;
  color: var(--c-ink) !important;
  border: 1px solid var(--c-rule) !important;
}
body .btn.btn-ghost:hover { border-color: var(--c-ink-2) !important; }
body .btn.btn-on-dark { background: #ffffff !important; color: var(--c-primary-dark) !important; border-color: #ffffff !important; }
body .btn.btn-outline-on-dark { background: transparent !important; color: #ffffff !important; border: 1px solid rgba(255,255,255,0.4) !important; }
body .btn.btn-quiet { background: var(--c-surface-2) !important; color: var(--c-ink) !important; border: 1px solid transparent !important; }

/* Kill ::before/::after on the compound-class variant too */
body .btn.btn-primary::before, body .btn.btn-primary::after,
body .btn.btn-dark::before, body .btn.btn-dark::after,
body .btn.btn-ghost::before, body .btn.btn-ghost::after,
body .btn.btn-on-dark::before, body .btn.btn-on-dark::after,
body .btn.btn-outline-on-dark::before, body .btn.btn-outline-on-dark::after,
body .btn.btn-quiet::before, body .btn.btn-quiet::after {
  content: none !important;
  display: none !important;
  background: none !important;
}


/* ============================================================================
   HUGO PORT — dropdown icon filter (PNGs are natively pink — darken them)
   ============================================================================ */
body .site-nav__dropdown a img {
  filter: brightness(0) saturate(0) !important;
  opacity: 0.7;
  transition: filter .2s ease, opacity .2s ease;
}
body .site-nav__dropdown a:hover img {
  filter: none !important;
  opacity: 1;
}

/* The legacy nav.scss has .nav-link:hover { color: #b87cf2 !important; } and
   .dropdown-item:hover { color: #b87cf2 !important; }. Override those if our
   markup ever picks up those classes (it shouldn't, but safety). */
body .site-nav__menu a:hover,
body .site-nav__dropdown a:hover { color: var(--c-primary-dark) !important; }

/* ============================================================================
   FAQ accordion (homepage)
   ============================================================================ */
.faq {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
}
.faq__item {
  background: var(--c-surface);
  border: 1px solid var(--c-rule);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.faq__item[open] {
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px var(--c-primary-soft);
}
.faq__item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--f-display);
  font-size: 17px;
  font-weight: 600;
  color: var(--c-ink);
  letter-spacing: -0.01em;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--c-primary-dark); }
.faq__chev {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--c-surface-2);
  color: var(--c-ink-2);
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
  transition: transform .2s ease, background .2s ease, color .2s ease;
}
.faq__item[open] .faq__chev {
  transform: rotate(45deg);
  background: var(--c-primary);
  color: white;
}
.faq__answer {
  padding: 0 24px 22px;
  color: var(--c-ink-2);
  font-size: 15px;
  line-height: 1.65;
}
.faq__answer p { margin: 0; }
.faq__answer p + p { margin-top: 10px; }
@media (max-width: 600px) {
  .faq__item summary { padding: 16px 18px; font-size: 16px; gap: 12px; }
  .faq__answer { padding: 0 18px 18px; font-size: 14px; }
}

/* ============================================================================
   FINAL CTA (homepage — replaces "And… deploy production")
   Compact, primary-soft palette
   ============================================================================ */
.final-cta {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 32px;
  align-items: center;
  background: linear-gradient(135deg, var(--c-primary-soft) 0%, #F3FBFA 100%);
  border: 1px solid var(--c-primary);
  color: var(--c-ink);
  padding: 36px 40px;
  border-radius: var(--r-xl);
  position: relative;
  overflow: hidden;
}
.final-cta__copy h2 {
  color: var(--c-ink);
  font-size: clamp(22px, 2.5vw, 28px);
  margin: 10px 0 8px;
}
.final-cta__copy .lead {
  color: var(--c-ink-2);
  font-size: 15px;
  line-height: 1.55;
  margin: 0 0 18px;
  max-width: 460px;
}
.final-cta__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.final-cta__actions .btn { padding: 10px 18px; font-size: 14px; }
.final-cta__sub {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 14px;
  font-size: 12px;
  color: var(--c-mute);
}
.final-cta__sub .check { color: var(--c-primary-dark); font-weight: 700; margin-right: 5px; }

.final-cta__art {
  position: relative;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}
.final-cta__orb {
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(21,182,176,0.18) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}
.final-cta__envcard {
  position: relative;
  z-index: 1;
  background: var(--c-surface);
  border: 1px solid var(--c-rule);
  border-radius: var(--r-md);
  padding: 8px;
  width: 100%;
  max-width: 280px;
  box-shadow: 0 8px 24px rgba(11,31,46,0.06);
}
.final-cta__envcard-row {
  display: grid;
  grid-template-columns: 8px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
}
.final-cta__envcard-row + .final-cta__envcard-row { margin-top: 2px; }
.final-cta__envcard-row:nth-child(1) { background: var(--c-primary-soft); }
.final-cta__pulse {
  width: 8px; height: 8px; border-radius: 999px;
  background: var(--c-primary);
  box-shadow: 0 0 0 3px rgba(21,182,176,0.20);
}
.final-cta__pulse.is-warn {
  background: var(--c-warn);
  box-shadow: 0 0 0 3px rgba(240,178,50,0.20);
}
.final-cta__row-title {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--c-ink);
  font-weight: 500;
}
.final-cta__row-meta {
  font-size: 10px;
  color: var(--c-mute);
  margin-top: 1px;
}
.final-cta__row-status {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--c-primary-soft);
  color: var(--c-primary-dark);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.final-cta__row-status.is-warn { background: var(--c-warn-soft); color: #8a6a13; }

@media (max-width: 820px) {
  .final-cta { grid-template-columns: 1fr; gap: 28px; padding: 32px 28px; }
  .final-cta__art { justify-content: center; }
  .final-cta__orb { width: 220px; height: 220px; }
}
@media (max-width: 480px) {
  .final-cta { padding: 28px 22px; border-radius: var(--r-lg); }
}

/* ============================================================================
   PRE-FOOTER (featured blog + newsletter) — redesigned subscription strip
   ============================================================================ */
.presub {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 32px;
  align-items: stretch;
}
.presub__card {
  background: var(--c-surface);
  border: 1px solid var(--c-rule);
  border-radius: var(--r-xl);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-decoration: none;
  color: inherit;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.presub__card--blog:hover {
  border-color: var(--c-primary);
  box-shadow: 0 12px 32px rgba(11,31,46,0.08);
  transform: translateY(-2px);
}
.presub__img {
  margin-top: 4px;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--c-surface-2);
  aspect-ratio: 16 / 8;
}
.presub__img img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.presub__title {
  font-family: var(--f-display);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--c-ink);
  margin: 4px 0 0;
}
.presub__desc {
  font-size: 15px;
  line-height: 1.6;
  color: var(--c-ink-2);
  margin: 0;
}
.presub__link {
  margin-top: auto;
  color: var(--c-primary-dark);
  font-weight: 600;
  font-size: 14px;
}
.presub__card--blog:hover .presub__link { color: var(--c-primary); }

.presub__card--news .presub__title { color: var(--c-ink); }
.presub__form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}
.presub__input {
  background: var(--c-surface);
  border: 1px solid var(--c-rule);
  color: var(--c-ink);
  padding: 12px 16px;
  border-radius: var(--r-md);
  font-family: var(--f-body);
  font-size: 15px;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.presub__input:focus {
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px var(--c-primary-soft);
}
.presub__submit { align-self: flex-start; }
.presub__legal {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--c-mute);
}

@media (max-width: 820px) {
  .presub { grid-template-columns: 1fr; gap: 20px; }
  .presub__card { padding: 28px 24px; }
  .presub__title { font-size: 22px; }
}

/* ============================================================================
   SLACK COMMUNITY CTA (used on blog posts, agent pages, and home)
   ============================================================================ */
.slack-cta {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 28px;
  align-items: center;
  background: var(--c-surface);
  border: 1px solid var(--c-rule);
  border-radius: var(--r-xl);
  padding: 28px 32px;
  box-shadow: 0 1px 2px rgba(11,31,46,0.04);
}
.slack-cta__icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--c-surface-2);
  border-radius: var(--r-md);
}
.slack-cta__icon svg { width: 32px; height: 32px; }
.slack-cta__body { min-width: 0; }
.slack-cta__title {
  font-family: var(--f-display);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--c-ink);
  margin: 8px 0 6px;
}
.slack-cta__desc {
  font-size: 14px;
  line-height: 1.55;
  color: var(--c-ink-2);
  margin: 0;
  max-width: 56ch;
}
.slack-cta__btn { white-space: nowrap; }

@media (max-width: 720px) {
  .slack-cta {
    grid-template-columns: auto 1fr;
    gap: 16px 20px;
    padding: 22px 22px;
  }
  .slack-cta__btn { grid-column: 1 / -1; justify-self: stretch; text-align: center; }
  .slack-cta__title { font-size: 18px; }
}
@media (max-width: 480px) {
  .slack-cta { grid-template-columns: 1fr; text-align: left; }
  .slack-cta__icon { width: 48px; height: 48px; }
  .slack-cta__icon svg { width: 28px; height: 28px; }
}

/* ============================================================================
   NAV — Slack community icon button
   ============================================================================ */
.site-nav__slack {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--r-md);
  border: 1px solid var(--c-rule);
  background: var(--c-surface);
  transition: border-color .15s ease, background .15s ease, transform .15s ease;
}
.site-nav__slack svg { width: 18px; height: 18px; display: block; }
.site-nav__slack:hover {
  border-color: var(--c-ink-2);
  background: var(--c-surface-2);
  transform: translateY(-1px);
}
.site-nav__slack:focus-visible {
  outline: 2px solid var(--c-primary);
  outline-offset: 2px;
}
@media (max-width: 768px) {
  .site-nav__slack { display: none; } /* hide on small screens — surface lives in the mobile drawer / footer */
}

/* ============================================================================
   NAV — mobile hamburger collision fix
   At narrow widths the persistent "Try free →" / "Get a demo" buttons crowd
   the hamburger and on very small screens push it off the right edge. Hide
   the persistent CTAs below 600px — they're still reachable inside the drawer.
   ============================================================================ */
@media (max-width: 600px) {
  .site-nav__right .btn-dark,
  .site-nav__right .btn-quiet {
    display: none !important;
  }
  .site-nav__inner { gap: 12px; }
  .site-nav__burger {
    margin-left: auto;           /* keep pinned to the right edge */
    position: relative;
    z-index: 2;                  /* above any stray inline elements */
  }
}

/* ============================================================================
   STATS BAR — mobile alignment fix
   First item kept its 8px left padding while siblings reset to 0, causing the
   top number to look shifted right relative to the rest. Normalize all items.
   ============================================================================ */
@media (max-width: 1024px) {
  .stats-bar__item { padding: 0 !important; }
  .stats-bar__item + .stats-bar__item { padding-left: 0 !important; padding-top: 16px !important; }
}

/* ============================================================================
   HUGO PORT — blog page lockdown (kill legacy .card + Bootstrap .row rules)
   ============================================================================ */
body .blog-grid > * { margin: 0 !important; }
body .blog-grid .blog-card {
  width: 100% !important;
  margin: 0 !important;
}

/* If the legacy _blog.scss / _card.scss has rules like
   .col-sm-6 .card.border.shadow { ... } targeting the OLD blog markup,
   they don't match our new markup. But the legacy stylesheet also defines
   .card with padding + shadow, which we wrap with !important above. Force
   our list page to never inherit those by killing legacy .card hooks: */
body .blog-grid .card,
body .blog-grid .card-body,
body .blog-grid .card-img-top,
body .blog-grid .rounded-top-xs,
body .blog-grid .rounded-xs {
  all: unset;
  display: block;
}
/* Then re-apply what we want for our specific .blog-card structure */
body .blog-card { display: flex !important; flex-direction: column !important; }

/* Force the blog hero (page-header) to match our new style on the blog index */
body .page-header .h1 { color: var(--c-ink) !important; }

/* ── pagination (blog index, list pages) ─────────────────────────────── */
.pagination { margin-top: 48px; }
.pagination__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 0;
}
.pagination__list .btn {
  min-width: 40px;
  text-align: center;
  white-space: nowrap;
}
@media (max-width: 420px) {
  .pagination { margin-top: 32px; }
  .pagination__list { gap: 6px; }
  .pagination__list .btn { padding: 8px 10px; font-size: 13px; min-width: 36px; }
  .pagination__label { display: none; }
}
