/* ==========================================================
   Cloudsoftera — site styles (all pages)
   One family (Schibsted Grotesk), navy ink on cool paper.
   The brand gradient is reserved for the "live board" edge.
   ========================================================== */

:root {
  --ink: #0F172A;
  --ink-2: #1E293B;
  --ink-soft: #334155;
  --muted: #556070;
  --paper: #F5F7FA;
  --white: #FFFFFF;
  --line: #DDE2EA;
  --line-strong: #C7CFDB;
  --on-ink: #CBD5E1;
  --on-ink-line: rgba(255, 255, 255, .16);
  --live: #15803D;
  --live-dot: #22C55E;
  --live-bg: #ECFDF3;
  --soon: #92400E;
  --soon-bg: #FEF3C7;
  --error: #B42318;
  --focus: #6366F1;
  --brand-gradient: linear-gradient(90deg, #F59E0B 0%, #F97316 30%, #EC4899 65%, #6366F1 100%);
  --brand-gradient-deep: linear-gradient(90deg, #C2410C 0%, #BE185D 50%, #4338CA 100%);
  --amber: #F59E0B; --orange: #F97316; --pink: #EC4899; --indigo: #6366F1;
  --tint-amber: #FEF3C7; --amber-ink: #B45309;
  --tint-orange: #FFEDD5; --orange-ink: #C2410C;
  --tint-pink: #FCE7F3; --pink-ink: #BE185D;
  --tint-indigo: #E0E7FF; --indigo-ink: #4338CA;

  --font: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(72px, 10vw, 128px);
  --header-h: 76px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.6;
  color: var(--ink); background: var(--paper);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p, figure, blockquote, dl, dd { margin: 0; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-weight: 700; letter-spacing: -0.025em; text-wrap: balance; }
h2 { font-size: clamp(1.875rem, 3.4vw, 2.75rem); line-height: 1.1; }
h3 { font-size: 1.125rem; line-height: 1.3; letter-spacing: -0.01em; }
p { text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--white); padding: 10px 16px; border-radius: var(--r-sm);
  text-decoration: none; font-weight: 600;
}
.skip:focus { top: 16px; }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: var(--r-sm); border: 1px solid transparent;
  font-weight: 600; font-size: 1rem; letter-spacing: -0.005em; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}
.btn:active { transform: translateY(1px); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: .9375rem; }
.btn-block { width: 100%; }
.btn-ink { background: var(--ink); color: var(--white); }
.btn-ink:hover { background: var(--ink-soft); }
.btn-line { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-line:hover { border-color: var(--ink); }
.btn-light { background: var(--white); color: var(--ink); }
.btn-light:hover { background: #E2E8F0; }
.btn-line-light { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, .35); }
.btn-line-light:hover { border-color: var(--white); }
.btn[aria-busy="true"] { opacity: .7; pointer-events: none; }

.link {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; color: var(--ink);
  border-bottom: 1.5px solid var(--line-strong); padding-bottom: 2px; transition: border-color .18s ease, gap .18s ease;
  background: none; border-top: 0; border-left: 0; border-right: 0; cursor: pointer; font-size: inherit;
}
.link:hover { border-bottom-color: var(--ink); gap: 12px; }
.on-ink .link { color: var(--white); border-bottom-color: rgba(255, 255, 255, .35); }
.on-ink .link:hover { border-bottom-color: var(--white); }

/* ---------- Status chips (used across the site) ---------- */
.status, .badge-live, .badge-soon {
  display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
  font-size: .8125rem; font-weight: 600; border-radius: 999px; padding: 4px 10px 4px 9px;
}
.status, .badge-live { color: var(--live); background: var(--live-bg); }
.status::before, .badge-live::before, .dot { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--live-dot); flex: none; }
.badge-soon { color: var(--soon); background: var(--soon-bg); }
.badge-soon::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #F59E0B; }
.tag {
  display: inline-flex; align-items: center; gap: 6px; font-size: .8125rem; font-weight: 600; color: var(--ink-soft);
  background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px;
}

/* ---------- Header: floating glass bar ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; padding-top: 12px; pointer-events: none;
  transition: transform .38s cubic-bezier(.2, .7, .2, 1);
}
.site-header.is-hidden { transform: translateY(calc(-100% - 6px)); }
.header-bar {
  position: relative; pointer-events: auto; display: flex; align-items: center; gap: 20px; min-height: 64px;
  padding: 0 10px 0 18px; border-radius: 16px; background: rgba(255, 255, 255, .8);
  backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px);
  border: 1px solid rgba(221, 226, 234, .9);
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 14px 34px -18px rgba(15, 23, 42, .22);
  transition: background-color .2s ease, box-shadow .2s ease;
}
.header-bar::after {
  content: ""; position: absolute; left: 18px; right: 18px; bottom: -1px; height: 2px; border-radius: 2px;
  background: var(--brand-gradient); opacity: 0; transition: opacity .25s ease;
}
.site-header.is-scrolled .header-bar { background: rgba(255, 255, 255, .94); box-shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 18px 40px -18px rgba(15, 23, 42, .3); }
.site-header.is-scrolled .header-bar::after { opacity: 1; }
.brand { display: inline-flex; flex: none; }
.brand img { height: 32px; width: auto; }
.nav { margin-left: auto; }
.nav-list { display: flex; gap: 2px; }
.nav-list a {
  position: relative; display: block; padding: 8px 12px; border-radius: 10px; text-decoration: none;
  font-weight: 500; font-size: .9688rem; color: var(--ink-soft); transition: color .15s ease, background-color .15s ease;
}
.nav-list a:hover { color: var(--ink); background: rgba(99, 102, 241, .08); }
.nav-list a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.nav-list a[aria-current="page"]::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; border-radius: 2px; background: var(--brand-gradient);
}
.nav-extra { display: none; }
.header-actions { display: flex; align-items: center; gap: 14px; flex: none; }
.header-phone { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .9375rem; text-decoration: none; font-variant-numeric: tabular-nums; }
.header-phone i { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--tint-indigo); color: var(--indigo-ink); font-size: .85rem; }
.header-bar .btn-ink { border-radius: 10px; }
.header-bar .btn-ink:hover { background: var(--brand-gradient-deep); }
.nav-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line-strong); border-radius: 10px;
  background: var(--white); cursor: pointer; position: relative; flex: none;
}
.nav-toggle span { position: absolute; left: 12px; right: 12px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .2s ease, top .2s ease; }
.nav-toggle span:first-child { top: 17px; }
.nav-toggle span:last-child { top: 25px; }
.nav-toggle[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

/* ---------- Sections ---------- */
.section { padding: var(--section) 0; }
.section-tight { padding: calc(var(--section) * .6) 0; }
.bg-white { background: var(--white); }
.ruled-y { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.on-ink { background: var(--ink); color: var(--white); }
.on-ink p { color: var(--on-ink); }
.section-head { margin-bottom: clamp(32px, 4vw, 52px); }
.section-head h2 { max-width: 18ch; }
.section-head p { color: var(--muted); max-width: 34em; font-size: 1.0625rem; margin-top: 16px; }
.section-head.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 64px; align-items: end; }
.section-head.split p { margin-top: 0; }
.on-ink .section-head p { color: var(--on-ink); }
.section-foot { margin-top: 40px; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: clamp(40px, 6vw, 80px) 0 clamp(48px, 6vw, 80px); border-bottom: 1px solid var(--line); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .9063rem; color: var(--muted); margin-bottom: 24px; }
.crumbs a { text-decoration: none; color: var(--muted); }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--line-strong); }
.crumbs [aria-current] { color: var(--ink); font-weight: 500; }
.page-hero h1 { font-size: clamp(2.5rem, 5.4vw, 4.25rem); line-height: 1; letter-spacing: -0.04em; font-weight: 800; max-width: 16ch; }
.page-lead { margin-top: 24px; font-size: 1.1875rem; color: var(--ink-soft); max-width: 36em; }
.page-hero .hero-actions { margin-top: 32px; }
.page-hero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(32px, 6vw, 88px); align-items: end; }

