/* ==========================================================================
   Solution Express Media — main stylesheet
   Palette: accent #9168AA, background #E3E3E3
   Type: Bricolage Grotesque (display) + Hanken Grotesk (text)
   ========================================================================== */

:root {
  --bg: #E3E3E3;
  --paper: #F1F0F2;
  --white: #FFFFFF;
  --ink: #1F1A26;
  --ink-2: #4B4553;
  --ink-3: #5E5866;
  --line: #C6C2CB;
  --line-soft: #D7D4DA;

  --accent: #9168AA;
  --accent-strong: #6E4A88;
  --accent-soft: #D8CCE1;
  --accent-tint: #EFE9F3;

  --plum: #251D2E;
  --plum-2: #31273C;
  --on-plum: #F1ECF5;
  --on-plum-muted: #BFB4C9;
  --accent-on-plum: #C9B1DB;

  --font-display: "Bricolage Grotesque", "Hanken Grotesk", system-ui, sans-serif;
  --font-body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --shadow: 0 1px 2px rgba(37, 29, 46, .06), 0 28px 56px -28px rgba(37, 29, 46, .32);

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 84px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a { color: var(--accent-strong); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.025em;
  color: var(--ink);
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 5.6vw, 4.75rem); line-height: 1; letter-spacing: -.035em; font-weight: 750; }
h2 { font-size: clamp(2rem, 3.8vw, 3.1rem); }
h3 { font-size: clamp(1.2rem, 1.7vw, 1.45rem); line-height: 1.2; letter-spacing: -.015em; }
h4 { font-size: 1.05rem; letter-spacing: -.01em; }

p { margin: 0 0 1em; }
p, li { text-wrap: pretty; }

.lede { font-size: clamp(1.125rem, 1.5vw, 1.3rem); line-height: 1.55; color: var(--ink-2); max-width: 58ch; }

address { font-style: normal; }

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 12px 24px;
  border-radius: 12px; border: 1.5px solid transparent;
  font-family: var(--font-body); font-size: 1rem; font-weight: 650; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-strong); color: #fff; }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-light { background: var(--on-plum); color: var(--plum); }
