/* ==========================================================================
   Heath Design Studio — design system + site styles
   --------------------------------------------------------------------------
   1. Fonts + tokens   4. Buttons/links    7. Services      10. Pricing
   2. Base             5. Header           8. Experience    11. FAQ
   3. Layout           6. Hero             9. About/process 12. Quote, footer, pages
   ========================================================================== */

/* 1. Fonts (self-hosted Inter, SIL Open Font License — see /fonts) ---------- */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/inter-400.woff") format("woff"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/inter-500.woff") format("woff"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/inter-600.woff") format("woff"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/inter-700.woff") format("woff"); }

:root {
  /* Color */
  --bg: #101216;
  --bg-alt: #191d24;
  --surface: #151820;
  --surface-hover: #1b2029;
  --accent: #7189ac;          /* slate blue — 5.25:1 on --bg */
  --accent-hover: #8aa0c0;
  --accent-ink: #101216;      /* text on slate blue (white fails AA) */
  --accent-soft: rgba(113, 137, 172, 0.12);
  --text: #f4f5f7;
  --text-body: #aab2c0;       /* paragraphs — brighter than muted for long reading */
  --text-muted: #8b95a7;      /* meta, labels — 6.2:1 on --bg */
  --border: #303640;
  --border-control: #646d7e;  /* form controls: 3:1 non-text contrast */
  --error: #f09a84;

  /* Type */
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: 1.375rem;
  --fs-h2: clamp(1.85rem, 1.35rem + 2vw, 2.75rem);
  --fs-h1: clamp(2.4rem, 1.5rem + 3.1vw, 4.25rem);

  /* Space */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4rem;
  --section-y: clamp(3.75rem, 2.5rem + 4vw, 6.25rem);
  --gutter: clamp(1rem, 0.5rem + 2.5vw, 2.5rem);
  --max: 1200px;

  /* Shape + motion */
  --radius: 16px;
  --radius-sm: 10px;
  --radius-pill: 999px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --dur: 200ms;
  --header-h: 76px;
}

/* 2. Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "kern", "calt";
}

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

p { margin: 0; color: var(--text-body); text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
strong { color: var(--text); font-weight: 600; }
figure { margin: 0; }

::selection { background: var(--accent); color: var(--accent-ink); }

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

.skip-link {
  position: absolute;
  left: var(--s-4);
  top: -100px;
  z-index: 100;
  padding: var(--s-3) var(--s-4);
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
}
.skip-link:focus { top: var(--s-4); }

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

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

.section {
  padding-block: var(--section-y);
  border-top: 1px solid var(--border);
}
.section--alt { background: var(--bg-alt); }

.section-head {
  display: grid;
  gap: var(--s-4);
  max-width: 680px;
  margin-bottom: clamp(2rem, 1.5rem + 1.5vw, 3rem);
}
.section-head--split { max-width: none; align-items: end; }
.section-head--split .section-title { margin-top: var(--s-4); }
@media (min-width: 900px) {
  .section-head--split { grid-template-columns: 1.1fr 1fr; gap: var(--s-7); }
}

.section-title { font-size: var(--fs-h2); }
.section-lede { font-size: var(--fs-md); max-width: 560px; }

/* Spaced uppercase labels echo the logo's "DESIGN STUDIO" line */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: currentColor;
}

/* 4. Buttons + links ------------------------------------------------------- */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--text);
  --btn-border: var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  min-height: 48px;
  padding: 0.75rem 1.4rem;
  border: 1px solid var(--btn-border);
  border-radius: var(--radius-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease),
    color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline-offset: 4px; border-radius: var(--radius-pill); }

.btn--primary { --btn-bg: var(--accent); --btn-fg: var(--accent-ink); --btn-border: var(--accent); }
.btn--primary:hover { --btn-bg: var(--accent-hover); --btn-border: var(--accent-hover); }
.btn--secondary:hover { --btn-border: var(--accent); --btn-fg: var(--accent-hover); }
.btn--sm { min-height: 42px; padding: 0.55rem 1.1rem; font-size: var(--fs-sm); }
.btn--block { width: 100%; }

.btn .icon { width: 16px; height: 16px; transition: transform var(--dur) var(--ease); }
.btn:hover .icon { transform: translateX(3px); }
.btn[disabled] { opacity: 0.6; cursor: progress; transform: none; }