/* ---------- Home hero ---------- */
.hero { padding: clamp(48px, 8vw, 104px) 0 clamp(56px, 8vw, 96px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(40px, 6vw, 88px); align-items: center; }
.hero-kicker { font-weight: 600; color: var(--muted); margin-bottom: 20px; }
.hero h1 { font-size: clamp(2.75rem, 6.6vw, 5.25rem); line-height: .98; letter-spacing: -0.045em; font-weight: 800; max-width: 11ch; }
.hero-lead { margin-top: 28px; font-size: 1.1875rem; line-height: 1.6; color: var(--ink-soft); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-note { display: flex; align-items: center; gap: 8px; margin-top: 20px; font-size: .9375rem; color: var(--muted); }

/* ---------- The live board (signature element) ---------- */
.board {
  position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 28px 28px 22px; overflow: hidden; color: var(--ink);
  box-shadow: 0 1px 0 rgba(15, 23, 42, .04), 0 24px 48px -24px rgba(15, 23, 42, .22);
}
.board::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: var(--brand-gradient); }
.board-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.board-title { font-weight: 700; font-size: 1.25rem; letter-spacing: -0.015em; }
.board-host { display: inline-flex; align-items: center; gap: 6px; font-size: .875rem; color: var(--muted); text-decoration: none; }
.board-host:hover { color: var(--ink); text-decoration: underline; }
.board-host i { font-size: .75rem; }
.board-badge .dot { animation: pulse 2.4s ease-out infinite; }
.board-list li, .board-list a {
  display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 14px;
  padding: 13px 0; border-bottom: 1px solid var(--line); font-weight: 500; text-decoration: none;
}
.board-list li:has(> a) { display: block; padding: 0; }
.board-list a:hover span:nth-child(2) { text-decoration: underline; }
.board-list i { color: var(--muted); font-size: 1.05rem; }
.board-more { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; font-weight: 600; font-size: .9375rem; text-decoration: none; }
.board-more:hover { text-decoration: underline; }

.js .board[data-boot] .board-list .status { opacity: 0; transform: translateX(-6px); }
.js .board[data-boot].is-ready .board-list .status { animation: comeLive .45s cubic-bezier(.2, .7, .2, 1) forwards; }
.js .board[data-boot].is-ready .board-list li:nth-child(1) .status { animation-delay: .15s; }
.js .board[data-boot].is-ready .board-list li:nth-child(2) .status { animation-delay: .3s; }
.js .board[data-boot].is-ready .board-list li:nth-child(3) .status { animation-delay: .45s; }
.js .board[data-boot].is-ready .board-list li:nth-child(4) .status { animation-delay: .6s; }
.js .board[data-boot].is-ready .board-list li:nth-child(5) .status { animation-delay: .75s; }
.js .board[data-boot].is-ready .board-list li:nth-child(6) .status { animation-delay: .9s; }
@keyframes comeLive { to { opacity: 1; transform: none; } }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, .55); }
  70% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