.btn-light:hover { background: #fff; color: var(--plum); }
.btn-sm { min-height: 42px; padding: 9px 18px; font-size: .95rem; border-radius: 10px; }
.btn[disabled] { opacity: .7; cursor: progress; }

.text-link { font-weight: 650; color: var(--accent-strong); text-decoration: underline; text-decoration-color: var(--accent-soft); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.text-link:hover { color: var(--ink); text-decoration-color: var(--accent); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(227, 227, 227, .9);
  -webkit-backdrop-filter: saturate(1.2) blur(12px);
  backdrop-filter: saturate(1.2) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }

.header-inner {
  position: relative;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: 12px 24px; min-height: var(--header-h);
}

.brand { display: inline-flex; align-items: center; text-decoration: none; flex: none; }
.brand img { display: block; height: 64px; width: auto; }
@media (max-width: 520px) { .brand img { height: 52px; } }

.site-nav { display: flex; align-items: center; gap: 24px; }
.site-nav ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.site-nav ul a {
  display: block; padding: 8px 15px; border-radius: 999px;
  color: var(--ink); text-decoration: none; font-weight: 550; font-size: .98rem;
  transition: background-color .15s ease, color .15s ease;
}
.site-nav ul a:hover { background: rgba(145, 104, 170, .14); color: var(--ink); }
.site-nav ul a[aria-current="page"] { background: var(--ink); color: #fff; }

.nav-toggle {
  display: none;
  width: 46px; height: 46px; padding: 0;
  align-items: center; justify-content: center;
  background: var(--paper); color: var(--ink);
  border: 1px solid var(--line); border-radius: 12px; cursor: pointer;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block; width: 20px; height: 2px; border-radius: 2px; background: currentColor;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 980px) {
  .site-nav { width: 100%; flex-direction: column; align-items: stretch; gap: 16px; padding-bottom: 20px; }
  .site-nav ul { flex-direction: column; }
  .site-nav ul a { padding: 12px 16px; font-size: 1.08rem; border-radius: 12px; }
  .site-nav .btn { width: 100%; }

  .js .nav-toggle { display: inline-flex; }
  .js .site-nav {
    display: none;
    position: absolute; left: calc(-1 * var(--gutter)); right: calc(-1 * var(--gutter)); top: 100%;
    padding: 12px var(--gutter) 24px;
    background: var(--bg); border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -24px rgba(37, 29, 46, .35);
  }
  .js .site-nav.is-open { display: flex; }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(72px, 9vw, 128px); }
.section-tight { padding-block: clamp(56px, 7vw, 88px); }
.section-paper { background: var(--paper); }
.section-dark { background: var(--plum); color: var(--on-plum); }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .lede, .section-dark p { color: var(--on-plum-muted); }
.section-dark a:not(.btn) { color: var(--accent-on-plum); }
.section-dark a:not(.btn):hover { color: #fff; }

.section-head {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px 64px; align-items: end;
  margin-bottom: clamp(40px, 5vw, 64px);
}
.section-head h2 { margin: 0; max-width: 15ch; }
.section-head p { margin: 0; color: var(--ink-2); max-width: 52ch; }
.section-dark .section-head p { color: var(--on-plum-muted); }
.section-head-stack { grid-template-columns: 1fr; }
.section-head-stack h2 { max-width: 22ch; }

.split { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 40px 88px; align-items: start; }
.split-even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.split > :first-child h2 { max-width: 14ch; }

@media (max-width: 860px) {
  .section-head, .split, .split-even { grid-template-columns: 1fr; }
}

/* ---------- Hero (home) ---------- */
.hero { padding: clamp(40px, 6vw, 88px) 0 clamp(80px, 10vw, 136px); }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  gap: clamp(48px, 6vw, 96px); align-items: center;
}
.hero h1 { max-width: 11ch; }
.hero .lede { margin-top: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-notes {
  list-style: none; padding: 0; margin: 40px 0 0;
  display: flex; flex-wrap: wrap; gap: 10px 26px;
  color: var(--ink-2); font-size: .96rem; font-weight: 500;
}
.hero-notes li { display: flex; align-items: center; gap: 9px; }
.hero-notes li::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--accent); transform: rotate(45deg); flex: none; }

@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; } .hero h1 { max-width: 13ch; } }

/* ---------- SERP illustration (signature element) ---------- */
.serp { position: relative; isolation: isolate; margin: 0; padding: 0 18px 22px 0; }
.serp::before {
  content: ""; position: absolute; z-index: -1;
  top: 34px; right: 0; bottom: 0; left: 34px;
  background: var(--accent); border-radius: var(--r-xl);
}
.serp-window {
  background: var(--white); border-radius: var(--r-lg);
  border: 1px solid rgba(37, 29, 46, .06);
  box-shadow: var(--shadow);
  padding: clamp(16px, 2.4vw, 24px);
}
.serp-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 18px; border: 1px solid var(--line-soft); border-radius: 999px;
  font-size: 1rem; color: var(--ink);
  box-shadow: 0 2px 6px rgba(37, 29, 46, .06);
}
.serp-bar svg { width: 18px; height: 18px; flex: none; color: var(--ink-3); }
.serp-query { white-space: nowrap; overflow: hidden; }
.serp-caret { width: 2px; height: 1.15em; background: var(--accent); flex: none; margin-left: -6px; }
@media (prefers-reduced-motion: no-preference) {
  .serp-caret { animation: caret 1.05s steps(1) infinite; }
}
@keyframes caret { 50% { opacity: 0; } }