.link {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  transition: color var(--dur) var(--ease);
}
.link:hover { color: var(--accent-hover); }

/* 5. Header ---------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(16, 18, 22, 0.86);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--border); }

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-5);
  min-height: var(--header-h);
}

/* Logo: monochrome artwork, never recolored */
.brand { display: inline-flex; align-items: center; flex: none; padding-block: 6px; }
.brand img { height: 48px; width: auto; }
.brand--footer img { height: 68px; }

.header-actions { display: none; align-items: center; gap: var(--s-2); }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  background: transparent;
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.icon-btn svg { width: 19px; height: 19px; }
.icon-btn:hover { border-color: var(--accent); color: var(--accent-hover); }
.icon-btn--call { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.icon-btn--call:hover { background: var(--accent-hover); color: var(--accent-ink); }

.nav { display: flex; align-items: center; gap: var(--s-5); }
.nav__list { display: flex; gap: var(--s-1); }
.nav__link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 0.8rem;
  border-radius: var(--radius-pill);
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.nav__link:hover { color: var(--text); background: rgba(244, 245, 247, 0.04); }
.nav__link[aria-current="true"] { color: var(--text); }

.nav-toggle {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text);
  cursor: pointer;
}
.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block;
  width: 18px;
  height: 1.5px;
  background: currentColor;
  border-radius: 2px;
  transition: transform var(--dur) var(--ease), background-color var(--dur) var(--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: 960px) {
  :root { --header-h: 68px; }
  .brand img { height: 42px; }
  .header-actions { display: flex; }
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: var(--s-5);
    padding: var(--s-4) var(--gutter) var(--s-6);
    background: var(--bg);
    border-bottom: 1px solid var(--border);
  }
  .nav.is-open { display: flex; }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__link {
    display: flex;
    min-height: 52px;
    padding: 0;
    border-radius: 0;
    border-bottom: 1px solid var(--border);
    font-size: 1.1rem;
    color: var(--text);
  }
  .nav__link:hover { background: none; color: var(--accent-hover); }
  .nav .btn { width: 100%; min-height: 50px; }
}

/* 6. Hero ------------------------------------------------------------------ */
.hero {
  position: relative;
  padding-block: clamp(2.5rem, 1rem + 5vw, 5.5rem) clamp(3rem, 2rem + 4vw, 5.5rem);
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(55% 60% at 80% 35%, rgba(113, 137, 172, 0.16), transparent 70%),
    linear-gradient(to right, rgba(244, 245, 247, 0.04) 1px, transparent 1px) 0 0 / 72px 72px,
    linear-gradient(to bottom, rgba(244, 245, 247, 0.04) 1px, transparent 1px) 0 0 / 72px 72px;
  -webkit-mask-image: linear-gradient(to bottom, #000 35%, transparent 95%);
  mask-image: linear-gradient(to bottom, #000 35%, transparent 95%);
}

.hero__grid {
  display: grid;
  gap: clamp(2.5rem, 1.5rem + 4vw, 5rem);
  align-items: center;
}
@media (min-width: 1000px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

.hero__title {
  margin-top: var(--s-5);
  font-size: var(--fs-h1);
  letter-spacing: -0.035em;
  line-height: 1.04;
  max-width: 15ch;
}
.hero__title .dot { color: var(--accent); }

.hero__copy {
  margin-top: var(--s-5);
  max-width: 34rem;
  font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  margin-top: var(--s-6);
}

.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2) var(--s-5);
  margin-top: var(--s-6);
  padding-top: var(--s-5);
  border-top: 1px solid var(--border);
}
.hero__facts li {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-size: var(--fs-sm);
  color: var(--text-body);
}
.hero__facts svg { width: 16px; height: 16px; color: var(--accent); flex: none; }

/* Logo showcase */
.showcase {
  position: relative;
  display: grid;
  align-content: center;
  gap: var(--s-6);
  padding: clamp(2rem, 1rem + 3vw, 3rem);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  background:
    radial-gradient(80% 70% at 50% 40%, rgba(113, 137, 172, 0.14), transparent 75%),
    linear-gradient(180deg, rgba(25, 29, 36, 0.9), rgba(16, 18, 22, 0.9));
  box-shadow: 0 40px 100px -50px rgba(0, 0, 0, 0.9);
  min-height: 380px;
}
.showcase__logo { width: 100%; max-width: 520px; height: auto; margin-inline: auto; }
.showcase__caption {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--s-2) var(--s-4);
  padding-top: var(--s-4);
  border-top: 1px solid var(--border);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.showcase__corner {
  position: absolute;
  width: 18px;
  height: 18px;
  border-color: var(--accent);
  border-style: solid;
  border-width: 0;
  opacity: 0.8;
}
.showcase__corner--tl { top: 14px; left: 14px; border-top-width: 1.5px; border-left-width: 1.5px; }
.showcase__corner--tr { top: 14px; right: 14px; border-top-width: 1.5px; border-right-width: 1.5px; }
.showcase__corner--bl { bottom: 14px; left: 14px; border-bottom-width: 1.5px; border-left-width: 1.5px; }
.showcase__corner--br { bottom: 14px; right: 14px; border-bottom-width: 1.5px; border-right-width: 1.5px; }

@media (max-width: 999px) {
  .showcase { min-height: 0; padding: 2.5rem 2rem; }
  .showcase__logo { max-width: 340px; }
}

/* Shared card ---------------------------------------------------------------- */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  padding: clamp(1.5rem, 1.2rem + 1vw, 2.25rem);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color var(--dur) var(--ease);
}
.card:hover { border-color: rgba(113, 137, 172, 0.55); }
.card__title { font-size: var(--fs-lg); letter-spacing: -0.02em; }