/* ---------- Clients strip ---------- */
.clients { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--white); }
.clients-inner { display: flex; align-items: center; gap: 32px; padding-top: 26px; padding-bottom: 26px; flex-wrap: wrap; }
.clients-label { font-size: .9375rem; color: var(--muted); flex: none; }
.clients-list { display: flex; flex-wrap: wrap; }
.clients-list li { font-weight: 700; font-size: 1.0625rem; letter-spacing: -0.01em; color: var(--ink-soft); padding: 2px 22px; border-left: 1px solid var(--line-strong); }
.clients-list li:first-child { border-left: 0; padding-left: 0; }

/* ---------- Tabs, chips & screenshot frame ---------- */
.tabs, .chips { display: flex; gap: 6px; margin-bottom: 16px; flex-wrap: wrap; }
.tabs [role="tab"], .chips button {
  border: 1px solid var(--line-strong); background: transparent; cursor: pointer; padding: 9px 16px; border-radius: 999px;
  font-weight: 600; font-size: .9375rem; color: var(--ink-soft); transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.tabs [role="tab"]:hover, .chips button:hover { border-color: var(--ink); color: var(--ink); }
.tabs [role="tab"][aria-selected="true"], .chips button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--white); }

.frame { border-radius: var(--r-lg); overflow: hidden; background: var(--ink); box-shadow: 0 40px 80px -40px rgba(15, 23, 42, .45); }
.frame-bar { display: flex; align-items: center; gap: 16px; padding: 12px 18px; }
.frame-dots { display: inline-flex; gap: 7px; }
.frame-dots i { width: 11px; height: 11px; border-radius: 50%; background: #475569; }
.frame-url { flex: 1; max-width: 360px; margin: 0 auto; text-align: center; font-size: .8125rem; color: var(--on-ink); background: var(--ink-2); border-radius: 6px; padding: 5px 12px; }
.frame-url i { font-size: .6875rem; margin-right: 4px; }
.frame-body figure { background: var(--ink-2); }
.frame-body img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; background: #E2E8F0; }
.frame-body figcaption { padding: 14px 20px; font-size: .9375rem; color: var(--on-ink); }
.frame-body figure:not([hidden]) { animation: fadeIn .3s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Facts ---------- */
.split-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.split-grid h2 { max-width: 15ch; }
.split-copy > p { margin-top: 24px; color: var(--ink-soft); max-width: 34em; }
.split-copy > p + p { margin-top: 16px; }
.split-copy > .link, .split-copy > .btn { margin-top: 28px; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
.facts > div { padding: 22px 0 26px; border-top: 1px solid var(--line-strong); }
.facts dt { font-size: clamp(2.5rem, 4.5vw, 3.5rem); font-weight: 700; line-height: 1; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.facts dd { margin-top: 10px; color: var(--muted); font-size: .9688rem; max-width: 18em; }

/* ---------- Ruled lists (services, values, perks) ---------- */
.ruled { display: grid; grid-template-columns: 1fr 1fr; gap: 0 64px; border-bottom: 1px solid var(--line); }
.ruled.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 32px; }
.ruled.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 40px; }
.ruled > li { padding: 28px 0 30px; border-top: 1px solid var(--line); }
.ruled.with-icon > li { display: grid; grid-template-columns: 44px 1fr; gap: 20px; align-items: start; }
.ruled p { margin-top: 6px; color: var(--muted); max-width: 30em; }
.ruled .ask { margin-top: 14px; font-size: .9375rem; }
.icon-box {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r-sm);
  background: var(--white); border: 1px solid var(--line); font-size: 1.2rem; color: var(--ink);
}
.on-ink .ruled { border-bottom-color: var(--on-ink-line); }
.on-ink .ruled > li { border-top-color: var(--on-ink-line); }
.on-ink .ruled p { color: var(--on-ink); }

/* Numbered steps — only for real sequences */
.steps { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: 0 32px; counter-reset: step; }
.steps > li { counter-increment: step; padding-top: 22px; border-top: 2px solid var(--ink); }
.steps > li::before { content: counter(step); display: block; font-size: .9375rem; font-weight: 700; color: var(--muted); margin-bottom: 14px; font-variant-numeric: tabular-nums; }
.steps p { margin-top: 8px; color: var(--muted); }
.on-ink .steps > li { border-top-color: var(--white); }
.on-ink .steps > li::before { color: var(--on-ink); }

/* ---------- Two-column intro + list (why / architecture) ---------- */
.intro-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 96px); }
.intro-grid h2 { max-width: 13ch; }
.intro-grid .intro p { margin-top: 24px; max-width: 30em; }

