/* SEO Machine — one stylesheet, no framework.
   Direction: an industrial "machine room" — deep ink navy, safety-signal yellow for every action,
   a printed log tape as the one memorable element. Green/red are used only for approved/refused. */

@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 400 800;
  font-stretch: 100%;
  font-display: swap;
  src: url(/assets/fonts/bricolage-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 400 800;
  font-stretch: 100%;
  font-display: swap;
  src: url(/assets/fonts/bricolage-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --ink: #13203a;
  --ink-2: #1c2c4c;
  --ink-3: #2a3c61;
  --paper: #ffffff;
  --fog: #eef1f6;
  --line: #d6dce6;
  --steel: #556075;
  --signal: #ffc233;
  --signal-deep: #f0ad00;
  --ok: #18774a;
  --no: #b0351e;
  --tape: #fdfcf8;
  --on-ink: #e8ecf4;
  --on-ink-dim: #b7c1d6;

  --display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --body: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --wrap: 72rem;
  --gutter: clamp(1rem, 4vw, 2rem);
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;
  --sec: clamp(3.5rem, 8vw, 6.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--body);
  overflow-x: hidden;
}
img, svg { max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--signal-deep); outline-offset: 3px; border-radius: 3px; }
h1, h2, h3 { font-family: var(--display); font-optical-sizing: auto; color: inherit; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.15rem, 5.4vw, 4.1rem); line-height: 1.03; font-weight: 760; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.65rem, 3.3vw, 2.55rem); line-height: 1.1; font-weight: 720; letter-spacing: -0.018em; }
h3 { font-size: 1.2rem; line-height: 1.25; font-weight: 680; letter-spacing: -0.005em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--steel); }
.small { font-size: 0.9rem; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--signal); color: var(--ink); padding: 0.6rem 1rem; border-radius: var(--r-sm); font-weight: 700; }
.skip:focus { top: 1rem; }

/* ── Buttons ─────────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 3rem; padding: 0.75rem 1.4rem;
  background: var(--signal); color: var(--ink);
  font: 700 1.02rem/1.1 var(--display); letter-spacing: 0.005em;
  border: 2px solid var(--signal); border-radius: 999px;
  text-decoration: none; cursor: pointer;
  box-shadow: 0 2px 0 var(--signal-deep);
  transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.12s ease;
}
.btn:hover { background: #ffcd55; transform: translateY(-1px); box-shadow: 0 3px 0 var(--signal-deep); }
.btn:active { transform: translateY(1px); box-shadow: 0 1px 0 var(--signal-deep); }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.btn-sm { min-height: 2.5rem; padding: 0.5rem 1rem; font-size: 0.95rem; }
.btn-lg { min-height: 3.4rem; padding: 0.9rem 1.7rem; font-size: 1.08rem; }
.btn-ghost { background: transparent; border-color: currentColor; box-shadow: none; }
.btn-ghost:hover { background: var(--fog); box-shadow: none; }

/* ── Header ──────────────────────────────────────────────────────────────────── */
.site-head { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, 0.94); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.k-home .site-head { background: rgba(19, 32, 58, 0.96); color: var(--on-ink); border-bottom-color: var(--ink-3); }
.head-row { display: flex; align-items: center; gap: 1.25rem; min-height: 4rem; }
.brand { display: inline-flex; align-items: center; gap: 0.55rem; text-decoration: none; font: 760 1.15rem/1 var(--display); letter-spacing: -0.01em; white-space: nowrap; }
.logo-mark { width: 1.9rem; height: 1.9rem; color: var(--ink); flex: none; }
.brand-txt { display: flex; flex-direction: column; gap: 0.18rem; }
.brand-txt small { font: 500 0.7rem/1 var(--body); letter-spacing: 0; opacity: 0.75; display: none; }
@media (min-width: 30rem) { .brand-txt small { display: block; } }
.k-home .site-head .logo-mark { color: var(--ink-3); }
.nav-desk { display: none; margin-left: auto; }
.nav-desk ul { list-style: none; display: flex; gap: 0.15rem; }
.nav-desk a { display: block; padding: 0.5rem 0.7rem; border-radius: var(--r-sm); text-decoration: none; font-weight: 550; font-size: 0.97rem; }
.nav-desk a:hover { background: var(--fog); }
.k-home .nav-desk a:hover { background: var(--ink-2); }
.nav-desk a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--signal); border-radius: 0; }
.head-actions { display: flex; align-items: center; gap: 0.6rem; margin-left: auto; }
.lang { font: 700 0.85rem/1 var(--display); text-decoration: none; padding: 0.55rem 0.6rem; border: 1.5px solid currentColor; border-radius: var(--r-sm); opacity: 0.85; }
.lang:hover { opacity: 1; }
.head-cta { display: none; }
.nav-mob { position: relative; }
.nav-mob summary { list-style: none; cursor: pointer; width: 2.75rem; height: 2.75rem; display: grid; place-items: center; border-radius: var(--r-sm); }
.nav-mob summary::-webkit-details-marker { display: none; }
.burger, .burger::before, .burger::after { display: block; width: 1.3rem; height: 2px; background: currentColor; border-radius: 2px; position: relative; content: ""; transition: transform 0.18s ease; }
.burger::before { position: absolute; top: -6px; }
.burger::after { position: absolute; top: 6px; }
.nav-mob[open] .burger { background: transparent; }
.nav-mob[open] .burger::before { transform: translateY(6px) rotate(45deg); }
.nav-mob[open] .burger::after { transform: translateY(-6px) rotate(-45deg); }
.nav-mob nav { position: fixed; left: 0; right: 0; top: 4rem; background: var(--paper); color: var(--ink); border-bottom: 1px solid var(--line); box-shadow: 0 18px 30px -18px rgba(19, 32, 58, 0.35); padding: 0.5rem var(--gutter) 1.25rem; }
.nav-mob ul { list-style: none; }
.nav-mob li a { display: block; padding: 0.85rem 0.25rem; font: 650 1.15rem/1.2 var(--display); text-decoration: none; border-bottom: 1px solid var(--fog); }
.nav-mob nav { max-height: calc(100vh - 4rem); overflow-y: auto; }
@media (min-width: 72rem) {
  .nav-desk { display: block; }
  .head-actions { margin-left: 0.5rem; }
  .head-cta { display: inline-flex; }
  .nav-mob { display: none; }
}