/* 7. Services: editorial list ----------------------------------------------- */
.service-list { border-top: 1px solid var(--border); }
.service-row {
  position: relative;
  display: grid;
  gap: var(--s-4);
  padding: clamp(1.5rem, 1.2rem + 1vw, 2.1rem) 0;
  border-bottom: 1px solid var(--border);
}
.service-row::before {
  /* accent rule that grows on hover */
  content: "";
  position: absolute;
  left: 0;
  top: -1px;
  height: 1px;
  width: 0;
  background: var(--accent);
  transition: width 500ms var(--ease);
}
.service-row:hover::before { width: 100%; }
.service-row__num {
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.service-row__main h3 { font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.85rem); margin-bottom: var(--s-3); }
.service-row__points { display: grid; gap: var(--s-2); align-content: start; }
.service-row__points li {
  position: relative;
  padding-left: 1.25rem;
  font-size: 0.94rem;
  color: var(--text-body);
}
.service-row__points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
@media (min-width: 900px) {
  .service-row { grid-template-columns: 5rem minmax(0, 1.3fr) minmax(0, 1fr); gap: var(--s-7); }
  .service-row__num { padding-top: 0.55rem; }
  .service-row__points { padding-top: 0.5rem; }
}

/* 8. Experience: live demos -------------------------------------------------- */
.demo-grid { display: grid; gap: var(--s-4); }
@media (min-width: 720px) { .demo-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .demo-grid { grid-template-columns: repeat(3, 1fr); } }

.demo {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  padding: clamp(1.5rem, 1.2rem + 1vw, 2.1rem);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-alt);
  transition: border-color var(--dur) var(--ease);
}
.demo:hover { border-color: rgba(113, 137, 172, 0.55); }
.demo--wide { grid-column: 1 / -1; }
.demo h3 { font-size: 1.2rem; letter-spacing: -0.015em; }
.demo__head { display: flex; justify-content: space-between; align-items: center; }
.demo__tag {
  padding: 0.2rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--accent-hover);
}
.demo__icon { color: var(--text-muted); }
.demo__icon svg { width: 20px; height: 20px; }
.demo__readout { font-size: 1rem; }
.demo__readout strong { font-variant-numeric: tabular-nums; font-size: 1.15rem; }
.demo__layout { display: block; margin-top: 2px; font-size: var(--fs-sm); color: var(--text-muted); }
.demo__note { font-size: 0.8rem; color: var(--text-muted); }

.devices { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: auto; }
.device {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  color: var(--text-muted);
  transition: all var(--dur) var(--ease);
}
.device svg { width: 15px; height: 15px; }
.device.is-active { border-color: var(--accent); color: var(--text); background: var(--accent-soft); }