/* ---------- Testimonials ---------- */
.voice-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.voice { display: flex; flex-direction: column; justify-content: space-between; gap: 28px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: 28px; }
.voice blockquote { font-size: 1.125rem; line-height: 1.55; }
.voice blockquote::before { content: "\201C"; display: block; font-size: 3rem; line-height: .6; height: 22px; color: var(--line-strong); font-weight: 700; }
.voice figcaption { display: flex; align-items: center; gap: 12px; font-size: .9375rem; color: var(--muted); }
.voice figcaption strong { display: block; color: var(--ink); font-weight: 600; }
.avatar { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--paper); border: 1px solid var(--line); font-weight: 700; font-size: .875rem; color: var(--ink); flex: none; }

/* ---------- CTA band ---------- */
.cta { padding: var(--section) 0; }
.cta-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.cta h2 { font-size: clamp(2.25rem, 4.6vw, 3.5rem); line-height: 1.02; letter-spacing: -0.04em; max-width: 11ch; }
.cta-copy > p { margin-top: 22px; max-width: 30em; font-size: 1.125rem; }
.contact-lines { margin-top: 36px; display: grid; gap: 14px; }
.contact-lines li { display: flex; align-items: flex-start; gap: 12px; }
.contact-lines i { color: var(--muted); font-size: 1.1rem; width: 20px; margin-top: 2px; flex: none; }
.contact-lines a { text-decoration: none; font-weight: 500; border-bottom: 1px solid var(--line-strong); }
.contact-lines a:hover { border-bottom-color: currentColor; }
.on-ink .contact-lines i { color: #94A3B8; }
.on-ink .contact-lines a { color: var(--white); border-bottom-color: rgba(255, 255, 255, .25); }
.cta-band { display: flex; align-items: end; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-band h2 { max-width: 16ch; }
.cta-band p { margin-top: 16px; max-width: 34em; }
.cta-band .hero-actions { margin-top: 0; }

.panel { background: var(--white); color: var(--ink); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(24px, 3vw, 36px); }
.on-ink .panel { border-color: transparent; }
.panel p { color: var(--muted); }
.panel.on-ink { background: var(--ink); color: var(--white); border-color: var(--ink); }
.panel.on-ink p { color: var(--on-ink); }

/* ---------- Forms ---------- */
.form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 7px; align-content: start; }
.field label { font-weight: 600; font-size: .9375rem; color: var(--ink); }
.field .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 10px 14px; font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--white); border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { min-height: 128px; resize: vertical; line-height: 1.5; }
.field select {
  appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23556070' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.field select:invalid { color: var(--muted); }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--muted); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px rgba(99, 102, 241, .2); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--error); }
.err { display: none; font-size: .875rem; color: var(--error); }
.field.has-error .err { display: block; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.form-msg { font-size: .9375rem; font-weight: 500; }
.form-msg:empty { display: none; }
.form-msg.is-error { color: var(--error); }
.form-msg.is-ok { color: var(--live); }
.form-note { font-size: .875rem; color: var(--muted); }
.inline-form { display: flex; gap: 10px; align-items: start; max-width: 520px; }
.inline-form .field { flex: 1; }
.inline-form .btn { flex: none; }

/* ---------- Dialog ---------- */
.dialog {
  width: min(480px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); border: 0; border-radius: var(--r-lg);
  padding: 28px; color: var(--ink); background: var(--white); box-shadow: 0 40px 100px -20px rgba(15, 23, 42, .45);
}
.dialog::backdrop { background: rgba(15, 23, 42, .55); backdrop-filter: blur(3px); }
.dialog[open] { animation: dialogIn .22s cubic-bezier(.2, .7, .2, 1); }
@keyframes dialogIn { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
.dialog-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 22px; }
.dialog-head h2 { font-size: 1.625rem; }
.dialog-head p { color: var(--muted); margin-top: 4px; font-size: .9375rem; }
.dialog-close { width: 40px; height: 40px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--white); cursor: pointer; display: grid; place-items: center; flex: none; }
.dialog-close:hover { border-color: var(--ink); }

/* ---------- Products catalogue ---------- */
.catalog { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.catalog-index { position: sticky; top: calc(var(--header-h) + 24px); padding: 24px 22px 14px; }
.catalog-index .board-title { font-size: 1.0625rem; }
.catalog-index .board-head { padding-bottom: 14px; }
.catalog-index .board-list a { grid-template-columns: 1fr auto; padding: 10px 0; font-size: .9375rem; }
.catalog-index .board-list li:last-child a { border-bottom: 0; }
.catalog-index .board-list a[aria-current="true"] span:first-child { font-weight: 700; }
.code { font-size: .8125rem; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.product { padding: 48px 0 52px; border-top: 1px solid var(--line); }
.product:first-child { border-top: 0; padding-top: 0; }
.product-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.product h2 { font-size: clamp(1.625rem, 2.6vw, 2.125rem); }
.product-lead { margin-top: 12px; color: var(--ink-soft); max-width: 40em; font-size: 1.0625rem; }
.product-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px 48px; margin-top: 28px; }
.product-body h3 { font-size: .9375rem; margin-bottom: 12px; }
.check-list li { display: flex; gap: 10px; padding: 7px 0; color: var(--ink-soft); }
.check-list i { color: var(--live); flex: none; margin-top: 2px; }
.flow { display: grid; gap: 0; counter-reset: flow; }
.flow li { counter-increment: flow; display: flex; align-items: center; gap: 12px; padding: 7px 0; color: var(--ink-soft); position: relative; }
.flow li::before {
  content: counter(flow); display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; flex: none;
  border: 1px solid var(--line-strong); background: var(--white); font-size: .8125rem; font-weight: 700; color: var(--ink); position: relative; z-index: 1;
}
.flow li:not(:last-child)::after { content: ""; position: absolute; left: 12.5px; top: 30px; bottom: -10px; width: 1px; background: var(--line-strong); }
.product-foot { margin-top: 28px; display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }

/* Architecture diagram */
.stack { display: grid; gap: 10px; }
.stack-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 18px; border: 1px solid var(--on-ink-line); border-radius: var(--r-md); }
.stack-row strong { font-weight: 600; }
.stack-row span { font-size: .875rem; color: var(--on-ink); }
.stack-row.core { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .3); }
.stack-mods { display: flex; flex-wrap: wrap; gap: 8px; }
.stack-mods span { font-size: .8125rem; font-weight: 600; color: var(--white); border: 1px solid var(--on-ink-line); border-radius: 6px; padding: 4px 8px; }
.stack-arrow { text-align: center; color: var(--on-ink); font-size: .875rem; }

