/* Boole Labs — Direction C "Statement"
   Near-monochrome, oversized type, dotted blueprint hero.
   Serves both the landing page and the two legal pages. */

:root {
  --bg: oklch(0.986 0.0015 250);
  --panel: oklch(0.97 0.003 250);
  --line: oklch(0.9 0.005 250);
  --line-strong: oklch(0.82 0.006 250);
  --ink: oklch(0.2 0.012 250);
  --ink-strong: oklch(0.13 0.014 250);
  --muted: oklch(0.52 0.01 250);
  --faint: oklch(0.65 0.008 250);
  --blue: #2f6d9e;
  --dot: oklch(0.88 0.006 250);
  --danger: #b23b34;

  --sans: "Geist", "Helvetica Neue", Helvetica, system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --maxw: 1280px;
  --legal-maxw: 1180px;
  --pad: 44px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  line-height: 1.45;
  letter-spacing: -0.011em;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

img,
svg {
  display: block;
}

::selection {
  background: var(--blue);
  color: #fff;
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.mono {
  font-family: var(--mono);
  letter-spacing: 0.04em;
}

.kicker {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--faint);
}

section[id],
footer[id] {
  scroll-margin-top: 86px;
}

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

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

/* ---------- Header / nav ---------- */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in oklch, var(--bg) 84%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.02em;
  white-space: nowrap;
  color: var(--ink-strong);
}

.bmark {
  flex: none;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 34px;
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links a {
  font-size: 14px;
  color: var(--muted);
  transition: color 0.18s;
}

.nav-links a:hover {
  color: var(--ink);
}

.nav-links a.here {
  color: var(--ink-strong);
}

.btn {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  border: 1px solid var(--ink-strong);
  background: var(--ink-strong);
  color: var(--bg);
  padding: 11px 19px;
  border-radius: 3px;
  cursor: pointer;
  transition:
    background 0.2s,
    color 0.2s,
    border-color 0.2s;
  letter-spacing: -0.01em;
}

.btn:hover {
  background: transparent;
  color: var(--ink-strong);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}

.btn-ghost:hover {
  border-color: var(--ink);
  color: var(--ink-strong);
}

.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Hamburger — hidden until small screens */
.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  cursor: pointer;
}

.nav-toggle-bar {
  width: 18px;
  height: 1.5px;
  background: var(--ink);
  border-radius: 2px;
  transition:
    transform 0.2s,
    opacity 0.2s;
}

header.nav-open .nav-toggle-bar:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

header.nav-open .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

header.nav-open .nav-toggle-bar:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* ---------- Hero — oversized, dotted texture ---------- */
.hero {
  position: relative;
  padding: 104px 0 84px;
  overflow: hidden;
  background-image: radial-gradient(var(--dot) 1.1px, transparent 1.1px);
  background-size: 26px 26px;
  background-position: -13px -13px;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, var(--bg) 100%);
  pointer-events: none;
}

.hero .inner {
  position: relative;
  z-index: 1;
}

.hero .kicker {
  margin-bottom: 26px;
}

.hero h1 {
  font-size: clamp(52px, 11vw, 168px);
  line-height: 0.9;
  font-weight: 600;
  letter-spacing: -0.05em;
  color: var(--ink-strong);
  text-wrap: balance;
}

.hero h1 .l2 {
  color: var(--ink-strong);
}

.hero-foot {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  margin-top: 48px;
  flex-wrap: wrap;
}

.hero-foot p {
  font-size: clamp(17px, 1.5vw, 20px);
  color: var(--muted);
  max-width: 44ch;
  line-height: 1.5;
}

.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ---------- Capability rows ---------- */
.caps {
  border-top: 1px solid var(--line);
}

.caps-head {
  padding: 64px 0 8px;
}

.caps-head .kicker {
  margin-bottom: 14px;
}

.caps-head h2 {
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
  max-width: 30ch;
}

.cap-row {
  display: grid;
  grid-template-columns: 120px 1fr 1fr;
  gap: 30px;
  align-items: baseline;
  padding: 46px 0;
  border-bottom: 1px solid var(--line);
  transition: background 0.3s;
}

.cap-row:hover {
  background: var(--panel);
}

.cap-row .cnum {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--faint);
  letter-spacing: 0.06em;
}

.cap-row h3 {
  font-size: clamp(28px, 4.4vw, 56px);
  font-weight: 600;
  letter-spacing: -0.035em;
  color: var(--ink-strong);
  line-height: 1;
}

.cap-row p {
  font-size: 17px;
  color: var(--muted);
  max-width: 34ch;
}

/* ---------- Products ---------- */
.products {
  border-top: 1px solid var(--line);
}

.products-head {
  padding: 64px 0 8px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 30px;
  flex-wrap: wrap;
}