kbd {
  display: inline-block;
  padding: 0 0.45rem;
  border: 1px solid var(--border-control);
  border-bottom-width: 2px;
  border-radius: 6px;
  font: 600 0.85em/1.5 var(--font);
  color: var(--text);
  vertical-align: 0.1em;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  align-self: flex-start;
  margin-top: auto;
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  color: var(--text-muted);
  transition: all var(--dur) var(--ease);
}
.status__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--border-control); transition: inherit; }
.status.is-on, .status--done { border-color: var(--accent); color: var(--text); }
.status.is-on .status__dot, .status--done .status__dot { background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }

/* Before/after comparison */
.compare {
  --pos: 50%;
  position: relative;
  container-type: inline-size;
  aspect-ratio: 16 / 6.2;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  user-select: none;
  touch-action: pan-y;
}
@media (max-width: 640px) { .compare { aspect-ratio: 4 / 3.4; } }
.compare:focus-within { outline: 2px solid var(--accent); outline-offset: 3px; }

.mock { position: absolute; inset: 0; overflow: hidden; }

.mock--basic {
  background: #e4e4e4;
  color: #222;
  font-family: "Times New Roman", Times, serif;
  text-align: center;
  padding: 3cqw 4cqw;
  display: grid;
  align-content: start;
  gap: 1.6cqw;
}
.mb-top { font-weight: 700; font-size: 3.4cqw; color: #a11; letter-spacing: 0.02em; }
.mb-links { font-size: 1.7cqw; color: #1a3fd1; }
.mb-img {
  margin-inline: auto;
  width: 36%;
  aspect-ratio: 16 / 7;
  display: grid;
  place-items: center;
  background: #bbb;
  border: 2px ridge #999;
  font-size: 1.5cqw;
  color: #555;
}
.mb-text { color: #333; font-size: 1.6cqw; line-height: 1.35; max-width: 70%; margin-inline: auto; }
.mb-btn { font-size: 1.8cqw; color: #1a3fd1; font-weight: 700; }

.mock--good {
  clip-path: inset(0 0 0 var(--pos));
  background:
    radial-gradient(60% 80% at 85% 0%, rgba(113, 137, 172, 0.25), transparent 70%),
    #101216;
  color: var(--text);
  padding: 2.4cqw 4cqw;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 2cqw;
}
.mg-nav { display: flex; align-items: center; gap: 2cqw; }
.mg-logo { width: 9cqw; height: 1.6cqw; border-radius: 0.4cqw; background: #f4f5f7; }
.mg-links { display: flex; gap: 1.6cqw; margin-left: auto; }
.mg-links i { width: 5cqw; height: 0.9cqw; border-radius: 1cqw; background: #4a5263; }
.mg-cta {
  padding: 0.7cqw 1.6cqw;
  border-radius: 5cqw;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 1.25cqw;
  font-weight: 600;
}
.mg-hero { display: grid; align-content: center; justify-items: center; text-align: center; gap: 1.2cqw; max-width: 70%; margin-inline: auto; }
.mg-eyebrow { font-size: 1.1cqw; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent-hover); font-weight: 600; }
.mg-h { font-size: 4.2cqw; font-weight: 700; line-height: 1.05; letter-spacing: -0.03em; }
.mg-sub { font-size: 1.5cqw; color: var(--text-body); }
.mg-btns { display: flex; justify-content: center; gap: 1cqw; margin-top: 0.6cqw; }
.mg-btns b, .mg-btns em {
  padding: 0.8cqw 1.8cqw;
  border-radius: 5cqw;
  font-size: 1.3cqw;
  font-style: normal;
  font-weight: 600;
}
.mg-btns b { background: var(--accent); color: var(--accent-ink); }
.mg-btns em { border: 1px solid #3a414d; }
.mg-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4cqw; }
.mg-cards i { height: 6cqw; border: 1px solid #2a303a; border-radius: 1cqw; background: #171b22; }

.compare__line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 2px;
  margin-left: -1px;
  background: var(--accent);
  pointer-events: none;
}
.compare__knob {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
}
.compare__knob::before, .compare__knob::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 0;
  height: 0;
  border-block: 5px solid transparent;
  transform: translateY(-50%);
}
.compare__knob::before { left: 9px; border-right: 6px solid var(--accent-ink); }
.compare__knob::after { right: 9px; border-left: 6px solid var(--accent-ink); }
.compare__label {
  position: absolute;
  top: 10px;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-pill);
  background: rgba(16, 18, 22, 0.8);
  color: var(--text);
  font-size: 0.75rem;
  font-weight: 600;
  pointer-events: none;
}
.compare__label--l { left: 10px; }
.compare__label--r { right: 10px; }
.compare__range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
}

/* 9. About + process --------------------------------------------------------- */
.about { display: grid; gap: clamp(2rem, 1.5rem + 2vw, 3.5rem); margin-bottom: clamp(2.5rem, 2rem + 2vw, 4rem); }
@media (min-width: 900px) {
  .about { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: center; }
}
.about__intro { display: grid; gap: var(--s-5); align-content: start; }
.about__intro .section-title { margin-bottom: var(--s-2); }

.profile {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: var(--s-5);
  padding: var(--s-6);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    radial-gradient(70% 90% at 0% 0%, rgba(113, 137, 172, 0.12), transparent 70%),
    var(--surface);
}
.profile__mark {
  width: 64px;
  height: auto;
  padding: 14px;
  box-sizing: content-box;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg);
}
.profile__name { font-size: 1.5rem; font-weight: 700; color: var(--text); letter-spacing: -0.02em; line-height: 1.2; }
.profile__role { margin-top: 4px; font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-muted); }
.profile__facts {
  grid-column: 1 / -1;
  display: grid;
  gap: var(--s-3);
  padding-top: var(--s-5);
  border-top: 1px solid var(--border);
}
.profile__facts li { display: grid; grid-template-columns: 20px 1fr; gap: var(--s-3); align-items: start; font-size: 0.95rem; color: var(--text); }
.profile__facts svg { width: 18px; height: 18px; color: var(--accent); margin-top: 3px; }