/* ---------- Pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.plan { display: flex; flex-direction: column; gap: 18px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 30px; }
.plan-for { font-size: .9375rem; color: var(--muted); font-weight: 500; }
.plan h2 { font-size: 1.75rem; }
.plan-desc { color: var(--ink-soft); }
.plan-meta { display: flex; gap: 8px; flex-wrap: wrap; }
.plan .check-list { flex: 1; border-top: 1px solid var(--line); padding-top: 12px; }
.plan.featured { background: var(--ink); color: var(--white); border-color: var(--ink); position: relative; }
.plan.featured .plan-for, .plan.featured .plan-desc, .plan.featured .check-list li { color: var(--on-ink); }
.plan.featured .check-list { border-top-color: var(--on-ink-line); }
.plan.featured .check-list i { color: var(--live-dot); }
.plan.featured .tag { background: transparent; color: var(--white); border-color: var(--on-ink-line); }
.plan-flag { position: absolute; top: -13px; left: 30px; font-size: .8125rem; font-weight: 700; background: var(--white); color: var(--ink); border: 1px solid var(--ink); border-radius: 999px; padding: 3px 12px; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--white); }
.compare { width: 100%; border-collapse: collapse; min-width: 620px; }
.compare th, .compare td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--line); }
.compare thead th { font-size: .9375rem; font-weight: 700; background: var(--paper); }
.compare tbody tr:last-child td { border-bottom: 0; }
.compare td:not(:first-child), .compare th:not(:first-child) { text-align: center; }
.compare .yes { color: var(--live); font-size: 1.15rem; }
.compare .no { color: var(--line-strong); }

/* FAQ */
.faq { max-width: 820px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 22px 0; font-weight: 600; font-size: 1.125rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "\F4FE"; font-family: "bootstrap-icons"; font-weight: 400; font-size: 1.1rem; color: var(--muted); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 22px; color: var(--ink-soft); max-width: 40em; }

/* ---------- Portfolio ---------- */
.case-feature { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.case-feature .frame-body img { aspect-ratio: 16 / 10; }
.case-feature h2 { font-size: clamp(1.75rem, 3vw, 2.375rem); max-width: 16ch; }
.case-feature p { margin-top: 16px; color: var(--ink-soft); }
.case-feature .plan-meta { margin-top: 20px; }
.case-feature .link { margin-top: 28px; }
.work-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 40px; border-bottom: 1px solid var(--line); }
.work { padding: 28px 0 32px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.work[hidden] { display: none; }
.work-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.work-cat { font-size: .875rem; color: var(--muted); font-weight: 500; }
.work p { color: var(--muted); }
.work .icon-box { margin-bottom: 6px; }

/* Case study */
.case-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(32px, 5vw, 72px); align-items: start; }
.sticky-aside { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 16px; }
.info-list { display: grid; }
.info-list div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: .9375rem; }
.info-list div:last-child { border-bottom: 0; }
.info-list dt { color: var(--muted); }
.info-list dd { font-weight: 600; text-align: right; }
.panel h3 { font-size: 1.125rem; margin-bottom: 10px; }
.panel .btn { margin-top: 18px; }