/* ── Breadcrumb & page head ──────────────────────────────────────────────────── */
.crumbs { padding-top: 1.25rem; font-size: 0.9rem; color: var(--steel); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.25rem 0.5rem; }
.crumbs li + li::before { content: "/"; margin-right: 0.5rem; color: var(--line); }
.crumbs a { color: var(--steel); }
.page-head { padding-top: clamp(1.5rem, 4vw, 3rem); padding-bottom: clamp(1.5rem, 4vw, 2.5rem); }
.page-head h1 { max-width: 22ch; font-size: clamp(2rem, 4.6vw, 3.4rem); }
.kicker-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-bottom: 1.1rem; }
.kicker-row .kicker { margin-bottom: 0; }
.cat-chip { font: 600 0.88rem/1 var(--display); padding: 0.4rem 0.65rem; border: 1.5px solid var(--ink); border-radius: var(--r-sm); text-decoration: none; }
.cat-chip:hover { background: var(--fog); }
.kicker { display: inline-block; font: 650 0.92rem/1 var(--display); color: var(--ink); background: var(--signal); padding: 0.4rem 0.65rem; border-radius: var(--r-sm); margin-bottom: 1.1rem; }
.lede { font-size: clamp(1.1rem, 1.8vw, 1.28rem); line-height: 1.5; max-width: 62ch; margin-top: 1.1rem; color: #2b3953; }
.meta { color: var(--steel); font-size: 0.95rem; }
.nf { padding-bottom: var(--sec); }
.nf .hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }

/* ── Prose (content pages) ───────────────────────────────────────────────────── */
.prose { max-width: calc(46rem + 2 * var(--gutter)); margin-inline: 0; }
@media (min-width: 72rem) { .prose { margin-inline: max(0px, calc((100% - var(--wrap)) / 2)); } }
.prose-sec { padding-top: 2.25rem; }
.prose-sec h2 { font-size: clamp(1.45rem, 2.6vw, 1.95rem); margin-bottom: 0.85rem; }
.prose p { max-width: 68ch; }
.prose ul, .prose ol { padding-left: 1.3rem; margin-bottom: 1em; max-width: 66ch; }
.prose li { margin-bottom: 0.45rem; padding-left: 0.2rem; }
.prose ul li::marker { color: var(--signal-deep); }
.prose ol li::marker { font-family: var(--display); font-weight: 750; }
.prose a, .faq a, .lede a, .panel a, .experience a { color: var(--ink); text-decoration-color: var(--signal-deep); text-decoration-thickness: 2px; }

.table-wrap { overflow-x: auto; margin: 1rem 0 1.5rem; border: 1px solid var(--line); border-radius: var(--r-md); -webkit-overflow-scrolling: touch; }
.table-wrap:focus-visible { outline-offset: 2px; }
table { border-collapse: collapse; width: 100%; min-width: 34rem; font-size: 0.97rem; }
th, td { text-align: left; vertical-align: top; padding: 0.8rem 1rem; border-bottom: 1px solid var(--line); }
thead th { font: 700 0.95rem/1.25 var(--display); background: var(--fog); }
tbody th { font-weight: 650; }
tbody tr:last-child > * { border-bottom: 0; }