.about__bio { display: grid; gap: var(--s-4); font-size: var(--fs-md); }
.about__bio p { font-size: inherit; }

.about__values-title {
  margin-bottom: var(--s-4);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.value__list {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--border);
}
@media (min-width: 640px) { .value__list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .value__list { grid-template-columns: repeat(5, 1fr); } }
.value__item {
  display: grid;
  align-content: start;
  gap: var(--s-2);
  padding: var(--s-5);
  background: var(--bg-alt);
}
.value__item p { font-size: 0.92rem; }
.value__num { font-size: var(--fs-sm); font-weight: 600; color: var(--accent); font-variant-numeric: tabular-nums; }
.value__item h3 { font-size: 1.05rem; letter-spacing: -0.01em; margin-bottom: 0.4rem; line-height: 1.25; }

.process { display: grid; gap: var(--s-4); }
@media (min-width: 860px) { .process { grid-template-columns: repeat(3, 1fr); } }
.step__top { display: flex; align-items: center; gap: var(--s-4); margin-bottom: var(--s-2); }
.step__num {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  color: var(--accent-hover);
  font-weight: 600;
  font-size: var(--fs-sm);
}
.step__line { flex: 1; height: 1px; background: linear-gradient(to right, var(--border), transparent); }

/* 10. Pricing ----------------------------------------------------------------- */
.pricing-group + .pricing-group { margin-top: var(--s-7); }
.pricing-group__label {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  margin-bottom: var(--s-4);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text);
}
.pricing-group__label span { font-weight: 500; color: var(--text-muted); }