.products-head .kicker {
  margin-bottom: 14px;
}

.products-head h2 {
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
  max-width: 30ch;
}

.products-all {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-strong);
  white-space: nowrap;
  padding-bottom: 4px;
}

.products-all .arr {
  font-family: var(--mono);
  transition: transform 0.25s;
}

.products-all:hover .arr {
  transform: translateX(5px);
}

.products-intro {
  font-size: 18px;
  color: var(--muted);
  line-height: 1.6;
  max-width: 60ch;
  padding: 36px 0 8px;
}

.products-intro strong {
  color: var(--ink);
  font-weight: 600;
}

.prod-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  padding: 42px 0 64px;
}

.catalog-grid {
  padding: 36px 0 80px;
}

.prod-card {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px 26px 28px;
  background: var(--bg);
  transition:
    border-color 0.25s,
    transform 0.25s;
}

a.prod-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-3px);
}

.prod-icon {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  background: transparent;
  overflow: hidden;
  box-shadow: 0 14px 32px color-mix(in oklch, var(--ink-strong) 9%, transparent);
}

.prod-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.prod-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.prod-tag {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.prod-tag .mono {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--faint);
}

.prod-body h3 {
  font-size: 23px;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--ink-strong);
}

.prod-body p {
  margin-top: 9px;
  color: var(--muted);
  font-size: 15px;
  flex: 1;
  line-height: 1.55;
}

.prod-link {
  margin-top: 22px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-strong);
}

.prod-link .arr {
  font-family: var(--mono);
  transition: transform 0.25s;
}

a.prod-card:hover .prod-link .arr {
  transform: translateX(5px);
}

.prod-empty {
  display: flex;
  border-style: dashed;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 240px;
  padding: 30px;
}

.prod-empty .mono {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--faint);
}

.prod-empty p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 15px;
  max-width: 24ch;
}

/* ---------- Approach / trust content ---------- */
.approach {
  padding: 76px 0 88px;
  border-top: 1px solid var(--line);
}

.approach-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr);
  gap: 64px;
  align-items: start;
}

.approach .kicker {
  margin-bottom: 18px;
}

.approach h2 {
  font-size: clamp(30px, 4.2vw, 54px);
  font-weight: 600;
  letter-spacing: -0.04em;
  color: var(--ink-strong);
  line-height: 1;
  max-width: 16ch;
}

.approach-copy {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.approach-copy p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
  max-width: 48ch;
}

.approach-list {
  margin-top: 58px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.approach-item {
  padding: 30px 30px 34px 0;
  min-width: 0;
}

.approach-item + .approach-item {
  padding-left: 30px;
  border-left: 1px solid var(--line);
}

.approach-item .mono {
  display: block;
  font-size: 11px;
  color: var(--faint);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 28px;
}

.approach-item h3 {
  font-size: clamp(22px, 2.6vw, 32px);
  font-weight: 600;
  letter-spacing: -0.035em;
  color: var(--ink-strong);
  line-height: 1.05;
}

.approach-item p {
  margin-top: 16px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.58;
  max-width: 32ch;
}

/* ---------- Inline multi-step brief ---------- */
.brief {
  padding: 96px 0 110px;
  border-top: 1px solid var(--line);
}

.brief-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 64px;
  align-items: start;
}

.brief-left .kicker {
  margin-bottom: 18px;
}

.brief-left h2 {
  font-size: clamp(34px, 4.6vw, 56px);
  font-weight: 600;
  letter-spacing: -0.04em;
  color: var(--ink-strong);
  line-height: 1;
}

.brief-left p {
  margin-top: 18px;
  color: var(--muted);
  font-size: 17px;
  max-width: 32ch;
}

.stepmap {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.smap {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 0;
  color: var(--faint);
  transition: color 0.25s;
}

.smap.active {
  color: var(--ink-strong);
}

.smap.done {
  color: var(--muted);
}

.smap .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  flex: none;
  transition:
    background 0.25s,
    border-color 0.25s;
}

.smap.active .dot {
  background: var(--ink-strong);
  border-color: var(--ink-strong);
}

.smap.done .dot {
  background: var(--muted);
  border-color: var(--muted);
}

.smap .mono {
  font-size: 13px;
}

.brief-card {
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--bg);
  overflow: hidden;
}

.bc-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 26px;
  border-bottom: 1px solid var(--line);
}

.bc-top .mono {
  font-size: 12px;
  color: var(--faint);
}

.progress {
  height: 3px;
  background: var(--line);
}