/* ---------- Article / prose ---------- */
.prose { max-width: 68ch; font-size: 1.125rem; line-height: 1.75; color: var(--ink-soft); }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: clamp(1.5rem, 2.4vw, 1.875rem); color: var(--ink); margin-top: 2em; line-height: 1.2; }
.prose h3 { font-size: 1.25rem; color: var(--ink); margin-top: 1.6em; }
.prose a { color: var(--ink); font-weight: 600; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: var(--ink); }
.prose ul { padding-left: 0; }
.prose ul li { position: relative; padding-left: 22px; margin-top: .55em; }
.prose ul li::before { content: ""; position: absolute; left: 4px; top: .72em; width: 6px; height: 6px; border-radius: 50%; background: var(--ink-soft); }
.prose strong { color: var(--ink); }
.prose .lead { font-size: 1.3125rem; line-height: 1.6; color: var(--ink); }
.prose blockquote { border-left: 3px solid var(--ink); padding: 4px 0 4px 24px; font-size: 1.3125rem; line-height: 1.5; color: var(--ink); font-weight: 500; }
.prose blockquote cite { display: block; margin-top: 12px; font-size: .9375rem; font-style: normal; font-weight: 400; color: var(--muted); }
.callout { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: 24px 26px; }
.callout h3 { margin-top: 0 !important; font-size: 1.0625rem; }
.callout .check-list { margin-top: 10px; font-size: 1.0625rem; }
.prose .check-list li { padding-left: 0; margin-top: 0; }
.prose .check-list li::before { display: none; }
.article-meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 28px; color: var(--muted); font-size: .9375rem; }
.article-meta strong { color: var(--ink); font-weight: 600; display: block; }
.article-meta .sep { width: 1px; height: 28px; background: var(--line-strong); }
.article-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(32px, 5vw, 80px); align-items: start; }
.share { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.share a, .share button {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r-sm); border: 1px solid var(--line);
  background: var(--white); text-decoration: none; cursor: pointer; color: var(--ink);
}
.share a:hover, .share button:hover { border-color: var(--ink); }
.article-end { margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: center; }
.tag-row { display: flex; gap: 8px; flex-wrap: wrap; }
.comments { margin-top: 64px; max-width: 68ch; }
.comments h2 { font-size: 1.5rem; }
.comment-list { margin: 20px 0 36px; }
.comment { display: flex; gap: 14px; padding: 18px 0; border-top: 1px solid var(--line); }
.comment-name { font-weight: 600; }
.comment-time { color: var(--muted); font-weight: 400; font-size: .875rem; margin-left: 6px; }
.comment-body { margin-top: 4px; color: var(--ink-soft); white-space: pre-line; }
.empty { padding: 20px 0; color: var(--muted); border-top: 1px solid var(--line); }

/* Blog */
.post-feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: center; text-decoration: none; padding: clamp(24px, 3vw, 40px); background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); transition: border-color .18s ease; }
.post-feature:hover { border-color: var(--ink); }
.post-feature:hover h2 { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.post-feature .frame { box-shadow: none; }
.post-meta { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; color: var(--muted); font-size: .9375rem; }
.post-feature h2 { margin-top: 14px; font-size: clamp(1.625rem, 2.8vw, 2.25rem); }
.post-feature p { margin-top: 14px; color: var(--ink-soft); }
.post-feature .link { margin-top: 22px; }
.topic-list li { display: grid; grid-template-columns: minmax(0, 200px) minmax(0, 1fr) auto; gap: 24px; align-items: baseline; padding: 20px 0; border-top: 1px solid var(--line); }
.topic-list li:last-child { border-bottom: 1px solid var(--line); }
.topic-list .work-cat { font-size: .9375rem; }
.topic-list h3 { font-size: 1.125rem; }
.topic-list p { color: var(--muted); margin-top: 4px; font-size: 1rem; }

/* Careers */
.roles { border-top: 1px solid var(--line); }
.role { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; align-items: center; padding: 24px 0; border-bottom: 1px solid var(--line); }
.role h3 { font-size: 1.25rem; }
.role-meta { display: flex; gap: 8px 18px; flex-wrap: wrap; margin-top: 8px; color: var(--muted); font-size: .9375rem; }
.role-meta span { display: inline-flex; align-items: center; gap: 6px; }

/* Contact */
.map { margin-top: 28px; border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line); background: var(--white); }
.map iframe { display: block; width: 100%; height: 240px; border: 0; }

/* Legal */
.legal-grid { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.toc { position: sticky; top: calc(var(--header-h) + 24px); font-size: .9375rem; }
.toc h2 { font-size: .9375rem; margin-bottom: 12px; letter-spacing: 0; }
.toc a { display: block; padding: 7px 0 7px 14px; border-left: 2px solid var(--line); text-decoration: none; color: var(--muted); }
.toc a:hover { color: var(--ink); border-left-color: var(--ink); }
.updated { margin-top: 20px; color: var(--muted); font-size: .9375rem; }

/* Status pages (thank-you, 404) */
.status-page { padding: clamp(56px, 9vw, 120px) 0; }
.status-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(40px, 6vw, 88px); align-items: center; }
.status-grid h1 { font-size: clamp(2.5rem, 5.6vw, 4.5rem); line-height: 1; letter-spacing: -0.04em; font-weight: 800; max-width: 13ch; }
.status-grid .page-lead { margin-top: 22px; }
.log-list li { display: grid; grid-template-columns: 22px 1fr auto; gap: 14px; align-items: center; padding: 13px 0; border-bottom: 1px solid var(--line); font-weight: 500; }
.log-list li:last-child { border-bottom: 0; }
.log-list i { color: var(--muted); }
.quick-links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 28px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--white); border-top: 1px solid var(--line); padding-top: 64px; font-size: .9688rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 40px; padding-bottom: 48px; }
.footer-brand p { margin-top: 18px; color: var(--muted); max-width: 26em; }
.footer-h { font-size: .9375rem; font-weight: 700; letter-spacing: 0; margin-bottom: 14px; }
.site-footer ul { display: grid; gap: 10px; }
.site-footer a { color: var(--ink-soft); text-decoration: none; }
.site-footer a:hover { color: var(--ink); text-decoration: underline; }
.site-footer address { font-style: normal; color: var(--muted); line-height: 1.75; }
.footer-bar { position: relative; background: var(--ink); color: var(--on-ink); font-size: .875rem; }
.footer-bar::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--brand-gradient); }
.footer-bar-inner { display: flex; align-items: center; justify-content: space-between; gap: 10px 24px; flex-wrap: wrap; min-height: 58px; padding-top: 3px; }
.footer-bar p { margin: 0; }
.footer-bar ul { display: flex; align-items: center; gap: 6px 22px; flex-wrap: wrap; }
.site-footer .footer-bar a { color: var(--white); text-decoration: none; font-weight: 500; }
.site-footer .footer-bar a:hover { text-decoration: underline; text-underline-offset: 3px; }
.to-top { display: inline-flex; align-items: center; gap: 6px; }
.to-top i { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: rgba(255, 255, 255, .1); font-size: .8rem; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .ruled.cols-4 { grid-template-columns: 1fr 1fr; gap: 0 48px; }
  .catalog { grid-template-columns: 240px minmax(0, 1fr); }
}