.plans { display: grid; gap: var(--s-4); }
@media (min-width: 700px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1180px) { .plans { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.plan__kind {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.plan { gap: var(--s-4); }
.plan--featured {
  border-color: rgba(113, 137, 172, 0.6);
  background: linear-gradient(180deg, rgba(113, 137, 172, 0.09), transparent 55%), var(--surface);
}
.plan__head { display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); min-height: 26px; }
.plan__badge {
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  color: var(--accent-hover);
  font-size: var(--fs-xs);
  font-weight: 600;
  white-space: nowrap;
}
.plan__price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: var(--s-2);
  font-size: clamp(2rem, 1.7rem + 0.8vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1;
  color: var(--text);
}
.plan__price small { font-size: 0.95rem; font-weight: 500; letter-spacing: 0; color: var(--text-muted); }
.plan__fit { font-size: 0.92rem; }
.plan__includes {
  display: grid;
  gap: var(--s-2);
  padding-top: var(--s-4);
  border-top: 1px solid var(--border);
}
.plan__includes li { display: grid; grid-template-columns: 16px 1fr; gap: var(--s-2); font-size: 0.9rem; color: var(--text-body); }
.plan__includes svg { width: 16px; height: 16px; color: var(--accent); margin-top: 4px; }
.plan__range { font-size: 0.85rem; color: var(--text-muted); }
.plan .btn { margin-top: auto; white-space: normal; text-align: center; }

.pricing-notes {
  display: grid;
  gap: var(--s-5);
  margin-top: var(--s-5);
  padding: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  border: 1px dashed var(--border-control);
  border-radius: var(--radius);
}
@media (min-width: 860px) { .pricing-notes { grid-template-columns: repeat(3, 1fr); gap: var(--s-6); } }
.pricing-notes h3 { font-size: 1rem; margin-bottom: var(--s-2); letter-spacing: -0.01em; }
.pricing-notes p, .pricing-notes li { font-size: 0.92rem; color: var(--text-body); }
.pricing-notes ul { display: grid; gap: var(--s-1); }
.pricing-notes li::before { content: "– "; color: var(--accent); }

/* 11. FAQ --------------------------------------------------------------------- */
.faq-wrap { display: grid; gap: var(--s-7); align-items: start; }
@media (min-width: 960px) {
  .faq-wrap { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr); }
  .faq-wrap .section-head { margin-bottom: 0; position: sticky; top: calc(var(--header-h) + 2rem); }
}
.faq { border-top: 1px solid var(--border); }
.faq__item { border-bottom: 1px solid var(--border); }
.faq__q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-5);
  padding-block: var(--s-5);
  font-size: 1.06rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  list-style: none;
  cursor: pointer;
  transition: color var(--dur) var(--ease);
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q:hover { color: var(--accent-hover); }
.faq__icon {
  position: relative;
  flex: none;
  width: 28px;
  height: 28px;
  border: 1px solid var(--border);
  border-radius: 50%;
  transition: border-color var(--dur) var(--ease);
}
.faq__icon::before, .faq__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 1.5px;
  background: var(--accent);
  transform: translate(-50%, -50%);
}
.faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform var(--dur) var(--ease); }
.faq__item[open] .faq__icon { border-color: var(--accent); }
.faq__item[open] .faq__icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq__a { padding: 0 3rem var(--s-5) 0; }
.faq__a p + p { margin-top: var(--s-3); }

/* 12. Quote form ------------------------------------------------------------- */
.quote {
  position: relative;
  padding-block: var(--section-y);
  border-top: 1px solid var(--border);
  overflow: hidden;
  isolation: isolate;
}
.quote::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(55% 60% at 0% 100%, rgba(113, 137, 172, 0.14), transparent 70%);
}
.quote__grid { display: grid; gap: clamp(2.5rem, 2rem + 3vw, 5rem); }
.quote__grid > * { min-width: 0; }
@media (min-width: 980px) {
  .quote__grid { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); align-items: start; }
}
.quote__title { margin-top: var(--s-5); font-size: clamp(2.4rem, 1.6rem + 3.2vw, 4rem); letter-spacing: -0.035em; }
.quote__copy { margin-top: var(--s-5); font-size: var(--fs-md); max-width: 30rem; }
.quote__expect { display: grid; gap: var(--s-3); margin-top: var(--s-6); }
.quote__expect li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: var(--s-3);
  align-items: start;
  font-size: 0.95rem;
  color: var(--text-body);
}
.quote__expect span.n {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--border);
  border-radius: 50%;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--accent-hover);
}

.quote__direct {
  display: grid;
  gap: var(--s-1);
  margin-top: var(--s-6);
  padding-top: var(--s-5);
  border-top: 1px solid var(--border);
}
.quote__direct p { font-size: var(--fs-sm); color: var(--text-muted); margin-bottom: var(--s-2); }
.quote__contact {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  min-height: 44px;
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--text);
  overflow-wrap: anywhere;
  transition: color var(--dur) var(--ease);
}
.quote__contact svg { width: 18px; height: 18px; color: var(--accent); flex: none; }
.quote__contact:hover { color: var(--accent-hover); }

.form-card {
  padding: clamp(1.5rem, 1rem + 2vw, 2.75rem);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  background: var(--bg-alt);
  box-shadow: 0 40px 90px -50px rgba(0, 0, 0, 0.9);
}
.form { display: grid; gap: var(--s-5); }
.form__row { display: grid; gap: var(--s-5); align-items: start; }
@media (min-width: 620px) { .form__row { grid-template-columns: 1fr 1fr; } }

