/* KinetixAI site styles. One file, no build step. */

:root {
  --ink: #111111;
  --mut: #55585e;
  --gray: #6b6e75;
  --line: #e3e4e7;
  --rule: #c9cbd0;
  --soft: #f4f4f5;
  --red: #d8140e;
  --red-dark: #b8100b;
  --red-soft: #fdeceb;
  --bg: #ffffff;
  --wrap: 1440px;
  --pad: 40px;
}

/* Force light mode permanently - override system preferences */
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #111111;
    --mut: #55585e;
    --gray: #6b6e75;
    --line: #e3e4e7;
    --rule: #c9cbd0;
    --soft: #f4f4f5;
    --red: #d8140e;
    --red-dark: #b8100b;
    --red-soft: #fdeceb;
    --bg: #ffffff;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 999; background: var(--ink); color: #fff; padding: 8px 16px; border-radius: 6px; font-size: 14px; font-weight: 700; text-decoration: none; }
.skip-link:focus { left: 8px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter Tight", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--red); }
img, svg { display: block; }
button { font: inherit; }
input::placeholder { color: var(--gray); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.red { color: var(--red); }

/* Section eyebrow. .label b / .label i (number + dash) are kept for the 404 page. */
.label { display: flex; align-items: center; gap: 16px; font-size: 16px; font-weight: 500; }
.label b { color: var(--red); font-weight: 500; font-size: 17px; }
.label i { display: block; width: 30px; height: 1.5px; background: currentColor; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 0 22px; border-radius: 10px;
  font-size: 15px; font-weight: 600; border: 1.5px solid transparent;
  cursor: pointer; white-space: nowrap; transition: background .15s, color .15s;
}
.btn-outline { border-color: var(--ink); background: #fff; color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); color: #fff; }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #000; color: #fff; }
.icon-btn {
  width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: 0; color: var(--ink); cursor: pointer; border-radius: 10px;
}

/* Header */
.site-header { position: relative; z-index: 20; background: #fff; }
.nav { display: flex; align-items: center; gap: 20px; height: 84px; }
.logo { display: flex; align-items: center; gap: 10px; font-size: 27px; font-weight: 700; letter-spacing: -.035em; color: var(--ink); }
.logo:hover { color: var(--ink); }
.nav-links { display: flex; gap: 38px; font-size: 15.5px; font-weight: 500; margin-left: 48px; }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.menu-btn { display: none; border: 1.5px solid var(--ink); }
.mobile-menu { display: none; }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.62fr) minmax(0, .86fr) 1px 312px;
  column-gap: 30px;
  padding: 18px 0 32px;
}
.hero > * { min-width: 0; }
.hero-text { display: flex; flex-direction: column; gap: 24px; padding-top: 6px; }
.hero h1 { margin: 6px 0 0; font-size: clamp(58px, 7.6vw, 118px); font-weight: 800; letter-spacing: -.06em; line-height: .86; }
.lead { margin: 0; font-size: 21px; line-height: 1.4; max-width: 640px; }

.search {
  display: flex; align-items: center; gap: 10px;
  border: 1.5px solid var(--ink); border-radius: 16px;
  padding: 8px 8px 8px 16px; max-width: 730px;
}
.search > * { min-width: 0; }
.search input {
  flex: 1 1 auto; min-width: 0; border: 0; outline: none; background: transparent;
  font: inherit; font-size: 15px; letter-spacing: -.005em; padding: 14px 0; color: var(--ink);
}
.search .divider { width: 1px; height: 30px; background: var(--rule); flex: 0 0 1px; }
.go {
  width: 48px; height: 48px; flex: 0 0 48px; border-radius: 50%;
  background: var(--red); color: #fff; border: 0;
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.go:hover { background: var(--red-dark); }
.form-note { font-size: 14px; color: var(--mut); margin: 8px 0 0; }
.form-note:empty { display: none; }

.tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 760px; }
.tier { display: flex; gap: 16px; padding: 4px 20px; }
.tier:first-child { padding-left: 0; }
.tier-code { color: var(--red); font-weight: 700; font-size: 19px; }
.tier-title { font-weight: 700; font-size: 18px; }
.tier-text { font-size: 14px; color: var(--mut); margin-top: 2px; }

.art { position: relative; align-self: center; }
.art img { width: 70%; height: auto; }
.layer { position: absolute; left: 72%; transform: translateY(-22%); display: flex; flex-direction: column; gap: 3px; }
/* The connector tick: a small dot and line pointing back at the image. Built
   in CSS, not baked into hero-stack.svg, so it hides together with the label
   (see .layer { display: none } below) instead of being left dangling once
   the label moves into .layer-row on narrow screens. */
.layer::before { content: ""; position: absolute; top: 7px; left: -54px; width: 46px; height: 1px; background: var(--ink); }
.layer::after { content: ""; position: absolute; top: 4px; left: -58px; width: 7px; height: 7px; border-radius: 50%; background: var(--ink); }
.layer b { font-size: 14.5px; font-weight: 700; letter-spacing: .04em; }
.layer span { font-size: 13.5px; line-height: 1.35; color: var(--mut); max-width: 140px; }
.layer-row { display: none; }

.vline { background: var(--rule); }

.join { display: flex; flex-direction: column; gap: 14px; padding-top: 6px; }
.join h2 { margin: 6px 0 0; font-size: clamp(28px, 2.3vw, 34px); font-weight: 800; letter-spacing: -.04em; line-height: 1; white-space: nowrap; }
.join .sub { margin: 0 0 6px; font-size: 17px; }
.field {
  display: flex; align-items: center; gap: 12px;
  border: 1.5px solid #cfd1d6; border-radius: 10px; padding: 0 14px; min-height: 52px;
}
.field:focus-within { border-color: var(--ink); }
.field input { flex: 1 1 auto; min-width: 0; border: 0; outline: none; background: transparent; font: inherit; font-size: 16px; color: var(--ink); }
.field svg { flex: 0 0 auto; color: var(--mut); }
.eye { background: transparent; border: 0; padding: 4px; color: var(--mut); cursor: pointer; }
.google { border: 1.5px solid #cfd1d6; background: #fff; color: var(--ink); min-height: 54px; font-size: 16px; }
.google:hover { border-color: var(--ink); background: #fff; color: var(--ink); }
.g-mark { width: 24px; height: 24px; border-radius: 50%; border: 2.2px solid var(--ink); display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; }
.or { display: flex; align-items: center; gap: 16px; font-size: 14px; color: var(--mut); }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--rule); }
.terms { margin: 0; font-size: 13.5px; color: var(--mut); line-height: 1.5; }
.terms a { text-decoration: underline; }


/* Docs breadcrumb — shared by /docs/kxai/, /docs/cli/ and any future sub-page */
.docs-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 28px 0 0;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--mut);
  line-height: 1;
}
.docs-breadcrumb a { color: var(--mut); }
.docs-breadcrumb a:hover { color: var(--ink); }
.docs-breadcrumb svg { flex-shrink: 0; }
/* First section on a docs sub-page sits closer to the breadcrumb */
.docs-breadcrumb + .section { padding-top: 36px; }

