:root {
  --ink: #17131f;
  --muted: #5c5670;
  --dim: #676079;
  --purple: #7c3aed;
  --deep: #5b21b6;
  --lite: #a855f7;
  --red: #dc1f1f;
  --panel: #f7f5fc;
  --soft: #ede4fd;
  --tint: #f6f3fc;
  --line: #e4dcf2;
  --line-ui: #8b82a4;
  --paper: #ffffff;
  --bg: #fbfafe;
  --card: #ffffff;
  --dark: #130e1d;
  --dark2: #1c1528;
  --header: rgba(251, 250, 254, .9);
  --topbar: #130e1d;
  --topbar-text: #d8d0e8;
  --shadow: 0 18px 50px rgba(30, 15, 70, .08);
  --radius: 20px;
  --ok: #0f7a4b;
  --warn: #8a5a00;
  --focus: #5b21b6;
  --font-d: "Funnel Display", "Segoe UI", Calibri, sans-serif;
  --font-b: "Funnel Sans", "Segoe UI", Calibri, sans-serif;
  --stripe: linear-gradient(90deg, var(--lite), var(--purple) 55%, var(--red));
}
html[data-theme="dark"] {
  --ink: #f4f0fd;
  --muted: #c8c0d8;
  --dim: #a79fba;
  --panel: #241c33;
  --soft: #2d2440;
  --tint: #1b1428;
  --line: rgba(255,255,255,.12);
  --line-ui: #777089;
  --paper: #1b1428;
  --bg: #130e1d;
  --card: #1c1528;
  --header: rgba(19, 14, 29, .9);
  --shadow: 0 18px 50px rgba(0,0,0,.35);
  --focus: #c084fc;
}
@media (prefers-color-scheme: dark) {
  html[data-theme="system"] {
    --ink: #f4f0fd;
    --muted: #c8c0d8;
    --dim: #a79fba;
    --panel: #241c33;
    --soft: #2d2440;
    --tint: #1b1428;
    --line: rgba(255,255,255,.12);
    --line-ui: #777089;
    --paper: #1b1428;
    --bg: #130e1d;
    --card: #1c1528;
    --header: rgba(19, 14, 29, .9);
    --shadow: 0 18px 50px rgba(0,0,0,.35);
    --focus: #c084fc;
  }
}
* { box-sizing: border-box; }
/* Author display rules (flex/grid) otherwise beat the UA [hidden] rule and
   panels (chat, bell, consent…) can never close. */
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-b);
  color: var(--ink);
  background: var(--bg);
  font-size: 1.02rem;
  line-height: 1.6;
  min-height: 100vh;
}
img { max-width: 100%; height: auto; display: block; }
body { overflow-wrap: break-word; }
/* PATCH-119: 64-char SHA-256 hex forced ~555px-wide boxes on phones. */
code { word-break: break-all; }
pre { overflow-x: auto; max-width: 100%; }
a { color: var(--deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
html[data-theme="dark"] a { color: #d6b8ff; }
html[data-theme="dark"] .mega a, html[data-theme="system"] .mega a { color: var(--ink); }
html[data-theme="dark"] .mobile-panel a, html[data-theme="system"] .mobile-panel a { color: var(--ink); }
a:hover { color: var(--purple); }
h1, h2, h3, h4, .disp { font-family: var(--font-d); letter-spacing: -.03em; line-height: 1.05; font-weight: 680; }
h1 { font-size: clamp(2.4rem, 5.4vw, 4.6rem); margin: 0 0 .4em; }
h2 { font-size: clamp(1.7rem, 3vw, 2.6rem); margin: 0 0 .45em; }
h3 { font-size: 1.25rem; margin: 0 0 .35em; }
p { margin: 0 0 .8em; }
.skip {
  position: absolute; left: 12px; top: -40px; background: var(--deep); color: #fff; padding: 8px 12px; z-index: 80; border-radius: 8px;
}
.skip:focus { top: 8px; }
.stripe { height: 4px; background: var(--stripe); }
.wrap { width: min(1180px, calc(100% - 32px)); margin-inline: auto; }
.wrap-l { width: min(1280px, calc(100% - 32px)); margin-inline: auto; }
.topbar {
  background: var(--topbar); color: var(--topbar-text); font-size: .82rem;
}
.topbar .wrap { display: flex; gap: 16px; align-items: center; min-height: 38px; flex-wrap: wrap; padding: 6px 0; }
.topbar a { color: var(--topbar-text); text-decoration: none; }
.topbar a:hover { color: #fff; }
.topbar .sp { margin-left: auto; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.chip, .seg a, .seg button {
  border: 1px solid var(--line-ui); color: inherit; background: transparent;
  border-radius: 999px; padding: 3px 9px; text-decoration: none; font: inherit; font-size: .78rem; cursor: pointer;
}
.seg a, .seg button { border-color: rgba(255,255,255,.45); }
.seg a[aria-current="true"], .seg .on { background: #fff; color: var(--dark); border-color: #fff; }
.header {
  position: sticky; top: 0; z-index: 40; background: var(--header);
  backdrop-filter: blur(16px); border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; gap: 18px; min-height: 72px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); margin-right: 8px; }
.brand img { width: 40px; height: 38px; object-fit: contain; }
.brand strong { display: block; font-family: var(--font-d); font-size: 1.15rem; letter-spacing: -.03em; line-height: 1; }
.brand small { display: block; color: var(--muted); font-size: .68rem; letter-spacing: .04em; text-transform: uppercase; margin-top: 3px; }
.menu { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.menu > li { position: relative; }
.menu > li > a, .menu-btn {
  display: inline-flex; align-items: center; gap: 6px; min-height: 42px; padding: 0 10px;
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; background: none; border: 0; font-family: inherit; cursor: pointer;
}
.menu > li > a.is-active, .menu > li > a:hover, .menu-btn:hover { color: var(--deep); }
.mega {
  position: absolute; left: 0; top: calc(100% - 4px); width: min(760px, 80vw);
  background: var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow);
  padding: 18px; display: none; grid-template-columns: repeat(3, 1fr); gap: 14px;
}
.menu > li:hover .mega, .menu > li:focus-within .mega { display: grid; }
.mega h4 { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); margin: 0 0 8px; }
.mega a { display: flex; gap: 8px; align-items: flex-start; text-decoration: none; color: var(--ink); padding: 6px; border-radius: 10px; font-weight: 600; font-size: .92rem; }
.mega a:hover { background: var(--panel); }
.mega a span { display: block; font-weight: 450; color: var(--muted); font-size: .78rem; }
.nav-cta { margin-left: auto; display: flex; gap: 8px; align-items: center; }
/* Tight desktop band (1025–1120px): the burger only covers ≤1024px, and the
   added Hosting/Cloud/Tools menu item would otherwise overflow .nav by ~54px. */
@media (min-width: 1025px) and (max-width: 1120px) {
  .menu > li > a { padding: 0 6px; }
  .nav { gap: 12px; }
}
.burger { display: none; border: 1px solid var(--line-ui); background: var(--card); border-radius: 12px; min-width: 44px; min-height: 44px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 16px; border-radius: 999px; border: 1px solid transparent;
  background: var(--deep); color: #fff !important; text-decoration: none; font-weight: 680; font-family: inherit; cursor: pointer;
}
.btn:hover { background: #4c1d95; transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--ink) !important; border-color: var(--line-ui); }
.btn.ghost:hover { border-color: var(--purple); color: var(--deep) !important; }
.btn.lite { background: var(--soft); color: var(--deep) !important; }
.btn.small { min-height: 38px; padding: 0 12px; font-size: .9rem; }
.hero { display: grid; grid-template-columns: 1.08fr .92fr; gap: 48px; align-items: center; padding: 42px 0 18px; }
.kicker { display: inline-flex; align-items: center; gap: 8px; color: var(--deep); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: .75rem; margin-bottom: 12px; }
.kicker i { width: 8px; height: 8px; border-radius: 50%; background: var(--red); display: inline-block; }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 46rem; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 22px 0; }
.trust { display: flex; gap: 22px; flex-wrap: wrap; padding-top: 8px; }
.trust b { display: block; font-family: var(--font-d); font-size: 1.35rem; letter-spacing: -.03em; }
.trust span { color: var(--muted); font-size: .82rem; }
.hero-visual { position: relative; border-radius: 28px; overflow: hidden; background: #130e1d; min-height: 420px; box-shadow: var(--shadow); }
.hero-visual img.cover { width: 100%; height: 460px; object-fit: cover; }
.float {
  position: absolute; right: 16px; bottom: 16px; background: rgba(19,14,29,.72); color: #fff;
  border: 1px solid rgba(255,255,255,.16); backdrop-filter: blur(10px); border-radius: 16px; padding: 12px 14px; max-width: 220px;
}
.float b { display: block; font-family: var(--font-d); font-size: 1.4rem; line-height: 1.15; }
.float span { display: block; font-size: .82rem; line-height: 1.35; opacity: .85; margin-top: 3px; }
.float.left { left: 16px; right: auto; top: 16px; bottom: auto; }
.section { padding: 64px 0; }
.section.head { padding-bottom: 10px; }
.sub { color: var(--muted); max-width: 42rem; }
.icon-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.icon-card, .card, .price, .post, .case, .product {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 1px 0 rgba(255,255,255,.4) inset;
}
.icon-card { padding: 16px; text-decoration: none; color: var(--ink); display: flex; gap: 12px; align-items: flex-start; min-height: 92px; }
.icon-card:hover, .card:hover, .product:hover, .post:hover, .case:hover { transform: translateY(-3px); border-color: #d4c6f3; }
.ico-wrap { width: 40px; height: 40px; border-radius: 12px; background: var(--soft); color: var(--deep); display: grid; place-items: center; flex: 0 0 auto; }
.ico { width: 22px; height: 22px; }
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 36px; align-items: center; }
.split img, .frame { border-radius: 24px; width: 100%; object-fit: cover; max-height: 460px; }
.frame { overflow: hidden; background: var(--dark); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.card { padding: 20px; }
.card p:last-child { margin-bottom: 0; }
.media-card { overflow: hidden; padding: 0; }
.media-card img { width: 100%; height: 190px; object-fit: cover; }
.media-card .pad, .product .pad, .post .pad, .case .pad { padding: 16px 18px 18px; }
.price { padding: 22px; position: relative; display: flex; flex-direction: column; gap: 8px; }
.price.featured { border-color: var(--purple); box-shadow: 0 16px 40px rgba(124, 58, 237, .15); }
.badge { display: inline-flex; align-items: center; gap: 6px; background: var(--soft); color: var(--deep); border-radius: 999px; padding: 3px 10px; font-size: .75rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.badge.red { background: #fde8e8; color: #9f1239; }
.badge.warn { background: #fff4d6; color: #8a5a00; }
.badge.ok { background: #e5f6ee; color: var(--ok); }
html[data-theme="dark"] .badge.red { background: #3b1218; color: #fecdd3; }
html[data-theme="dark"] .badge.warn { background: #3a2d10; color: #fde68a; }
html[data-theme="dark"] .badge.ok { background: #123526; color: #86efac; }
.price .amt { font-family: var(--font-d); font-size: 2.2rem; letter-spacing: -.04em; }
.price ul, .clean { padding-left: 1.1rem; margin: 8px 0; }
.price ul li, .clean li { margin: 6px 0; }
.process { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.step { background: var(--panel); border-radius: 16px; padding: 14px; min-height: 140px; }
.step em { font-style: normal; font-family: var(--font-d); color: var(--purple); font-size: 1.2rem; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.stat { background: var(--dark); color: #fff; border-radius: 18px; padding: 18px; }
.stat b { font-family: var(--font-d); font-size: clamp(1.8rem, 3vw, 2.5rem); display: block; }
.stat span { color: #d5cce8; font-size: .88rem; }
.band { background: var(--dark); color: #f4f0fd; position: relative; overflow: hidden; }
.band .stripe { position: absolute; left: 0; right: 0; top: 0; }
.band a { color: #e9d5ff; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--deep); color: #fff; font-weight: 650; }
td.num, th.num { text-align: right; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
.quote-block { font-size: 1.35rem; font-family: var(--font-d); line-height: 1.25; letter-spacing: -.02em; }
.quote-band .stripe { display: none !important; }
.quote-grid { align-items: stretch; }
.quote-cell { margin: 0; padding: 18px 16px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 16px; font-size: 1.15rem; }
html[data-theme="dark"] .quote-cell, .band .quote-cell { color: #f4f0fd; }
.quote-attr { margin: 18px 0 0; font-size: .95rem; opacity: .9; border: 0; padding: 0; }
footer.site { background: var(--dark); color: #ddd6ee; padding: 48px 0 20px; margin-top: 20px; }
footer.site a { color: #ddd6ee; text-decoration: none; }
footer.site a:hover { color: #fff; }
footer.site .foot-grid .brand small { color: #a79fba; }
.foot-grid { display: grid; grid-template-columns: 1.5fr .95fr .95fr 1.25fr 1.15fr; gap: 24px; }
.foot-grid h3 { font-size: 1rem; margin: 0 0 10px; color: inherit }
footer.site .foot-grid h3 { color: #fff }
.foot-grid p { margin: 0 0 6px; font-size: .9rem; line-height: 1.6; color: inherit }
footer.site .foot-grid p { color: #c8c0d8 }
.foot-grid .note { font-size: .82rem; color: inherit }
footer.site .foot-grid .note { color: #a79fba }
.foot-grid input { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.55); color: #fff; }
footer.site .foot-grid input { background: rgba(255,255,255,.08); }
.foot-grid:not(footer.site *) input { background: var(--paper); border-color: var(--line-ui); color: var(--ink); }
footer.site .foot-grid input::placeholder { color: #a79fba; }
.foot-social { display: flex; gap: 8px; margin: 14px 0 0; flex-wrap: wrap; align-items: center }
.foot-social a { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.45); color: #ddd6ee; transition: background .15s, transform .15s, color .15s }
.foot-social a:hover { background: var(--lite); color: #fff; transform: translateY(-1px) }
.foot-social a svg,
.foot-social svg { width: 16px; height: 16px; display: block; fill: currentColor; color: inherit }
@media (max-width: 980px){ .foot-grid { grid-template-columns: 1fr 1fr 1fr; } }
@media (max-width: 640px){ .foot-grid { grid-template-columns: 1fr; } }
.fine { border-top: 1px solid rgba(255,255,255,.1); margin-top: 28px; padding-top: 14px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .82rem; color: #b7adc9; }
form .row { display: grid; gap: 6px; margin-bottom: 12px; }
label { font-weight: 650; font-size: .9rem; }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: 1; }
input, select, textarea {
  width: 100%; min-height: 44px; border-radius: 12px; border: 1px solid var(--line-ui); background: var(--paper); color: var(--ink);
  padding: 10px 12px; font: inherit;
}
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus, button:focus-visible, a:focus-visible {
  outline: 3px solid var(--focus); outline-offset: 2px;
}
.row { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.row.has-error input, .row.has-error select, .row.has-error textarea { border-color: var(--red); }
.field-error { color: #b4121c; font-size: .88rem; margin: 0; }
.hp { position: absolute; left: -9999px; }
.flash { padding: 12px 14px; border-radius: 12px; margin: 12px 0; background: var(--soft); }
.flash.warn { background: #fff4d6; color: #5c3b00; }
.flash.ok { background: #e7f7ef; color: #0c5c38; }
html[data-theme="dark"] .flash.warn { background: #3a2d10; color: #fde68a; }
html[data-theme="dark"] .flash.ok { background: #123526; color: #bbf7d0; }
.crumbs { font-size: .85rem; color: var(--muted); margin: 18px 0; }
.crumbs a { color: var(--muted); }
.page-hero { padding: 28px 0 8px; display: grid; grid-template-columns: 1.2fr .8fr; gap: 28px; align-items: end; }
.page-hero img { border-radius: 22px; height: 240px; width: 100%; object-fit: cover; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0 18px; }
.filters a { text-decoration: none; border: 1px solid var(--line-ui); border-radius: 999px; padding: 6px 12px; color: var(--ink); font-size: .88rem; }
.filters a.on { background: var(--deep); color: #fff; border-color: var(--deep); }
.accordion details { border-bottom: 1px solid var(--line); padding: 10px 0; }
.accordion summary { cursor: pointer; font-weight: 700; min-height: 44px; display: flex; align-items: center; }
.progress { height: 8px; background: var(--line); border-radius: 99px; overflow: hidden; }
.progress span { display: block; height: 100%; background: var(--stripe); }
.consent, .assist-panel {
  position: fixed; z-index: 50; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); border-radius: 16px;
}
.consent { left: 12px; right: 12px; bottom: 12px; padding: 14px; display: flex; gap: 12px; align-items: center; justify-content: space-between; max-width: 880px; margin: 0 auto; }
/* PATCH-119: while the cookie banner is up it covers the bottom corners —
   park the chat launcher and studio-guide toggle until a choice is made. */
body:has(.consent:not([hidden])) .chat-fab,
body:has(.consent:not([hidden])) .assist-toggle { display: none; }
.assist-toggle {
  position: fixed; right: 16px; bottom: 16px; z-index: 45; border: 0; background: var(--deep); color: #fff;
  border-radius: 999px; min-height: 48px; padding: 0 16px; font: inherit; font-weight: 700; cursor: pointer;
}
.assist-panel { right: 16px; bottom: 72px; width: min(360px, calc(100% - 24px)); padding: 14px; display: none; }
.assist-panel.open { display: block; }
.assist-log { max-height: 240px; overflow: auto; font-size: .92rem; }
.desk { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
.side { background: var(--dark); color: #efeaf8; padding: 18px 12px; overflow-y:auto; }
.side a { color: #efeaf8; text-decoration: none; display: flex; min-height: 38px; align-items: center; padding: 0 10px; border-radius: 10px; font-size:.92rem; }
.side a:hover, .side a.on { background: rgba(255,255,255,.10); color:#fff; }
.side .brand small, .side .brand strong { color: #fff; }
.side .brand { color:#fff; margin-bottom:14px; padding:0 6px; }
.side-group { margin: 14px 0 4px; }
.side-label { display:block; color:#c4b5fd; font-size:.68rem; letter-spacing:.16em; text-transform:uppercase; padding:8px 10px 4px; font-weight:700; }
.side form { padding:0 4px; }
.side form button { background: rgba(255,255,255,.08); color:#fff; border:1px solid rgba(255,255,255,.12); }
.side form button:hover { background: rgba(255,255,255,.16); }
.main { padding: 22px; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px; }
.kpi b { font-family: var(--font-d); font-size: 1.8rem; }
.kanban { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.board-scroll { overflow-x: auto; padding-bottom: 8px; }
.kanban.board { grid-template-columns: repeat(6, minmax(200px, 1fr)); min-width: 1240px; }
.note { font-size: .9rem; color: var(--muted); }
.doc { max-width: 860px; margin: 24px auto; background: #fff; color: #17131f; padding: 42px 46px; border-radius: 8px; box-shadow: var(--shadow); position: relative; }
.doc .stripe { position: absolute; left: 0; right: 0; top: 0; }
.doc h1 { color: #5b21b6; font-size: 2rem; }
.doc h2 { color: #7c3aed; font-size: 1.15rem; border-bottom: 1px solid #ddd4ee; padding-bottom: 4px; }
.doc table th { background: #7c3aed; }
.sig { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 18px; }
.line { border-bottom: 1px dashed #7c3aed; min-height: 28px; margin-top: 18px; }
.compare td:last-child { font-weight: 700; }
.mobile-panel { display: none; }
@media (max-width: 1024px) {
  .hero, .split, .page-hero, .desk { grid-template-columns: 1fr; }
  .process, .icon-row, .stats, .kpis { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .kanban { grid-template-columns: 1fr 1fr; }
  .side { position: sticky; top: 0; z-index: 5; }
  /* PATCH-119: switch the public nav to the burger between 801–1024px too —
     the desktop menu needs ~858px and collided with the logo below that.
     (Same pattern as the PATCH-102 note: only nav.menu > ul hides; the outer
     nav and .nav-cta stay visible so #burger keeps working.) */
  nav.menu > ul { display: none; }
  .burger { display: inline-grid; place-items: center; }
  .nav-cta .hide-sm { display: none; }
  .nav-cta .btn.ghost { display: none; }
  .mobile-panel.open { display: block; background: var(--card); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; }
  .mobile-panel a { display: block; padding: 10px 0; text-decoration: none; color: var(--ink); font-weight: 650; border-bottom: 1px solid var(--line); }
}
@media (max-width: 800px) {
  .hero-visual img.cover { height: 280px; }
  .grid-3, .grid-2, .process, .icon-row, .stats, .kpis, .kanban { grid-template-columns: 1fr; }
  .consent { flex-direction: column; align-items: stretch; }
  .doc { padding: 28px 16px; }
  .sig { grid-template-columns: 1fr; }
}
@media (max-width: 375px) {
  h1 { font-size: 2.05rem; }
  .wrap { width: calc(100% - 22px); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
.reveal { animation: rise .6s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .reveal { animation: none; } }

/* ------------------------------------------------------------------ */
/* Print                                                              */
/* ------------------------------------------------------------------ */
@media print {
  @page { size: Letter; margin: 14mm 12mm; }
  html, body {
    background: #fff !important;
    color: #111 !important;
    font-size: 11pt;
    line-height: 1.45;
  }
  html[data-theme="dark"], html[data-theme="system"] {
    --ink: #111;
    --muted: #333;
    --dim: #444;
    --panel: #f6f3fc;
    --soft: #f1ecfb;
    --paper: #fff;
    --bg: #fff;
    --card: #fff;
    --header: #fff;
    --line: #c9bedf;
  }
  .topbar, .header, footer.site, .consent, .assist-panel, .assist-toggle, .mobile-panel, .burger, .desk-mobile-bar, .desk-burger, .side-backdrop, .nav-cta, .filters, .crumbs, .flash, .no-print, .skip, .stripe, .hero-actions .btn:not(.print-only), .btn.ghost, form:not(.print-keep) {
    display: none !important;
  }
  header, .header { position: static !important; box-shadow: none !important; border: 0 !important; backdrop-filter: none !important; }
  a { color: #111 !important; text-decoration: underline; text-decoration-thickness: .5pt; }
  a[href]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #444; word-break: break-all; }
  a[href^="#"]::after, a[href^="javascript:"]::after, .nav a::after, .brand a::after, .btn::after, footer a::after { content: "" !important; }
  h1, h2, h3, h4, .disp { page-break-after: avoid; break-after: avoid; }
  img, table, .card, .price, .post, .case, .product, .doc, .stat, .icon-card { page-break-inside: avoid; break-inside: avoid; }
  pre, blockquote { page-break-inside: avoid; }
  p, h2, h3 { orphans: 3; widows: 3; }
  .wrap, .wrap-l { width: 100% !important; max-width: none !important; margin: 0 !important; }
  .section { padding: 10px 0 !important; }
  .hero { display: block; padding: 0 0 10px; }
  .hero-visual, .float { display: none !important; }
  .grid-2, .grid-3, .icon-row, .stats, .kpis, .process, .foot-grid, .split {
    display: block !important;
  }
  .doc {
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    background: #fff !important;
    color: #111 !important;
  }
  .doc h1 { color: #111 !important; font-size: 22pt; }
  .doc h2 { color: #333 !important; border-color: #ccc !important; }
  .doc .stripe { display: none !important; }
  .price, .card, .post, .case, .product, .icon-card, .stat {
    box-shadow: none !important;
    border: 1px solid #bbb !important;
    border-radius: 4px !important;
    break-inside: avoid;
    page-break-inside: avoid;
  }
  .stat { background: #fff !important; color: #111 !important; border: 1px solid #bbb !important; }
  .badge { border: 1px solid #888 !important; color: #111 !important; background: transparent !important; }
  .table-wrap { overflow: visible !important; border: 0 !important; }
  table { font-size: 10pt; width: 100%; border-collapse: collapse; }
  th { background: #eee !important; color: #111 !important; border-bottom: 1.5pt solid #333 !important; }
  td, th { border-bottom: .5pt solid #999 !important; padding: 6px 8px !important; }
  .field-error { color: #111 !important; }
  .print-only { display: inline-block !important; }
  .print-block { display: block !important; margin: 0 0 10px; font-size: 9pt; color: #333; border-top: 1px solid #bbb; padding-top: 6px; }
}
.print-only, .print-block { display: none !important; }

/* Admin progress dashboard */
.progress { position: relative; height: 14px; background: rgba(124,58,237,.12); border-radius: 999px; overflow: hidden; margin: 12px 0 8px; }
.progress-bar { display: block; height: 100%; background: linear-gradient(90deg,#7c3aed,#a855f7); border-radius: 999px; }
.progress-ticks i { position: absolute; top: 0; bottom: 0; width: 1px; background: rgba(23,19,31,.08); }
.patch-list li { border-bottom: 1px dashed rgba(23,19,31,.12); padding: 10px 0; }
.tag.status-installed { background: rgba(22,163,74,.12); color: #166534; }
.tag.status-pending { background: rgba(124,58,237,.12); color: #5b21b6; }
.tag.status-deferred { background: rgba(220,31,31,.10); color: #a4121e; }
.tag.status-out-of-scope { background: rgba(100,116,139,.15); color: #475569; }
html[data-theme="dark"] .tag.status-installed { color: #86efac; }
html[data-theme="dark"] .tag.status-pending { color: #c4b5fd; }
html[data-theme="dark"] .tag.status-deferred { color: #fca5a5; }
html[data-theme="dark"] .tag.status-out-of-scope { color: #cbd5e1; }

/* PATCH-042 desk / health / empty states */
.kpis a.kpi { text-decoration: none; color: inherit; }
.kpis a.kpi:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(124,58,237,.12); }
.desk-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 18px 0; }
.stat-card .stat-num { font-size: 36px; font-weight: 800; color: var(--primary); margin: 6px 0; }
.stat-card .stat-num span { font-size: 14px; font-weight: 600; color: var(--muted, #6b7280); margin-left: 6px; }
.band-green { background: linear-gradient(90deg,#22c55e,#4ade80); }
.band-yellow { background: linear-gradient(90deg,#eab308,#facc15); }
.band-orange { background: linear-gradient(90deg,#f97316,#fb923c); }
.band-red { background: linear-gradient(90deg,#ef4444,#f87171); }
.band-critical { background: linear-gradient(90deg,#b91c1c,#dc2626); }
.tag.check-ok { background: rgba(22,163,74,.12); color: #166534; }
.tag.check-warn { background: rgba(234,179,8,.15); color: #92400e; }
.tag.check-fail { background: rgba(220,31,31,.10); color: #a4121e; }
.tag.check-info { background: rgba(59,130,246,.12); color: #1d4ed8; }
html[data-theme="dark"] .tag.check-warn { color: #fde68a; }
html[data-theme="dark"] .tag.check-fail { color: #fca5a5; }
html[data-theme="dark"] .tag.check-info { color: #bfdbfe; }
.clean li { padding: 6px 0; border-bottom: 1px dashed rgba(23,19,31,.08); }
.empty { padding: 22px; border: 1px dashed #d6c5ee; border-radius: 14px; background: rgba(124,58,237,.04); color: #4c3d66; }
html[data-theme="dark"] .empty { border-color: #4c3d66; background: rgba(124,58,237,.08); color: #e9d5ff; }
.bulk-bar { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: rgba(124,58,237,.06); border: 1px solid #e9d5ff; border-radius: 12px; margin: 8px 0 12px; flex-wrap: wrap; }
.bulk-label { font-weight: 700; font-size: 13px; color: #3b2e52; }
.bulk-bar button[disabled] { opacity: .5; cursor: not-allowed; }
form.inline { display: inline; }
.followup-list { list-style: none; padding: 0; margin: 10px 0; }
.followup-list li { display: grid; grid-template-columns: 180px 1fr auto; gap: 12px; padding: 10px 0; border-bottom: 1px dashed rgba(23,19,31,.10); align-items: center; }
.followup-list .date { font-variant-numeric: tabular-nums; color: #6b7280; font-size: 13px; }
.tag.status-new, .tag.status-open { background: rgba(59,130,246,.12); color: #1d4ed8; }
.tag.status-contacted, .tag.status-qualified, .tag.status-proposal, .tag.status-partial, .tag.status-pending, .tag.status-paused, .tag.status-planned, .tag.status-review, .tag.status-in_production, .tag.status-ready_for_review, .tag.status-sent { background: rgba(124,58,237,.12); color: #5b21b6; }
.tag.status-won, .tag.status-paid, .tag.status-published, .tag.status-closed, .tag.status-active, .tag.status-accepted, .tag.status-signed { background: rgba(22,163,74,.12); color: #166534; }
.tag.status-lost, .tag.status-declined, .tag.status-void, .tag.status-archived, .tag.status-expired, .tag.status-overdue, .tag.status-discontinued { background: rgba(220,31,31,.10); color: #a4121e; }
.tag.status-draft, .tag.status-unsigned, .tag.status-awaiting_payment { background: rgba(100,116,139,.15); color: #475569; }
.tag.status-coming_soon { background: rgba(234,179,8,.15); color: #92400e; }
html[data-theme="dark"] .tag.status-new, html[data-theme="dark"] .tag.status-open { color: #93c5fd; }
html[data-theme="dark"] .tag.status-contacted, html[data-theme="dark"] .tag.status-qualified, html[data-theme="dark"] .tag.status-proposal, html[data-theme="dark"] .tag.status-pending, html[data-theme="dark"] .tag.status-paused, html[data-theme="dark"] .tag.status-planned, html[data-theme="dark"] .tag.status-sent, html[data-theme="dark"] .tag.status-in_production, html[data-theme="dark"] .tag.status-ready_for_review, html[data-theme="dark"] .tag.status-review { color: #c4b5fd; }
html[data-theme="dark"] .tag.status-won, html[data-theme="dark"] .tag.status-paid, html[data-theme="dark"] .tag.status-published, html[data-theme="dark"] .tag.status-closed, html[data-theme="dark"] .tag.status-active, html[data-theme="dark"] .tag.status-accepted, html[data-theme="dark"] .tag.status-signed { color: #86efac; }
html[data-theme="dark"] .tag.status-lost, html[data-theme="dark"] .tag.status-declined, html[data-theme="dark"] .tag.status-void, html[data-theme="dark"] .tag.status-archived, html[data-theme="dark"] .tag.status-expired, html[data-theme="dark"] .tag.status-overdue, html[data-theme="dark"] .tag.status-discontinued { color: #fca5a5; }
html[data-theme="dark"] .tag.status-draft, html[data-theme="dark"] .tag.status-unsigned, html[data-theme="dark"] .tag.status-awaiting_payment { color: #cbd5e1; }
html[data-theme="dark"] .tag.status-coming_soon { color: #fde68a; }
@media (max-width: 900px) { .desk-row { grid-template-columns: 1fr; } .followup-list li { grid-template-columns: 1fr; } }

/* PATCH-045 performance + accessibility */
img { max-width: 100%; height: auto; }
img.cover { width: 100%; height: auto; object-fit: cover; }
@media (max-width: 720px) {
  .hero-cover img, .page-hero img, .cover { max-height: 48vh; object-fit: cover; }
}
:focus-visible { outline: 3px solid #ffffff; outline-offset: 2px; border-radius: 6px; box-shadow: 0 0 0 6px #09070D; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid #ffffff; outline-offset: 2px; box-shadow: 0 0 0 6px #09070D; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* PATCH-100 — Desk hamburger menu (phone & tablet) */
.desk-mobile-bar { display: none; }
.desk-burger { gap: 8px; padding: 0 12px; color: #fff; background: rgba(255,255,255,.10); border-color: rgba(255,255,255,.22); }
.desk-burger span { font: inherit; font-size: .88rem; font-weight: 700; letter-spacing: .02em; }
.desk-mobile-brand { color: #fff; text-decoration: none; display: flex; flex-direction: column; line-height: 1.15; }
.desk-mobile-brand small { color: #c4b5fd; font-size: .72rem; }
.side-backdrop { display: none; }
@media (max-width: 1024px) {
  .desk-mobile-bar {
    display: flex; align-items: center; gap: 12px;
    position: sticky; top: 0; z-index: 30;
    background: var(--dark, #17131f); color: #fff;
    padding: 8px 12px; min-height: 52px;
    border-bottom: 1px solid rgba(255,255,255,.10);
  }
  .desk-mobile-bar .burger { display: inline-grid; }
  /* Sidebar becomes an off-canvas drawer */
  .desk .side {
    position: fixed; top: 0; left: 0; bottom: 0;
    width: min(300px, 86vw); max-width: 86vw;
    z-index: 45;
    transform: translateX(-105%);
    transition: transform .22s ease;
    overflow-y: auto; -webkit-overflow-scrolling: touch;
    box-shadow: 8px 0 28px rgba(0,0,0,.35);
    padding-top: 14px;
  }
  .desk .side.open { transform: translateX(0); }
  .desk .side .brand { position: sticky; top: 0; background: var(--dark, #17131f); z-index: 2; padding-top: 4px; }
  .desk .side-backdrop {
    display: block; position: fixed; inset: 0;
    z-index: 40; background: rgba(10,8,14,.55);
    border: 0; padding: 0; margin: 0; width: 100%; height: 100%;
    opacity: 0; pointer-events: none; transition: opacity .2s ease;
  }
  .desk .side-backdrop.open { opacity: 1; pointer-events: auto; }
  .desk .side-backdrop[hidden] { display: block !important; opacity: 0 !important; pointer-events: none !important; }
  /* drawer links a bit taller for touch */
  .desk .side a { min-height: 44px; }
  .main { padding: 16px 14px 28px; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .desk-mobile-bar .desk-mobile-brand small { display: none; }
  .kpis { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .desk .side { transition: none; }
  .desk .side-backdrop { transition: none; }
}

/* PATCH-104 — system-theme variants (media-scoped so a light OS keeps light
   colors; these mirror the theme=dark rules that previously targeted a `.dark`
   class no element ever carries, which left dark-mode tags at 1.9–3.3:1) */
@media (prefers-color-scheme: dark) {
  html[data-theme="system"] a { color: #d6b8ff; }
  html[data-theme="system"] .badge.red { background: #3b1218; color: #fecdd3; }
  html[data-theme="system"] .badge.warn { background: #3a2d10; color: #fde68a; }
  html[data-theme="system"] .badge.ok { background: #123526; color: #86efac; }
  html[data-theme="system"] .kicker,
  html[data-theme="system"] .badge,
  html[data-theme="system"] .ico-wrap,
  html[data-theme="system"] .btn.lite,
  html[data-theme="system"] .step em,
  html[data-theme="system"] .doc h2,
  html[data-theme="system"] .menu > li > a.is-active,
  html[data-theme="system"] .menu > li > a:hover,
  html[data-theme="system"] .menu-btn:hover,
  html[data-theme="system"] .crumbs .is-active { color: #d6b8ff; }
  html[data-theme="system"] .note-accent { color: #d6b8ff; }
  html[data-theme="system"] .field-error { color: #fca5a5; }
  html[data-theme="system"] .row.has-error input, html[data-theme="system"] .row.has-error select, html[data-theme="system"] .row.has-error textarea { border-color: #f87171; }
  html[data-theme="system"] a:hover { color: #e9d5ff; }
  html[data-theme="system"] .btn.ghost:hover { color: #e9d5ff !important; }
html[data-theme="system"] .quote-cell, .band .quote-cell { color: #f4f0fd; }
html[data-theme="system"] .tag.status-installed { color: #86efac; }
html[data-theme="system"] .tag.status-pending { color: #c4b5fd; }
html[data-theme="system"] .tag.status-deferred { color: #fca5a5; }
html[data-theme="system"] .tag.status-out-of-scope { color: #cbd5e1; }
html[data-theme="system"] .tag.check-warn { color: #fde68a; }
html[data-theme="system"] .tag.check-fail { color: #fca5a5; }
html[data-theme="system"] .tag.check-info { color: #bfdbfe; }
html[data-theme="system"] .empty { border-color: #4c3d66; background: rgba(124,58,237,.08); color: #e9d5ff; }
html[data-theme="system"] .tag.status-new, html[data-theme="system"] .tag.status-open { color: #93c5fd; }
html[data-theme="system"] .tag.status-contacted, html[data-theme="system"] .tag.status-qualified, html[data-theme="system"] .tag.status-proposal, html[data-theme="system"] .tag.status-pending, html[data-theme="system"] .tag.status-paused, html[data-theme="system"] .tag.status-planned, html[data-theme="system"] .tag.status-sent, html[data-theme="system"] .tag.status-in_production, html[data-theme="system"] .tag.status-ready_for_review, html[data-theme="system"] .tag.status-review { color: #c4b5fd; }
html[data-theme="system"] .tag.status-won, html[data-theme="system"] .tag.status-paid, html[data-theme="system"] .tag.status-published, html[data-theme="system"] .tag.status-closed, html[data-theme="system"] .tag.status-active, html[data-theme="system"] .tag.status-accepted, html[data-theme="system"] .tag.status-signed { color: #86efac; }
html[data-theme="system"] .tag.status-lost, html[data-theme="system"] .tag.status-declined, html[data-theme="system"] .tag.status-void, html[data-theme="system"] .tag.status-archived, html[data-theme="system"] .tag.status-expired, html[data-theme="system"] .tag.status-overdue, html[data-theme="system"] .tag.status-discontinued { color: #fca5a5; }
html[data-theme="system"] .tag.status-draft, html[data-theme="system"] .tag.status-unsigned, html[data-theme="system"] .tag.status-awaiting_payment { color: #cbd5e1; }
html[data-theme="system"] .tag.status-coming_soon { color: #fde68a; }
}

/* WCAG 2.2 SC 2.5.8 (Target Size Minimum): text links inside paragraphs/footer columns
   render only 18px tall (<24). Vertical padding enlarges the hit area without changing
   the line box (inline elements keep layout; only the clickable fragment grows). */
p > a:not(.btn):not(.ghost) {
  display: inline-block; box-sizing: border-box; min-height: 24px;
  padding-top: 4px; padding-bottom: 4px;
}
.note-accent { color: var(--deep); }
html[data-theme="dark"] .note-accent { color: #d6b8ff; }
html[data-theme="dark"] .field-error { color: #fca5a5; }
html[data-theme="dark"] .row.has-error input, html[data-theme="dark"] .row.has-error select, html[data-theme="dark"] .row.has-error textarea { border-color: #f87171; }
/* PATCH-104 — accent colors used as TEXT must lighten in dark mode (deep/purple tokens
   also paint backgrounds — skip link, .btn, th, .filters .on, float button — so the
   tokens themselves never flip; text-only usages adapt here). */
html[data-theme="dark"] .kicker,
html[data-theme="dark"] .badge,
html[data-theme="dark"] .ico-wrap,
html[data-theme="dark"] .btn.lite,
html[data-theme="dark"] .step em,
html[data-theme="dark"] .doc h2,
html[data-theme="dark"] .menu > li > a.is-active,
html[data-theme="dark"] .menu > li > a:hover,
html[data-theme="dark"] .menu-btn:hover,
html[data-theme="dark"] .crumbs .is-active { color: #d6b8ff; }
html[data-theme="dark"] a:hover { color: #e9d5ff; }
html[data-theme="dark"] .btn.ghost:hover { color: #e9d5ff !important; }

/* PATCH-107 — topbar CTAs (Log in · Get started · Free quote moved out of the nav row) */
.topbar .tb-cta { display: flex; gap: 10px; align-items: center; }
.topbar .tb-cta a { white-space: nowrap; }
.topbar .tb-cta .btn { min-height: 30px; padding: 0 14px; font-size: .78rem; border-radius: 999px; }
@media (max-width: 1024px) { .topbar .tb-cta { display: none; } }

/* PATCH-107 — testimonial cards */
.quote-band .kicker { color: #d6b8ff; }
.t-grid { align-items: stretch; }
.t-card { background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: 18px; padding: 22px; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.t-avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 2px solid var(--purple); background: var(--soft); }
.t-quote { font-size: .98rem; line-height: 1.55; margin: 0; flex: 1; }
.t-attr { font-size: .8rem; color: var(--dim); font-weight: 600; }

/* PATCH-107 — newsletter CTA box (last block before the footer) */
.nl-box { display: grid; grid-template-columns: 1.15fr 1fr; gap: 28px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: 22px; padding: 34px; }
.nl-box h2 { margin: 6px 0 8px; }
form.nl-form, .nl-form { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.nl-form input[type="email"] { flex: 1 1 220px; }
@media (max-width: 900px) { .nl-box { grid-template-columns: 1fr; padding: 26px; } }

/* Phase 8 axe re-baseline — dark-mode contrast (Req 16): three nodes sampled
   2.79 / 3.91 / 1.47 against dark surfaces once real data rows existed. */
html[data-theme="dark"] .bell .badge { color: #fff; }
html[data-theme="dark"] .followup-list .date { color: #9ca3af; }
html[data-theme="dark"] .bulk-label { color: #cfc6ea; }
@media (prefers-color-scheme: dark) {
  html[data-theme="system"] .bell .badge { color: #fff; }
  html[data-theme="system"] .followup-list .date { color: #9ca3af; }
  html[data-theme="system"] .bulk-label { color: #cfc6ea; }
}