.serp-results { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 8px; }
.result { position: relative; padding: 14px 120px 14px 16px; border-radius: var(--r-md); }
.result-yours { background: var(--accent-tint); box-shadow: inset 3px 0 0 var(--accent); }
.result-meta { display: flex; align-items: center; gap: 8px; font-size: .8rem; line-height: 1.3; color: var(--ink-2); }
.result-badge { font-weight: 700; color: var(--ink); }
.result-favicon { width: 18px; height: 18px; border-radius: 50%; background: var(--plum); flex: none; }
.result-title { margin: 6px 0 3px; font-size: 1.04rem; font-weight: 650; line-height: 1.3; color: #4F2F7A; }
.result-desc { margin: 0; font-size: .87rem; line-height: 1.45; color: var(--ink-2); }
.result-tag {
  position: absolute; top: 14px; right: 14px;
  padding: 5px 11px; border-radius: 999px;
  background: var(--ink); color: #fff;
  font-size: .74rem; font-weight: 700; letter-spacing: .01em; white-space: nowrap;
}
.result-ghost { padding-right: 16px; }
.result-ghost span { display: block; height: 10px; border-radius: 5px; background: #ECEBED; }
.result-ghost span + span { margin-top: 8px; width: 72%; }
.result-ghost span:first-child { width: 46%; height: 12px; }

.serp-site {
  position: relative; margin-top: 14px;
  border: 1px solid var(--line-soft); border-radius: var(--r-md); overflow: hidden;
}
.serp-site-bar { display: flex; gap: 6px; padding: 9px 12px; background: var(--paper); border-bottom: 1px solid var(--line-soft); }
.serp-site-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.serp-site-body { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 120px 16px 16px; }
.serp-site-body strong { font-family: var(--font-display); font-size: 1.05rem; line-height: 1.2; letter-spacing: -.01em; }
.serp-site-cta {
  position: relative; flex: none;
  padding: 8px 14px; border-radius: 8px; background: var(--accent); color: #fff;
  font-size: .82rem; font-weight: 700;
}
.serp-site-cta svg { position: absolute; right: -10px; bottom: -14px; width: 20px; height: 20px; }
.serp-site .result-tag { top: 50px; }

.js .serp .result,
.js .serp .serp-site { opacity: 0; transform: translateY(10px); }
.serp.is-done .result,
.serp.is-done .serp-site {
  opacity: 1; transform: none;
  transition: opacity .5s ease, transform .5s cubic-bezier(.2, .7, .2, 1);
  transition-delay: calc(var(--i, 0) * 170ms);
}
@media (prefers-reduced-motion: reduce) {
  .js .serp .result, .js .serp .serp-site { opacity: 1; transform: none; transition: none; }
}

@media (max-width: 520px) {
  .result, .serp-site-body { padding-right: 16px; }
  .result-tag { position: static; display: inline-block; margin-bottom: 8px; }
  .serp-site .result-tag { position: absolute; top: 40px; right: 12px; }
  .serp-site-body { flex-direction: column; align-items: flex-start; padding-top: 16px; }
  .serp { padding: 0 10px 14px 0; }
  .serp::before { top: 24px; left: 24px; }
}

/* ---------- Service rows (home) ---------- */
.service-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.service-item {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr) minmax(0, 4fr);
  gap: 20px 56px; padding: clamp(32px, 4vw, 48px) 0; border-bottom: 1px solid var(--line);
}
.service-title { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.service-title h3 { font-size: clamp(1.7rem, 2.8vw, 2.35rem); line-height: 1.05; letter-spacing: -.03em; margin: 0; max-width: 11ch; }
.service-desc p { color: var(--ink-2); margin-bottom: 18px; }

.glyph {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px;
  background: var(--accent); color: #fff; flex: none;
}
.glyph svg { width: 26px; height: 26px; }

.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: .98rem; }
.ticks li { position: relative; padding-left: 26px; line-height: 1.45; }
.ticks li::before {
  content: ""; position: absolute; left: 2px; top: .38em;
  width: 13px; height: 7px; border-left: 2px solid var(--accent-strong); border-bottom: 2px solid var(--accent-strong);
  transform: rotate(-45deg);
}
.section-dark .ticks li::before { border-color: var(--accent-on-plum); }

@media (max-width: 960px) {
  .service-item { grid-template-columns: 1fr 1fr; }
  .service-title { grid-column: 1 / -1; flex-direction: row; align-items: center; }
  .service-title h3 { max-width: none; }
}
@media (max-width: 640px) { .service-item { grid-template-columns: 1fr; } }

/* ---------- Principles (dark) ---------- */
.principles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 72px; }
.principle { border-top: 2px solid var(--accent); padding-top: 24px; }
.principle h3 { margin-bottom: 10px; }
.principle p { margin: 0; max-width: 46ch; }
@media (max-width: 760px) { .principles { grid-template-columns: 1fr; gap: 36px; } }