@media (max-width: 960px) {

  .hero-grid, .split-grid, .intro-grid, .cta-grid, .section-head.split, .page-hero-grid,
  .case-feature, .case-grid, .article-grid, .status-grid, .post-feature, .legal-grid { grid-template-columns: 1fr; }
  .hero h1 { max-width: 12ch; }
  .board { max-width: 560px; }
  .voice-grid { grid-template-columns: 1fr; max-width: 640px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .catalog { grid-template-columns: 1fr; }
  .catalog-index { display: none; }
  .plans { grid-template-columns: 1fr; max-width: 560px; gap: 28px; }
  .ruled.cols-3, .work-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; gap: 32px; }
  .sticky-aside, .toc { position: static; }
  .toc { display: none; }
  .topic-list li { grid-template-columns: 1fr auto; }
  .topic-list li .work-cat { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .hero-lead, .page-lead { font-size: 1.0625rem; }
  .hero-actions .btn { flex: 1 1 100%; }
  .board { padding: 24px 18px 18px; }
  .board-head { flex-direction: column; }
  .clients-inner { gap: 14px; }
  .clients-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; width: 100%; }
  .clients-list li, .clients-list li:first-child { padding: 0; border-left: 0; font-size: 1rem; }
  .ruled, .ruled.cols-3, .ruled.cols-4, .work-grid, .form-row, .product-body, .steps { grid-template-columns: 1fr; }
  .steps { gap: 28px; }
  .facts { gap: 0 20px; }
  .frame-bar { padding: 10px 12px; }
  .frame-url { font-size: .75rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .role { grid-template-columns: 1fr; }
  .inline-form { flex-direction: column; align-items: stretch; }
  .prose { font-size: 1.0625rem; }
  .plan { padding: 26px 22px; }
  .dialog { padding: 22px; }
  .flow { display: flex; flex-wrap: wrap; gap: 8px; }
  .flow li { padding: 0; }
  .flow li:not(:last-child)::after { display: none; }
  .product { padding: 36px 0 40px; }
  .product-body { gap: 24px; }
}


/* ==========================================================
   Colour pass: brand tints where they carry meaning or rhythm
   ========================================================== */
/* Soft brand glow behind page heads */
.hero, .page-hero, .status-page {
  background:
    radial-gradient(680px 340px at 100% 0%, rgba(99, 102, 241, .11), transparent 70%),
    radial-gradient(560px 300px at 70% 100%, rgba(245, 158, 11, .10), transparent 70%),
    radial-gradient(480px 260px at 0% 10%, rgba(236, 72, 153, .07), transparent 70%);
}
.hero { margin-top: -88px; padding-top: calc(clamp(48px, 8vw, 104px) + 88px); }
.page-hero, .status-page { margin-top: -88px; padding-top: calc(clamp(40px, 6vw, 80px) + 88px); }
.status-page { padding-top: calc(clamp(56px, 9vw, 120px) + 88px); }

/* Dark sections get a brand glow */
.on-ink, .plan.featured {
  background:
    radial-gradient(620px 320px at 92% 0%, rgba(99, 102, 241, .32), transparent 70%),
    radial-gradient(520px 300px at 0% 100%, rgba(236, 72, 153, .20), transparent 70%),
    radial-gradient(360px 220px at 45% 110%, rgba(245, 158, 11, .14), transparent 70%),
    var(--ink);
}
.plan.featured::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; border-radius: var(--r-lg) var(--r-lg) 0 0; background: var(--brand-gradient); }
.plan-flag { background: var(--brand-gradient-deep); color: var(--white); border: 0; }

/* Kicker chip */
.hero-kicker { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 10px; border-radius: 999px; background: rgba(255, 255, 255, .7); border: 1px solid var(--line); color: var(--ink-soft); font-size: .9375rem; }
.hero-kicker::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--brand-gradient); }

/* Icon boxes cycle through the four brand tints */
.icon-box { border-color: transparent; }
.ruled > li:nth-child(4n+1) .icon-box, .work:nth-child(4n+1) .icon-box, .product:nth-of-type(4n+1) .icon-box { background: var(--tint-indigo); color: var(--indigo-ink); }
.ruled > li:nth-child(4n+2) .icon-box, .work:nth-child(4n+2) .icon-box, .product:nth-of-type(4n+2) .icon-box { background: var(--tint-pink); color: var(--pink-ink); }
.ruled > li:nth-child(4n+3) .icon-box, .work:nth-child(4n+3) .icon-box, .product:nth-of-type(4n+3) .icon-box { background: var(--tint-orange); color: var(--orange-ink); }
.ruled > li:nth-child(4n+4) .icon-box, .work:nth-child(4n+4) .icon-box, .product:nth-of-type(4n+4) .icon-box { background: var(--tint-amber); color: var(--amber-ink); }