.progress span {
  display: block;
  height: 100%;
  background: var(--ink-strong);
  width: 25%;
  transition: width 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.bc-body {
  padding: 42px 40px 36px;
  min-height: 300px;
  display: flex;
  flex-direction: column;
}

.qstep {
  display: none;
  flex-direction: column;
  animation: slidein 0.35s ease;
}

.qstep.show {
  display: flex;
}

@keyframes slidein {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.qstep .qnum {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--faint);
  letter-spacing: 0.06em;
}

.qstep label {
  margin-top: 14px;
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--ink-strong);
}

.qstep .hint {
  margin-top: 8px;
  color: var(--muted);
  font-size: 15px;
}

.qstep input,
.qstep textarea {
  margin-top: 26px;
  width: 100%;
  font-family: var(--sans);
  font-size: 18px;
  color: var(--ink);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line-strong);
  padding: 10px 2px;
  resize: none;
  transition: border-color 0.2s;
}

.qstep input:focus,
.qstep textarea:focus {
  outline: none;
  border-color: var(--ink-strong);
}

.qstep input::placeholder,
.qstep textarea::placeholder {
  color: var(--faint);
}

.qstep .err {
  display: none;
  margin-top: 12px;
  font-size: 13.5px;
  color: var(--danger);
}

.qstep.invalid input,
.qstep.invalid textarea {
  border-color: var(--danger);
}

.qstep.invalid .err {
  display: block;
}

.bc-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 30px;
}

.bc-foot .back {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--muted);
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.18s;
}

.bc-foot .back:hover {
  color: var(--ink);
}

.bc-foot .back:disabled {
  opacity: 0;
  pointer-events: none;
}

.done-state {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 30px 0;
  min-height: 260px;
}

.done-state.show {
  display: flex;
}

.done-state .mark {
  width: 52px;
  height: 52px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--ink);
}

.done-state h3 {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--ink-strong);
}

.done-state p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 16px;
  max-width: 34ch;
}

/* ---------- Contact (in landing footer) ---------- */
footer#contact {
  padding: 0 0 60px;
}

.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
  padding: 90px 0 70px;
  border-top: 1px solid var(--line);
}

.contact-l .kicker {
  margin-bottom: 18px;
}

.contact-l h2 {
  font-size: clamp(32px, 4.4vw, 52px);
  font-weight: 600;
  letter-spacing: -0.04em;
  color: var(--ink-strong);
  line-height: 1;
}

.contact-l p {
  margin-top: 16px;
  color: var(--muted);
  font-size: 17px;
  max-width: 34ch;
}

.contact-r {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.clink {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 4px;
  border-bottom: 1px solid var(--line);
  transition:
    padding 0.25s,
    background 0.25s;
}

a.clink:hover {
  padding-left: 14px;
  padding-right: 14px;
  background: var(--panel);
}

.clink .mono {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--faint);
}

.clink .cval {
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink-strong);
}

/* ---------- Footer (shared bottom rows) ---------- */
.foot-bottom {
  padding-top: 30px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
}

.foot-bottom .brand {
  font-size: 15px;
}

.foot-legal-links {
  display: flex;
  gap: 24px;
}

.foot-legal-links a {
  font-size: 13px;
  color: var(--muted);
  transition: color 0.18s;
}

.foot-legal-links a:hover {
  color: var(--ink);
}

.foot-legal-links a.here {
  color: var(--ink-strong);
}

.foot-meta {
  margin-top: 14px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  align-items: center;
}

.foot-meta .mono {
  font-size: 12px;
  color: var(--faint);
}

/* ---------- Legal pages ---------- */
body.legal footer {
  padding: 64px 0 56px;
  border-top: 1px solid var(--line);
  margin-top: 40px;
}

body.products-page footer {
  padding: 64px 0 56px;
  border-top: 1px solid var(--line);
}

.legal-hero {
  padding: 72px 0 48px;
  border-bottom: 1px solid var(--line);
}

.legal-hero .wrap,
.legal-body {
  max-width: var(--legal-maxw);
}

.legal-hero .kicker {
  margin-bottom: 20px;
}

.legal-hero h1 {
  font-size: clamp(40px, 6vw, 76px);
  line-height: 0.98;
  font-weight: 600;
  letter-spacing: -0.045em;
  color: var(--ink-strong);
}

.legal-body {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 64px;
  width: 100%;
  padding: 64px var(--pad) 40px;
  align-items: start;
}

.toc {
  position: sticky;
  top: 104px;
}

.toc .label {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--faint);
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.toc ol {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.toc a {
  display: flex;
  gap: 11px;
  align-items: baseline;
  padding: 7px 0;
  font-size: 13.5px;
  color: var(--muted);
  transition:
    color 0.18s,
    padding 0.2s;
  line-height: 1.35;
}

.toc a .n {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--faint);
  flex: none;
  width: 18px;
}

.toc a:hover {
  color: var(--ink);
}