/* ---------- Steps (short sequence) ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; counter-reset: step; }
.step { counter-increment: step; position: relative; padding-top: 68px; }
.step::before {
  content: counter(step);
  position: absolute; top: 0; left: 0;
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  background: var(--accent); color: #fff;
  font-family: var(--font-display); font-weight: 700; font-size: 1.15rem;
}
.step::after { content: ""; position: absolute; top: 22px; left: 60px; right: -14px; height: 2px; background: var(--line); }
.step:last-child::after { display: none; }
.step h3 { margin-bottom: 8px; }
.step p { margin: 0; color: var(--ink-2); font-size: .99rem; }
.steps-foot { margin-top: 48px; }

@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; gap: 32px; }
  .step { padding: 0 0 0 68px; min-height: 46px; }
  .step::after { top: 54px; left: 22px; right: auto; bottom: -26px; width: 2px; height: auto; }
}

/* ---------- Tags ---------- */
.tag-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.tag-list li {
  padding: 11px 20px; border-radius: 999px;
  background: var(--white); border: 1px solid var(--line-soft);
  font-weight: 550; font-size: 1rem;
}

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  position: relative; cursor: pointer; list-style: none;
  padding: 24px 56px 24px 0;
  font-family: var(--font-display); font-weight: 600; font-size: clamp(1.08rem, 1.4vw, 1.25rem); line-height: 1.3; letter-spacing: -.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 8px; top: 50%;
  width: 16px; height: 16px; margin-top: -8px;
  background:
    linear-gradient(var(--accent-strong), var(--accent-strong)) center / 100% 2px no-repeat,
    linear-gradient(var(--accent-strong), var(--accent-strong)) center / 2px 100% no-repeat;
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--accent-strong); }
.faq-body { padding: 0 0 26px; max-width: 68ch; color: var(--ink-2); }
.faq-body p:last-child { margin-bottom: 0; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px 48px; align-items: center;
  padding: clamp(36px, 6vw, 72px);
  background: var(--plum); color: var(--on-plum); border-radius: var(--r-xl);
}
.cta-band::after {
  content: ""; position: absolute; z-index: -1;
  right: -90px; bottom: -150px; width: 360px; height: 360px; border-radius: 50%;
  border: 44px solid rgba(145, 104, 170, .38);
}
.cta-band h2 { color: #fff; margin: 0 0 14px; max-width: 17ch; }
.cta-band p { margin: 0; color: var(--on-plum-muted); max-width: 54ch; }
@media (max-width: 760px) { .cta-band { grid-template-columns: 1fr; } .cta-band .btn { width: 100%; } }

/* ---------- Inner page hero ---------- */
.page-hero { padding: clamp(40px, 6vw, 80px) 0 clamp(48px, 6vw, 80px); }
.page-hero h1 { font-size: clamp(2.4rem, 5vw, 4.1rem); max-width: 16ch; }
.page-hero .lede { margin-top: 22px; }
.breadcrumb { margin: 0 0 22px; font-size: .92rem; color: var(--ink-2); }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; color: var(--line); }
.breadcrumb a { color: var(--ink-2); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent-strong); text-decoration: underline; }

