/* OrcheStack front-facing site — shared styles */

:root {
  --navy: #0f2a44;
  --navy-700: #1a4066;
  --navy-100: #e8edf3;
  --accent: #e67e22;
  --accent-100: #fdebd0;
  --green: #1e7e4f;
  --green-100: #d9f1e4;
  --red: #c0392b;
  --muted: #6b7280;
  --muted-2: #9ca3af;
  --border: #e5e7eb;
  --border-2: #f0f2f5;
  --bg: #ffffff;
  --bg-alt: #f7f8fa;
  --bg-code: #0b1220;
  --text: #0b1220;
  --text-2: #374151;
  --radius: 10px;
  --radius-sm: 6px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--navy-700); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
code, kbd, pre { font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Consolas, monospace; }
pre { background: var(--bg-code); color: #e8edf3; border-radius: var(--radius); padding: 16px 18px; overflow: auto; font-size: 14px; line-height: 1.55; }
code.inline { background: var(--navy-100); color: var(--navy); padding: 2px 6px; border-radius: 4px; font-size: 13px; }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px; border-radius: var(--radius);
  font-weight: 600; font-size: 15px;
  border: 1px solid transparent;
  transition: transform .06s ease, box-shadow .12s ease;
  cursor: pointer;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-700); box-shadow: 0 6px 18px rgba(15,42,68,.18); }
