/* ============================================================
   QoS-Net — site styles. No frameworks, no dependencies.
   Palette split by job:
     STRUCTURE  slate-navy  #1C2530   carries competence
     IDENTITY   crimson     #941B24   sampled from the logo, used sparingly
     STATUS     verdigris / ochre / oxblood — never crimson
   ============================================================ */

:root {
  --slate:      #1C2530;
  --slate-2:    #26313D;
  --slate-edge: #3B4855;

  --ink:        #1C2530;
  --ink-2:      #38444F;
  --body:       #48545F;
  --muted:      #64717E;
  --line:       #DFE5EB;
  --line-soft:  #EDF1F5;
  --bg:         #FFFFFF;
  --bg-2:       #F4F7F9;
  --bg-3:       #EDF1F5;

  --crimson:    #941B24;
  --crimson-lo: #B02733;
  --crimson-wash:#F7EDEE;
  --oxblood:    #5E1319;
  --verdigris:  #2E6F5E;
  --ochre:      #8F6014;

  --radius:     14px;
  --radius-sm:  10px;
  --shadow:     0 1px 2px rgba(28,37,48,.06), 0 8px 24px rgba(28,37,48,.07);
  --shadow-lg:  0 2px 4px rgba(28,37,48,.07), 0 18px 48px rgba(28,37,48,.14);
  --wrap:       1140px;
  --font:       ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
                "Helvetica Neue", Arial, sans-serif;
  --mono:       ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  color: var(--ink); line-height: 1.16; margin: 0 0 .5em;
  font-weight: 750; letter-spacing: -.028em; text-wrap: balance;
}
h1 { font-size: clamp(2.05rem, 4.8vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3.3vw, 2.3rem); }
h3 { font-size: 1.18rem; letter-spacing: -.02em; }
h4 { font-size: 1rem; }
p  { margin: 0 0 1.1em; }
a  { color: var(--crimson); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--crimson-lo); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.25em; }
li { margin: .32em 0; }
strong { color: var(--ink); font-weight: 650; }
hr { border: 0; border-top: 1px solid var(--line); margin: 3rem 0; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 22px; }
.section { padding: clamp(3.25rem, 7vw, 5.5rem) 0; }
.section--tint { background: var(--bg-2); border-block: 1px solid var(--line); }
.section--ink { background: var(--slate); color: #BECBD7; }
.section--ink h2, .section--ink h3, .section--ink h4 { color: #fff; }

.eyebrow {
  display: inline-block; font-size: .74rem; font-weight: 700; letter-spacing: .13em;
  text-transform: uppercase; color: var(--crimson); margin-bottom: .7rem;
}
.section--ink .eyebrow { color: #E0949B; }
.lede { font-size: clamp(1.02rem, 1.9vw, 1.18rem); max-width: 64ch; }
.section--ink .lede { color: #BECBD7; }
.center { text-align: center; }
.center .lede { margin-inline: auto; }
.measure { max-width: 68ch; }
.mb0 { margin-bottom: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .8em 1.5em; border-radius: 100px; border: 1px solid transparent;
  font: inherit; font-weight: 650; font-size: .96rem; text-decoration: none;
  cursor: pointer; transition: background .15s, color .15s, border-color .15s, transform .1s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--crimson); color: #fff; }
.btn--primary:hover { background: var(--crimson-lo); color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--crimson); color: var(--crimson); background: var(--bg-2); }
.btn--onink { background: transparent; color: #fff; border-color: rgba(255,255,255,.36); }
.btn--onink:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.6rem; }
.center .btn-row { justify-content: center; }

/* ---------- Header ---------- */
.hdr {
  position: sticky; top: 0; z-index: 60; background: rgba(255,255,255,.92);
  backdrop-filter: saturate(1.6) blur(10px); border-bottom: 1px solid var(--line);
}
.hdr__in { display: flex; align-items: center; gap: 1rem; height: 70px; }
.brand { margin-right: auto; display: flex; align-items: center; text-decoration: none; }
.brand img { height: 38px; width: auto; }
@media (max-width: 520px) { .brand img { height: 32px; } }

.nav { display: flex; align-items: center; gap: .1rem; }
/* :not(.btn) matters — `.nav a` (0,0,1,1) outranks `.btn--primary` (0,0,1,0),
   so without it these rules repaint the header button's text grey on crimson
   (1.16:1 contrast) and strip its background on hover. Keep the exclusion on
   every `.nav a` rule, including the mobile ones below. */
.nav a:not(.btn) {
  padding: .5em .75em; border-radius: 8px; font-size: .93rem; font-weight: 550;
  color: var(--ink-2); text-decoration: none;
}
.nav a:not(.btn):hover { background: var(--bg-3); color: var(--crimson); }
.nav a:not(.btn)[aria-current="page"] { color: var(--crimson); background: var(--crimson-wash); font-weight: 700; }
.hdr .btn { margin-left: .6rem; }

/* The CTA exists twice in the header: once inside .nav for the mobile drawer,
   once outside it for the desktop bar. Exactly one is visible at a time. */
.nav .btn { display: none; }

.burger {
  display: none; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 10px;
  background: #fff; cursor: pointer; align-items: center; justify-content: center; padding: 0;
}
.burger span, .burger span::before, .burger span::after {
  display: block; width: 17px; height: 2px; background: var(--ink); border-radius: 2px;
  transition: transform .2s, opacity .2s;
}
.burger span { position: relative; }
.burger span::before, .burger span::after { content: ""; position: absolute; }
.burger span::before { top: -5.5px; } .burger span::after { top: 5.5px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { transform: translateY(5.5px) rotate(45deg); }
.burger[aria-expanded="true"] span::after  { transform: translateY(-5.5px) rotate(-45deg); }

@media (max-width: 960px) {
  .burger { display: flex; }
  .hdr > .wrap > .hdr__in > .btn--primary { display: none; }
  .nav {
    position: absolute; inset: 70px 0 auto; flex-direction: column; align-items: stretch;
    background: #fff; border-bottom: 1px solid var(--line); padding: .6rem 22px 1.1rem;
    gap: .1rem; box-shadow: var(--shadow); display: none;
  }
  .nav[data-open="true"] { display: flex; }
  .nav a:not(.btn) { padding: .75em .6em; font-size: 1.02rem; }
  /* Drawer is open: show the in-nav CTA, since the desktop one is hidden above. */
  .nav .btn { display: inline-flex; margin: .7rem 0 0; }
}

.skip {
  position: absolute; left: -9999px; top: 0; background: var(--crimson); color: #fff;
  padding: .7em 1.2em; z-index: 100; border-radius: 0 0 8px 0; text-decoration: none;
}
.skip:focus { left: 0; color: #fff; }
:focus-visible { outline: 3px solid var(--crimson); outline-offset: 2px; border-radius: 4px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; background: var(--slate); color: #BECBD7;
  padding: clamp(3.25rem, 8vw, 6rem) 0 clamp(3.25rem, 7vw, 5rem);
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(36rem 20rem at 84% -24%, rgba(148,27,36,.34), transparent 60%),
    radial-gradient(32rem 18rem at 0% 118%, rgba(15,20,26,.85), transparent 60%);
  pointer-events: none;
}
.hero > .wrap { position: relative; }
.hero h1 { color: #fff; max-width: 17ch; }
.hero .lede { color: #C6D2DD; max-width: 54ch; margin-bottom: 0; }
.hero__grid { display: grid; grid-template-columns: 1.12fr .88fr; gap: clamp(2rem, 5vw, 3.5rem); align-items: center; }
@media (max-width: 880px) { .hero__grid { grid-template-columns: 1fr; } }

.hero__badge {
  display: inline-flex; align-items: center; gap: .55em; padding: .34em .95em .34em .4em;
  border: 1px solid rgba(255,255,255,.24); border-radius: 100px; background: rgba(255,255,255,.08);
  font-size: .84rem; font-weight: 600; color: #DCE5EC; margin-bottom: 1.3rem;
}
.hero__badge b {
  background: var(--crimson); color: #fff; border-radius: 100px;
  padding: .14em .7em; font-size: .72rem; letter-spacing: .05em; text-transform: uppercase;
}

.hero__card {
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.17);
  border-radius: var(--radius); padding: 1.6rem;
}
.hero__card h3 { font-size: 1rem; color: #fff; margin-bottom: 1rem; }
.tick { list-style: none; padding: 0; margin: 0; }
.tick li { display: flex; gap: .65rem; align-items: flex-start; margin: .7rem 0; font-size: .95rem; }
.tick svg { flex: none; width: 18px; height: 18px; margin-top: 3px; color: #6FBBA4; }

.trust {
  display: flex; flex-wrap: wrap; gap: 1.2rem 2.6rem; margin-top: 2.4rem;
  padding-top: 1.7rem; border-top: 1px solid rgba(255,255,255,.15);
}
.trust div { min-width: 108px; }
.trust b { display: block; color: #fff; font-size: 1.65rem; font-weight: 760; letter-spacing: -.03em; line-height: 1.15; }
.trust span { font-size: .83rem; color: #8E9CAB; }

/* ---------- Page head (interior pages) ---------- */
.pagehead {
  background: var(--slate); color: #BECBD7; position: relative; overflow: hidden;
  padding: clamp(2.6rem, 6vw, 4.2rem) 0;
}
.pagehead::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(34rem 18rem at 86% -26%, rgba(148,27,36,.3), transparent 60%);
}
.pagehead > .wrap { position: relative; }
.pagehead h1 { color: #fff; margin-bottom: .45rem; }
.pagehead .lede { color: #C6D2DD; margin-bottom: 0; }
.crumb { font-size: .86rem; color: #8E9CAB; margin-bottom: .8rem; }
.crumb a { color: #BECBD7; text-decoration: none; }
.crumb a:hover { color: #fff; text-decoration: underline; }

/* ---------- Grids & cards ---------- */
.grid { display: grid; gap: 1.3rem; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 940px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem; transition: border-color .15s, box-shadow .15s, transform .15s;
}
.card--link { text-decoration: none; color: inherit; display: block; }
.card--link:hover { border-color: #C2CFDA; box-shadow: var(--shadow); transform: translateY(-2px); color: inherit; }
.card h3 { margin-bottom: .4rem; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card ul { padding-left: 1.1em; font-size: .95rem; }
.card__icon {
  width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center;
  background: var(--bg-3); color: var(--slate); margin-bottom: 1.05rem;
}
.card__icon svg { width: 21px; height: 21px; }
.card--feature { border-color: var(--crimson); box-shadow: 0 0 0 1px var(--crimson); position: relative; }
.card--feature .card__icon { background: var(--crimson-wash); color: var(--crimson); }
.card__flag {
  position: absolute; top: -11px; left: 1.6rem; background: var(--crimson); color: #fff;
  font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: .24em .8em; border-radius: 100px;
}
.card .more { font-weight: 650; color: var(--crimson); font-size: .94rem; display: inline-flex; gap: .35em; }

/* ---------- Steps (real sequences only) ---------- */
.steps { counter-reset: s; display: grid; gap: 1.4rem; grid-template-columns: repeat(4, 1fr); }
@media (max-width: 940px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.step { counter-increment: s; padding-top: 2.7rem; position: relative; }
.step::before {
  content: counter(s, decimal-leading-zero); position: absolute; top: 0; left: 0;
  font-family: var(--mono); font-size: 1.4rem; font-weight: 700; color: var(--crimson);
  font-variant-numeric: tabular-nums; letter-spacing: -.03em;
}
.step h3 { font-size: 1.04rem; } .step p { font-size: .94rem; margin: 0; }

/* ---------- Quotes ---------- */
.quote {
  background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--verdigris);
  border-radius: var(--radius); padding: 1.7rem;
}
.quote blockquote { margin: 0 0 1rem; font-size: 1.02rem; color: var(--ink-2); }
.quote figcaption { font-size: .88rem; color: var(--muted); }
.quote figcaption b { display: block; color: var(--ink); font-size: .96rem; }

/* ---------- Split & panels ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 3.5rem); align-items: center; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; } }
.panel { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; }
.section--ink .panel { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.16); }

.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { display: flex; gap: .7rem; align-items: flex-start; margin: .75rem 0; font-size: .96rem; }
.checklist svg { flex: none; width: 18px; height: 18px; margin-top: 3px; color: var(--verdigris); }

/* ---------- Forms ---------- */
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-size: .9rem; font-weight: 650; color: var(--ink); margin-bottom: .35rem; }
.field .hint { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; padding: .72em .9em; font: inherit; font-size: .97rem; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--crimson); box-shadow: 0 0 0 3px rgba(148,27,36,.14);
}
.field textarea { resize: vertical; min-height: 140px; }
.field--err input, .field--err textarea { border-color: var(--oxblood); }
.err { display: none; color: var(--oxblood); font-size: .85rem; margin-top: .3rem; }
.field--err .err { display: block; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.formnote { font-size: .85rem; color: var(--muted); }
.formmsg { display: none; padding: 1rem 1.2rem; border-radius: var(--radius-sm); margin-bottom: 1.2rem; font-size: .95rem; }
.formmsg[data-show="true"] { display: block; }
.formmsg--ok { background: #ECF6F2; border: 1px solid #A9D6C6; color: #1D5C4A; }
.formmsg--err { background: #FBEEEE; border: 1px solid #E0BDBD; color: var(--oxblood); }

/* ---------- Contact list ---------- */
.contactlist { list-style: none; padding: 0; margin: 0; }
.contactlist li { display: flex; gap: .85rem; align-items: flex-start; margin-bottom: 1.3rem; }
.contactlist svg { flex: none; width: 20px; height: 20px; color: var(--crimson); margin-top: 3px; }
.contactlist b { display: block; color: var(--ink); font-size: .92rem; }
.contactlist a { color: var(--body); text-decoration: none; }
.contactlist a:hover { color: var(--crimson); text-decoration: underline; }

/* ---------- CTA band ---------- */
.cta { background: linear-gradient(135deg, #26313D, var(--slate) 55%, #12181F); color: #fff; }
.cta h2 { color: #fff; }
.cta p { color: #C6D2DD; }

/* ---------- Footer ---------- */
.ftr { background: var(--slate); color: #8E9CAB; padding: 3.4rem 0 0; font-size: .93rem; }
.ftr h4 { color: #fff; font-size: .78rem; letter-spacing: .11em; text-transform: uppercase; margin-bottom: .9rem; }
.ftr a { color: #BECBD7; text-decoration: none; }
.ftr a:hover { color: #fff; text-decoration: underline; }
.ftr ul { list-style: none; padding: 0; margin: 0; }
.ftr li { margin-bottom: .5rem; }
.ftr__grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1.2fr; gap: 2.2rem; }
@media (max-width: 880px) { .ftr__grid { grid-template-columns: 1fr 1fr; gap: 2rem; } }
@media (max-width: 520px) { .ftr__grid { grid-template-columns: 1fr; } }
.ftr__logo { height: 34px; width: auto; filter: brightness(0) invert(1); opacity: .92; margin-bottom: .9rem; }
.ftr__bar {
  margin-top: 2.8rem; border-top: 1px solid rgba(255,255,255,.12); padding: 1.3rem 0;
  display: flex; flex-wrap: wrap; gap: .7rem 1.6rem; justify-content: space-between;
  font-size: .85rem; color: #7A8898;
}

/* ---------- Tags ---------- */
.tag {
  display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .07em;
  text-transform: uppercase; padding: .24em .75em; border-radius: 100px;
  background: var(--bg-3); color: var(--slate);
}
.tag--brand { background: var(--crimson-wash); color: var(--crimson); }
.tag--go { background: #E6F2EE; color: var(--verdigris); }

/* ---------- Floating widget dock ---------- */
/* Chat launcher and review badge stack here so they can never overlap. */
.qc-dock {
  position: fixed; right: 20px; bottom: 20px; z-index: 80;
  display: flex; flex-direction: column; align-items: flex-end; gap: .6rem;
}

/* ---------- Review badge ---------- */
.qr-badge {
  display: flex; align-items: center; gap: .7rem;
  background: #fff; border: 1px solid var(--line); border-radius: 100px;
  padding: .5rem .95rem .5rem .75rem; box-shadow: var(--shadow-lg);
  text-decoration: none; color: var(--ink); position: relative;
  transition: border-color .15s, transform .12s;
  animation: qr-in .35s ease both;
}
.qr-badge:hover { border-color: #C2CFDA; transform: translateY(-1px); color: var(--ink); }
.qr-badge[hidden] { display: none; }
@keyframes qr-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .qr-badge { animation: none; } }

.qr-badge__mark { width: 26px; height: 26px; flex: none; }
.qr-badge__body { line-height: 1.25; }
.qr-badge__top { display: flex; align-items: center; gap: .35rem; }
.qr-badge__score { font-weight: 750; font-size: .95rem; color: var(--ink); font-variant-numeric: tabular-nums; }
.qr-stars { display: inline-flex; gap: 1px; color: #E8A33D; }
.qr-stars svg { width: 13px; height: 13px; }
.qr-stars i { display: inline-block; overflow: hidden; line-height: 0; }
.qr-badge__meta { font-size: .76rem; color: var(--muted); white-space: nowrap; }

.qr-x {
  position: absolute; top: -7px; right: -7px; width: 21px; height: 21px;
  border-radius: 50%; border: 1px solid var(--line); background: #fff;
  color: var(--muted); cursor: pointer; display: grid; place-items: center;
  padding: 0; line-height: 0; box-shadow: 0 1px 3px rgba(28,37,48,.16);
}
.qr-x:hover { color: var(--ink); border-color: #C2CFDA; }
.qr-x svg { width: 11px; height: 11px; }

/* ---------- Chat widget ---------- */
.qc-launch {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .78em 1.25em; border: 0; border-radius: 100px; cursor: pointer;
  background: var(--crimson); color: #fff; font: inherit; font-weight: 650; font-size: .94rem;
  box-shadow: var(--shadow-lg); transition: background .15s, transform .12s;
}
.qc-launch:hover { background: var(--crimson-lo); transform: translateY(-1px); }
.qc-launch svg { width: 19px; height: 19px; }
.qc-launch[hidden], .qc-panel[hidden] { display: none; }

.qc-panel {
  position: fixed; right: 20px; bottom: 20px; z-index: 81; width: min(390px, calc(100vw - 32px));
  height: min(590px, calc(100vh - 40px)); background: #fff; border: 1px solid var(--line);
  border-radius: 16px; box-shadow: var(--shadow-lg); display: flex; flex-direction: column;
  overflow: hidden;
}
.qc-head { background: var(--slate); color: #fff; padding: .9rem 1.1rem; display: flex; align-items: center; gap: .7rem; }
.qc-head b { font-size: .96rem; display: block; }
.qc-head span { font-size: .79rem; color: #8E9CAB; display: flex; align-items: center; gap: .38rem; }
.qc-dot { width: 7px; height: 7px; border-radius: 50%; background: #6FBBA4; flex: none; }
.qc-x { margin-left: auto; background: none; border: 0; color: #8E9CAB; cursor: pointer; padding: 6px; border-radius: 6px; line-height: 0; }
.qc-x:hover { background: rgba(255,255,255,.12); color: #fff; }
.qc-x svg { width: 18px; height: 18px; }

.qc-log { flex: 1; overflow-y: auto; padding: 1.1rem; background: var(--bg-2); }
.qc-msg {
  max-width: 86%; padding: .66em .95em; border-radius: 14px; font-size: .92rem;
  line-height: 1.55; margin-bottom: .7rem; overflow-wrap: anywhere;
}
.qc-msg p { margin: 0 0 .6em; } .qc-msg p:last-child { margin: 0; }
.qc-msg--bot  { background: #fff; border: 1px solid var(--line); color: var(--ink-2); border-bottom-left-radius: 4px; }
.qc-msg--user { background: var(--crimson); color: #fff; margin-left: auto; border-bottom-right-radius: 4px; }
.qc-msg--err  { background: #FBEEEE; border: 1px solid #E0BDBD; color: var(--oxblood); }
.qc-msg a { color: var(--crimson); }
.qc-msg--user a { color: #fff; }

.qc-chips { display: flex; flex-wrap: wrap; gap: .45rem; margin: .2rem 0 .7rem; }
.qc-chip {
  border: 1px solid #C9D3DC; background: #fff; color: var(--slate); border-radius: 100px;
  padding: .42em .9em; font: inherit; font-size: .84rem; font-weight: 550; cursor: pointer;
}
.qc-chip:hover { background: var(--bg-3); border-color: var(--crimson); color: var(--crimson); }

.qc-typing { display: flex; gap: 4px; padding: .8em .95em; }
.qc-typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: qcb 1.2s infinite; }
.qc-typing i:nth-child(2) { animation-delay: .18s; }
.qc-typing i:nth-child(3) { animation-delay: .36s; }
@keyframes qcb { 0%,60%,100% { opacity: .25; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }

.qc-foot { border-top: 1px solid var(--line); padding: .7rem; background: #fff; }
.qc-form { display: flex; gap: .5rem; align-items: flex-end; }
.qc-form textarea {
  flex: 1; resize: none; border: 1px solid var(--line); border-radius: 10px; padding: .6em .75em;
  font: inherit; font-size: .92rem; max-height: 110px; min-height: 42px; color: var(--ink);
}
.qc-form textarea:focus { outline: none; border-color: var(--crimson); box-shadow: 0 0 0 3px rgba(148,27,36,.14); }
.qc-send {
  border: 0; background: var(--crimson); color: #fff; border-radius: 10px; width: 42px; height: 42px;
  flex: none; cursor: pointer; display: grid; place-items: center;
}
.qc-send:hover { background: var(--crimson-lo); }
.qc-send:disabled { opacity: .45; cursor: not-allowed; }
.qc-send svg { width: 18px; height: 18px; }
.qc-legal { font-size: .73rem; color: var(--muted); text-align: center; margin: .5rem 0 0; }

@media (max-width: 480px) {
  .qc-panel { right: 8px; bottom: 8px; width: calc(100vw - 16px); height: calc(100vh - 16px); }
  .qc-dock { right: 14px; bottom: 14px; gap: .5rem; }
  /* Reclaim thumb space on small screens — the badge drops its caption. */
  .qr-badge { padding: .45rem .8rem .45rem .6rem; gap: .5rem; }
  .qr-badge__meta { display: none; }
}

/* ---------- AI Readiness Scorecard ---------- */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.sc-wrap {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 2.4rem); box-shadow: var(--shadow);
  max-width: 720px; margin-inline: auto;
}
.sc-progress { height: 4px; border-radius: 100px; background: var(--bg-3); overflow: hidden; margin-bottom: 1.6rem; }
.sc-progress i { display: block; height: 100%; background: var(--crimson); border-radius: 100px; transition: width .3s ease; }
@media (prefers-reduced-motion: reduce) { .sc-progress i { transition: none; } }

.sc-step {
  font-family: var(--mono); font-size: .72rem; letter-spacing: .11em; text-transform: uppercase;
  color: var(--muted); margin-bottom: .7rem;
}
.sc-q { font-size: clamp(1.2rem, 2.6vw, 1.55rem); margin-bottom: .5rem; }
.sc-help { font-size: .92rem; color: var(--muted); margin-bottom: 1.5rem; }

.sc-options { display: flex; flex-direction: column; gap: .6rem; }
.sc-option {
  text-align: left; font: inherit; font-size: .98rem; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: .9em 1.1em; cursor: pointer; transition: border-color .12s, background .12s, transform .1s;
}
.sc-option:hover { border-color: var(--crimson); background: var(--crimson-wash); }
.sc-option:active { transform: translateY(1px); }
.sc-option[aria-pressed="true"] { border-color: var(--crimson); background: var(--crimson-wash); font-weight: 600; }

.sc-nav { display: flex; justify-content: space-between; margin-top: 1.6rem; }

/* result */
.sc-overall { display: flex; gap: 1.5rem; align-items: center; margin: .5rem 0 2rem; }
@media (max-width: 560px) { .sc-overall { flex-direction: column; align-items: flex-start; gap: 1rem; } }
.sc-dial {
  flex: none; width: 104px; height: 104px; border-radius: 50%; display: grid;
  place-content: center; text-align: center; border: 5px solid var(--line); background: var(--bg-2);
}
.sc-dial b { display: block; font-size: 2rem; font-weight: 760; letter-spacing: -.04em; color: var(--ink); line-height: 1; }
.sc-dial span { font-size: .75rem; color: var(--muted); }
.sc-dial.sc-ok   { border-color: var(--verdigris); }
.sc-dial.sc-warn { border-color: var(--ochre); }
.sc-dial.sc-risk { border-color: var(--oxblood); }

.sc-bars { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 2rem; }
.sc-bar-top { display: flex; justify-content: space-between; align-items: baseline; font-size: .93rem; margin-bottom: .35rem; }
.sc-bar-top b { color: var(--ink); font-variant-numeric: tabular-nums; }
.sc-bar { height: 9px; border-radius: 100px; background: var(--bg-3); overflow: hidden; }
.sc-bar i { display: block; height: 100%; border-radius: 100px; transition: width .4s ease; }
@media (prefers-reduced-motion: reduce) { .sc-bar i { transition: none; } }
.sc-bar i.sc-ok   { background: var(--verdigris); }
.sc-bar i.sc-warn { background: var(--ochre); }
.sc-bar i.sc-risk { background: var(--oxblood); }

.sc-cta { border-top: 1px solid var(--line); padding-top: 1.8rem; }
.sc-cta h3 { margin-bottom: .3rem; }
.sc-inline { display: flex; gap: .6rem; align-items: stretch; margin-top: 1rem; }
.sc-inline .btn { white-space: nowrap; }
@media (max-width: 520px) { .sc-inline { flex-direction: column; } }

/* ---------- Pull quote (single featured testimonial) ---------- */
.pullquote {
  margin: 3rem auto 0; max-width: 62ch; text-align: center; padding-top: 2.4rem;
  border-top: 1px solid var(--line); position: relative;
}
.pullquote::before {
  content: "\201C"; position: absolute; top: .9rem; left: 50%; transform: translateX(-50%);
  font-size: 3.4rem; line-height: 1; color: var(--crimson); opacity: .28;
  font-family: Georgia, "Times New Roman", serif;
}
.pullquote blockquote {
  margin: 0 0 1.1rem; font-size: clamp(1.08rem, 2.1vw, 1.3rem); line-height: 1.55;
  color: var(--ink-2); text-wrap: pretty;
}
.pullquote figcaption { font-size: .9rem; color: var(--muted); }
.pullquote figcaption b { color: var(--ink); font-weight: 650; }

/* ---------- Dark-section text overrides ----------
   `strong` sets color:var(--ink) — the same value as the dark section
   background — so bold text rendered invisible (1.00:1) inside .section--ink,
   .cta, .hero and .pagehead. Same failure mode as the header button: a global
   rule colliding with a dark surface. Any element that hardcodes --ink needs an
   override for every dark context it can appear in. */
.section--ink strong,
.section--ink td b,
.cta strong,
.hero strong,
.pagehead strong { color: #fff; }

/* Crimson links are unreadable on slate; use the lightened brand tint. */
.section--ink a:not(.btn),
.cta a:not(.btn),
.hero a:not(.btn),
.pagehead a:not(.btn) { color: #E0949B; }
.section--ink a:not(.btn):hover,
.cta a:not(.btn):hover { color: #EFB8BD; }

/* ---------- Long-form article ---------- */
.optin { display: grid; gap: .45rem; margin: .2rem 0 1rem; }
.optin .opt { display: flex; gap: .55rem; align-items: flex-start; font-size: .86rem;
  line-height: 1.45; color: var(--muted, #5A6773); cursor: pointer; }
.optin .opt input { margin-top: .2rem; width: 1rem; height: 1rem; flex: none; }
.optin .opt a { color: inherit; text-decoration: underline; }
.article { max-width: 70ch; margin-inline: auto; }
.article > p, .article > ul, .article > ol { font-size: 1.06rem; line-height: 1.72; }
.article h2 {
  font-size: clamp(1.35rem, 2.6vw, 1.75rem); margin: 2.8rem 0 .9rem;
  padding-top: 1.6rem; border-top: 1px solid var(--line);
}
.article h2:first-of-type { border-top: 0; padding-top: 0; }
.article h3 { font-size: 1.1rem; margin: 1.9rem 0 .5rem; }
.article ul, .article ol { padding-left: 1.3em; }
.article li { margin: .5em 0; }
.article strong { color: var(--ink); }
.article em { color: var(--ink-2); }

.article__meta {
  display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; align-items: center;
  font-size: .88rem; color: var(--muted); margin-bottom: 2.4rem;
  padding-bottom: 1.4rem; border-bottom: 1px solid var(--line);
}
.article__lede {
  font-size: clamp(1.1rem, 2.2vw, 1.28rem); line-height: 1.6; color: var(--ink-2);
  margin-bottom: 2rem;
}
.article__key {
  background: var(--bg-2); border: 1px solid var(--line); border-left: 3px solid var(--crimson);
  border-radius: 0 var(--radius) var(--radius) 0; padding: 1.4rem 1.6rem; margin: 2rem 0;
}
.article__key h3 { margin-top: 0; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--crimson); font-family: var(--mono); }
.article__key ul { margin-bottom: 0; font-size: .98rem; }
.article__end {
  margin-top: 3rem; padding-top: 1.8rem; border-top: 1px solid var(--line);
  font-size: 1.02rem;
}
.article__tagline {
  font-family: var(--mono); font-size: .84rem; color: var(--muted);
  letter-spacing: .03em; margin-top: 2.4rem; text-align: center;
}

/* Insights index cards */
.post {
  display: block; text-decoration: none; color: inherit; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); padding: 1.7rem;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.post:hover { border-color: #C2CFDA; box-shadow: var(--shadow); transform: translateY(-2px); color: inherit; }
.post__meta { font-family: var(--mono); font-size: .74rem; letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted); margin-bottom: .7rem; }
.post h3 { font-size: 1.24rem; margin-bottom: .5rem; }
.post p { font-size: .96rem; margin-bottom: .9rem; }
.post .more { font-weight: 650; color: var(--crimson); font-size: .94rem; }

/* Hero badge used as a link — the scorecard entry point. */
.hero__badge--link { text-decoration: none; transition: background .15s, border-color .15s, transform .12s; }
.hero__badge--link:hover {
  background: rgba(255,255,255,.15); border-color: rgba(255,255,255,.45);
  color: #fff; transform: translateY(-1px);
}
.hero__badge--link svg { width: 15px; height: 15px; margin-left: .1rem; opacity: .85; }
.hero__badge--link:hover svg { opacity: 1; }

/* ---------- Booking modal ---------- */
.qb-overlay {
  position: fixed; inset: 0; z-index: 90; background: rgba(15,20,26,.62);
  backdrop-filter: blur(3px); display: grid; place-items: center; padding: 20px;
  animation: qb-fade .22s ease both;
}
.qb-overlay[hidden] { display: none; }
@keyframes qb-fade { from { opacity: 0 } to { opacity: 1 } }

.qb-modal {
  background: #fff; border-radius: 16px; box-shadow: var(--shadow-lg);
  width: min(560px, 100%); max-height: min(760px, calc(100vh - 40px));
  display: flex; flex-direction: column; overflow: hidden; position: relative;
  animation: qb-rise .26s cubic-bezier(.2,.8,.3,1) both;
}
@keyframes qb-rise { from { transform: translateY(14px); opacity: 0 } to { transform: none; opacity: 1 } }
@media (prefers-reduced-motion: reduce) {
  .qb-overlay, .qb-modal { animation: none; }
}

.qb-head { padding: 1.5rem 1.6rem 1.1rem; border-bottom: 1px solid var(--line); }
.qb-head .eyebrow { margin-bottom: .5rem; }
.qb-head h2 { font-size: 1.4rem; margin-bottom: .4rem; }
.qb-head p { font-size: .95rem; color: var(--muted); margin: 0; }

.qb-body { padding: 1.4rem 1.6rem 1.6rem; overflow-y: auto; }
.qb-body iframe { width: 100%; height: 520px; border: 0; border-radius: var(--radius-sm); display: block; }
.qb-points { list-style: none; padding: 0; margin: 0 0 1.4rem; }
.qb-points li { display: flex; gap: .65rem; align-items: flex-start; margin: .6rem 0; font-size: .96rem; }
.qb-points svg { flex: none; width: 18px; height: 18px; margin-top: 3px; color: var(--verdigris); }

.qb-x {
  position: absolute; top: .85rem; right: .85rem; width: 34px; height: 34px;
  border-radius: 50%; border: 1px solid var(--line); background: #fff; cursor: pointer;
  display: grid; place-items: center; color: var(--muted); padding: 0; line-height: 0; z-index: 2;
}
.qb-x:hover { color: var(--ink); border-color: #C2CFDA; }
.qb-x svg { width: 15px; height: 15px; }
.qb-later {
  display: block; width: 100%; margin-top: .9rem; background: none; border: 0;
  font: inherit; font-size: .9rem; color: var(--muted); cursor: pointer; padding: .4rem;
}
.qb-later:hover { color: var(--ink); text-decoration: underline; }

@media (max-width: 560px) {
  .qb-modal { max-height: calc(100vh - 24px); }
  .qb-body iframe { height: 420px; }
}

/* ---------- Partner / accreditation band ---------- */
.partners { border-block: 1px solid var(--line); background: var(--bg-2); padding: 2.4rem 0; }
.partners__label {
  font-family: var(--mono); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted); text-align: center; margin-bottom: 1.6rem;
}
.partners__row {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 1rem 2.4rem;
}
/* Official badge artwork drops in here — sized, never redrawn. */
.partners__row img { height: 52px; width: auto; opacity: .92; }
.partners__row img:hover { opacity: 1; }

/* Typographic fallback used until official badge files are supplied. */
.partner-chip {
  display: inline-flex; flex-direction: column; gap: .15rem;
  padding: .75rem 1.4rem; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-sm); text-align: left;
}
.partner-chip b { font-size: 1rem; color: var(--ink); font-weight: 700; letter-spacing: -.01em; }
.partner-chip span { font-size: .78rem; color: var(--muted); }
@media (max-width: 560px) { .partners__row { gap: .8rem; } .partner-chip { padding: .6rem 1rem; } }

/* ---------- AI Challenge (seminar landing page) ---------- */
.ch-wrap { max-width: 640px; margin-inline: auto; }
/* Verification step. `hidden` needs restating because .ch-card sets a display
   value, and a bare [hidden] loses to it — the same collision that put an
   attendee's contact details on the projector in the stage console. */
.ch-verify[hidden] { display: none; }
.ch-verify h3 { margin: 0 0 .4rem; }
.ch-verify > p { color: var(--muted); margin: 0 0 1.2rem; }
.ch-verify > p b { color: var(--ink); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--crimson);
  text-decoration: underline; cursor: pointer; }
.linkbtn:hover { color: var(--ink); }
.linkbtn:disabled { opacity: .6; cursor: progress; }

.ch-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.4rem, 4vw, 2.2rem); box-shadow: var(--shadow);
}
.ch-stage { margin-top: 1.6rem; }
.ch-stage[data-state="idle"]    .ch-working, .ch-stage[data-state="idle"] .ch-out { display: none; }
.ch-stage[data-state="working"] .ch-out     { display: none; }
.ch-stage[data-state="done"]    .ch-working { display: none; }

.ch-working {
  display: flex; align-items: center; gap: .8rem; padding: 1.3rem;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius);
  font-size: .96rem; color: var(--muted);
}
.ch-working i {
  width: 9px; height: 9px; border-radius: 50%; background: var(--crimson);
  animation: chp 1.1s infinite;
}
.ch-working i:nth-child(2) { animation-delay: .18s } .ch-working i:nth-child(3) { animation-delay: .36s }
@keyframes chp { 0%,60%,100% { opacity:.25 } 30% { opacity:1 } }

.ch-out {
  background: var(--bg-2); border: 1px solid var(--line);
  border-left: 3px solid var(--verdigris); border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.4rem 1.6rem;
}
.ch-out h3 { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--verdigris); font-family: var(--mono); margin-bottom: .8rem; }
.ch-out p { font-size: 1.02rem; line-height: 1.65; margin: 0; white-space: pre-wrap; }
.ch-next { margin-top: 1.2rem; font-size: .93rem; color: var(--muted); }


/* ---- workflow diagram, AI Advantage ------------------------------------- */
/* The canvas is a fixed-geometry SVG, so on a narrow screen it scrolls sideways
   rather than shrinking the node labels into illegibility. */
.flowfig { margin: 1.7rem 0 1.5rem; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.flowfig img { display: block; width: 100%; min-width: 700px; height: auto;
               border-radius: var(--radius); }
.flowfig figcaption { font-size: .84rem; color: var(--muted); margin-top: .75rem; }