.chip-nav { list-style: none; margin: 36px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chip-nav a {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 18px; border-radius: 999px;
  background: var(--white); border: 1px solid var(--line-soft);
  color: var(--ink); font-weight: 600; text-decoration: none;
}
.chip-nav a:hover { border-color: var(--accent); color: var(--accent-strong); }
.chip-nav svg { width: 18px; height: 18px; color: var(--accent-strong); }

/* ---------- Prose blocks ---------- */
.prose-block p { color: var(--ink-2); }
.prose-block p:first-child { font-size: 1.18rem; color: var(--ink); line-height: 1.6; }

.fact-list { margin: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.fact-list > div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.fact-list dt { font-weight: 650; color: var(--ink); }
.fact-list dd { margin: 0; color: var(--ink-2); }
@media (max-width: 520px) { .fact-list > div { grid-template-columns: 1fr; gap: 2px; } }

.values { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.value { background: var(--white); border-radius: var(--r-lg); padding: 28px 26px 30px; }
.value .glyph { width: 44px; height: 44px; border-radius: 12px; margin-bottom: 22px; }
.value .glyph svg { width: 22px; height: 22px; }
.value h3 { font-size: 1.22rem; margin-bottom: 10px; }
.value p { margin: 0; color: var(--ink-2); font-size: .98rem; }
@media (max-width: 1040px) { .values { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .values { grid-template-columns: 1fr; } }

.commitments { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px; }
.commitments li { padding: 22px 0; border-top: 1px solid rgba(201, 177, 219, .25); }
.commitments strong { display: block; font-family: var(--font-display); font-size: 1.2rem; font-weight: 650; color: #fff; margin-bottom: 6px; letter-spacing: -.01em; }
.commitments span { color: var(--on-plum-muted); }
@media (max-width: 760px) { .commitments { grid-template-columns: 1fr; } }

.office-card {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px; align-items: start;
  background: var(--white); border-radius: var(--r-lg); padding: 28px;
}
.office-card h3 { margin-bottom: 8px; }
.office-card address { color: var(--ink-2); line-height: 1.6; margin-bottom: 12px; }

/* ---------- Services page ---------- */
.service-block {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px 80px;
  padding-block: clamp(64px, 8vw, 112px); border-top: 1px solid var(--line);
}
.service-block:first-of-type { border-top: 0; }
.service-intro { position: sticky; top: calc(var(--header-h) + 32px); align-self: start; }
.service-intro .glyph { margin-bottom: 26px; }
.service-intro h2 { font-size: clamp(2rem, 3.4vw, 2.8rem); max-width: 13ch; }
.service-intro > p { color: var(--ink-2); }
.fit { margin-top: 30px; padding: 24px; border-radius: var(--r-md); background: var(--white); }
.fit h3 { font-size: 1.08rem; margin-bottom: 14px; }

.feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.feature { background: var(--paper); border-radius: var(--r-md); padding: 24px 24px 26px; }
.feature h3 { font-size: 1.14rem; margin-bottom: 8px; }
.feature p { margin: 0; font-size: .98rem; color: var(--ink-2); }

.deliverables { margin-top: 18px; padding: 28px; border-radius: var(--r-md); background: var(--plum); color: var(--on-plum); }
.deliverables h3 { color: #fff; font-size: 1.14rem; margin-bottom: 16px; }
.deliverables .ticks { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 28px; color: var(--on-plum); }
.deliverables .ticks li::before { border-color: var(--accent-on-plum); }
.deliverables .note { margin: 18px 0 0; padding-top: 16px; border-top: 1px solid rgba(201, 177, 219, .25); font-size: .93rem; color: var(--on-plum-muted); }
.platforms { margin: 18px 0 0; font-size: .97rem; color: var(--ink-2); }

.addons { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 48px; }
.addon { border-top: 2px solid var(--accent); padding-top: 20px; }
.addon h3 { font-size: 1.2rem; margin-bottom: 8px; }
.addon p { margin: 0; color: var(--ink-2); font-size: .98rem; }

@media (max-width: 960px) {
  .service-block { grid-template-columns: 1fr; }
  .service-intro { position: static; }
  .addons { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .feature-grid, .deliverables .ticks, .addons { grid-template-columns: 1fr; }
}

/* ---------- Process timeline ---------- */
.timeline { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.timeline > li {
  counter-increment: step;
  display: grid; grid-template-columns: 88px minmax(0, 6fr) minmax(0, 4fr); gap: 16px 48px;
  padding: clamp(28px, 4vw, 44px) 0; border-top: 1px solid var(--line);
}
.timeline > li:last-child { border-bottom: 1px solid var(--line); }
.timeline > li::before {
  content: counter(step);
  font-family: var(--font-display); font-size: clamp(2.6rem, 4vw, 3.4rem); font-weight: 700; line-height: .9;
  color: var(--accent); letter-spacing: -.04em;
}
.timeline h3 { font-size: clamp(1.4rem, 2.2vw, 1.8rem); margin-bottom: 10px; }
.timeline p { margin: 0; color: var(--ink-2); max-width: 54ch; }
.timeline .outcome { align-self: start; padding: 18px 20px; border-radius: var(--r-md); background: var(--white); font-size: .97rem; }
.timeline .outcome strong { display: block; font-size: .9rem; color: var(--accent-strong); margin-bottom: 4px; }
.timeline .outcome p { color: var(--ink); }
@media (max-width: 860px) {
  .timeline > li { grid-template-columns: 56px minmax(0, 1fr); }
  .timeline .outcome { grid-column: 2; }
}

.report-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.report-list li { background: var(--white); border-radius: var(--r-md); padding: 20px 22px; }
.report-list strong { display: block; font-family: var(--font-display); font-size: 1.1rem; letter-spacing: -.01em; margin-bottom: 4px; }
.report-list span { color: var(--ink-2); font-size: .97rem; }
@media (max-width: 600px) { .report-list { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(32px, 4vw, 56px); align-items: start; }
@media (max-width: 960px) { .contact-grid { grid-template-columns: 1fr; } }

.form-card { background: var(--white); border-radius: var(--r-lg); padding: clamp(24px, 4vw, 48px); box-shadow: var(--shadow); }
.form-card h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin-bottom: 6px; }
.form-card > p { color: var(--ink-2); margin-bottom: 30px; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.field label { font-weight: 650; font-size: .96rem; }
.field .optional { font-weight: 400; color: var(--ink-3); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--paper); border: 1.5px solid var(--line); border-radius: 10px;
  transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.field textarea { min-height: 160px; resize: vertical; line-height: 1.55; }
.field select {
  -webkit-appearance: none; appearance: none; padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%236E4A88' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); background-color: #fff;
  box-shadow: 0 0 0 4px rgba(145, 104, 170, .22);
}
.field input:user-invalid, .field textarea:user-invalid { border-color: #A3344A; }

.check { display: flex; gap: 12px; align-items: flex-start; margin: 4px 0 26px; font-size: .95rem; color: var(--ink-2); }
.check input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--accent); }

.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.form-status { display: none; margin-bottom: 26px; padding: 14px 16px; border-radius: 10px; font-weight: 550; }
.form-status.is-visible { display: block; }
.form-status.is-error { background: #F7E4E8; color: #74192B; border: 1px solid #E8B9C3; }
.form-foot { margin: 16px 0 0; font-size: .9rem; color: var(--ink-3); }

.contact-aside { display: grid; gap: 16px; }
.aside-card { background: var(--paper); border-radius: var(--r-lg); padding: 26px; }
.aside-card h2, .aside-card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.aside-card p, .aside-card address { color: var(--ink-2); margin: 0; }
.aside-card a { font-weight: 600; word-break: break-word; }
.aside-dark { background: var(--plum); color: var(--on-plum); }
.aside-dark h2 { color: #fff; }
.next-steps { list-style: none; margin: 0; padding: 0; counter-reset: next; display: grid; gap: 16px; }
.next-steps li { counter-increment: next; position: relative; padding-left: 44px; color: var(--on-plum-muted); }
.next-steps li::before {
  content: counter(next); position: absolute; left: 0; top: -2px;
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: var(--accent); color: #fff; font-weight: 700; font-size: .92rem;
}

/* ---------- Legal pages ---------- */
.legal-wrap { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; padding-bottom: clamp(72px, 9vw, 120px); }
.legal-nav { position: sticky; top: calc(var(--header-h) + 24px); background: var(--paper); border-radius: var(--r-lg); padding: 22px; }
.legal-nav h2 { font-size: 1rem; margin-bottom: 12px; letter-spacing: 0; }
.legal-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.legal-nav ul a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; font-weight: 500; font-size: .96rem; }
.legal-nav ul a:hover { background: rgba(145, 104, 170, .14); }
.legal-nav ul a[aria-current="page"] { background: var(--ink); color: #fff; }
.legal-help { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line-soft); font-size: .92rem; }
.legal-help p { margin: 0 0 4px; color: var(--ink-2); }
.legal-help a { font-weight: 650; color: var(--accent-strong); }

.prose { max-width: 72ch; background: var(--white); border-radius: var(--r-lg); padding: clamp(24px, 4.5vw, 56px); }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-size: clamp(1.35rem, 2vw, 1.65rem); margin: 2.2em 0 .6em; letter-spacing: -.02em; }
.prose h3 { font-size: 1.15rem; margin: 1.6em 0 .5em; }
.prose p, .prose li { color: #37313F; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.1em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--accent-strong); }
.prose .intro { font-size: 1.12rem; color: var(--ink); }
.prose .contact-block { margin-top: 1em; padding: 20px 22px; border-radius: var(--r-md); background: var(--paper); }
.prose .contact-block p { margin: 0; }
.updated { margin-top: 16px; font-size: .98rem; color: var(--ink-2); }

@media (max-width: 900px) {
  .legal-wrap { grid-template-columns: 1fr; }
  .legal-nav { position: static; order: 2; }
}

/* ---------- Simple message pages (404, thank you) ---------- */
.message-page { padding: clamp(64px, 10vw, 140px) 0; }
.message-page h1 { max-width: 14ch; }
.message-page .lede { margin-top: 20px; }
.message-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.big-mark { font-family: var(--font-display); font-weight: 800; font-size: clamp(5rem, 16vw, 11rem); line-height: .85; letter-spacing: -.06em; color: var(--accent); margin-bottom: 24px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--plum); color: var(--on-plum-muted); padding-top: clamp(64px, 8vw, 96px); font-size: .97rem; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)) minmax(0, 1.3fr); gap: 40px 36px; }
.footer-brand .brand { margin-bottom: 20px; }
.footer-brand .brand img { height: 72px; }
.footer-brand p { max-width: 34ch; margin-bottom: 22px; }
.footer-title { font-family: var(--font-display); font-size: 1rem; font-weight: 650; color: #fff; margin: 0 0 14px; letter-spacing: -.005em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a:not(.btn):not(.brand) { color: var(--on-plum); text-decoration: none; }
.site-footer a:not(.btn):not(.brand):hover { color: #fff; text-decoration: underline; text-decoration-color: var(--accent); }
.site-footer address { line-height: 1.6; margin-bottom: 12px; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  margin-top: clamp(48px, 6vw, 72px); padding-block: 24px 28px;
  border-top: 1px solid rgba(201, 177, 219, .2); font-size: .9rem;
}
.footer-bottom p { margin: 0; }

@media (max-width: 1040px) {
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 620px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-contact { grid-column: 1 / -1; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer, .cta-band, .legal-nav { display: none !important; }
  body { background: #fff; }
  .prose { padding: 0; }
}