.btn-secondary { background: #fff; color: var(--navy); border-color: var(--border); }
.btn-secondary:hover { border-color: var(--navy); }
.btn-cta { background: var(--accent); color: #fff; }
.btn-cta:hover { background: #d46c13; box-shadow: 0 6px 18px rgba(230,126,34,.24); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { background: var(--bg-alt); }
.btn-sm { padding: 8px 14px; font-size: 13.5px; }

/* ---------------- Header ---------------- */
header {
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,.92);
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(1.2) blur(6px);
}
.nav { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; color: var(--navy); }
.brand-mark {
  width: 28px; height: 28px; border-radius: 7px; background: var(--navy);
  display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 14px;
}
.nav ul { display: flex; gap: 28px; list-style: none; padding: 0; margin: 0; }
.nav a.nav-link { color: var(--text); font-weight: 500; font-size: 15px; }
.nav a.nav-link.active { color: var(--navy); font-weight: 600; }
.nav .cta { display: flex; gap: 10px; align-items: center; }
@media (max-width: 780px) {
  .nav ul { display: none; }
  .nav .cta .btn { padding: 8px 14px; font-size: 13.5px; }
}

/* ---------------- Hero (used on landing + simpler variant on others) ---------------- */
.hero { padding: 88px 0 72px; border-bottom: 1px solid var(--border); }
.hero h1 {
  font-size: clamp(32px, 4.6vw, 56px); line-height: 1.08; margin: 0 0 16px;
  font-weight: 800; letter-spacing: -.02em; color: var(--navy);
}
.hero .sub { font-size: clamp(16px, 1.4vw, 19px); color: var(--muted); max-width: 720px; margin: 0 0 28px; }
.hero .ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 36px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
@media (max-width: 880px) { .hero-grid { grid-template-columns: 1fr; gap: 32px; } }
.hero-compact { padding: 56px 0 40px; border-bottom: 1px solid var(--border); }
.hero-compact h1 { font-size: clamp(28px, 3.6vw, 44px); line-height: 1.1; margin: 0 0 12px; font-weight: 800; letter-spacing: -.02em; color: var(--navy); }
.hero-compact .sub { font-size: 17px; color: var(--muted); max-width: 720px; margin: 0; }

/* ---------------- Terminal block ---------------- */
.terminal {
  background: var(--bg-code); border-radius: var(--radius);
  padding: 18px 20px; color: #e8edf3; font-family: 'JetBrains Mono', monospace; font-size: 14px;
  box-shadow: 0 12px 28px rgba(15,42,68,.2);
}
.terminal .row { display: flex; gap: 6px; margin-bottom: 12px; }
.terminal .dot { width: 10px; height: 10px; border-radius: 999px; }
.d-r { background: #ff5f57; } .d-y { background: #febc2e; } .d-g { background: #28c840; }
.terminal .prompt { color: #7aa9d4; }
.terminal .out { color: #b6c2cc; display: block; margin-top: 4px; }

/* ---------------- Trust strip ---------------- */
.strip { background: var(--bg-alt); padding: 28px 0; border-bottom: 1px solid var(--border); }
.strip .row { display: flex; gap: 40px; justify-content: center; align-items: center; flex-wrap: wrap; }
.strip .item { color: var(--muted); font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }

/* ---------------- Section base ---------------- */
section { padding: 80px 0; }
.section-eyebrow { color: var(--accent); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 12px; }
.section-title { font-size: clamp(26px, 3vw, 38px); font-weight: 800; margin: 0 0 14px; letter-spacing: -.01em; color: var(--navy); }
.section-sub { color: var(--muted); font-size: 17px; max-width: 720px; margin: 0 0 40px; }
.bg-alt { background: var(--bg-alt); }

/* ---------------- Architecture tier cards ---------------- */
.arch {
  background: linear-gradient(180deg, #fff 0%, var(--bg-alt) 100%);
  border: 1px solid var(--border); border-radius: 14px;
  padding: 36px; display: grid; gap: 14px;
}
.tier { border: 1px solid var(--border); border-radius: 10px; padding: 16px 18px; background: #fff; }
.tier-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.tier-head .chip { font-size: 11px; padding: 3px 10px; border-radius: 999px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.chip-hot { background: var(--navy); color: #fff; }
.chip-cold { background: var(--muted); color: #fff; }
.chip-ctrl { background: var(--accent); color: #fff; }
.chip-base { background: var(--green); color: #fff; }
.tier-desc { color: var(--muted); font-size: 14px; }
.chips-row { display: flex; gap: 8px; flex-wrap: wrap; }
.svc-chip { background: var(--bg-alt); border: 1px solid var(--border); padding: 6px 12px; border-radius: 8px; font-size: 13px; font-weight: 500; color: var(--navy); }

/* ---------------- Steps ---------------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }
.step { border: 1px solid var(--border); border-radius: 12px; padding: 24px; background: #fff; }
.step .num {
  display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 9px;
  background: var(--navy-100); color: var(--navy); font-weight: 800; font-size: 16px; margin-bottom: 14px;
}
.step h3 { margin: 0 0 8px; font-size: 17px; color: var(--navy); }
.step p { margin: 0 0 12px; color: var(--muted); font-size: 14.5px; }
.step pre { font-size: 12.5px; padding: 12px 14px; margin: 0; }

/* ---------------- Services catalogue ---------------- */
.cat-group { margin-bottom: 48px; }
.cat-group-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.cat-group h2 { font-size: 22px; font-weight: 700; color: var(--navy); margin: 0; letter-spacing: -.01em; }
.cat-group-tag { color: var(--muted); font-size: 13px; font-style: italic; }
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 960px) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .services { grid-template-columns: 1fr; } }
.svc { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 22px; transition: border-color .15s ease, box-shadow .15s ease; }
.svc:hover { border-color: var(--navy); box-shadow: 0 8px 24px rgba(15,42,68,.06); }
.svc .head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; gap: 8px; }
.svc h3 { margin: 0; font-size: 16px; color: var(--navy); }
.svc .badges { display: flex; gap: 6px; }
.svc .badge { font-size: 10.5px; padding: 3px 8px; border-radius: 999px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.badge-default { background: var(--green-100); color: var(--green); }
.badge-alt { background: var(--bg-alt); color: var(--muted); border: 1px solid var(--border); }
.svc p { margin: 0 0 10px; color: var(--muted); font-size: 14px; }
.svc .cfg { font-size: 12.5px; color: var(--navy); background: var(--navy-100); padding: 8px 10px; border-radius: 8px; font-family: 'JetBrains Mono', monospace; }
.svc .cfg strong { color: var(--accent); }

/* ---------------- Need Help CTA ---------------- */
.help {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-700) 100%);
  color: #fff; border-radius: 16px; padding: 56px 40px; text-align: center;
}
.help h2 { font-size: clamp(24px, 2.6vw, 32px); margin: 0 0 10px; color: #fff; font-weight: 800; letter-spacing: -.01em; }
.help p { margin: 0 0 24px; color: #c5d0dc; font-size: 17px; }
.help .lines { display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }
.help .lines a { color: #fff; background: rgba(255,255,255,.08); padding: 10px 18px; border-radius: 8px; border: 1px solid rgba(255,255,255,.16); font-weight: 500; }
.help .lines a:hover { background: rgba(255,255,255,.14); text-decoration: none; }

/* ---------------- Auth (signup / login) ---------------- */
.auth-wrap { min-height: calc(100vh - 80px); display: grid; place-items: center; padding: 48px 24px; background: var(--bg-alt); }
.auth-card { width: 100%; max-width: 440px; background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 40px 32px; box-shadow: 0 12px 40px rgba(15,42,68,.06); }
.auth-card .brand { justify-content: center; margin-bottom: 24px; }
.auth-card h1 { font-size: 24px; margin: 0 0 6px; color: var(--navy); font-weight: 800; letter-spacing: -.01em; text-align: center; }
.auth-card .sub { color: var(--muted); font-size: 14.5px; text-align: center; margin: 0 0 28px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--text-2); margin-bottom: 6px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-family: inherit; font-size: 14.5px; color: var(--text); background: #fff;
  transition: border-color .12s ease, box-shadow .12s ease;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(15,42,68,.1);
}
.form-group textarea { min-height: 120px; resize: vertical; }
.form-group .hint { font-size: 12px; color: var(--muted); margin-top: 4px; }

/* Derived (read-only) fields — values OrcheStack computes from other inputs
   (e.g. a Postgres connection URL built from warehouse credentials) or
   standard project-relative paths the operator should not edit manually.
   The input is non-editable but still submits its value to the backend. */
.form-group-derived input[readonly] {
  background: var(--bg-alt, #f7f8fa);
  color: var(--text-2);
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 13px;
  cursor: not-allowed;
  border-style: dashed;
}
.form-group-derived input[readonly]:focus {
  border-color: var(--border);
  box-shadow: none;
}
.derived-tag {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 7px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--accent, #b45309);
  background: var(--accent-100, #fef3e2);
  border-radius: 999px;
  vertical-align: middle;
}

/* Inputs paired with an action button (e.g. "Generate" for secrets).
   Flex layout so the input flexes to fill width and the button hugs its
   own content. align-items: stretch keeps the button the same height as
   the input across browsers. */
.input-with-action {
  display: flex;
  gap: 8px;
  align-items: stretch;
}
.input-with-action input { flex: 1 1 auto; min-width: 0; }
.input-with-action .btn-generate { flex: 0 0 auto; white-space: nowrap; }

/* Brief success state after the user clicks Generate. The button text is
   swapped to "Generated ✓" by JS and this class adds the colour cue —
   useful because password inputs hide the generated value. */
.btn-generate.btn-generated {
  background: var(--green-100, #e6f7ec);
  color: var(--green, #1f8a4d);
  border-color: var(--green, #1f8a4d);
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-submit { width: 100%; justify-content: center; padding: 12px; font-size: 15px; }
.auth-card .alt { text-align: center; margin-top: 20px; font-size: 14px; color: var(--muted); }
.auth-card .callout {
  background: var(--green-100); border: 1px solid var(--green); color: var(--green);
  padding: 12px 14px; border-radius: var(--radius-sm); font-size: 13.5px; margin-bottom: 20px;
}
.auth-card .callout strong { font-weight: 700; }

/* ---------------- Contact ---------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info h3 { color: var(--navy); margin: 0 0 8px; font-size: 16px; letter-spacing: -.01em; }
.contact-info p { color: var(--muted); margin: 0 0 24px; font-size: 14.5px; }
.contact-info .line { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 10px; }
.contact-info .line .icon { width: 36px; height: 36px; border-radius: 8px; background: var(--navy); color: #fff; display: grid; place-items: center; font-size: 16px; font-weight: 700; }
.contact-info .line .val { font-weight: 600; color: var(--navy); }
.contact-info .line .lbl { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 2px; }

/* ---------------- Docs layout ---------------- */
.docs-layout { display: grid; grid-template-columns: 260px 1fr 220px; min-height: calc(100vh - 65px); }
@media (max-width: 1100px) { .docs-layout { grid-template-columns: 240px 1fr; } .docs-toc { display: none; } }
@media (max-width: 760px) { .docs-layout { grid-template-columns: 1fr; } .docs-sidebar { display: none; } }
.docs-sidebar { border-right: 1px solid var(--border); background: var(--bg-alt); padding: 32px 0; position: sticky; top: 65px; height: calc(100vh - 65px); overflow-y: auto; }
.docs-sidebar .group { padding: 0 20px; margin-bottom: 24px; }
.docs-sidebar .group-title { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 10px; padding: 0 10px; }
.docs-sidebar ul { list-style: none; padding: 0; margin: 0; }
.docs-sidebar li a { display: block; padding: 7px 10px; font-size: 14px; color: var(--text-2); border-radius: var(--radius-sm); }
.docs-sidebar li a:hover { background: var(--border-2); color: var(--navy); text-decoration: none; }
.docs-sidebar li a.active { background: var(--navy); color: #fff; font-weight: 500; }
.docs-main { padding: 40px 48px; max-width: 820px; }
.docs-main .breadcrumb { font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.docs-main .breadcrumb a { color: var(--muted); }
.docs-main .breadcrumb a:hover { color: var(--navy); }
.docs-main h1 { font-size: 34px; color: var(--navy); margin: 0 0 12px; font-weight: 800; letter-spacing: -.02em; }
.docs-main .lede { font-size: 18px; color: var(--muted); margin: 0 0 32px; }
.docs-main h2 { font-size: 22px; color: var(--navy); margin: 40px 0 12px; font-weight: 700; letter-spacing: -.01em; }
.docs-main h3 { font-size: 17px; color: var(--navy); margin: 28px 0 8px; font-weight: 600; }
.docs-main p { margin: 0 0 14px; font-size: 15.5px; color: var(--text-2); }
.docs-main ul, .docs-main ol { margin: 0 0 16px 0; padding-left: 24px; font-size: 15.5px; color: var(--text-2); }
.docs-main li { margin-bottom: 6px; }
.docs-main pre { margin: 16px 0 24px; }
.docs-main .callout { border-left: 4px solid var(--navy); background: var(--navy-100); padding: 14px 18px; border-radius: 0 8px 8px 0; margin: 20px 0; }
.docs-main .callout.warn { border-color: var(--accent); background: var(--accent-100); }
.docs-main .callout.info { border-color: var(--navy); background: var(--navy-100); }
.docs-main .callout p { margin: 0; }
.docs-main .callout strong { color: var(--navy); }

/* Keyboard chip — small monospace pill used in body copy to denote a
   shortcut (`<span class="kbd">g</span> <span class="kbd">c</span>`).
   The docs-search-scoped .kbd above is for the ⌘K hint in the header;
   this is the general-purpose variant for inline prose. */
.docs-main .kbd { display: inline-block; min-width: 18px; text-align: center; font-size: 12px; color: var(--text); background: #fff; border: 1px solid var(--border); border-bottom-width: 2px; border-radius: 4px; padding: 1px 6px; font-family: 'JetBrains Mono', monospace; font-weight: 600; vertical-align: 1px; }

/* Inline shell-comment styling inside <pre> blocks — used in the
   configure docs to annotate command sequences. */
.docs-main pre .comment { color: #7a8a99; }
.docs-main .next-prev { display: flex; justify-content: space-between; gap: 16px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border); }
.docs-main .next-prev a { display: block; padding: 16px 20px; border: 1px solid var(--border); border-radius: 10px; flex: 1; }
.docs-main .next-prev a:hover { border-color: var(--navy); text-decoration: none; }
.docs-main .next-prev .dir { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.docs-main .next-prev .title { display: block; color: var(--navy); font-weight: 600; margin-top: 4px; }
.docs-main .next-prev .next { text-align: right; }
.docs-toc { padding: 40px 24px; border-left: 1px solid var(--border); position: sticky; top: 65px; height: calc(100vh - 65px); overflow-y: auto; }
.docs-toc .toc-title { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 12px; }
.docs-toc ul { list-style: none; padding: 0; margin: 0; }
.docs-toc li a { display: block; padding: 4px 0; font-size: 13.5px; color: var(--text-2); border-left: 2px solid transparent; padding-left: 12px; }
.docs-toc li a:hover { color: var(--navy); text-decoration: none; }
.docs-toc li a.active { color: var(--navy); border-color: var(--navy); font-weight: 500; }

/* Docs search bar in header */
.docs-search { flex: 1; max-width: 320px; position: relative; }
.docs-search input { width: 100%; padding: 8px 36px 8px 14px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg-alt); font-family: inherit; font-size: 13.5px; color: var(--text-2); }
.docs-search input:focus { outline: none; border-color: var(--navy); background: #fff; }
.docs-search .kbd { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font-size: 11px; color: var(--muted); background: #fff; border: 1px solid var(--border); border-radius: 4px; padding: 2px 6px; font-family: 'JetBrains Mono', monospace; }
@media (max-width: 780px) { .docs-search { display: none; } }

/* Docs landing cards */
.doc-cat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 24px; }
@media (max-width: 760px) { .doc-cat-grid { grid-template-columns: 1fr; } }
.doc-cat { display: block; padding: 22px; border: 1px solid var(--border); border-radius: 12px; background: #fff; transition: border-color .15s ease, box-shadow .15s ease; }
.doc-cat:hover { border-color: var(--navy); box-shadow: 0 6px 18px rgba(15,42,68,.06); text-decoration: none; }
.doc-cat .ico { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; background: var(--navy-100); color: var(--navy); font-weight: 800; margin-bottom: 12px; }
.doc-cat h3 { margin: 0 0 6px; color: var(--navy); font-size: 16px; }
.doc-cat p { margin: 0; color: var(--muted); font-size: 14px; }

/* ---------------- Footer ---------------- */
footer { border-top: 1px solid var(--border); padding: 32px 0; color: var(--muted); font-size: 14px; }
.foot { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }

/* ---------------- Setup wizard ---------------- */
.setup-wrap { min-height: calc(100vh - 80px); background: var(--bg-alt); padding: 48px 24px; }
.setup-card { max-width: 720px; margin: 0 auto; background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 48px; box-shadow: 0 12px 40px rgba(15,42,68,.06); }
.setup-card .eyebrow { color: var(--accent); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 12px; }
.setup-card h1 { font-size: clamp(26px, 3.2vw, 38px); color: var(--navy); margin: 0 0 12px; font-weight: 800; letter-spacing: -.01em; }
.setup-card .sub { font-size: 16.5px; color: var(--muted); margin: 0 0 32px; line-height: 1.6; }

/* Step indicator (1 / 4, 2 / 4, ...) */
.step-indicator { display: flex; align-items: center; gap: 8px; margin-bottom: 24px; font-size: 12px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.step-indicator .dots { display: inline-flex; gap: 6px; }
.step-indicator .dot { width: 8px; height: 8px; border-radius: 999px; background: var(--border); }
.step-indicator .dot.done { background: var(--green); }
.step-indicator .dot.active { background: var(--navy); transform: scale(1.3); }

/* Preview steps list on welcome */
.preview-steps { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 28px 0 36px; }
@media (max-width: 540px) { .preview-steps { grid-template-columns: 1fr; } }
.preview-step { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border: 1px solid var(--border); border-radius: 10px; background: #fff; }
.preview-step .num { flex-shrink: 0; width: 28px; height: 28px; border-radius: 7px; background: var(--navy-100); color: var(--navy); display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.preview-step h4 { margin: 0 0 4px; font-size: 14.5px; color: var(--navy); }
.preview-step p { margin: 0; font-size: 12.5px; color: var(--muted); line-height: 1.45; }

/* Select page — service picker */
.picker { display: grid; gap: 16px; margin-bottom: 28px; }
.picker-row { display: grid; grid-template-columns: 200px 1fr; gap: 16px; align-items: center; padding: 16px; border: 1px solid var(--border); border-radius: 10px; }
@media (max-width: 640px) { .picker-row { grid-template-columns: 1fr; } }
.picker-row .label { font-weight: 600; color: var(--navy); font-size: 14px; }
.picker-row .label small { display: block; font-weight: 400; color: var(--muted); font-size: 12px; margin-top: 2px; }
.picker-row select { width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; font-family: inherit; font-size: 14px; color: var(--text); background: #fff; }
.picker-row select:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(15,42,68,.1); }
.selection-summary { background: var(--navy-100); border: 1px solid var(--navy); color: var(--navy); padding: 16px; border-radius: 10px; margin-bottom: 28px; font-size: 14px; }
.selection-summary strong { display: block; margin-bottom: 6px; }

/* Configure wizard — per-service tabs */
.svc-tabs { display: flex; gap: 4px; margin-bottom: 28px; border-bottom: 1px solid var(--border); padding-bottom: 0; overflow-x: auto; }
.svc-tab { padding: 10px 14px; font-size: 13px; color: var(--muted); border-bottom: 2px solid transparent; cursor: pointer; white-space: nowrap; font-weight: 500; }
.svc-tab.active { color: var(--navy); border-color: var(--navy); font-weight: 700; }
.svc-tab.done { color: var(--green); }
.svc-tab.done::before { content: "✓ "; }
.svc-panel { display: none; }
.svc-panel.active { display: block; }
.svc-panel h2 { font-size: 22px; color: var(--navy); margin: 0 0 8px; }
.svc-panel .svc-desc { color: var(--muted); font-size: 14px; margin: 0 0 24px; }

/* Deploying screen */
.deploy-wrap { min-height: 100vh; background: linear-gradient(180deg, #fff 0%, var(--bg-alt) 100%); display: grid; place-items: center; padding: 48px 24px; }
.deploy-card { max-width: 600px; width: 100%; text-align: center; }
.deploy-brand { justify-content: center; margin-bottom: 32px; }
.deploy-h1 { font-size: clamp(26px, 3vw, 36px); color: var(--navy); margin: 0 0 12px; font-weight: 800; letter-spacing: -.01em; }
.deploy-status { color: var(--muted); font-size: 15.5px; min-height: 24px; margin: 0 0 40px; font-variant-numeric: tabular-nums; }
.spinner { width: 72px; height: 72px; margin: 16px auto 32px; border-radius: 50%; border: 5px solid var(--border); border-top-color: var(--navy); animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.progress-bar { width: 100%; max-width: 320px; margin: 0 auto 40px; height: 6px; background: var(--border); border-radius: 999px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--navy); border-radius: 999px; width: 0; transition: width .6s ease; }
.joke-card { margin-top: 32px; background: var(--navy-100); border: 1px solid var(--navy); border-radius: 12px; padding: 24px 28px; text-align: left; }
.joke-card .joke-label { font-size: 11px; color: var(--navy); font-weight: 700; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 8px; }
.joke-card .joke-text { font-size: 15.5px; color: var(--text); line-height: 1.5; margin: 0; min-height: 48px; }

/* Recovery footer — appears below the joke card when a deploy fails so the
   operator can step back into the wizard to fix bad input rather than
   restarting the whole signup flow. Hidden by default via the `hidden`
   attribute on the container element. */
.recovery-actions { display: flex; justify-content: center; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.recovery-actions .btn { min-width: 180px; justify-content: center; }
.btn-tertiary { background: transparent; color: var(--muted); border: 1px solid var(--border); }
.btn-tertiary:hover { color: var(--text); border-color: var(--muted); }

/* Live password-strength indicator — shown beneath every password input
   in the configure wizard. Default state is neutral muted; flips to a
   warning amber while too short, and to a confirming green once the
   minimum length is reached. The JS toggles .pw-weak / .pw-ok. */
.pw-strength {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
  font-variant-numeric: tabular-nums;
}
.pw-strength .pw-len { font-weight: 600; }
.pw-strength.pw-weak { color: var(--accent); }
.pw-strength.pw-ok   { color: #1d7a4f; }
.pw-strength.pw-ok::after { content: " ✓"; }

/* Setup navigation buttons */
.setup-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.setup-nav .btn { min-width: 120px; justify-content: center; }
.setup-nav .spacer { flex: 1; }

/* ---------------- Modal (coming-soon notifier) ---------------- */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(15, 42, 68, .55);
  display: none; place-items: center;
  z-index: 100;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  padding: 24px;
}
.modal-overlay.show { display: grid; animation: modal-fade-in .2s ease; }
@keyframes modal-fade-in { from { opacity: 0; } to { opacity: 1; } }
.modal {
  background: #fff;
  max-width: 560px; width: 100%;
  border-radius: 14px;
  padding: 36px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .25);
  animation: modal-lift-in .25s ease;
}
@keyframes modal-lift-in {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.modal .badge-cs {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--accent-100); color: var(--accent);
  font-size: 11.5px; font-weight: 700;
  padding: 5px 12px; border-radius: 999px;
  letter-spacing: .08em; text-transform: uppercase;
  margin-bottom: 16px;
}
.modal .badge-cs::before { content: "●"; font-size: 10px; }
.modal h2 { font-size: 22px; margin: 0 0 8px; color: var(--navy); font-weight: 800; letter-spacing: -.01em; }
.modal .modal-sub { color: var(--muted); font-size: 14.5px; margin: 0 0 24px; line-height: 1.55; }
.modal .modal-sub strong { color: var(--navy); }
.modal .reasons-title { font-weight: 700; color: var(--navy); font-size: 13.5px; margin-bottom: 12px; }
.modal ul.reasons { list-style: none; padding: 0; margin: 0 0 28px; }
.modal ul.reasons li {
  position: relative; padding-left: 26px; margin-bottom: 10px;
  font-size: 14px; color: var(--text-2); line-height: 1.55;
}
.modal ul.reasons li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--green); font-weight: 700; font-size: 15px;
}
.modal .modal-footer {
  display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap;
}
.modal .modal-footer .btn { min-width: 160px; justify-content: center; }

/* ---------------- Info icons with hover tooltips ---------------- */
.info-icon {
  display: inline-grid;
  place-items: center;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--navy-100);
  color: var(--navy);
  font-size: 10.5px;
  font-weight: 700;
  cursor: help;
  margin-left: 8px;
  line-height: 1;
  vertical-align: middle;
  position: relative;
  user-select: none;
  transition: background .12s ease, color .12s ease;
}
.info-icon:hover,
.info-icon:focus {
  background: var(--navy);
  color: #fff;
  outline: none;
}
.info-icon .info-tip {
  display: none;
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--text);
  color: #fff;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 400;
  font-family: inherit;
  font-style: normal;
  line-height: 1.5;
  width: max-content;
  max-width: 280px;
  white-space: normal;
  text-align: left;
  z-index: 10;
  pointer-events: none;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .25);
}
.info-icon .info-tip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--text);
}
.info-icon:hover .info-tip,
.info-icon:focus .info-tip { display: block; }

/* ---------------- None-consequences warning panel ---------------- */
.none-warnings {
  background: var(--accent-100);
  border: 1px solid var(--accent);
  border-radius: 10px;
  padding: 20px 24px;
  margin-bottom: 32px;
}
.none-warnings h3 {
  font-size: 13px;
  color: var(--accent);
  margin: 0 0 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
}
.none-warnings ul {
  margin: 0 0 12px;
  padding-left: 20px;
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.55;
}
.none-warnings li { margin-bottom: 8px; }
.none-warnings li:last-child { margin-bottom: 0; }
.none-warnings li strong { color: var(--navy); }
.none-warnings .footnote {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  padding-top: 10px;
  border-top: 1px solid rgba(230, 126, 34, .3);
}

/* ---------------- Pipeline diagram (home page) ---------------- */
.pipeline-section { background: var(--bg-alt); border-bottom: 1px solid var(--border); }
.pipeline-head { text-align: center; margin-bottom: 40px; }
.pipeline-head .section-title,
.pipeline-head .section-sub { text-align: center; margin-left: auto; margin-right: auto; }
.pipeline-head .section-sub { margin-bottom: 0; }
.pipeline-note { font-size: 13.5px; margin-top: 10px; }

/* Grid lays out the 4 logical "layers":
     top        - orchestrator (spans)
     mid        - transformation | + | quality
     flow       - sources | ingest | storage | viz, linked by arrows
     lake       - data lake, linked to storage via a vertical arrow
   Using CSS grid with named areas so the orchestrator/transform/quality
   land above the correct column in the flow row below. */
.pipeline-diagram {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: auto auto auto auto;
  grid-template-areas:
    ".       .        orch     orch    .    "
    ".       .        transf   qual    .    "
    "sources ingest   storage  viz     .    "
    ".       .        lake     .       .    ";
  gap: 18px 16px;
  max-width: 1080px;
  margin: 0 auto;
  align-items: stretch;
  position: relative;
}

.pipe-cell { display: flex; flex-direction: column; }
.pipe-cell.area-orch    { grid-area: orch; }
.pipe-cell.area-transf  { grid-area: transf; }
.pipe-cell.area-qual    { grid-area: qual; }
.pipe-cell.area-sources { grid-area: sources; }
.pipe-cell.area-ingest  { grid-area: ingest; position: relative; }
.pipe-cell.area-storage { grid-area: storage; position: relative; }
.pipe-cell.area-viz     { grid-area: viz; position: relative; }
.pipe-cell.area-lake    { grid-area: lake; position: relative; }

/* Each "band" — a label strip above a white card containing the tool */
.pipe-band {
  background: #fff;
  border-radius: 12px;
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(15,42,68,.04);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.pipe-band-label {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .01em;
  color: var(--text-2);
  padding: 8px 14px;
  text-align: center;
}
.pipe-band-body {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px 14px;
  gap: 10px;
}

/* Per-layer label background tints */
.pipe-band.label-orch    .pipe-band-label { background: #eef2ff; color: #4338ca; }
.pipe-band.label-transf  .pipe-band-label { background: #fef3e2; color: #b45309; }
.pipe-band.label-qual    .pipe-band-label { background: #fdf2f8; color: #be185d; }
.pipe-band.label-sources .pipe-band-label { background: #f1f5f9; color: #334155; }
.pipe-band.label-ingest  .pipe-band-label { background: #f5f3ff; color: #6d28d9; }
.pipe-band.label-storage .pipe-band-label { background: #eff6ff; color: #1d4ed8; }
.pipe-band.label-viz     .pipe-band-label { background: #ecfdf5; color: #047857; }
.pipe-band.label-lake    .pipe-band-label { background: #f0f9ff; color: #0369a1; }

/* Tool tile — logo + name side-by-side */
.pipe-tool {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--navy);
  font-size: 15px;
}
.pipe-tool img {
  height: 24px;
  width: 24px;
  object-fit: contain;
}
.pipe-tool .pipe-tool-note {
  display: block;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--muted);
  margin-top: 2px;
}

/* Data-sources tile has stacked text (no logo) */
.pipe-sources-copy {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.4;
}
.pipe-sources-copy strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}

/* Arrows — absolute-positioned nubs on the right edge of ingest/storage.
   They sit in the gutter between grid cells, so they don't shift layout. */
.pipe-arrow-right {
  position: absolute;
  right: -14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted-2);
  font-size: 16px;
  font-weight: 700;
  pointer-events: none;
  z-index: 2;
}
/* Vertical arrow between storage and lake */
.pipe-arrow-down {
  position: absolute;
  left: 50%;
  bottom: -16px;
  transform: translateX(-50%);
  color: var(--muted-2);
  font-size: 14px;
  font-weight: 700;
  pointer-events: none;
  z-index: 2;
}

/* "+" between transformation and quality. Stacks across cols 3-4 in row 2;
   pointer-events:none keeps it from blocking the bands beneath it. The
   inner span paints an ink mark in the 16px gutter between the two cells. */
.pipe-plus {
  grid-row: 2;
  grid-column: 3 / span 2;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 800;
  color: var(--muted-2);
  z-index: 3;
}
.pipe-plus span {
  background: var(--bg-alt);
  padding: 0 6px;
  line-height: 1;
}

.pipeline-footer {
  text-align: center;
  margin-top: 32px;
  font-size: 14px;
}

/* Responsive — collapse the grid into a single column on mobile */
@media (max-width: 820px) {
  .pipeline-diagram {
    grid-template-columns: 1fr;
    grid-template-areas:
      "orch"
      "transf"
      "qual"
      "sources"
      "ingest"
      "storage"
      "lake"
      "viz";
    gap: 14px;
  }
  .pipe-plus { display: none; }
  .pipe-arrow-right,
  .pipe-arrow-down { display: none; }
}

/* ---------------- Nav social icons (GitHub / Discord) ---------------- */
.nav-social {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.nav-icon {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  color: var(--text-2);
  transition: background .12s ease, color .12s ease;
}
.nav-icon:hover {
  background: var(--bg-alt);
  color: var(--navy);
  text-decoration: none;
}
.nav-icon svg { width: 18px; height: 18px; }
@media (max-width: 780px) {
  .nav-social { display: none; }
}

/* ---------------- Sidetrek-style 4-step install section ---------------- */
.steps4 {
  display: flex;
  flex-direction: column;
  gap: 56px;
  max-width: 1040px;
  margin: 0 auto;
  position: relative;
}
.steps4::before {
  /* Vertical connecting line running down the left side through the
     centres of the step-number circles. Stops before last row. */
  content: "";
  position: absolute;
  left: 15px;
  top: 28px;
  bottom: 28px;
  width: 1px;
  background: var(--border);
  z-index: 0;
}
.step4 {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(320px, 1.4fr);
  gap: 36px;
  align-items: start;
  position: relative;
  z-index: 1;
}
@media (max-width: 880px) {
  .step4 { grid-template-columns: 1fr; gap: 16px; }
  .steps4::before { display: none; }
}
.step4-left {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: start;
}
.step4-num {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--border);
  color: var(--text-2);
  font-weight: 600;
  font-size: 13px;
  position: relative;
  z-index: 2;
  flex-shrink: 0;
}
.step4-copy h3 {
  margin: 4px 0 8px;
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
}
.step4-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}
.step4-right { min-width: 0; }

/* OS-tabbed terminal */
.os-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 0;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  scrollbar-width: none;
}
.os-tabs::-webkit-scrollbar { display: none; }
.os-tab {
  background: transparent;
  border: 0;
  padding: 10px 16px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  white-space: nowrap;
  transition: color .12s ease, border-color .12s ease;
}
.os-tab:hover { color: var(--navy); }
.os-tab.active {
  color: var(--navy);
  border-bottom-color: var(--navy);
}
.os-panel { display: none; }
.os-panel.active { display: block; }

/* Terminal variant used inside step-right */
.term-block {
  background: #0f1a2a;
  color: #e8edf3;
  border-radius: 10px;
  padding: 16px 20px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 13.5px;
  line-height: 1.65;
  overflow-x: auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  box-shadow: 0 8px 24px rgba(15,42,68,.15);
}
.term-block pre {
  background: transparent;
  padding: 0;
  margin: 0;
  color: inherit;
  font-size: inherit;
  line-height: inherit;
  flex: 1;
}
.term-block .copy-btn {
  background: transparent;
  border: 0;
  color: #7a8a99;
  cursor: pointer;
  padding: 2px;
  flex-shrink: 0;
  border-radius: 4px;
  transition: color .12s ease, background .12s ease;
}
.term-block .copy-btn:hover { color: #e8edf3; background: rgba(255,255,255,.08); }
.term-block .copy-btn svg { width: 16px; height: 16px; }
.term-block .prompt-line { color: #7aa9d4; }
.term-block .comment { color: #7a8a99; }

/* Screenshot variant for the last step */
.step4-screenshot {
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15,42,68,.08);
}
.step4-screenshot img {
  display: block;
  width: 100%;
  height: auto;
}
.step4-screenshot-placeholder {
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #4338ca;
  font-weight: 600;
  font-size: 14px;
  text-align: center;
  padding: 24px;
  gap: 6px;
}
.step4-screenshot-title {
  font-weight: 600;
  font-size: 14px;
  color: #4338ca;
}
.step4-screenshot-label {
  font-weight: 500;
  color: var(--muted);
  font-size: 12.5px;
}

/* ---------------- Hero background animation (data movement) ---------------- */
/* Place tool logos and animated "data packet" dots behind the hero content.
   Logos drift slowly (22s) so the eye reads them as texture, not motion.
   Dots fade in, travel a short path, fade out — suggesting data flowing
   through the stack without pulling focus from the hero copy. */
.hero { position: relative; overflow: hidden; }
.hero .wrap { position: relative; z-index: 1; }

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  /* Soft radial wash so dots and logos fade near edges */
  mask-image: radial-gradient(ellipse at center, #000 55%, transparent 95%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 55%, transparent 95%);
}

.hero-bg-logo {
  position: absolute;
  width: 44px;
  height: 44px;
  opacity: 0.14;
  animation: heroFloat 22s ease-in-out infinite;
}
.hero-bg-logo img { width: 100%; height: 100%; object-fit: contain; display: block; }

@keyframes heroFloat {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25%      { transform: translate(-8px, 10px) rotate(-4deg); }
  50%      { transform: translate(6px, -8px) rotate(3deg); }
  75%      { transform: translate(10px, 6px) rotate(-2deg); }
}

/* Scatter positions — chosen to frame the hero copy without overlapping it */
.hero-bg-logo.l1 { top: 12%; left: 4%;  animation-delay:  0s;  width: 52px; height: 52px; }
.hero-bg-logo.l2 { top: 62%; left: 8%;  animation-delay: -5s;  width: 40px; height: 40px; }
.hero-bg-logo.l3 { top: 34%; left: 24%; animation-delay:-11s;  width: 36px; height: 36px; }
.hero-bg-logo.l4 { top: 14%; left: 46%; animation-delay: -3s;  width: 38px; height: 38px; }
.hero-bg-logo.l5 { top: 74%; left: 42%; animation-delay: -9s;  width: 42px; height: 42px; }
.hero-bg-logo.l6 { top: 20%; left: 78%; animation-delay:-15s;  width: 44px; height: 44px; }
.hero-bg-logo.l7 { top: 66%; left: 82%; animation-delay: -7s;  width: 40px; height: 40px; }

/* Animated data packets — small brand-coloured dots that travel a short
   horizontal path, suggesting records flowing through the pipeline. */
.hero-bg-dot {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  opacity: 0;
  animation: heroFlow 8s linear infinite;
  box-shadow: 0 0 10px currentColor;
}
@keyframes heroFlow {
  0%   { opacity: 0;   transform: translate(0, 0); }
  12%  { opacity: 0.65; }
  88%  { opacity: 0.65; }
  100% { opacity: 0;   transform: translate(var(--dx, 220px), var(--dy, 0px)); }
}
.hero-bg-dot.d1 { top: 30%; left: 10%; --dx: 240px; --dy:  18px; animation-delay: 0s;   color: #615eff; background: #615eff; }
.hero-bg-dot.d2 { top: 56%; left: 22%; --dx: 210px; --dy: -28px; animation-delay: 2s;   color: #FF694A; background: #FF694A; }
.hero-bg-dot.d3 { top: 22%; left: 48%; --dx: 190px; --dy:  34px; animation-delay: 4.2s; color: #1d4ed8; background: #1d4ed8; }
.hero-bg-dot.d4 { top: 68%; left: 50%; --dx: 220px; --dy: -18px; animation-delay: 6s;   color: #047857; background: #047857; }
.hero-bg-dot.d5 { top: 42%; left: 72%; --dx:-170px; --dy:  28px; animation-delay: 3.5s; color: #C72E49; background: #C72E49; }
.hero-bg-dot.d6 { top: 78%; left: 64%; --dx: 140px; --dy: -38px; animation-delay: 7.5s; color: #017CEE; background: #017CEE; }

/* Hide the animation on small screens (it competes with the collapsed hero)
   and honour users who prefer reduced motion. */
@media (max-width: 880px) { .hero-bg { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .hero-bg-logo, .hero-bg-dot { animation: none; }
  .hero-bg-dot { opacity: 0.4; }
}

/* ---------------- Final CTA (closing section on home) ---------------- */
.final-cta { padding: 40px 0 80px; }
.final-cta-card {
  background: #eef2f7;
  border-radius: 16px;
  padding: clamp(56px, 9vw, 96px) clamp(24px, 5vw, 48px);
  text-align: center;
}
.final-cta-card h2 {
  font-size: clamp(26px, 3.4vw, 40px);
  font-weight: 800;
  color: var(--navy);
  margin: 0 auto 14px;
  max-width: 720px;
  line-height: 1.2;
  letter-spacing: -.015em;
}
.final-cta-card .lede {
  color: var(--muted);
  font-size: 16.5px;
  margin: 0 0 32px;
}
.final-cta-buttons {
  display: inline-flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