/* Sections */
.section { padding: 64px 0 0; }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 430px); gap: 32px; align-items: center; margin-bottom: 32px; }
.section-head .title { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.section-head h2 { margin: 0; font-size: clamp(34px, 3.3vw, 50px); font-weight: 800; letter-spacing: -.045em; line-height: 1; }
.section-head p { margin: 0; font-size: 17px; line-height: 1.5; color: var(--mut); }

.features { display: grid; grid-template-columns: repeat(var(--cols, 6), minmax(0, 1fr)); border-top: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); }
.feature { padding: 24px 20px 22px; display: flex; flex-direction: column; gap: 8px; border-right: 1px solid var(--line); transition: background .15s; }
.feature:last-child { border-right: 0; }
.feature:hover { background: var(--bg-2, #f9f9f9); }
.feature:hover .feature-title { color: var(--red); }
.feature-head { display: flex; gap: 12px; align-items: baseline; }
.feature-num { color: var(--red); font-weight: 700; font-size: 17px; }
.feature-title { font-size: 18.5px; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; }
.feature-text { font-size: 14.5px; line-height: 1.45; color: var(--mut); padding-left: 31px; }
.feature-art { margin-top: auto; padding-top: 12px; display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; min-height: 118px; }
.feature-art svg.il { width: 100%; max-width: 190px; height: auto; }
.arrow { width: 36px; height: 36px; flex: 0 0 36px; border-radius: 50%; border: 1.5px solid var(--ink); display: inline-flex; align-items: center; justify-content: center; }
.arrow:hover { background: var(--ink); color: #fff; }

.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--line); }
.stat { display: flex; align-items: center; gap: 20px; padding: 0 28px; }
.stat:first-child { padding-left: 28px; }
.stat-value { font-size: 36px; font-weight: 800; letter-spacing: -.04em; white-space: nowrap; }
.stat-text { font-size: 15.5px; line-height: 1.35; max-width: 170px; }
.registered { font-size: 14px; color: var(--mut); line-height: 1.5; display: flex; align-items: center; gap: 14px; }
.registered b { color: var(--ink); font-weight: 700; font-size: 15.5px; white-space: nowrap; }

/* How it works page */
.hiw-tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 8px; }
.tier-card { display: flex; flex-direction: column; gap: 14px; }
.tier-card-head { display: flex; align-items: center; gap: 14px; }
.tier-card-title { font-size: 20px; font-weight: 700; }
.tier-card-tag { font-size: 13.5px; color: var(--mut); }
.tier-card-text { font-size: 15px; line-height: 1.55; margin: 0; }
.ticks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ticks li { display: flex; align-items: center; gap: 8px; font-size: 14.5px; }
.ticks li svg { color: var(--red); flex: none; }
.ex-row { display: grid; grid-template-columns: 90px 1fr; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); align-items: baseline; }
.ex-row:first-of-type { border-top: 0; padding-top: 10px; }
.ex-level { font-weight: 700; font-size: 14px; }
.ex-text { font-size: 15px; line-height: 1.55; }
.hiw-audience { display: grid; grid-template-columns: repeat(var(--cols, 3), 1fr); gap: 18px; }
.aud-title { font-size: 18px; font-weight: 700; }
.faq { display: flex; flex-direction: column; gap: 10px; }
.faq-item { border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.faq-item summary { font-weight: 600; font-size: 16px; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item[open] summary { color: var(--red); }
.faq-item p { margin: 10px 0 0; color: var(--mut); font-size: 15px; line-height: 1.6; }
@media (max-width: 860px) {
  .hiw-tiers, .hiw-audience { grid-template-columns: 1fr; }
}
.tier-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-size: 14.5px; font-weight: 600; color: var(--red); }
.tier-more:hover { gap: 9px; }

/* CLI page */
.cli-install { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 8px; padding: 16px 20px; border: 1.5px solid var(--ink); border-radius: 14px; background: var(--ink); color: #fff; }
.cli-install code, .cli-line code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 15px; }
.cli-prompt { color: var(--red); font-weight: 700; font-family: ui-monospace, monospace; flex-shrink: 0; }
.cli-platforms { margin-left: auto; display: flex; gap: 8px; }
.cli-platforms span { font-size: 12px; color: rgba(255,255,255,.65); border: 1px solid rgba(255,255,255,.2); border-radius: 999px; padding: 3px 12px; }

/* Command cards */
.cli-cmds { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.cli-cmd { border: 1.5px solid var(--line); border-radius: 14px; padding: 20px 22px; display: flex; flex-direction: column; gap: 0; transition: border-color .15s; }
.cli-cmd:hover { border-color: var(--ink); }
.cli-cmd:hover .cli-line code { color: var(--red); }
.cli-line { display: flex; align-items: center; gap: 10px; background: var(--bg-2, #f4f4f5); border-radius: 8px; padding: 10px 14px; }
.cli-line code { font-size: 13.5px; color: var(--ink); }
.cli-cmd p { margin: 12px 0 0; color: var(--mut); font-size: 14px; line-height: 1.5; }

@media (max-width: 860px) { .cli-cmds { grid-template-columns: 1fr; } .cli-platforms { margin-left: 0; width: 100%; } .cli-group-note { white-space: normal; } }

/* Pricing page */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 8px; align-items: stretch; }
.plan { position: relative; border: 1px solid var(--line); border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 14px; transition: border-color .15s; }
.plan .ticks { flex: 1; }
.plan-featured { border-color: var(--red); border-width: 1.5px; box-shadow: 0 10px 40px rgba(0,0,0,.06); }
.plan:not(.plan-featured):hover { border-color: var(--ink); }
.plan:not(.plan-featured):hover .plan-name { color: var(--red); }
.plan-badge { position: absolute; top: -11px; left: 24px; background: var(--red); color: #fff; font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.plan-name { font-size: 15px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--mut); }
.plan-price { display: flex; align-items: baseline; gap: 8px; }
.plan-amount { font-size: 40px; font-weight: 800; letter-spacing: -.03em; }
.plan-cadence { font-size: 14px; color: var(--mut); }
.plan-blurb { font-size: 14.5px; color: var(--mut); margin: 0; }
.plan-foot { margin: 10px 0 0; padding-top: 10px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--mut); line-height: 1.45; }

/* Pricing page: what-each-plan-unlocks table */
.unlock-table { border-top: 1.5px solid var(--ink); }
.unlock-row { display: grid; grid-template-columns: 1.3fr repeat(3, 1fr); gap: 12px; padding: 14px 4px; border-bottom: 1px solid var(--line); align-items: center; }
.unlock-row span { font-size: 14px; color: var(--mut); line-height: 1.45; }
.unlock-head { font-weight: 700; color: var(--ink); }
.unlock-head span { font-size: 13px; font-weight: 700; color: var(--ink); text-transform: uppercase; letter-spacing: .03em; }
.unlock-name { font-weight: 700; color: var(--ink) !important; font-size: 15px !important; text-transform: none !important; letter-spacing: normal !important; }
.unlock-tier { display: none; }
.primer-row-compact { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 8px; }

/* Checkout page */
.checkout-summary { border: 1.5px solid var(--ink); border-radius: 16px; padding: 22px 24px; margin-top: 20px; }
.checkout-summary-row { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-top: 6px; }
.checkout-plan-name { font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.checkout-plan-price { font-size: 18px; font-weight: 700; color: var(--red); }
.checkout-regions { display: flex; gap: 10px; margin-top: 24px; }
.checkout-region-chip.is-active { border-color: var(--ink); background: var(--ink); color: #fff; }
.checkout-region-panel { margin-top: 20px; }
.checkout-methods { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.checkout-method { border: 1.5px solid var(--line); border-radius: 14px; padding: 18px 20px; display: block; text-align: left; background: #fff; font: inherit; cursor: pointer; gap: 0; }
.checkout-method:hover { border-color: var(--ink); }
.checkout-method:hover .checkout-method-label { color: var(--red); }
.checkout-method-label { font-size: 16px; font-weight: 700; }
.checkout-notlive { margin-top: 28px; border: 1.5px solid var(--red); border-radius: 16px; padding: 22px 24px; }
@media (max-width: 760px) {
  .unlock-row { grid-template-columns: 1fr; row-gap: 6px; }
  .unlock-head { display: none; }
  .unlock-tier { display: inline; color: var(--ink); }
}

/* Primers page */
.cat-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 22px; }
.cat-chip { cursor: pointer; font: inherit; }
.cat-chip.is-active { border-color: var(--ink); background: var(--ink); color: #fff; }
.primer-cat { align-self: flex-start; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--red); }
.primers { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.primer { border: 1px solid var(--line); border-radius: 14px; padding: 20px; display: flex; flex-direction: column; gap: 10px; transition: border-color .15s; }
.primer:hover { border-color: var(--ink); }
.primer:hover .primer-title { color: var(--red); }
.primer[hidden] { display: none; }
.primer-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.primer-title { font-size: 18px; font-weight: 700; margin: 0; }
.primer-price { font-size: 20px; font-weight: 800; color: var(--red); white-space: nowrap; }
.primer-blurb { font-size: 14.5px; color: var(--mut); margin: 0; line-height: 1.5; }
.primer-citation { font-size: 12.5px; color: var(--mut); margin: -4px 0 0; line-height: 1.5; }
.primer-citation a { color: var(--red); font-weight: 600; }
.primer-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 2px; }
.primer-meta span { font-size: 12px; color: var(--mut); border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; }
.primer-buy { align-self: flex-start; margin-top: 6px; }
.bundle { margin-top: 18px; border: 1.5px solid var(--ink); border-radius: 16px; padding: 22px 24px; display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; transition: background .15s; }
.bundle:hover .bundle-title { color: var(--red); }
.bundle-title { font-size: 19px; font-weight: 800; }
.bundle-buy { display: flex; align-items: center; gap: 16px; }
@media (max-width: 860px) { .plans, .primers { grid-template-columns: 1fr; } }

/* Content pages: prose + link grids */
.prose { max-width: 760px; }
.prose p { font-size: 16px; line-height: 1.7; margin: 0 0 16px; }
.link-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.link-card { display: flex; flex-direction: column; gap: 6px; border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; }
.link-card:hover { border-color: var(--ink); }
.link-card:hover .link-card-title { color: var(--red); }
.link-card-title { font-size: 17px; font-weight: 700; }
.link-card-desc { font-size: 14px; color: var(--mut); margin: 0; line-height: 1.5; }
.link-card-go { margin-top: auto; padding-top: 8px; font-size: 13.5px; font-weight: 600; color: var(--red); display: inline-flex; align-items: center; gap: 6px; }
.docs-group { margin-top: 28px; }
.docs-group-title { font-size: 18px; margin: 0 0 14px; }
@media (max-width: 860px) { .link-grid { grid-template-columns: 1fr; } }

/* Paper Lab */
.pl-search { margin-top: 8px; }
.pl-chip { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 5px 14px; font-size: 13px; font-weight: 600; margin-left: 8px; cursor: pointer; font-family: inherit; }
.pl-chip:hover { border-color: var(--ink); }
.lab { border: 1.5px solid var(--ink); border-radius: 16px; padding: 24px; }
.lab-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.lab-title { font-size: 24px; font-weight: 800; letter-spacing: -.02em; margin: 0; }
.lab-meta { margin: 6px 0 0; font-size: 13.5px; color: var(--mut); }
.lab-tagline { margin: 8px 0 0; font-size: 15.5px; }
.lab-badge { flex: none; font-size: 11px; font-weight: 700; color: #fff; background: var(--red); border-radius: 999px; padding: 3px 10px; }
.lab-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 20px 0 18px; border-bottom: 1px solid var(--line); padding-bottom: 14px; }
.lab-tab { border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 7px 13px; font-size: 13.5px; font-weight: 600; cursor: pointer; font-family: inherit; color: var(--mut); }
.lab-tab.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.lab-panel.active { animation: fade .2s ease; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.lab-lead { font-size: 16.5px; line-height: 1.65; margin: 0; max-width: 70ch; }
.flow { display: flex; flex-direction: column; gap: 0; }
.flow-node { display: flex; align-items: flex-start; gap: 14px; padding: 14px 0; }
.flow-node > div { display: flex; flex-direction: column; gap: 3px; }
.flow-node b { font-size: 16px; }
.flow-node span { font-size: 14.5px; color: var(--mut); line-height: 1.5; }
.flow-n { flex: none; width: 30px; height: 30px; border-radius: 8px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
/* .flow-node span (below) is more specific than .flow-n alone and was
   silently winning, turning these badge numbers near-invisible (muted grey
   text on a near-black or red badge). Re-assert white at matching
   specificity so the numbers are always readable. */
.flow-node .flow-n { color: #fff; font-size: 13px; }
.flow-arrow { margin-left: 15px; color: var(--line); transform: rotate(90deg); height: 10px; }
.flow-steps .flow-n { background: var(--red); }
.mnemonic { padding: 4px 0; }
.mnemonic-hook { font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.mnemonic ul { margin: 14px 0 0; padding-left: 18px; }
.mnemonic li { font-size: 15px; line-height: 1.6; margin-bottom: 6px; }
.sheet { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.sheet h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--mut); margin: 18px 0 8px; }
.sheet h4:first-child { margin-top: 0; }
.sheet ul { margin: 0; padding-left: 18px; }
.sheet li { font-size: 14.5px; line-height: 1.55; margin-bottom: 6px; }
.sheet .mono li { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13.5px; }
.sheet-why { margin: 20px 0 0; padding-top: 16px; border-top: 1px solid var(--line); font-size: 15px; line-height: 1.6; }
/* Before & After: the paper's own stated problem versus what it actually
   changed, derived from its overview and results, never invented. */
.ba { display: grid; grid-template-columns: 1fr auto 1fr; gap: 20px; align-items: stretch; }
.ba-col { border: 1.5px solid var(--line); border-radius: 14px; padding: 20px 22px; display: flex; flex-direction: column; gap: 14px; }
.ba-before { background: #FAFAFB; }
.ba-after { border-color: var(--red); }
.ba-label { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; font-weight: 700; color: var(--mut); }
.ba-after .ba-label { color: var(--red); }
.ba-list li { align-items: flex-start; }
.ba-list li span { line-height: 1.5; }
.ba-before .ba-list svg { color: var(--mut); }
.ba-arrow { flex: none; align-self: center; color: var(--red); background: var(--panel, #fff); border: 1.5px solid var(--ink); border-radius: 50%; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; }
.ba-shift { margin: 20px 0 0; padding-top: 16px; border-top: 1px solid var(--line); font-size: 15px; line-height: 1.6; }
@media (max-width: 760px) {
  .ba { grid-template-columns: 1fr; }
  .ba-arrow { transform: rotate(90deg); margin: -4px auto; }
}
.gaps-h { font-size: 15px; margin: 0 0 12px; }
.gaps li svg { color: var(--red); }
.next { margin-top: 22px; border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.next-title { font-size: 18px; font-weight: 800; margin: 6px 0 12px; }
.next p { font-size: 14.5px; line-height: 1.6; margin: 0 0 10px; }
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.flip { text-align: left; border: 1px solid var(--line); border-radius: 12px; padding: 18px; min-height: 108px; cursor: pointer; background: #fff; font-family: inherit; display: flex; align-items: center; }
.flip:hover { border-color: var(--ink); }
.flip:hover .flip-q { color: var(--red); }
.flip-q { font-size: 15.5px; font-weight: 600; line-height: 1.45; }
.flip-a { font-size: 14.5px; color: var(--mut); line-height: 1.55; display: none; }
.flip.flipped .flip-q { display: none; }
.flip.flipped .flip-a { display: block; }
.vizflow { display: flex; align-items: stretch; gap: 0; flex-wrap: wrap; }
.vizflow[hidden] { display: none; }
.viz-stage { flex: 1 1 0; min-width: 150px; border: 1.5px solid var(--ink); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 6px; }
.viz-stage b { font-size: 16px; }
.viz-stage span { font-size: 13.5px; color: var(--mut); line-height: 1.45; }
.viz-arrow { display: flex; align-items: center; padding: 0 10px; color: var(--red); }
@media (max-width: 860px) { .sheet, .cards { grid-template-columns: 1fr; } .lab { padding: 18px; }
  .vizflow { flex-direction: column; } .viz-arrow { transform: rotate(90deg); padding: 8px 0; align-self: center; } }

/* Papers to 3D */
.viz3d { border: 1.5px solid var(--ink); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.viz3d-canvas { position: relative; width: 100%; height: 460px; border-radius: 10px; overflow: hidden; background: linear-gradient(180deg, #fafafa, #f2f2f2); cursor: grab; }
.viz3d-canvas canvas { display: block; }
.viz3d-canvas:active { cursor: grabbing; }
.viz3d-label { position: absolute; top: 0; left: 0; font-size: 12px; font-weight: 700; color: var(--mut); background: rgba(255,255,255,.85); border-radius: 6px; padding: 2px 8px; pointer-events: none; white-space: nowrap; transition: color .15s ease; }
.viz3d-label.is-active { color: var(--red); }
.viz3d-info { border-top: 1px solid var(--line); padding-top: 14px; min-height: 48px; }
.viz3d-info-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.viz3d-depth { display: flex; gap: 4px; border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.viz3d-depth button { border: none; background: none; border-radius: 999px; padding: 5px 12px; font-size: 12px; font-weight: 700; color: var(--mut); cursor: pointer; font-family: inherit; }
.viz3d-depth button.active { background: var(--ink); color: #fff; }
.viz3d-why { font-size: 14.5px; font-weight: 600; margin: 10px 0 0; }
.viz3d-detail { font-size: 15px; line-height: 1.6; margin: 6px 0 0; max-width: 68ch; }
.viz3d-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.viz3d-play { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--ink); background: var(--ink); color: #fff; border-radius: 999px; padding: 7px 16px; font-size: 13px; font-weight: 700; cursor: pointer; font-family: inherit; }
.viz3d-play svg { width: 13px; height: 13px; }
.viz3d-play.is-playing { background: var(--red); border-color: var(--red); }
.viz3d-dots { display: flex; gap: 6px; }
.viz3d-dot { width: 7px; height: 7px; border-radius: 999px; background: var(--line); transition: background .15s ease; }
.viz3d-dot.is-active { background: var(--red); }
.viz3d-dot.is-done { background: var(--ink); }

@media (max-width: 640px) { .viz3d-canvas { height: 260px; } }

/* kx: the floating assistant */
/* Compact state: while the footer is on screen the launcher drops its label
   and becomes a mark, so it stops sitting on top of footer content. */
/* The shared logo macro hardcodes an ink stroke, which is invisible on the
   dark launcher. Presentation attributes lose to any CSS rule. */
.kx-fab svg ellipse { stroke: currentColor; }
.kx-fab.is-compact svg { width: 20px; height: 20px; }
.kx-fab { transition: padding .22s cubic-bezier(.4,0,.2,1), border-radius .22s; }
.kx-fab .kx-fab-label { display: inline-block; max-width: 110px; overflow: hidden; white-space: nowrap;
  transition: max-width .22s cubic-bezier(.4,0,.2,1), opacity .16s, margin .22s; }
.kx-fab.is-compact { padding: 13px; }
.kx-fab.is-compact .kx-fab-label { max-width: 0; opacity: 0; margin-left: -8px; }
@media (prefers-reduced-motion: reduce) { .kx-fab, .kx-fab .kx-fab-label { transition: none; } }
.kx-fab { position: fixed; right: 22px; bottom: 22px; z-index: 60; display: inline-flex; align-items: center; gap: 8px; background: var(--ink); color: #fff; border: none; border-radius: 999px; padding: 13px 20px; font: inherit; font-size: 14.5px; font-weight: 700; cursor: pointer; box-shadow: 0 10px 30px rgba(0,0,0,.2); }
.kx-fab:hover { background: var(--red); }
.page-ai .kx-fab { display: none; }
.kx { position: fixed; right: 22px; bottom: 22px; z-index: 61; width: 400px; max-width: calc(100vw - 32px); max-height: min(640px, calc(100vh - 44px)); background: #fff; border: 1.5px solid var(--ink); border-radius: 18px; box-shadow: 0 24px 70px rgba(0,0,0,.25); display: flex; flex-direction: column; overflow: hidden; }
.kx[hidden] { display: none; }
.kx-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--ink); color: #fff; padding: 14px 16px; flex: none; }
.kx-head-id { display: flex; align-items: center; gap: 10px; }
.kx-mark { display: flex; }
.kx-title { font-size: 15px; font-weight: 800; letter-spacing: -.01em; }
.kx-sub { font-size: 11.5px; color: rgba(255,255,255,.65); }
.kx-controls { display: flex; gap: 4px; }
.kx-controls button { width: 26px; height: 26px; border-radius: 7px; border: none; background: rgba(255,255,255,.1); color: #fff; font-size: 15px; line-height: 1; cursor: pointer; }
.kx-controls button:hover { background: rgba(255,255,255,.2); }
.kx-body { display: flex; flex-direction: column; gap: 12px; padding: 14px 16px 16px; overflow-y: auto; }
.kx.is-min .kx-body { display: none; }
.kx-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700; color: var(--mut); align-self: flex-start; }
.kx-dot { width: 6px; height: 6px; border-radius: 999px; background: #1a9e5c; }
.kx-log { display: flex; flex-direction: column; gap: 10px; max-height: 280px; overflow-y: auto; padding-right: 2px; }
.kx-msg { max-width: 90%; }
.kx-msg p { margin: 0; font-size: 14px; line-height: 1.55; border-radius: 12px; padding: 10px 13px; }
.kx-msg-bot { align-self: flex-start; }
.kx-msg-bot p { background: #f4f4f4; }
.kx-msg-user { align-self: flex-end; }
.kx-msg-user p { background: var(--ink); color: #fff; }
.kx-source { align-self: flex-start; margin-top: 4px; font-size: 11.5px; font-weight: 700; color: var(--red); background: none; border: none; padding: 0 0 0 13px; cursor: pointer; font-family: inherit; }
.kx-switch { color: var(--ink); }
.kx-cards { display: flex; flex-direction: column; gap: 6px; }
.kx-card { background: #f4f4f4; border-radius: 10px; padding: 9px 12px; font-size: 13.5px; line-height: 1.5; }
.kx-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.kx-chip { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 12px; font-size: 12.5px; font-weight: 600; cursor: pointer; font-family: inherit; }
.kx-chip:hover { border-color: var(--ink); }
.kx-generate { border-top: 1px solid var(--line); padding-top: 12px; }
.kx-generate-h { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--mut); margin: 0 0 8px; }
.kx-generate form, .kx-capture { display: flex; gap: 6px; }
.kx-generate input, .kx-capture input { flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 9px; padding: 0 12px; min-height: 40px; font: inherit; font-size: 13.5px; }
.kx-capture { margin-top: 10px; }
.kx-capture-ok { font-size: 13px; font-weight: 600; color: var(--ink); margin: 10px 0 0; }
.kx-form { display: flex; gap: 6px; }
.kx-form input { flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 10px; padding: 0 13px; min-height: 42px; font: inherit; font-size: 14px; }
.kx-note { font-size: 11.5px; color: var(--mut); line-height: 1.5; margin: 0; }
@media (max-width: 480px) { .kx { right: 10px; left: 10px; bottom: 10px; width: auto; } .kx-fab { right: 14px; bottom: 14px; } }

/* ---- Inline AI Workspace (/ai/ page) ---- */
.ai-workspace { border: 1.5px solid var(--line); border-radius: 18px; overflow: hidden; margin-top: 0; box-shadow: 0 2px 16px rgba(0,0,0,.06); }
.ai-tabs { display: flex; border-bottom: 1.5px solid var(--line); background: #f7f7f8; }
.ai-tab { flex: 1; padding: 13px 16px; font: inherit; font-size: 13.5px; font-weight: 700; letter-spacing: .01em; background: none; border: none; color: var(--mut); cursor: pointer; transition: color .15s, background .15s, box-shadow .15s; text-align: center; }
.ai-tab:hover { color: var(--ink); background: #efefef; }
.ai-tab.is-active { color: var(--red); background: #fff; box-shadow: inset 0 -2px 0 var(--red); }
.ai-panel { display: none; padding: 22px 22px 20px; }
.ai-panel.is-active { display: flex; flex-direction: column; gap: 14px; }
/* Panel trust badge */
.ai-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700; color: var(--mut); align-self: flex-start; }
.ai-dot { width: 6px; height: 6px; border-radius: 999px; background: #1a9e5c; flex-shrink: 0; }
/* Chat log */
.ai-log { display: flex; flex-direction: column; gap: 10px; max-height: 320px; overflow-y: auto; padding-right: 4px; }
.ai-msg { max-width: 88%; }
.ai-msg p { margin: 0; font-size: 14px; line-height: 1.55; border-radius: 12px; padding: 10px 13px; }
.ai-msg-bot { align-self: flex-start; }
.ai-msg-bot p { background: var(--bg-2, #f4f4f5); color: var(--ink); }
.ai-msg-user { align-self: flex-end; }
.ai-msg-user p { background: var(--ink); color: #fff; }
/* Suggestion chips inside workspace */
.ai-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ai-chip { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 13px; font-size: 12.5px; font-weight: 600; cursor: pointer; font-family: inherit; transition: border-color .15s, color .15s; }
.ai-chip:hover { border-color: var(--ink); color: var(--red); }
/* Shared input row */
.ai-form { display: flex; gap: 8px; }
.ai-form input { flex: 1; min-width: 0; border: 1.5px solid var(--line); border-radius: 10px; padding: 0 14px; min-height: 44px; font: inherit; font-size: 14px; transition: border-color .15s; }
.ai-form input:focus { outline: none; border-color: var(--ink); }
.ai-note { font-size: 11.5px; color: var(--mut); line-height: 1.5; margin: 0; }
/* Researcher profile area inside workspace */
.ai-profile { display: flex; flex-direction: column; gap: 0; }
/* RAG catalog list inside workspace */
.ai-catalog { display: flex; flex-direction: column; gap: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.ai-catalog-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 13.5px; flex-wrap: wrap; }
.ai-catalog-row:last-child { border-bottom: 0; }
.ai-catalog-title { font-weight: 600; }
.ai-catalog-meta { font-size: 12px; color: var(--mut); margin-top: 2px; }
/* Divider label */
.ai-section-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--mut); }
@media (max-width: 600px) {
  .ai-tab { font-size: 12px; padding: 11px 8px; }
  .ai-panel { padding: 16px 14px; }
  .ai-log { max-height: 240px; }
}

/* Paper Lab freemium gate */
.lab { position: relative; }
.lab.is-locked { overflow: hidden; }
.lab.is-locked .lab-inner { filter: blur(5px); pointer-events: none; user-select: none; opacity: .55; }
.lab-lock { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(255,255,255,.5); }
.lock-card { background: #fff; border: 1.5px solid var(--ink); border-radius: 16px; padding: 28px; max-width: 460px; width: 100%; text-align: center; box-shadow: 0 20px 60px rgba(0,0,0,.14); }
.lock-title { font-size: 21px; font-weight: 800; letter-spacing: -.02em; margin: 8px 0 16px; }
.lock-list { text-align: left; max-width: 330px; margin: 0 auto 18px; }
.lock-list li svg { color: var(--red); }
.lock-capture { display: flex; gap: 8px; margin-top: 14px; }
.lock-capture input { flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 10px; padding: 0 14px; min-height: 44px; font: inherit; font-size: 14.5px; }
.capture-note { font-size: 12.5px; color: var(--mut); margin: 8px 0 0; }
.capture-ok { font-size: 14px; color: var(--ink); margin: 10px 0 0; font-weight: 600; }
.btn-gate { margin-top: 20px; border: 1px dashed var(--red); background: rgba(224,36,36,.05); color: var(--red); border-radius: 10px; padding: 10px 16px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.btn-gate:hover { background: rgba(224,36,36,.1); }
.pl-modal { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(17,17,17,.5); }
.pl-modal[hidden] { display: none; }
.pl-modal-card { position: relative; background: #fff; border-radius: 18px; padding: 34px; max-width: 480px; width: 100%; text-align: center; }
.pl-modal-x { position: absolute; top: 12px; right: 16px; border: 0; background: none; font-size: 26px; line-height: 1; color: var(--mut); cursor: pointer; }
.reviews-empty { border: 1px dashed var(--line); border-radius: 14px; padding: 28px; text-align: center; color: var(--mut); }
.reviews-empty p { margin: 0 0 10px; font-size: 15px; }

/* Primer viewer */
.pv-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 8px; }
.pv-meta > span { font-size: 12.5px; color: var(--mut); border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; }
.pv-price { font-size: 16px !important; font-weight: 800; color: var(--red) !important; border: 0 !important; padding: 0 6px !important; }
.pv-meta .btn { margin-left: auto; }
.pv-pages { display: flex; flex-direction: column; gap: 18px; margin-top: 20px; }
.pv-page { position: relative; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.pv-page img { width: 100%; display: block; }
.pv-locked img { filter: blur(7px); }
.pv-lock { position: absolute; inset: 0; display: flex; align-items: flex-start; justify-content: center; padding: 48px 20px; background: rgba(255,255,255,.45); }

/* Guided demo */
.demo { border: 1.5px solid var(--ink); border-radius: 18px; padding: 36px; }
.demo-q { font-size: clamp(24px, 3vw, 34px); font-weight: 800; letter-spacing: -.03em; margin: 0 0 20px; }
.demo-chips { display: flex; flex-wrap: wrap; gap: 12px; }
.demo-chip { border: 1.5px solid var(--line); background: #fff; border-radius: 12px; padding: 14px 20px; font: inherit; font-size: 16px; font-weight: 600; cursor: pointer; }
.demo-chip:hover { border-color: var(--ink); background: var(--ink); color: #fff; }
.demo-link { margin-top: 18px; border: 0; background: none; color: var(--mut); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; text-decoration: underline; }
.demo-rtitle { font-size: clamp(22px, 2.6vw, 30px); font-weight: 800; letter-spacing: -.02em; margin: 6px 0 10px; }
.demo-rtext { font-size: 16px; line-height: 1.6; color: var(--mut); max-width: 60ch; margin: 0 0 20px; }
.demo-alts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.demo-alt { font-size: 13.5px; font-weight: 600; color: var(--ink); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; }
.demo-alt:hover { border-color: var(--ink); }

/* Legal pages */
.legal { max-width: 820px; }
.legal-note { margin: 0 0 24px; padding: 12px 16px; border: 1px solid var(--red); border-radius: 10px; background: rgba(224, 36, 36, 0.05); color: var(--ink); font-size: 13.5px; line-height: 1.5; }
.legal-updated { font-size: 13px; color: var(--mut); }
.legal-body { margin-top: 8px; }
.legal-body h2 { font-size: 18px; font-weight: 700; margin: 28px 0 8px; }
.legal-body p { font-size: 15px; line-height: 1.65; color: var(--ink); margin: 0 0 12px; max-width: 70ch; }

.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.two > * { min-width: 0; }
.card { border: 1.5px solid var(--ink); border-radius: 18px; padding: 32px; display: flex; flex-direction: column; gap: 18px; }
.card h3 { margin: 0; font-size: 32px; font-weight: 800; letter-spacing: -.04em; line-height: 1.02; }
.card .muted { margin: 0; font-size: 16px; line-height: 1.5; color: var(--mut); }
.bubble { align-self: flex-end; background: var(--soft); border-radius: 14px; padding: 13px 16px; font-size: 15px; line-height: 1.5; max-width: 86%; }
.kicker { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--red); }
.answer { font-size: 15.5px; line-height: 1.6; }
.answer p { margin: 0 0 8px; }
.cite { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; border-radius: 5px; background: var(--red); color: #fff; font-size: 11px; font-weight: 700; margin-left: 4px; vertical-align: 1px; padding: 0 4px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-size: 14px; padding: 9px 14px; border-radius: 999px; border: 1px solid #d3d5da; background: #fff; white-space: nowrap; }
.chip.dark { border-color: var(--ink); }
.chip.red { border-color: #f5c6c3; background: var(--red-soft); color: #a10f0a; }
.profile { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.profile-head { display: flex; gap: 14px; align-items: center; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--ink); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.paper-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 18px; font-size: 14.5px; border-bottom: 1px solid var(--line); }
.paper-row:last-child { border-bottom: 0; }
.mini { font-size: 12.5px; font-weight: 600; padding: 6px 11px; border-radius: 8px; border: 1px solid var(--ink); white-space: nowrap; }

.steps { display: grid; grid-template-columns: repeat(var(--cols, 5), minmax(0, 1fr)); border-top: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); }
.step { padding: 20px 20px 22px 0; display: flex; flex-direction: column; gap: 6px; }
.step-num { color: var(--red); font-weight: 700; }
.step-title { font-size: 20px; font-weight: 700; letter-spacing: -.02em; }
.step-text { font-size: 14.5px; line-height: 1.45; color: var(--mut); }
.rag { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 20px; padding-bottom: 40px; border-bottom: 1.5px solid var(--ink); }
.rag > * { min-width: 0; }
.points { margin: 0; padding: 0; list-style: none; }
.points li { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 16px; padding: 15px 0; border-top: 1px solid var(--line); font-size: 16px; line-height: 1.45; }
.points li:last-child { border-bottom: 1px solid var(--line); }
.refs { font-size: 13.5px; color: var(--mut); display: flex; flex-direction: column; gap: 6px; border-top: 1px solid var(--line); padding-top: 12px; }
.ref { display: flex; align-items: center; gap: 8px; }
.ref-num { flex: none; display: inline-flex; align-items: center; justify-content: center; min-width: 16px; height: 16px; border-radius: 4px; background: var(--red); color: #fff; font-size: 10.5px; font-weight: 700; font-style: normal; padding: 0 3px; }

.hub-row { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 20px; padding: 18px 0; border-top: 1px solid var(--line); }
.hub-chips-wrap { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; min-width: 0; }
.chips-toggle { display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: 14px; font-weight: 600; color: var(--red); background: none; border: none; cursor: pointer; padding: 0; }
.chips-toggle:hover { gap: 9px; }
.hub-row:first-child { border-top: 1.5px solid var(--ink); }
.hub-row:last-child { border-bottom: 1.5px solid var(--ink); }
.hub-name { font-size: 15px; font-weight: 700; padding-top: 9px; }

.enterprise { margin-top: 72px; background: var(--ink); color: #fff; border-radius: 20px; padding: 44px; display: flex; justify-content: space-between; align-items: center; gap: 28px; flex-wrap: wrap; }
.enterprise h3 { margin: 18px 0 0; font-size: 36px; font-weight: 800; letter-spacing: -.04em; line-height: 1.02; }
.enterprise p { margin: 12px 0 0; color: #c2c4c9; font-size: 17px; line-height: 1.5; max-width: 560px; }
.enterprise .btn-outline { background: transparent; border-color: #fff; color: #fff; }
.enterprise .btn-outline:hover { background: #fff; color: var(--ink); }

/* Footer */
.footer { margin-top: 80px; border-top: 1.5px solid var(--ink); }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(4, minmax(0, 1fr)); gap: 32px; padding: 48px 0 32px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; font-size: 14.5px; color: var(--mut); }
.footer-col h4 { margin: 0 0 4px; font-size: 14.5px; font-weight: 700; color: var(--ink); }
.offices { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 6px; }
.office { display: flex; flex-direction: column; gap: 2px; font-size: 14px; line-height: 1.5; }
.office b { color: var(--ink); font-weight: 600; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; border-top: 1px solid var(--line); padding: 20px 0 34px; font-size: 13.5px; color: var(--mut); }
.footer-bottom nav { display: flex; gap: 18px; }

/* 404 */
.notfound { min-height: 60vh; display: flex; flex-direction: column; justify-content: center; gap: 20px; padding: 80px 0; }
.notfound h1 { margin: 0; font-size: clamp(56px, 9vw, 120px); font-weight: 800; letter-spacing: -.06em; line-height: .9; }

/* Tablet */
@media (max-width: 1180px) {
  :root { --pad: 28px; }
  .nav-links, .nav-right .btn-outline { display: none; }
  .menu-btn { display: inline-flex; }
  .mobile-menu[data-open="true"] { display: flex; flex-direction: column; gap: 4px; padding: 8px 0 20px; border-bottom: 1px solid var(--line); }
  .mobile-menu a { font-size: 18px; font-weight: 600; padding: 12px 0; border-top: 1px solid var(--line); }
  .mobile-menu .btn { margin-top: 12px; }
  .hero { grid-template-columns: 1fr; row-gap: 40px; }
  .vline { display: none; }
  .art { max-width: 640px; width: 100%; justify-self: center; }
  .join { border-top: 1.5px solid var(--ink); padding-top: 36px; max-width: 560px; }
  .section-head { grid-template-columns: 1fr; gap: 16px; }
  .features { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .feature:nth-child(3n) { border-right: 0; }
  .feature:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 18px; }
  .stat:first-child { padding-left: 0; }
  .registered { grid-column: 1 / -1; border-left: 0; padding-left: 0; }
  .two, .rag { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .step:nth-child(4) { padding-left: 0; border-left: 0; }
  .footer-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}

/* Phone */
@media (max-width: 640px) {
  :root { --pad: 18px; }
  .nav { height: 68px; gap: 8px; }
  .logo { font-size: 23px; }
  .logo svg { width: 30px; height: 30px; }
  .nav-right { gap: 6px; }
  .nav-right .btn-red { min-height: 42px; padding: 0 14px; font-size: 14px; }
  .nav-right .btn-red .globe, .nav-right .search-btn { display: none; }
  .menu-btn { width: 42px; height: 42px; }
  .hero h1 { font-size: 19vw; }
  .lead { font-size: 18px; }
  .search { padding: 6px 6px 6px 14px; }
  .search input { font-size: 15.5px; }
  .search .divider { display: none; }
  .tiers { grid-template-columns: 1fr; gap: 12px; }
  .tier { padding: 0 !important; border-left: 0 !important; }
  .art img { width: 100%; }
  .layer { display: none; }
  .layer-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 8px; }
  .layer-row div { display: flex; flex-direction: column; gap: 2px; }
  .layer-row b { font-size: 13px; letter-spacing: .04em; }
  .layer-row span { font-size: 12.5px; color: var(--mut); line-height: 1.35; }
  .join h2 { font-size: 30px; white-space: normal; }
  .section { padding-top: 56px; }
  .features { grid-template-columns: 1fr; }
  .feature { border-right: 0 !important; border-bottom: 1px solid var(--line); }
  .feature:last-child { border-bottom: 0; }
  .stats { grid-template-columns: 1fr; row-gap: 0; padding: 8px 0; }
  .stat { padding: 14px 0 !important; border-left: 0 !important; border-bottom: 1px solid var(--line); }
  .registered { padding-top: 14px; }
  .card { padding: 22px; }
  .card h3 { font-size: 27px; }
  .steps { grid-template-columns: 1fr; }
  .step { padding: 16px 0 !important; border-left: 0 !important; border-bottom: 1px solid var(--line); }
  .points li { grid-template-columns: 1fr; gap: 2px; }
  .hub-row { grid-template-columns: 1fr; gap: 8px; }
  .hub-name { padding-top: 0; }
  .paper-row { flex-direction: column; align-items: flex-start; }
  .enterprise { padding: 28px; }
  .enterprise h3 { font-size: 29px; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* Featured primer banner */
.primer-featured { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; border: 1.5px solid var(--ink); border-radius: 16px; padding: 22px 24px; margin-bottom: 18px; }
.primer-featured:hover { background: #fafafa; }
.primer-featured:hover .primer-featured-title { color: var(--red); }
.primer-featured-title { font-size: 20px; font-weight: 800; letter-spacing: -.02em; margin-top: 4px; }

/* Login / auth page */
.auth-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: 44px; align-items: stretch; max-width: 1060px; }
.auth-card { max-width: 460px; display: flex; flex-direction: column; justify-content: center; }
.auth-h { font-size: clamp(30px, 3.4vw, 42px); font-weight: 800; letter-spacing: -.03em; margin: 0; }
.auth-sub { font-size: 16px; color: var(--mut); margin: 10px 0 24px; }
.auth-tabs { display: flex; gap: 0; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.auth-tab { flex: 1; border: 0; background: none; font: inherit; font-size: 17px; font-weight: 600; color: var(--mut); padding: 0 0 14px; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.auth-tab.active { color: var(--red); border-bottom-color: var(--red); }
.auth-google { width: 100%; min-height: 52px; }
.auth-form { display: flex; flex-direction: column; gap: 12px; margin-top: 4px; }
.auth-form[hidden] { display: none; }
.auth-form .field { margin: 0; }
.auth-rules { font-size: 12.5px; color: var(--mut); margin: 2px 2px 4px; }
.auth-row { display: flex; justify-content: flex-end; margin: -4px 2px 0; }
.auth-link { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.auth-submit { min-height: 54px; font-size: 16px; }
.auth-terms { font-size: 12.5px; color: var(--mut); margin: 18px 0 0; }
.auth-demo { font-size: 14px; margin: 10px 0 0; }
.auth-demo a, .auth-link { color: var(--red); }
.auth-aside { background: var(--ink); color: #fff; border-radius: 20px; padding: 44px 40px; display: flex; flex-direction: column; justify-content: center; }
.auth-brand { font-size: 15px; font-weight: 700; letter-spacing: -.01em; color: #fff; }
.auth-benefits { margin: 18px 0 0; }
.auth-benefits li { color: #fff; }
.auth-benefits li svg { color: var(--red); }
.auth-aside-h { font-size: 40px; font-weight: 800; letter-spacing: -.03em; line-height: 1; margin: 14px 0 0; }
.auth-aside-lead { font-size: 15px; line-height: 1.55; color: rgba(255,255,255,.8); margin: 16px 0 24px; }
.auth-benefits li { color: #fff; }
.auth-stories { display: flex; flex-direction: column; margin: 18px 0 22px; }
.auth-story { position: relative; padding: 13px 0 13px 16px; border-top: 1px solid rgba(255,255,255,.1); }
.auth-story:first-child { border-top: 0; }
.auth-story::before { display: none; }
.auth-story b { display: block; font-size: 15.5px; color: #fff; margin-bottom: 2px; }
.auth-story span { font-size: 13px; color: rgba(255,255,255,.72); line-height: 1.5; }
.auth-aside-note { padding-top: 18px; margin-top: 4px; border-top: 1px solid rgba(255,255,255,.1); font-size: 12.5px; color: rgba(255,255,255,.65); line-height: 1.5; }
@media (max-width: 860px) { .auth-grid { grid-template-columns: 1fr; } .auth-aside { order: -1; } }

/* ──────────────────────────────────────────────────────────────
   Filter Modal / Drawer — Research & Conferences pages [REDESIGNED]
   Professional Premium Styling with Enhanced Visual Hierarchy
   ────────────────────────────────────────────────────────────── */

.filter-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(17, 17, 17, 0.45);
  z-index: 100;
  display: none;
  justify-content: center;
  align-items: flex-start;
  overflow-y: auto;
  padding: 28px 16px;
  backdrop-filter: blur(1px);
}

.filter-modal.open {
  display: flex;
  animation: filter-fade-in 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes filter-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.filter-modal-content {
  background: var(--bg);
  border-radius: 16px;
  max-width: 400px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18), 0 4px 12px rgba(0, 0, 0, 0.12);
  margin-top: 20px;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}

.filter-modal-content::-webkit-scrollbar {
  width: 6px;
}

.filter-modal-content::-webkit-scrollbar-track {
  background: transparent;
}

.filter-modal-content::-webkit-scrollbar-thumb {
  background: var(--line);
  border-radius: 3px;
}

.filter-modal-content::-webkit-scrollbar-thumb:hover {
  background: var(--rule);
}

.filter-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 24px 16px;
  border-bottom: 1px solid var(--line);
  font-weight: 800;
  font-size: 16px;
  letter-spacing: -0.02em;
  color: var(--ink);
  flex-shrink: 0;
}

.filter-modal-close {
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: var(--mut);
  padding: 6px 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: -6px -8px 0 0;
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
}

.filter-modal-close:hover {
  background: var(--soft);
  color: var(--ink);
}

.filter-section {
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
  flex: 1 0 auto;
}

.filter-section:last-child {
  border-bottom: none;
}

.filter-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 0 24px;
  user-select: none;
  transition: color 0.15s;
  gap: 10px;
}

.filter-section-header:hover {
  color: var(--red);
}

.filter-section-header::before {
  content: attr(data-icon);
  font-size: 14px;
  flex-shrink: 0;
  opacity: 0.8;
  transition: opacity 0.15s;
}

.filter-section-header:hover::before {
  opacity: 1;
}

.filter-section-header::after {
  content: "▼";
  font-size: 10px;
  margin-left: auto;
  flex-shrink: 0;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  color: var(--mut);
}

.filter-section.collapsed .filter-section-header::after {
  transform: rotate(-90deg);
}

.filter-section-body {
  padding: 14px 24px 0;
  max-height: 1000px;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.25s, padding 0.25s;
  opacity: 1;
}

.filter-section.collapsed .filter-section-body {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  padding: 0 24px;
}

.filter-checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}

.filter-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
  font-size: 13.5px;
  color: var(--mut);
  padding: 6px 10px;
  line-height: 1.5;
  border-radius: 8px;
  transition: background 0.12s, color 0.12s;
}

.filter-checkbox:hover {
  background: var(--soft);
  color: var(--ink);
}

.filter-checkbox input {
  width: 18px;
  height: 18px;
  min-width: 18px;
  flex-shrink: 0;
  cursor: pointer;
  accent-color: var(--red);
  border-radius: 4px;
  transition: transform 0.15s;
}

.filter-checkbox input:checked {
  transform: scale(1.05);
}

.filter-checkbox input:hover {
  filter: brightness(1.1);
}

.filter-radio-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}

.filter-radio {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
  font-size: 13.5px;
  color: var(--mut);
  padding: 6px 10px;
  line-height: 1.5;
  border-radius: 8px;
  transition: background 0.12s, color 0.12s;
}

.filter-radio:hover {
  background: var(--soft);
  color: var(--ink);
}

.filter-radio input {
  width: 18px;
  height: 18px;
  min-width: 18px;
  flex-shrink: 0;
  cursor: pointer;
  accent-color: var(--red);
  transition: transform 0.15s;
}

.filter-radio input:checked {
  transform: scale(1.05);
}

.filter-radio input:hover {
  filter: brightness(1.1);
}

.filter-input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 14px 0 18px;
}

.filter-input-group label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--ink);
  text-transform: uppercase;
}

.filter-input-group input[type="number"] {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  background: var(--snow);
  color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.filter-input-group input[type="number"]:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(216, 20, 14, 0.1);
}

.filter-range {
  margin: 14px 0 18px;
}

.filter-range-label {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--ink);
  margin-bottom: 12px;
  text-transform: uppercase;
}

.filter-range-value {
  color: var(--red);
  font-weight: 800;
  font-size: 13px;
}

.filter-range-track {
  width: 100%;
  height: 5px;
  background: var(--line);
  border-radius: 999px;
  position: relative;
  cursor: pointer;
  overflow: hidden;
}

input[type="range"] {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  cursor: pointer;
  height: 28px;
  margin: 0;
  padding: 0;
  display: block;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--red);
  cursor: grab;
  box-shadow: 0 2px 8px rgba(216, 20, 14, 0.35), inset 0 -1px 2px rgba(0, 0, 0, 0.15);
  border: none;
  transition: box-shadow 0.2s, transform 0.15s;
}

input[type="range"]::-webkit-slider-thumb:hover {
  box-shadow: 0 4px 12px rgba(216, 20, 14, 0.45), inset 0 -1px 2px rgba(0, 0, 0, 0.15);
  transform: scale(1.1);
}

input[type="range"]::-webkit-slider-thumb:active {
  cursor: grabbing;
  transform: scale(1.15);
}

input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--red);
  cursor: grab;
  box-shadow: 0 2px 8px rgba(216, 20, 14, 0.35), inset 0 -1px 2px rgba(0, 0, 0, 0.15);
  border: none;
  transition: box-shadow 0.2s, transform 0.15s;
}

input[type="range"]::-moz-range-thumb:hover {
  box-shadow: 0 4px 12px rgba(216, 20, 14, 0.45), inset 0 -1px 2px rgba(0, 0, 0, 0.15);
  transform: scale(1.1);
}

input[type="range"]::-moz-range-thumb:active {
  cursor: grabbing;
  transform: scale(1.15);
}

input[type="range"]::-webkit-slider-runnable-track {
  background: transparent;
  height: 5px;
  border-radius: 999px;
}

input[type="range"]::-moz-range-track {
  background: transparent;
  border: none;
}

input[type="range"]::-moz-range-progress {
  background: var(--red);
  height: 5px;
  border-radius: 999px;
}

.filter-modal-footer {
  padding: 18px 24px 24px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 12px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.filter-modal-btn {
  flex: 1;
  min-width: 110px;
  padding: 12px 18px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  background: var(--bg);
  color: var(--mut);
  font-family: inherit;
  transition: all 0.15s cubic-bezier(0.34, 1.56, 0.64, 1);
  text-transform: uppercase;
  user-select: none;
}

.filter-modal-btn:hover {
  border-color: var(--rule);
  color: var(--ink);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.filter-modal-btn:active {
  transform: translateY(0);
  box-shadow: none;
}

.filter-modal-btn.primary {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
  box-shadow: 0 4px 12px rgba(216, 20, 14, 0.25);
}

.filter-modal-btn.primary:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
  box-shadow: 0 6px 16px rgba(216, 20, 14, 0.35);
  transform: translateY(-2px);
}

.filter-modal-btn.primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(216, 20, 14, 0.2);
}

/* Filter button with badge */
.filter-btn-badge {
  position: relative;
}

.filter-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  min-width: 18px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  position: absolute;
  top: -8px;
  right: -8px;
}

/* Mobile bottom sheet layout */
@media (max-width: 600px) {
  .filter-modal {
    align-items: flex-end;
    padding: 0;
  }

  .filter-modal-content {
    max-width: none;
    width: 100%;
    margin-top: 0;
    border-radius: 16px 16px 0 0;
    max-height: 70vh;
    margin-top: auto;
  }

  .filter-modal-content::before {
    content: "";
    display: block;
    width: 32px;
    height: 3px;
    background: var(--line);
    border-radius: 999px;
    margin: 10px auto 14px;
    cursor: grab;
  }

  .filter-section {
    padding: 12px 0;
  }

  .filter-section-header {
    padding: 0 16px;
  }

  .filter-section-body {
    padding: 12px 16px 0;
  }

  .filter-modal-footer {
    padding: 12px 16px 20px;
  }

  .filter-modal-btn {
    padding: 12px 16px;
    font-size: 14px;
  }
}

/* Search input styling */
.filter-search {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 13px;
  color: var(--ink);
  background: var(--soft);
  font-family: inherit;
  outline: none;
  transition: border-color 0.12s;
  margin-bottom: 12px;
}

.filter-search:focus {
  border-color: var(--rule);
  background: var(--bg);
}

/* Footer attribution bar: product, parent company, HQ and contact in one line. */
.footer-org { display: flex; align-items: center; flex-wrap: wrap; gap: 0 14px; row-gap: 8px; }
.footer-org > span { display: flex; align-items: center; gap: 6px; }
.footer-org b { font-weight: 600; color: var(--ink); }
.footer-org a { color: inherit; text-decoration: none; }
.footer-org a:hover { color: var(--red); }
.footer-org-brand { gap: 8px !important; }
.footer-org-brand b { font-size: 15px; font-weight: 800; letter-spacing: -.3px; }
.footer-org-brand .by { color: var(--gray); font-weight: 500; }
.footer-org-brand .by a { font-weight: 600; color: var(--mut); }
.footer-fact svg { color: var(--gray); flex-shrink: 0; }
.footer-sep { width: 1px; height: 15px; background: var(--line); }
@media (max-width: 900px) {
  .footer-org > .footer-sep { display: none; }
  .footer-org { flex-direction: column; align-items: flex-start; gap: 10px; }
}
.footer-dot { font-style: normal; color: var(--rule); margin: 0 2px; }

/* Footer brand column. Facts appear once: offices and contact live in the
   attribution bar, so this column carries identity and the parent lockup. */
.footer-brand { gap: 0; }
.footer-tag { margin: 14px 0 0; font-size: 14.5px; color: var(--mut); }
.footer-parent {
  display: inline-flex; flex-direction: column; gap: 2px; margin-top: 28px;
  padding: 14px 18px; border: 1px solid var(--line); border-radius: 10px;
  align-self: flex-start; transition: border-color .15s;
}
.footer-parent:hover { border-color: var(--ink); color: var(--ink); }
.footer-parent span { font-size: 12.5px; color: var(--gray); }
.footer-parent b { font-size: 14.5px; font-weight: 700; color: var(--ink); letter-spacing: -.2px; }
.footer-social { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.footer-social a {
  font-size: 13px; font-weight: 600; color: var(--mut);
  border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px;
  transition: border-color .15s, color .15s;
}
.footer-social a:hover { border-color: var(--ink); color: var(--ink); }

/* Headings need to outrank their links, which they did not before. */
.footer-col h4 { font-size: 13px; letter-spacing: .2px; margin-bottom: 14px; }
.footer-col > a { transition: color .12s; }
.footer-bottom { justify-content: flex-start; padding-bottom: 22px; }
@media (max-width: 900px) {
  .footer-fact { flex-wrap: wrap; }
  /* Clear the floating assistant launcher so it never sits on the contact line. */
  .footer-bottom { padding-bottom: 88px; }
}

/* Footer floor: the wordmark set oversized and clipped to its top third, so
   the page ends on the brand as texture rather than a second headline.
   Decorative only, hidden from assistive tech. */
.footer-floor {
  font-size: clamp(46px, 14.6vw, 210px);
  font-weight: 800;
  letter-spacing: -.055em;
  line-height: 1;
  height: .54em;
  overflow: hidden;
  white-space: nowrap;
  color: #f2f2f3;
  user-select: none;
  margin-top: -.14em;
}
.footer-floor span { color: var(--red-soft); }