.toc a.active {
  color: var(--ink-strong);
  font-weight: 500;
}

.toc a.active .n {
  color: var(--blue);
}

.legal-content {
  width: 100%;
  min-width: 0;
  max-width: 680px;
  overflow-wrap: anywhere;
}

.legal-intro {
  font-size: 18px;
  color: var(--muted);
  line-height: 1.6;
  padding-bottom: 40px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.legal-intro strong {
  color: var(--ink);
  font-weight: 600;
}

.sec {
  padding: 40px 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 100px;
}

.sec:last-of-type {
  border-bottom: none;
}

.sec .secnum {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--faint);
  letter-spacing: 0.06em;
}

.sec h2 {
  margin-top: 10px;
  font-size: clamp(22px, 2.6vw, 28px);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--ink-strong);
  line-height: 1.1;
}

.sec p {
  margin-top: 16px;
  color: var(--ink);
  font-size: 16.5px;
  line-height: 1.65;
}

.sec p + p {
  margin-top: 14px;
}

.sec a {
  color: var(--blue);
  border-bottom: 1px solid color-mix(in oklch, var(--blue) 40%, transparent);
  transition: border-color 0.18s;
}

.sec a:hover {
  border-bottom-color: var(--blue);
}

.foot-top {
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--ink-strong);
  max-width: 18ch;
  line-height: 1.1;
  margin-bottom: 48px;
}

/* ---------- Scroll reveal (gated on .js so no-JS / crawlers see content) ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.8s cubic-bezier(0.2, 0.7, 0.2, 1),
    transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.js .reveal.in {
  opacity: 1;
  transform: none;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .legal-body {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 40px var(--pad) 20px;
  }

  .toc {
    display: none;
  }
}

@media (max-width: 920px) {
  .prod-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .legal-hero {
    padding: 48px 0 34px;
  }

  .legal-hero h1 {
    font-size: clamp(36px, 11vw, 48px);
    line-height: 1;
  }

  .legal-body {
    padding: 34px var(--pad) 12px;
  }

  .legal-intro {
    font-size: 16.5px;
    line-height: 1.58;
    padding-bottom: 30px;
  }

  .sec {
    padding: 30px 0;
  }

  .sec h2 {
    font-size: clamp(21px, 6.5vw, 25px);
    line-height: 1.15;
  }

  .sec p {
    font-size: 15.75px;
    line-height: 1.62;
  }
}

@media (max-width: 820px) {
  .cap-row {
    grid-template-columns: 60px 1fr;
    gap: 14px;
  }

  .cap-row p {
    grid-column: 2;
  }

  .approach-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .approach h2 {
    max-width: 18ch;
  }

  .approach-copy p {
    max-width: 58ch;
  }

  .brief-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .stepmap {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 18px;
  }

  .bc-body {
    padding: 32px 24px 28px;
  }
}

@media (max-width: 760px) {
  :root {
    --pad: 22px;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-right {
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--pad) 22px;
    background: color-mix(in oklch, var(--bg) 96%, transparent);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
    display: none;
  }

  header.nav-open .nav-right {
    display: flex;
  }

  .nav-links {
    flex-direction: column;
    gap: 0;
  }

  .nav-links a {
    padding: 14px 0;
    font-size: 15px;
    border-top: 1px solid var(--line);
  }

  .approach {
    padding: 58px 0 68px;
  }

  .approach-list {
    grid-template-columns: 1fr;
    margin-top: 42px;
  }

  .approach-item {
    padding: 28px 0;
  }

  .approach-item + .approach-item {
    padding-left: 0;
    border-left: none;
    border-top: 1px solid var(--line);
  }

  .approach-item .mono {
    margin-bottom: 18px;
  }

  .nav-right .btn {
    margin-top: 16px;
    text-align: center;
  }

  .prod-grid {
    grid-template-columns: 1fr;
    padding: 32px 0 48px;
  }

  .prod-card {
    grid-template-columns: 66px minmax(0, 1fr);
    gap: 18px;
    padding: 22px;
  }

  .prod-icon {
    width: 62px;
    height: 62px;
  }

  .catalog-grid {
    padding: 28px 0 56px;
  }

  .contact {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 64px 0 48px;
  }

  .foot-bottom {
    align-items: flex-start;
    gap: 18px;
  }

  .foot-legal-links {
    gap: 18px;
    margin-left: auto;
  }

  .foot-legal-links a {
    font-size: 12.5px;
  }

  .foot-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    margin-top: 18px;
  }

  .foot-meta .mono {
    max-width: 38ch;
    line-height: 1.45;
  }
}

@media (max-width: 520px) {
  .foot-bottom {
    flex-direction: column;
    gap: 18px;
  }

  .foot-legal-links {
    margin-left: 0;
  }
}