.field { display: grid; gap: var(--s-2); min-width: 0; align-content: start; }
.field__label { font-size: var(--fs-sm); font-weight: 600; color: var(--text); }
.field__opt { font-weight: 500; color: var(--text-muted); }
.field__hint { font-size: 0.82rem; color: var(--text-muted); }

.input {
  width: 100%;
  min-height: 50px;
  padding: 0.75rem 0.95rem;
  border: 1px solid var(--border-control);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 1rem;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.input::placeholder { color: #6b7385; }
.input:hover { border-color: #7a8396; }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(113, 137, 172, 0.3); }
textarea.input { min-height: 140px; resize: vertical; line-height: 1.55; }
select.input {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2.75rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' viewBox='0 0 24 24'%3E%3Cpath stroke='%238B95A7' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.95rem center;
  cursor: pointer;
}
select.input option { background: var(--bg-alt); color: var(--text); }

.field.has-error .input { border-color: var(--error); }
.field.has-error .input:focus { box-shadow: 0 0 0 3px rgba(240, 154, 132, 0.25); }
.field__error { display: none; align-items: center; gap: var(--s-2); font-size: 0.85rem; font-weight: 500; color: var(--error); }
.field.has-error .field__error { display: flex; }
.field__error svg { width: 15px; height: 15px; flex: none; }

.form__summary {
  display: none;
  padding: var(--s-4);
  border: 1px solid rgba(240, 154, 132, 0.45);
  border-radius: var(--radius-sm);
  background: rgba(240, 154, 132, 0.07);
  font-size: 0.92rem;
  color: var(--text);
}
.form__summary.is-visible { display: block; }
.form__summary:focus { outline: 2px solid var(--error); outline-offset: 2px; }

.form__foot { display: grid; gap: var(--s-3); }
.form__privacy { font-size: 0.82rem; color: var(--text-muted); }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.form-success { display: none; }
.form-success.is-visible { display: grid; gap: var(--s-4); }
.form-success:focus { outline: none; }
.form-success__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  color: var(--accent-hover);
}
.form-success__icon svg { width: 24px; height: 24px; }
.form-success h3 { font-size: 1.6rem; }
.form-success ol { display: grid; gap: var(--s-2); }
.form-success ol li { counter-increment: s; font-size: 0.95rem; color: var(--text-body); }
.form-success ol { counter-reset: s; }
.form-success ol li::before { content: counter(s) ". "; color: var(--accent-hover); font-weight: 600; }

/* Footer --------------------------------------------------------------------- */
.site-footer {
  padding-block: var(--s-8) var(--s-6);
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
}
.footer__grid { display: grid; gap: var(--s-7); }
@media (min-width: 760px) { .footer__grid { grid-template-columns: 1.6fr 1fr 1fr; } }
.footer__statement { margin-top: var(--s-4); max-width: 27rem; font-size: 0.95rem; }
.footer__heading {
  margin-bottom: var(--s-4);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.footer__links { display: grid; gap: var(--s-1); }
.footer__links a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  font-size: 0.95rem;
  color: var(--text);
  overflow-wrap: anywhere;
  transition: color var(--dur) var(--ease);
}
.footer__links a:hover { color: var(--accent-hover); }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--s-3);
  margin-top: var(--s-8);
  padding-top: var(--s-5);
  border-top: 1px solid var(--border);
  font-size: var(--fs-sm);
  color: var(--text-muted);
}
.footer__bottom-links { display: flex; gap: var(--s-5); }

/* Simple pages (thank-you, privacy, 404) ------------------------------------- */
.simple { padding-block: clamp(3rem, 2rem + 5vw, 6rem); }
.simple__inner { max-width: 680px; display: grid; gap: var(--s-5); }
.simple h1 { font-size: clamp(2.3rem, 1.8rem + 2.6vw, 3.6rem); }
.simple h2 { font-size: 1.25rem; margin-top: var(--s-4); }
.simple ul { display: grid; gap: var(--s-2); padding-left: 1.2rem; list-style: disc; color: var(--text-body); }
.simple .hero__actions { margin-top: var(--s-2); }
.simple--center { min-height: calc(100vh - var(--header-h)); display: grid; align-items: center; }

/* Motion --------------------------------------------------------------------- */
/* Only hidden when JS is running, so content never disappears without it */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 600ms var(--ease), transform 600ms var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