/* panels: services/packs */
.twin { display: grid; gap: 1rem; margin-bottom: 0.5rem; align-items: start; }
@media (min-width: 52rem) { .twin { grid-template-columns: 1.1fr 1fr; } }
.panel { border: 1.5px solid var(--line); border-radius: var(--r-lg); padding: clamp(1.25rem, 3vw, 2rem); }
.panel h2 { font-size: 1.35rem; margin-bottom: 1rem; }
.panel .small { margin: 1.1rem 0 0; }
.panel-ink { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.panel-ink a { color: #fff; }
.experience { border-left: 6px solid var(--signal); background: var(--fog); padding: 1.25rem 1.5rem; border-radius: 0 var(--r-md) var(--r-md) 0; max-width: 46rem; }
.experience h2 { font-size: 1.25rem; margin-bottom: 0.6rem; }
.experience p { margin: 0; }

.ticks, .dots { list-style: none; display: grid; gap: 0.7rem; }
.ticks li { position: relative; padding-left: 1.85rem; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 0.28em; width: 1.15rem; height: 1.15rem; border-radius: 50%;
  background: var(--signal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3.2L15 7' fill='none' stroke='%2313203a' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/90% no-repeat;
}
.dots li { position: relative; padding-left: 1.4rem; }
.dots li::before { content: ""; position: absolute; left: 0.2rem; top: 0.62em; width: 0.5rem; height: 0.5rem; border-radius: 2px; background: var(--ink); }

/* ── FAQ, sources, related ───────────────────────────────────────────────────── */
.faq { padding-top: var(--sec); }
.faq > h2 { margin-bottom: 1.25rem; }
.faq-group { padding-top: 2.5rem; }
.faq-group h2 { font-size: clamp(1.4rem, 2.6vw, 1.8rem); }
.faq-list { border-top: 2px solid var(--ink); max-width: 52rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; gap: 1rem; align-items: flex-start; justify-content: space-between; padding: 1.1rem 0; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { font-size: 1.12rem; }
.faq summary::after {
  content: ""; flex: none; width: 1.75rem; height: 1.75rem; border-radius: 50%; margin-top: -0.15rem;
  background: var(--fog) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 4v12M4 10h12' stroke='%2313203a' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E") center/58% no-repeat;
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); background-color: var(--signal); }
.faq-a { padding: 0 2.75rem 1.1rem 0; }
.faq-a p { margin: 0; max-width: 66ch; color: #2b3953; }
.faq-more { padding-top: 1.25rem; }
.faq-more a { font-weight: 650; }

.sources { padding-top: 3rem; font-size: 0.93rem; }
.sources h2 { font-size: 1.15rem; margin-bottom: 0.6rem; }
.sources ol { padding-left: 1.3rem; display: grid; gap: 0.35rem; max-width: 60rem; }
.sources a { overflow-wrap: anywhere; }

.related { padding-top: 3rem; }
.related h2 { font-size: 1.35rem; margin-bottom: 1rem; }
.rel-grid { list-style: none; display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); }
.rel-card { display: flex; flex-direction: column; gap: 0.3rem; height: 100%; padding: 1rem 1.15rem; border: 1.5px solid var(--line); border-radius: var(--r-md); text-decoration: none; }
.rel-card:hover { border-color: var(--ink); }
.rel-kicker { font-size: 0.82rem; color: var(--steel); }
.rel-label { font: 680 1.08rem/1.25 var(--display); }

/* ── CTA band ────────────────────────────────────────────────────────────────── */
.cta-band { margin-top: var(--sec); background: var(--ink); color: var(--on-ink); }
.cta-inner { display: grid; gap: 1.5rem; align-items: center; padding-block: clamp(2.5rem, 6vw, 4rem); }
.cta-inner h2 { color: #fff; margin-bottom: 0.6rem; }
.cta-inner p { color: var(--on-ink-dim); margin: 0; max-width: 52ch; }
@media (min-width: 52rem) { .cta-inner { grid-template-columns: 1fr auto; } }

/* ── Hubs ────────────────────────────────────────────────────────────────────── */
.card-grid { list-style: none; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); }
.card { display: flex; flex-direction: column; gap: 0.5rem; height: 100%; padding: 1.4rem 1.4rem 1.5rem; border: 1.5px solid var(--line); border-radius: var(--r-lg); text-decoration: none; background: var(--paper); transition: border-color 0.15s ease; }
.card:hover { border-color: var(--ink); }
.card-kicker { font-size: 0.85rem; color: var(--steel); }
.card-title { font: 720 1.35rem/1.15 var(--display); letter-spacing: -0.01em; }
.card-text { color: #2b3953; font-size: 0.98rem; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta { margin-top: auto; padding-top: 0.5rem; font-size: 0.85rem; color: var(--steel); }
.card-packs { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.card-packs .card-kicker, .card-packs .card-text { color: var(--on-ink-dim); }
.card-packs .card-title { color: #fff; }
.card-packs:hover { border-color: var(--signal); }
.empty { padding: 1.5rem; background: var(--fog); border-radius: var(--r-md); max-width: 46rem; }

/* ── Home: hero ──────────────────────────────────────────────────────────────── */
.hero { background: var(--ink); color: var(--on-ink); padding-top: clamp(2.25rem, 6vw, 4.5rem); position: relative; isolation: isolate; overflow: hidden; }
.hero::before { /* faint machine grid */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0.5;
  background-image: linear-gradient(var(--ink-2) 1px, transparent 1px), linear-gradient(90deg, var(--ink-2) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
}
.hero-grid { display: grid; gap: clamp(2rem, 5vw, 3.5rem); align-items: center; }
@media (min-width: 62rem) { .hero-grid { grid-template-columns: 1.15fr 0.85fr; } }
.hero-kicker { font: 600 1rem/1.3 var(--display); color: var(--signal); margin-bottom: 1rem; }
.hero h1 { color: #fff; max-width: 18ch; font-size: clamp(2.15rem, 4.9vw, 3.75rem); }
.hero-lede { font-size: clamp(1.1rem, 1.9vw, 1.3rem); line-height: 1.5; color: var(--on-ink); max-width: 56ch; margin-top: 1.4rem; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 1.8rem; }
.link-light { color: #fff; font-weight: 650; text-decoration-color: var(--signal); text-decoration-thickness: 2px; }
.hero-note { color: var(--on-ink-dim); font-size: 0.95rem; margin-top: 1.2rem; max-width: 52ch; }

/* the tape — the one memorable element */
.tape { margin: 0; position: relative; }
.tape-paper {
  background: var(--tape); color: var(--ink);
  border-radius: 4px 4px 0 0;
  padding: 1.15rem 1.15rem 1.6rem;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.06);
  position: relative;
  /* torn / perforated bottom edge */
  -webkit-mask: radial-gradient(circle 7px at 50% 100%, transparent 6.5px, #000 7px) 0 0 / 18px 100% repeat-x;
          mask: radial-gradient(circle 7px at 50% 100%, transparent 6.5px, #000 7px) 0 0 / 18px 100% repeat-x;
}
.tape-head { display: flex; justify-content: space-between; align-items: center; font: 700 0.9rem/1 var(--display); padding-bottom: 0.85rem; margin-bottom: 0.35rem; border-bottom: 2px dashed var(--line); }
.tape-dot { width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(24, 119, 74, 0.15); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(24, 119, 74, 0.05); } }
.tape-rows { list-style: none; }
.tape-row { display: grid; grid-template-columns: 2rem 1fr; gap: 0.75rem; padding: 0.8rem 0; border-bottom: 1px solid #ebe8de; }
.tape-row:last-child { border-bottom: 0; }
.tape-icon { width: 2rem; height: 2rem; border-radius: 50%; display: grid; place-items: center; }
.tape-icon svg { width: 1.05rem; height: 1.05rem; }
.is-ok .tape-icon { background: #dcefe5; color: var(--ok); }
.is-no .tape-icon { background: #f7e0da; color: var(--no); }
.is-wait .tape-icon { background: #fff1c9; color: #7a5600; }
.tape-text { display: flex; flex-direction: column; gap: 0.1rem; min-width: 0; }
.tape-text strong { font: 650 0.98rem/1.3 var(--display); }
.tape-text span { font-size: 0.86rem; color: var(--steel); }
.is-no .tape-text strong { text-decoration: line-through; text-decoration-color: rgba(176, 53, 30, 0.55); text-decoration-thickness: 1.5px; }
.tape figcaption { color: var(--on-ink-dim); font-size: 0.88rem; margin-top: 1rem; max-width: 46ch; }
.tape figcaption strong { color: #fff; }
@media (prefers-reduced-motion: no-preference) {
  .js .tape-row { opacity: 0; transform: translateY(-6px); animation: print 0.42s cubic-bezier(.2,.7,.3,1) forwards; animation-delay: calc(0.35s + var(--i) * 0.32s); }
  @keyframes print { to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) { .tape-dot { animation: none; } }

.channels { padding-block: 2.25rem 2.5rem; }
.channels ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.channels li { font: 600 0.9rem/1 var(--display); color: var(--on-ink); padding: 0.55rem 0.8rem; border: 1px solid var(--ink-3); border-radius: 999px; }

/* ── Home: sections ──────────────────────────────────────────────────────────── */
.sec-head { max-width: 46rem; margin-bottom: clamp(1.75rem, 4vw, 2.75rem); }
.sec-head h2 + p { margin-top: 0.9rem; font-size: 1.12rem; color: #2b3953; }

.proof { padding-block: var(--sec); background: var(--fog); }
.proof-grid { list-style: none; display: grid; gap: 0; grid-template-columns: 1fr; border-top: 2px solid var(--ink); }
.proof-grid li { display: grid; grid-template-columns: minmax(6.5rem, auto) 1fr; gap: 1.25rem; align-items: baseline; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.proof-n { font: 780 clamp(2rem, 4vw, 2.8rem)/1 var(--display); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.proof-l { color: #2b3953; }
@media (min-width: 62rem) {
  .proof-grid { grid-template-columns: repeat(5, 1fr); border-top: 0; }
  .proof-grid li { grid-template-columns: 1fr; gap: 0.75rem; align-content: start; padding: 1.25rem 1.25rem 0 0; border-bottom: 0; border-top: 2px solid var(--ink); margin-right: 1rem; }
}
.proof-note { margin-top: 1.75rem; color: var(--steel); max-width: 60ch; }

.problem { padding-block: var(--sec); }
.problem-grid { display: grid; gap: 2rem; }
@media (min-width: 62rem) { .problem-grid { grid-template-columns: 1.1fr 0.9fr; gap: 4rem; } }
.problem h2 { margin-bottom: 1.25rem; }
.problem-grid > div p { max-width: 58ch; font-size: 1.08rem; }
.problem-pts { list-style: none; display: grid; gap: 0.75rem; align-content: start; }
.problem-pts li { padding: 1rem 1.15rem; border-left: 4px solid var(--no); background: #fbf3f1; border-radius: 0 var(--r-md) var(--r-md) 0; }
.problem-pts strong { font-family: var(--display); display: block; margin-bottom: 0.15rem; }

.packs { padding-block: var(--sec); background: var(--fog); }
.pack-grid { list-style: none; display: grid; gap: 1rem; }
.pack { display: flex; flex-direction: column; background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--r-lg); padding: clamp(1.4rem, 3vw, 2rem); }
.pack-featured { background: var(--ink); color: var(--on-ink); border-color: var(--ink); box-shadow: 0 0 0 4px var(--signal); }
.pack-featured h3 { color: #fff; }
.pack-top { margin-bottom: 1.25rem; }
.pack h3 { font-size: clamp(1.6rem, 2.6vw, 2rem); letter-spacing: -0.02em; }
.pack-tag { margin: 0.5rem 0 0; font-size: 1.05rem; }
.pack-scope-t { font: 650 0.85rem/1 var(--display); color: var(--steel); margin-bottom: 0.85rem; }
.pack-featured .pack-scope-t { color: var(--on-ink-dim); }
.pack .ticks { margin-bottom: 1.25rem; }
.pack-best { font-size: 0.95rem; color: #2b3953; margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--line); }
.pack-featured .pack-best { color: var(--on-ink-dim); border-top-color: var(--ink-3); }
.pack-featured .pack-best strong { color: #fff; }
.pack-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 0.85rem; margin-top: 0.5rem; }
.pack-actions .btn { width: 100%; }
.pack-featured .btn-ghost { color: #fff; }
.link-more { font-weight: 650; font-size: 0.95rem; text-decoration-color: var(--signal-deep); text-decoration-thickness: 2px; }
.pack-featured .link-more { color: #fff; text-decoration-color: var(--signal); }
.packs-note { margin-top: 1.5rem; color: var(--steel); max-width: 64ch; }
.packs-note a { color: var(--ink); font-weight: 650; }

.engine { padding-block: var(--sec); }
.steps { list-style: none; display: grid; gap: 0; counter-reset: s; position: relative; }
.steps li { position: relative; display: grid; grid-template-columns: 3rem 1fr; column-gap: 1rem; padding-bottom: 1.6rem; }
.steps li::before { /* conveyor line */ content: ""; position: absolute; left: 1.5rem; top: 3rem; bottom: 0; width: 2px; background: repeating-linear-gradient(180deg, var(--ink) 0 6px, transparent 6px 12px); transform: translateX(-1px); }
.steps li:last-child::before { display: none; }
.step-n { grid-row: span 2; width: 3rem; height: 3rem; border-radius: 50%; background: var(--ink); color: var(--signal); display: grid; place-items: center; font: 780 1.25rem/1 var(--display); }
.steps h3 { align-self: center; font-size: 1.3rem; padding-top: 0.6rem; }
.steps p { margin: 0.35rem 0 0; color: #2b3953; max-width: 52ch; }
.steps li:nth-child(4) .step-n { background: var(--signal); color: var(--ink); } /* the check = the heart of it */
@media (min-width: 62rem) {
  .steps { grid-template-columns: repeat(6, 1fr); gap: 1.25rem; }
  .steps li { grid-template-columns: 1fr; padding-bottom: 0; align-content: start; }
  .steps li::before { left: 3.4rem; right: -1.25rem; top: 1.5rem; bottom: auto; width: auto; height: 2px; transform: translateY(-1px); background: repeating-linear-gradient(90deg, var(--ink) 0 6px, transparent 6px 12px); }
  .step-n { grid-row: auto; margin-bottom: 1rem; }
  .steps h3 { padding-top: 0; align-self: start; }
}
.steps-page { margin-top: 0.5rem; }
.engine-foot { margin-top: 2rem; max-width: 64ch; padding: 1rem 1.25rem; background: var(--fog); border-radius: var(--r-md); }
.engine-foot a { font-weight: 650; }

.ads { padding-block: var(--sec); background: var(--ink); color: var(--on-ink); }
.ads h2 { color: #fff; }
.ads .sec-head h2 + p { color: var(--on-ink-dim); }
.ads-grid { display: grid; gap: 2rem; }
@media (min-width: 62rem) { .ads-grid { grid-template-columns: 0.95fr 1.05fr; gap: 4rem; align-items: start; } }
.rules { list-style: none; display: grid; gap: 0.75rem; counter-reset: r; }
.rules li { padding: 1.2rem 1.3rem; border: 1px solid var(--ink-3); border-radius: var(--r-md); background: var(--ink-2); }
.rules h3 { color: #fff; margin-bottom: 0.35rem; display: flex; gap: 0.6rem; align-items: center; }
.rules h3::before { content: ""; width: 0.75rem; height: 0.75rem; flex: none; background: var(--signal); border-radius: 2px; }
.rules p { margin: 0; color: var(--on-ink-dim); }
.rule-card { margin-top: 1.75rem; background: var(--tape); color: var(--ink); border-radius: var(--r-md); padding: 1.25rem 1.3rem; border-top: 6px solid var(--signal); }
.rule-card-t { font: 700 0.98rem/1.3 var(--display); margin-bottom: 0.75rem; }
.rule-line { margin: 0 0 0.5rem; font-weight: 600; }
.rule-scale, .rule-stop { display: inline-block; padding-left: 1.4rem; position: relative; }
.rule-scale::before, .rule-stop::before { content: ""; position: absolute; left: 0; top: 0.35em; width: 0.8rem; height: 0.8rem; border-radius: 50%; }
.rule-scale::before { background: var(--ok); }
.rule-stop::before { background: var(--no); }
.rule-card .muted { margin: 0.75rem 0 0; }

.monthly { padding-block: var(--sec); }
.monthly-grid { display: grid; gap: 2rem; }
@media (min-width: 62rem) { .monthly-grid { grid-template-columns: 0.8fr 1.2fr; gap: 4rem; } }
.monthly-grid p { color: #2b3953; font-size: 1.1rem; margin-top: 0.9rem; }
.ticks-lg { gap: 0; border-top: 2px solid var(--ink); }
.ticks-lg li { padding: 0.95rem 0 0.95rem 2.1rem; border-bottom: 1px solid var(--line); }
.ticks-lg li::before { top: 1.2rem; }
.ticks-lg a { text-decoration-color: var(--signal-deep); text-decoration-thickness: 2px; }

.compare { padding-block: var(--sec); background: var(--fog); }
.cmp { min-width: 44rem; background: var(--paper); }
.cmp thead th { background: var(--paper); font-size: 1.02rem; padding-top: 1.1rem; }
.cmp th.us, .cmp td.us { background: #fff8e3; }
.cmp thead th.us { background: var(--signal); }
.cmp td.us { font-weight: 600; }
.compare .table-wrap { background: var(--paper); }

.k-home .faq { padding-top: var(--sec); }
.final { margin-top: var(--sec); padding-block: var(--sec); background: var(--ink); color: var(--on-ink); }
.final h2 { color: #fff; font-size: clamp(2rem, 4.4vw, 3.2rem); }
.final-grid { display: grid; gap: 2.5rem; }
@media (min-width: 62rem) { .final-grid { grid-template-columns: 0.85fr 1.15fr; gap: 4rem; align-items: start; } }
.final-copy p { color: var(--on-ink); font-size: 1.12rem; margin-top: 1rem; max-width: 46ch; }
.next { list-style: none; counter-reset: n; display: grid; gap: 0.9rem; margin-top: 1.75rem; }
.next li { counter-increment: n; position: relative; padding-left: 2.6rem; color: var(--on-ink-dim); }
.next li::before { content: counter(n); position: absolute; left: 0; top: -0.1rem; width: 1.8rem; height: 1.8rem; border-radius: 50%; border: 1.5px solid var(--signal); color: var(--signal); display: grid; place-items: center; font: 750 0.9rem/1 var(--display); }

/* contact page variant: light */
.contact-grid { padding-bottom: var(--sec); }
.k-contact .final-copy h2 { font-size: 1.5rem; }
.k-contact .next li { color: #2b3953; }
.k-contact .next li::before { border-color: var(--ink); color: var(--ink); background: var(--signal); }

/* ── Form ────────────────────────────────────────────────────────────────────── */
.lead-form { display: grid; gap: 1rem; background: var(--paper); color: var(--ink); border-radius: var(--r-lg); padding: clamp(1.25rem, 3.5vw, 2rem); box-shadow: 0 0 0 4px var(--signal); }
@media (min-width: 40rem) { .lead-form { grid-template-columns: 1fr 1fr; } .field-wide { grid-column: 1 / -1; } }
.field label { display: block; font: 650 0.95rem/1.3 var(--display); margin-bottom: 0.35rem; }
.field small { font-family: var(--body); font-weight: 400; color: var(--steel); }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  padding: 0.75rem 0.85rem; min-height: 3rem;
  border: 1.5px solid #b9c2d1; border-radius: var(--r-sm); background: #fff;
}
.field textarea { resize: vertical; min-height: 6rem; }
.field input:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--signal); outline-offset: 0; border-color: var(--ink); }
.form-foot .btn { width: 100%; }
@media (min-width: 40rem) { .form-foot .btn { width: auto; } }
.reassure { font-size: 0.9rem; color: var(--steel); margin: 0.85rem 0 0.35rem; }
.form-note { font-size: 0.9rem; color: var(--steel); margin: 0; }
.form-note a { color: var(--ink); }
.form-done { margin: 0; padding: 1.5rem; font: 650 1.15rem/1.4 var(--display); background: #dcefe5; border-radius: var(--r-md); color: #0f4d30; }

/* ── Footer ──────────────────────────────────────────────────────────────────── */
.site-foot { background: #0d1729; color: var(--on-ink-dim); padding-top: 3.5rem; font-size: 0.95rem; }
.cta-band + .site-foot, .final + .site-foot { margin-top: 0; }
main:not(:has(.cta-band, .final)) + .site-foot { margin-top: var(--sec); }
.foot-grid { display: grid; gap: 2rem; grid-template-columns: 1fr 1fr; }
.foot-about { grid-column: 1 / -1; }
@media (min-width: 62rem) { .foot-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } .foot-about { grid-column: auto; } }
.brand-foot { color: #fff; margin-bottom: 1rem; }
.brand-foot .logo-mark { color: var(--ink-3); }
.foot-about p { max-width: 40ch; }
.foot-about a { color: #fff; }
.foot-title { font: 700 0.95rem/1 var(--display); color: #fff; margin-bottom: 0.9rem; }
.site-foot ul { list-style: none; display: grid; gap: 0.5rem; }
.site-foot ul a { text-decoration: none; }
.site-foot ul a:hover { color: #fff; text-decoration: underline; }
.foot-base { margin-top: 2.5rem; padding-bottom: 2rem; font-size: 0.86rem; }
.foot-base p { margin: 0; padding-top: 1.25rem; border-top: 1px solid var(--ink-2); }
.foot-base a { color: #fff; }

/* ── Sticky mobile CTA ───────────────────────────────────────────────────────── */
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; padding: 0.7rem var(--gutter) calc(0.7rem + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, 0.96); border-top: 1px solid var(--line); backdrop-filter: blur(8px); transition: transform 0.25s ease; }
.sticky-cta .btn { width: 100%; }
.sticky-cta.is-hidden { transform: translateY(110%); }
@media (max-width: 61.99rem) {
  body:has(.sticky-cta) .site-foot { padding-bottom: 5rem; }
  /* lift the Takat feedback button above the sticky bar */
  body:has(.sticky-cta:not(.is-hidden)) > button[aria-label="Feedback"] { bottom: 5.25rem !important; }
}
@media (min-width: 62rem) { .sticky-cta { display: none; } }

@media print { .site-head, .sticky-cta, .cta-band, .lead-form { display: none; } }

/* ── Service categories (hub + home catalogue) ──────────────────────────────── */
.cat-jump { margin-bottom: 0.5rem; }
.cat-jump ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.cat-jump a { display: inline-block; font: 600 0.92rem/1 var(--display); padding: 0.6rem 0.85rem; border-radius: 999px; background: var(--fog); text-decoration: none; }
.cat-jump a:hover { background: var(--signal); }
.cat-sec { padding-top: clamp(2.5rem, 5vw, 3.5rem); scroll-margin-top: 4.5rem; }
.cat-head { max-width: 50rem; margin-bottom: 1.25rem; padding-top: 1rem; border-top: 2px solid var(--ink); }
.cat-head h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 0.5rem; }
.cat-head p { color: #2b3953; margin: 0; max-width: 64ch; }
.cat-soon { margin-top: 1rem; color: var(--steel); font-size: 0.93rem; max-width: 70ch; }

.catalogue { padding-block: var(--sec); }
.cat-grid { list-style: none; display: grid; gap: 0; border-top: 2px solid var(--ink); }
@media (min-width: 48rem) { .cat-grid { grid-template-columns: 1fr 1fr; column-gap: 2.5rem; } }
@media (min-width: 72rem) { .cat-grid { grid-template-columns: repeat(3, 1fr); } }
.cat { padding: 1.4rem 0 1.5rem; border-bottom: 1px solid var(--line); }
.cat h3 { font-size: 1.3rem; margin-bottom: 0.45rem; }
.cat h3 a { text-decoration: none; }
.cat h3 a:hover { text-decoration: underline; text-decoration-color: var(--signal-deep); }
.cat > p { color: #2b3953; font-size: 0.97rem; margin-bottom: 0.85rem; }
.svc-list { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.svc-list a, .svc-list span { display: inline-block; font-size: 0.88rem; line-height: 1.2; padding: 0.42rem 0.65rem; border-radius: 999px; border: 1.5px solid var(--line); text-decoration: none; }
.svc-list a { border-color: var(--ink); font-weight: 600; }
.svc-list a:hover { background: var(--signal); border-color: var(--signal); }
.svc-list span { color: var(--steel); }
.cat h3::before { content: ""; display: inline-block; width: 0.7rem; height: 0.7rem; border-radius: 2px; background: var(--signal); margin-right: 0.55rem; vertical-align: 0.12em; }

.pack-group + .pack-group { margin-top: clamp(2rem, 5vw, 3rem); }
.pack-group-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 1rem; margin-bottom: 1rem; }
.pack-group-head h3 { font-size: 1.35rem; }
.pack-group-head p { margin: 0; color: var(--steel); }
@media (min-width: 62rem) {
  .pack-grid-3 { grid-template-columns: 1fr 1fr 1.18fr; }
  .pack-grid-1 .pack { display: grid; grid-template-columns: 1fr 1.2fr auto; grid-template-rows: auto 1fr; gap: 0 2.5rem; align-items: start; }
  .pack-grid-1 .pack-top { grid-column: 1; grid-row: 1 / span 2; margin: 0; }
  .pack-grid-1 .pack-scope-t { grid-column: 2; grid-row: 1; }
  .pack-grid-1 .ticks { grid-column: 2; grid-row: 2; margin: 0; }
  .pack-grid-1 .pack-actions { grid-column: 3; grid-row: 1 / span 2; align-self: center; margin: 0; padding: 0; }
}
.pack .pack-actions { margin-top: auto; padding-top: 0.75rem; }

.tape-tag { font: 700 0.72rem/1 var(--display); color: var(--steel); margin-bottom: 0.15rem; }
.rule-wait { display: inline-block; padding-left: 1.4rem; position: relative; }
.rule-wait::before { content: ""; position: absolute; left: 0; top: 0.35em; width: 0.8rem; height: 0.8rem; border-radius: 50%; background: var(--signal-deep); }
.rule-card + .rule-card { margin-top: 1rem; }
.proof-grid li .proof-l { font-size: 0.97rem; }
@media (min-width: 62rem) { .proof-grid { grid-template-columns: repeat(4, 1fr); row-gap: 1.75rem; } }

/* ── Home: built for you, diagnostic call, compact packs ─────────────────────── */
.built { padding-block: var(--sec); background: var(--ink); color: var(--on-ink); }
.built h2 { color: #fff; }
.built .sec-head h2 + p { color: var(--on-ink-dim); }
.built-grid { list-style: none; display: grid; gap: 1rem; }
@media (min-width: 48rem) { .built-grid { grid-template-columns: 1fr 1fr; } }
.built-card { background: var(--ink-2); border: 1px solid var(--ink-3); border-radius: var(--r-lg); padding: clamp(1.25rem, 3vw, 1.75rem); display: flex; flex-direction: column; gap: 0.6rem; }
.built-card h3 { color: #fff; font-size: 1.35rem; }
.built-card p { margin: 0; }
.built-fact { font-size: 0.93rem; color: var(--on-ink-dim); border-left: 3px solid var(--signal); padding-left: 0.75rem; }
.built-card .svc-list { margin-top: auto; padding-top: 0.5rem; }
.built-card .svc-list a { border-color: var(--signal); color: #fff; }
.built-card .svc-list a:hover { color: var(--ink); }
.built-card .svc-list span { border-color: var(--ink-3); color: var(--on-ink-dim); }
.ship { margin-top: 1.5rem; padding: 1.25rem 1.4rem; border: 1px dashed var(--ink-3); border-radius: var(--r-md); }
.ship-t { font: 700 1rem/1.2 var(--display); color: var(--signal); margin-bottom: 0.75rem; }
.ship ul { list-style: none; display: grid; gap: 0.5rem 2rem; }
@media (min-width: 48rem) { .ship ul { grid-template-columns: 1fr 1fr; } }
.ship li { position: relative; padding-left: 1.3rem; }
.ship li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 0.55rem; height: 0.55rem; border-radius: 2px; background: var(--signal); }
.built .muted { color: var(--on-ink-dim); margin-top: 1rem; }

.diag-cta { background: var(--signal); color: var(--ink); }
.diag-cta-inner { display: grid; gap: 1.25rem; align-items: center; padding-block: clamp(2rem, 5vw, 3rem); }
.diag-cta h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 0.5rem; }
.diag-cta p { margin: 0; max-width: 58ch; }
.diag-cta .btn { background: var(--ink); color: #fff; border-color: var(--ink); box-shadow: none; }
.diag-cta .btn:hover { background: var(--ink-2); }
@media (min-width: 52rem) { .diag-cta-inner { grid-template-columns: 1fr auto; } }

.pack-grid-c { grid-template-columns: repeat(auto-fit, minmax(min(100%, 15.5rem), 1fr)); }
.pack-compact { gap: 0.55rem; }
.pack-compact h3 { font-size: clamp(1.35rem, 2.2vw, 1.6rem); }
.pack-compact .pack-tag { margin: 0; }
.pack-incl { font-size: 0.9rem; color: var(--steel); margin: 0 0 0.25rem; }
.pack-featured .pack-incl { color: var(--on-ink-dim); }
.pack-compact .link-more { margin-top: auto; }

/* ── Diagnostic page ─────────────────────────────────────────────────────────── */
.diag-grid { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 62rem) { .diag-grid { grid-template-columns: 1fr 22rem; } .diag-result { position: sticky; top: 5.5rem; } }
.diag-hint { color: var(--steel); }
.diag-group { border: 0; padding: 0; margin: 0 0 1.75rem; }
.diag-group legend { font: 720 1.35rem/1.2 var(--display); padding: 0 0 0.6rem; }
.diag-group ul { list-style: none; display: grid; gap: 0.5rem; }
.task { position: relative; border: 1.5px solid var(--line); border-radius: var(--r-md); padding: 0.85rem 1rem 0.75rem 3rem; background: var(--paper); }
.task:has(input:checked) { border-color: var(--ink); background: #fff8e3; }
.task input { position: absolute; left: 1rem; top: 1rem; width: 1.25rem; height: 1.25rem; accent-color: var(--ink); margin: 0; }
.task label { display: block; font-weight: 600; cursor: pointer; }
.task label::after { content: ""; position: absolute; inset: 0; } /* whole card toggles */
.task-links { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0.45rem 0 0; font-size: 0.83rem; }
.task-links a, .task-links span { padding: 0.2rem 0.5rem; border-radius: 999px; background: var(--fog); text-decoration: none; color: #2b3953; }
.task-links a:hover { background: var(--signal); }
.diag-result { background: var(--ink); color: var(--on-ink); border-radius: var(--r-lg); padding: 1.4rem; box-shadow: 0 0 0 4px var(--signal); }
.diag-count { font: 720 1.3rem/1.2 var(--display); color: #fff; }
.diag-k { font: 650 0.85rem/1.2 var(--display); color: var(--on-ink-dim); margin: 1rem 0 0.4rem; }
.diag-pack-name { font: 750 1.4rem/1.2 var(--display); margin: 0; }
.diag-pack-name a { color: var(--signal); }
.diag-svcs ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0.35rem; }
.diag-svcs a, .diag-svcs span { display: inline-block; font-size: 0.85rem; padding: 0.3rem 0.6rem; border-radius: 999px; border: 1.5px solid var(--ink-3); color: #fff; text-decoration: none; }
.diag-svcs a { border-color: var(--signal); }
.diag-send { width: 100%; margin-top: 1.25rem; }
.k-core .final { margin-top: var(--sec); }

/* ── Proof page (counters) ───────────────────────────────────────────────────── */
.counters { list-style: none; display: grid; gap: 1rem; }
@media (min-width: 48rem) { .counters { grid-template-columns: 1fr 1fr; } }
@media (min-width: 72rem) { .counters { grid-template-columns: repeat(3, 1fr); } }
.counter { border: 1.5px solid var(--line); border-top: 4px solid var(--ink); border-radius: var(--r-md); padding: 1.2rem 1.25rem; display: flex; flex-direction: column; }
.counter-n { font: 780 clamp(1.9rem, 3.4vw, 2.5rem)/1 var(--display); letter-spacing: -0.03em; margin: 0 0 0.5rem; }
.counter-t { font-size: 1.1rem; margin-bottom: 0.35rem; }
.counter-d { font-size: 0.85rem; color: var(--steel); margin-bottom: 0.75rem; }
.counter dl { margin: 0; font-size: 0.93rem; }
.counter dt { font: 700 0.85rem/1.2 var(--display); margin-top: 0.6rem; }
.counter dt:first-child { color: var(--ok); }
.counter dt:nth-of-type(2) { color: var(--no); }
.counter dd { margin: 0.2rem 0 0; color: #2b3953; }

/* header fit: keep labels on one line; drop the tagline where space is tight */
.nav-desk a { white-space: nowrap; padding-inline: 0.55rem; }
.head-cta { white-space: nowrap; }
@media (min-width: 72rem) and (max-width: 87.99rem) { .brand-txt small { display: none; } }