/* Facts and steps: coloured top rules */
.facts > div { border-top-width: 3px; }
.facts > div:nth-child(1) { border-top-color: var(--indigo); }
.facts > div:nth-child(2) { border-top-color: var(--pink); }
.facts > div:nth-child(3) { border-top-color: var(--orange); }
.facts > div:nth-child(4) { border-top-color: var(--amber); }
.steps > li:nth-child(4n+1) { border-top-color: var(--indigo); }
.steps > li:nth-child(4n+2) { border-top-color: var(--pink); }
.steps > li:nth-child(4n+3) { border-top-color: var(--orange); }
.steps > li:nth-child(4n+4) { border-top-color: var(--amber); }
.steps > li:nth-child(4n+1)::before { color: var(--indigo-ink); }
.steps > li:nth-child(4n+2)::before { color: var(--pink-ink); }
.steps > li:nth-child(4n+3)::before { color: var(--orange-ink); }
.steps > li:nth-child(4n+4)::before { color: var(--amber-ink); }
.on-ink .steps > li::before { color: var(--on-ink); }

/* Testimonials */
.voice { position: relative; overflow: hidden; }
.voice::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; }
.voice:nth-child(1)::before { background: var(--indigo); }
.voice:nth-child(2)::before { background: var(--pink); }
.voice:nth-child(3)::before { background: var(--orange); }
.voice:nth-child(1) .avatar { background: var(--tint-indigo); color: var(--indigo-ink); border-color: transparent; }
.voice:nth-child(2) .avatar { background: var(--tint-pink); color: var(--pink-ink); border-color: transparent; }
.voice:nth-child(3) .avatar { background: var(--tint-orange); color: var(--orange-ink); border-color: transparent; }

/* Links and buttons */
.link { border-bottom-color: rgba(99, 102, 241, .45); }
.link:hover { border-bottom-color: var(--pink); }
.btn-ink:hover { background: var(--brand-gradient-deep); }
.on-ink .btn-light:hover, .panel.on-ink .btn-light:hover { background: var(--tint-indigo); }
.prose a { text-decoration-color: rgba(99, 102, 241, .5); }
.prose blockquote { border-left-color: var(--pink); }
.callout { border-left: 3px solid var(--indigo); }
.toc a:hover { border-left-color: var(--indigo); }
.faq summary::after { color: var(--indigo); }

/* Footer brand line */
.site-footer { border-top: 0; }

/* ---------- Header + footer responsive ---------- */
@media (max-width: 1140px) {
  .header-phone span { display: none; }
  .nav-list a { padding: 8px 9px; }
  .header-bar { gap: 14px; }
}
@media (max-width: 980px) {
  .nav { margin-left: auto; }
  .nav-toggle { display: inline-block; }
  .header-phone { display: none; }
  .nav-list {
    display: none; position: absolute; left: 0; right: 0; top: calc(100% + 8px); flex-direction: column; gap: 0;
    padding: 8px 16px 14px; background: var(--white); border: 1px solid var(--line); border-radius: 16px;
    box-shadow: 0 24px 48px -20px rgba(15, 23, 42, .35); max-height: calc(100dvh - 110px); overflow-y: auto;
  }
  .nav-list.is-open { display: flex; animation: menuIn .2s ease; }
  .nav-list a { padding: 14px 6px; font-size: 1.0625rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav-list a:hover { background: none; color: var(--indigo-ink); }
  .nav-list a[aria-current="page"]::after { left: 6px; right: auto; width: 28px; bottom: 8px; }
  .nav-extra { display: block; }
  .nav-extra a { display: flex; align-items: center; gap: 10px; border-bottom: 0 !important; color: var(--ink) !important; font-weight: 600; }
  .nav-extra a i { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--tint-indigo); color: var(--indigo-ink); }
  .nav-list li:nth-last-child(4) a { border-bottom: 0; }
  .nav-sep { display: block; height: 1px; margin: 6px 0; background: var(--line); }
}
@keyframes menuIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (min-width: 981px) { .nav-sep { display: none; } }
@media (max-width: 640px) {
  .site-header { padding-top: 10px; }
  .header-bar { min-height: 58px; padding: 0 8px 0 14px; gap: 10px; border-radius: 14px; }
  .brand img { height: 28px; }
  .header-actions { gap: 8px; }
  .header-bar .btn-sm { min-height: 40px; padding: 0 14px; }
  .footer-bar-inner { justify-content: center; text-align: center; padding-top: 14px; padding-bottom: 12px; }
  .footer-bar ul { justify-content: center; gap: 6px 16px; }
}
@media (max-width: 440px) {
  .brand img { height: 24px; }
  .header-bar .btn-sm { padding: 0 12px; }
}
@media (max-width: 370px) {
  .header-bar .btn-sm { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .board[data-boot] .board-list .status { opacity: 1; transform: none; }
  .site-header.is-hidden { transform: none; }
}

@media print {
  .site-header, .site-footer, .cta, .dialog, .share { display: none !important; }
  body { background: #fff; }
}
