:root {
  --bg: #FAF9F6;
  --surface: #FFFFFF;
  --surface-2: #F3F1EA;
  --ink: #14140F;
  --muted: #726F64;
  --accent: #8A7B5C;
  --accent-deep: #5B4F3A;
  --line: #E7E5DF;
  color-scheme: light;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; overflow-x: clip; /* 100vw strips must never make the page scroll sideways */ }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  container-type: inline-size;   /* lets full-bleed strips use 100cqw */
  background: var(--bg);
  background:
    radial-gradient(900px 480px at 12% -8%, rgba(138, 123, 92, 0.14), transparent 60%),
    radial-gradient(700px 420px at 100% 8%, rgba(138, 123, 92, 0.08), transparent 55%),
    var(--bg);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

h1, h2, h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500;
  line-height: 1.15;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; }

a { color: inherit; }

.eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin: 0 0 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.eyebrow::before {
  content: '';
  width: 18px;
  height: 1px;
  background: var(--accent);
  flex-shrink: 0;
}

/* ---------- Scroll reveal ---------- */

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

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.7s cubic-bezier(.16,.8,.24,1), transform 0.7s cubic-bezier(.16,.8,.24,1);
  }

  .reveal.is-visible { opacity: 1; transform: none; }

  .process-step.reveal:nth-child(1),
  .usp-item.reveal:nth-child(1),
  .cert-card.reveal:nth-child(1),
  .guide-card.reveal:nth-child(1),
  .case-card.reveal:nth-child(1) { transition-delay: 0s; }
  .process-step.reveal:nth-child(2),
  .usp-item.reveal:nth-child(2),
  .cert-card.reveal:nth-child(2),
  .guide-card.reveal:nth-child(2),
  .case-card.reveal:nth-child(2) { transition-delay: 0.08s; }
  .process-step.reveal:nth-child(3),
  .usp-item.reveal:nth-child(3),
  .cert-card.reveal:nth-child(3),
  .guide-card.reveal:nth-child(3),
  .case-card.reveal:nth-child(3) { transition-delay: 0.16s; }
  .process-step.reveal:nth-child(4),
  .usp-item.reveal:nth-child(4),
  .cert-card.reveal:nth-child(4) { transition-delay: 0.24s; }
}

/* ---------- Topbar ---------- */

.topbar {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 10;
  background: rgba(250, 249, 246, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

.topbar-inner {
  position: relative;
  max-width: 1320px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.lang-toggle {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  background: none;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 10px;
  min-height: 40px;   /* comfortable tap target on phones */
  color: var(--muted);
  cursor: pointer;
  margin-left: auto;
}

.lang-toggle:hover { border-color: var(--accent); color: var(--accent-deep); }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: -8px 0 -8px -8px;
  padding: 0;
  background: none;
  border: none;
  color: var(--ink);
  cursor: pointer;
}

/* Chromium ignores the hidden attribute on SVG elements, so the close icon
   is hidden here rather than relying on it. */
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-menu { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

.wordmark {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}

.wordmark-thin { font-weight: 400; color: var(--muted); }

.wordmark-link { text-decoration: none; color: var(--ink); }

.topnav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 28px);
  font-size: 0.92rem;
}

.topnav a {
  text-decoration: none;
  color: var(--ink);
  padding: 6px 2px;
}

.topnav a:hover { color: var(--accent-deep); }

.topnav-cta {
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 8px 18px !important;
}

.topnav-cta:hover {
  background: var(--ink);
  color: var(--bg) !important;
}

/* ---------- Layout helpers ---------- */

main { max-width: 1320px; margin: 0 auto; padding: 0 24px; }

section { padding-block: clamp(40px, 6vw, 72px); }

.section-head { max-width: 640px; margin-bottom: clamp(24px, 4vw, 36px); }

.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }

.no-break { white-space: nowrap; }

@media (max-width: 700px) {
  .no-break { white-space: normal; }
}

.section-lead {
  margin-top: 14px;
  color: var(--muted);
  font-size: 1rem;
  max-width: 58ch;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding-block: clamp(64px, 10vw, 120px) clamp(48px, 7vw, 80px);
  overflow: hidden;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: clamp(32px, 5vw, 64px);
}

.hero-content {
  max-width: 700px;
  flex: 1 1 420px;
}

.hero-visual {
  width: clamp(260px, 28vw, 380px);
  flex: 0 0 auto;
  margin-top: clamp(32px, 6vw, 64px);
  pointer-events: none;
}

.hero-molecule {
  width: 100%;
  height: auto;
  overflow: visible;
}

.hero-molecule line {
  stroke: var(--accent);
  stroke-width: 1;
  opacity: 0.45;
}

.hero-molecule polyline {
  stroke: var(--accent);
  stroke-width: 1.8;
  stroke-linejoin: round;
  stroke-linecap: round;
  opacity: 0.75;
}

.hero-molecule .node {
  fill: var(--surface);
  stroke: var(--accent);
  stroke-width: 1.4;
}

.hero-molecule .node-core {
  fill: var(--accent);
  stroke: var(--accent-deep);
}

@media (max-width: 960px) {
  .hero-grid { flex-direction: column; }
  .hero-visual { width: clamp(220px, 50vw, 320px); margin: 0 auto; }
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(64px);
  pointer-events: none;
  user-select: none;
  z-index: 0;
  will-change: transform;
}

.hero-glow-a {
  width: 380px;
  height: 380px;
  top: -140px;
  right: -60px;
  background: radial-gradient(circle, var(--accent) 0%, transparent 72%);
  opacity: 0.32;
  animation: glow-drift-a 16s ease-in-out infinite alternate;
}

.hero-glow-b {
  width: 300px;
  height: 300px;
  bottom: -120px;
  right: 220px;
  background: radial-gradient(circle, var(--accent-deep) 0%, transparent 72%);
  opacity: 0.2;
  animation: glow-drift-b 20s ease-in-out infinite alternate;
}

@keyframes glow-drift-a { from { transform: translate(0, 0) scale(1); } to { transform: translate(-36px, 26px) scale(1.08); } }
@keyframes glow-drift-b { from { transform: translate(0, 0) scale(1); } to { transform: translate(24px, -20px) scale(1.05); } }

@media (prefers-reduced-motion: reduce) {
  .hero-glow-a, .hero-glow-b { animation: none; }
}

@media (max-width: 640px) {
  .hero-glow-a { width: 240px; height: 240px; top: -80px; right: -60px; }
  .hero-glow-b { display: none; }
}

.corner-mark {
  position: absolute;
  width: 26px;
  height: 26px;
  border: 1px solid var(--accent);
  opacity: 0.5;
  pointer-events: none;
}

.corner-tl { top: 18px; left: 0; border-right: none; border-bottom: none; }

.corner-br { bottom: 18px; right: 0; border-left: none; border-top: none; }

@media (max-width: 640px) {
  .corner-mark { display: none; }
}

.hero h1 {
  font-size: clamp(2rem, 4.6vw, 3.1rem);
  margin-bottom: 20px;
}

.hero-lead {
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 60ch;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 999px;
  padding: 13px 26px;
  min-height: 44px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
  background: var(--ink);
  color: var(--bg);
}

.btn-primary:hover { background: var(--accent-deep); }

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

.btn-ghost:hover { border-color: var(--accent); color: var(--accent-deep); }

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--accent-deep);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 5px 10px;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.tag:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
  transform: translateY(-1px);
}

/* ---------- Membership strip ---------- */

.membership-strip {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  /* 100vw includes a classic scrollbar; the body's container width doesn't. */
  width: 100cqw;
  margin-left: calc(50% - 50cqw);
  margin-right: calc(50% - 50cqw);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding-block: clamp(20px, 3vw, 28px);
  background: linear-gradient(180deg, var(--surface-2) 0%, var(--bg) 100%);
  overflow: hidden;
}

.membership-strip::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 560px;
  height: 220px;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse, rgba(138, 123, 92, 0.22), transparent 70%);
  filter: blur(36px);
  pointer-events: none;
}

.membership-strip::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 140px;
  height: 2px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.membership-strip-inner {
  position: relative;
  z-index: 1;
  max-width: 1320px;
  margin: 0 auto;
  padding-inline: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.membership-strip .tag-list { justify-content: center; }

.membership-strip-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  flex-shrink: 0;
}

.membership-strip-label::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px 1px var(--accent);
}

.membership-strip .tag {
  background: var(--surface);
  border-color: var(--accent);
  box-shadow: 0 4px 14px -6px rgba(138, 123, 92, 0.4);
}

/* ---------- USP band ---------- */

.usp { padding-block: clamp(28px, 4vw, 44px); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.usp-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(20px, 3vw, 32px);
}

.usp-item { display: flex; flex-direction: column; gap: 8px; }

.usp-icon { color: var(--accent); }

.usp-item h3 { font-size: 0.98rem; font-weight: 600; font-family: 'Inter', sans-serif; }

.usp-item p { font-size: 0.85rem; color: var(--muted); }

@media (max-width: 820px) {
  .usp-list { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .usp-list { grid-template-columns: 1fr; }
}

/* ---------- Services ---------- */

.service-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 4vw, 56px);
}

.column-title {
  font-size: 1.2rem;
  padding-bottom: 14px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--ink);
}

.service-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.service-item-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.service-name {
  font-weight: 600;
  font-size: 0.98rem;
}

.code {
  flex-shrink: 0;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.03em;
  color: var(--accent-deep);
  white-space: nowrap;
}

.service-item p {
  font-size: 0.92rem;
  color: var(--muted);
}

.service-item {
  padding: 14px;
  margin: -14px;
  border-radius: 10px;
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

.service-item:hover {
  background: var(--surface);
  box-shadow: 0 10px 28px -18px rgba(20, 20, 15, 0.25);
}

/* ---------- Certification ---------- */

.cert-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.cert-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: box-shadow 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.cert-card:hover {
  border-color: var(--accent);
  box-shadow: 0 14px 32px -22px rgba(20, 20, 15, 0.28);
  transform: translateY(-2px);
}

.cert-card .code {
  align-self: flex-start;
  font-size: 0.7rem;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 4px 8px;
}

.cert-card h3 { font-size: 1.02rem; }

.cert-card p { font-size: 0.88rem; color: var(--muted); }

@media (max-width: 900px) {
  .cert-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .cert-grid { grid-template-columns: 1fr; }
}

/* ---------- Example engagements ---------- */

.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.case-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: box-shadow 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.case-card:hover {
  border-color: var(--accent);
  box-shadow: 0 14px 32px -22px rgba(20, 20, 15, 0.28);
  transform: translateY(-2px);
}

.case-card .code {
  align-self: flex-start;
  font-size: 0.68rem;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 4px 8px;
  white-space: normal;
}

.case-card h3 { font-size: 1.02rem; }

.case-card p { font-size: 0.9rem; color: var(--muted); }

@media (max-width: 900px) {
  .case-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .case-grid { grid-template-columns: 1fr; }
}

/* ---------- Free guides ---------- */

.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.guide-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px;
  transition: box-shadow 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.guide-card:hover {
  border-color: var(--accent);
  box-shadow: 0 16px 34px -22px rgba(20, 20, 15, 0.3);
  transform: translateY(-2px);
}

.guide-icon { color: var(--accent); }

.guide-type {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent-deep);
}

.guide-card h3 { font-size: 1.05rem; }

.guide-card p { font-size: 0.88rem; color: var(--muted); flex-grow: 1; }

.guide-download {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--accent-deep);
  margin-top: 4px;
}

.guide-download svg { transition: transform 0.2s ease; }

.guide-card:hover .guide-download svg { transform: translateY(2px); }

@media (max-width: 900px) {
  .guide-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .guide-grid { grid-template-columns: 1fr; }
}

/* ---------- CTA strip ---------- */

.cta-strip {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  /* 100vw includes a classic scrollbar; the body's container width doesn't. */
  width: 100cqw;
  margin-left: calc(50% - 50cqw);
  margin-right: calc(50% - 50cqw);
  background: var(--surface-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding-block: clamp(32px, 4.5vw, 48px);
}

.cta-strip-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding-inline: 24px;
  text-align: center;
}

.cta-strip h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.2rem);
  margin-bottom: 10px;
}

.cta-strip p {
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 24px;
}

/* ---------- AI governance ---------- */

.ai-governance { border-top: 1px solid var(--line); }

.ai-governance-inner {
  position: relative;
  padding: clamp(28px, 4vw, 44px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
}

.ai-governance-inner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--surface-2) 85%);
}

.ai-governance-inner .corner-mark { opacity: 0.35; }

.ai-governance-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: clamp(28px, 4vw, 52px);
  align-items: start;
}

.ai-governance-text h2 { font-size: clamp(1.35rem, 2.6vw, 1.7rem); margin-bottom: 14px; }

.ai-governance-text p:not(.eyebrow) { color: var(--muted); font-size: 0.98rem; }

.ai-governance-frameworks {
  padding-left: clamp(28px, 4vw, 52px);
  border-left: 1px solid var(--line);
}

.frameworks-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 12px;
}

.framework-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.framework-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
  padding-block: 9px;
  border-bottom: 1px solid var(--line);
}

.framework-list li:last-child { border-bottom: none; }

.framework-list .code {
  font-size: 0.74rem;
  color: var(--ink);
  font-weight: 600;
}

.framework-desc {
  font-size: 0.8rem;
  color: var(--muted);
  text-align: right;
}

@media (max-width: 760px) {
  .ai-governance-grid { grid-template-columns: 1fr; }
  .ai-governance-frameworks {
    padding-left: 0;
    padding-top: clamp(20px, 4vw, 28px);
    border-left: none;
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 420px) {
  .framework-list li { flex-direction: column; align-items: flex-start; gap: 2px; }
  .framework-desc { text-align: left; }
}

/* ---------- Process ---------- */

.process {
  background: var(--ink);
  color: var(--bg);
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  /* 100vw includes a classic scrollbar; the body's container width doesn't. */
  width: 100cqw;
  margin-left: calc(50% - 50cqw);
  margin-right: calc(50% - 50cqw);
}

.process-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding-inline: 24px;
}

.process .eyebrow { color: var(--accent); }

.process .section-head h2 { color: var(--bg); }

.process-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.process-step {
  border-top: 2px solid var(--accent);
  padding-top: 16px;
}

.step-number {
  display: block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.78rem;
  color: var(--accent);
  margin-bottom: 10px;
}

.process-step h3 { font-size: 1.05rem; margin-bottom: 8px; color: var(--bg); }

.process-step p { font-size: 0.9rem; color: #B8B5A8; }

/* ---------- About ---------- */

.about { border-top: 1px solid var(--line); padding-bottom: 0; }

.about-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: clamp(40px, 6vw, 76px);
  align-items: start;
  margin-bottom: clamp(40px, 6vw, 64px);
}

.about-portrait {
  position: relative;
  text-align: center;
  padding: 10px;
}

.about-portrait .corner-mark { opacity: 0.4; }

.about-avatar-img {
  width: 190px;
  height: 190px;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid var(--line);
  box-shadow: 0 0 0 5px var(--surface-2), 0 0 0 6px var(--line), 0 14px 30px -14px rgba(138, 123, 92, 0.45);
  margin-bottom: 18px;
}

.about-portrait .avatar-name { font-weight: 600; font-size: 1.05rem; }

.about-portrait .avatar-role { font-size: 0.82rem; color: var(--muted); }

.about-quote {
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  line-height: 1.3;
  color: var(--ink);
  text-wrap: balance;
  margin-bottom: 24px;
}

.about-content p { color: var(--muted); font-size: 1.02rem; margin-bottom: 14px; }

.about-content p:last-of-type { margin-bottom: 0; }

.about-facts {
  list-style: none;
  margin: 28px 0 0;
  padding: 20px 0 0;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  row-gap: 10px;
  font-size: 0.9rem;
}

.about-facts li {
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding-right: 20px;
  margin-right: 20px;
  border-right: 1px solid var(--line);
}

.about-facts li:last-child { border-right: none; margin-right: 0; padding-right: 0; }

.about-facts-key {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  color: var(--accent-deep);
  font-weight: 600;
}

.about-facts li span:last-child { color: var(--muted); }

.about-numbers {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  /* 100vw includes a classic scrollbar; the body's container width doesn't. */
  width: 100cqw;
  margin-left: calc(50% - 50cqw);
  margin-right: calc(50% - 50cqw);
  background: linear-gradient(180deg, var(--surface-2) 0%, var(--bg) 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.about-numbers-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: clamp(28px, 4vw, 40px) 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.about-number {
  text-align: center;
  padding-inline: 12px;
  border-left: 1px solid var(--line);
}

.about-number:first-child { border-left: none; }

.about-number-value {
  display: block;
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  color: var(--accent-deep);
}

.about-number-label {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 4px;
}

@media (max-width: 760px) {
  .about-layout { grid-template-columns: 1fr; }
  .about-portrait { display: flex; flex-direction: column; align-items: center; }
}

@media (max-width: 620px) {
  .about-numbers-inner { grid-template-columns: repeat(2, 1fr); row-gap: 24px; }
  .about-number:nth-child(even) { border-left: 1px solid var(--line); }
  .about-number:nth-child(odd) { border-left: none; }
}

/* ---------- FAQ ---------- */

.faq { border-top: 1px solid var(--line); }

.faq-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 24px;
  align-items: start;
}

.faq-item p { max-width: 62ch; }

.faq-item:nth-last-child(1):nth-child(odd) { grid-column: 1 / -1; }

@media (max-width: 760px) {
  .faq-list { grid-template-columns: 1fr; }
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 4px 20px;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding-block: 16px;
  font-weight: 600;
  font-size: 0.98rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '+';
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.3rem;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after { transform: rotate(45deg); }

.faq-item p {
  color: var(--muted);
  font-size: 0.92rem;
  padding-bottom: 18px;
  margin: 0;
}

/* ---------- Contact ---------- */

.contact-section { border-top: 1px solid var(--line); }

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

.contact-info h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 0 0 14px; }

.contact-lead { color: var(--muted); margin-bottom: 24px; }

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 20px;
}

.protected-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-block: 8px;
  min-height: 40px;
  text-decoration: none;
  color: var(--ink);
  cursor: pointer;
  border-bottom: 1px solid transparent;
  width: fit-content;
}

.protected-link:hover {
  color: var(--accent-deep);
  border-bottom-color: var(--accent);
}

.protected-link svg { flex-shrink: 0; color: var(--accent); }

.contact-note {
  font-size: 0.85rem;
  color: var(--muted);
  border-left: 2px solid var(--line);
  padding-left: 12px;
}

.contact-form {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: clamp(20px, 3vw, 30px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 24px 48px -32px rgba(20, 20, 15, 0.22);
}

.contact-form::before {
  content: '';
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent 70%);
  border-radius: 0 0 2px 2px;
}

.form-row { display: flex; flex-direction: column; gap: 6px; }

.form-row label {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted);
}

.form-row input,
.form-row textarea {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  min-height: 44px;
  resize: vertical;
}

.form-row input:focus,
.form-row textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}

.contact-form .btn { align-self: flex-start; }

.form-status {
  font-size: 0.85rem;
  color: var(--accent-deep);
}

/* ---------- Legal pages ---------- */

.legal {
  max-width: 680px;
  padding-block: clamp(48px, 8vw, 80px);
}

.legal-back {
  display: inline-block;
  font-size: 0.88rem;
  color: var(--muted);
  text-decoration: none;
  margin-bottom: 24px;
}

.legal-back:hover { color: var(--accent-deep); }

.legal h1 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  margin-bottom: 8px;
}

.legal-updated {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 36px;
}

.legal h2 {
  font-size: 1.15rem;
  margin-top: 32px;
  margin-bottom: 10px;
}

.legal p {
  color: var(--muted);
  font-size: 0.98rem;
  margin-bottom: 4px;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 24px calc(28px + env(safe-area-inset-bottom, 0px));
  text-align: center;
}

.site-footer p {
  font-size: 0.82rem;
  color: var(--muted);
  max-width: 1320px;
  margin: 0 auto;
}

.footer-caps { letter-spacing: 0.04em; color: var(--ink); }

.footer-links { margin-top: 6px; }

.footer-links a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }

.footer-links a:hover { color: var(--accent-deep); }

/* ---------- Responsive ---------- */

@media (max-width: 820px) {
  .service-columns { grid-template-columns: 1fr; gap: 40px; }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .contact-inner { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .process-steps { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: stretch; }
}

/* ---------- Mobile nav ---------- */

@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }

  .topnav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 28px -20px rgba(20, 20, 15, 0.25);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    padding: 0 24px;
    transition: max-height 0.3s ease, opacity 0.2s ease;
  }

  .topnav.is-open {
    max-height: 520px;
    opacity: 1;
    padding: 8px 24px 20px;
  }

  .topnav a {
    min-height: 48px;
    padding: 0 4px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--line);
  }

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

  .topnav-cta {
    justify-content: center;
    margin-top: 12px;
    border-radius: 999px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .topnav { transition: none; }
}

/* ---------- Chat widget ---------- */

.chat-fab {
  position: fixed;
  right: calc(20px + env(safe-area-inset-right, 0px));
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  z-index: 20;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bg);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 12px 28px -10px rgba(20, 20, 15, 0.4);
  transition: background 0.2s ease, transform 0.2s ease;
}

.chat-fab:hover { background: var(--accent-deep); transform: translateY(-1px); }

.chat-panel {
  position: fixed;
  right: calc(20px + env(safe-area-inset-right, 0px));
  bottom: calc(88px + env(safe-area-inset-bottom, 0px));
  z-index: 20;
  width: min(360px, calc(100vw - 40px));
  max-height: min(560px, 70vh);
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 24px 56px -20px rgba(20, 20, 15, 0.35);
  overflow: hidden;
}

.chat-panel[hidden] { display: none; }

.chat-header {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}

.chat-title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1rem;
  font-weight: 500;
}

.chat-subtitle { font-size: 0.78rem; color: var(--muted); margin-top: 2px; }

.chat-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 160px;
}

.chat-msg {
  max-width: 84%;
  padding: 9px 13px;
  border-radius: 12px;
  font-size: 0.88rem;
  line-height: 1.45;
}

.chat-msg.bot {
  align-self: flex-start;
  background: var(--surface-2);
  color: var(--ink);
  border-bottom-left-radius: 4px;
}

.chat-msg.user {
  align-self: flex-end;
  background: var(--ink);
  color: var(--bg);
  border-bottom-right-radius: 4px;
}

.chat-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 18px 12px;
}

.chat-quick button {
  font-family: 'Inter', sans-serif;
  font-size: 0.76rem;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  color: var(--accent-deep);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.chat-quick button:hover { border-color: var(--accent); background: var(--bg); }

.chat-input-row {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--line);
}

.chat-input-row input {
  flex: 1;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  background: var(--bg);
  color: var(--ink);
  min-width: 0;
}

.chat-input-row input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}

.chat-send {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 10px;
  border: none;
  background: var(--ink);
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease;
}

.chat-send:hover { background: var(--accent-deep); }

@media (max-width: 480px) {
  .chat-panel {
    right: 12px;
    left: 12px;
    width: auto;
    bottom: calc(84px + env(safe-area-inset-bottom, 0px));
    max-height: min(64vh, 520px);
  }
  .chat-fab { right: calc(16px + env(safe-area-inset-right, 0px)); }
}

/* ---------- Download gate ---------- */

.gate-overlay {
  position: fixed;
  inset: 0;
  z-index: 30;
  background: rgba(20, 20, 15, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.gate-overlay[hidden] { display: none; }

.gate-modal {
  position: relative;
  width: min(420px, 100%);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: clamp(24px, 4vw, 32px);
  box-shadow: 0 32px 64px -24px rgba(20, 20, 15, 0.4);
}

.gate-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
}

.gate-close:hover { color: var(--accent-deep); }

.gate-title { font-size: 1.15rem; margin-bottom: 10px; }

.gate-lead { color: var(--muted); font-size: 0.92rem; margin-bottom: 20px; }

.gate-form { display: flex; flex-direction: column; gap: 12px; }

.gate-form input {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  background: var(--bg);
  color: var(--ink);
  min-height: 44px;
}

.gate-form input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}

.gate-error {
  font-size: 0.85rem;
  color: #A3402E;
  margin: 0;
}

.gate-submit { width: 100%; }

/* Honeypot: visually clipped rather than display:none, which some bots detect */
.hp-field {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------- Standards tool (standarder.html) ---------- */

.topnav-simple { margin-left: 0; }

@media (max-width: 760px) {
  .topnav.topnav-simple {
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 14px;
    max-height: none;
    opacity: 1;
    overflow: visible;
    padding: 0;
    background: none;
    border: none;
    box-shadow: none;
  }
  .topnav.topnav-simple a { min-height: 44px; border-bottom: none; padding: 0; }
  .topnav.topnav-simple .topnav-cta { margin-top: 0; padding: 8px 16px; }
}

@media (max-width: 420px) {
  .topnav.topnav-simple a:not(.topnav-cta) { display: none; }
}

.tool-intro { padding-bottom: 28px; max-width: 760px; }

.tool-intro h1 { font-size: clamp(2rem, 5vw, 2.8rem); margin-bottom: 4px; }

.tool-form {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: clamp(20px, 3.5vw, 36px);
  margin-bottom: clamp(40px, 6vw, 72px);
  box-shadow: 0 24px 48px -32px rgba(20, 20, 15, 0.22);
  counter-reset: tool-step;
}

.tool-form::before {
  content: '';
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent 70%);
}

.tool-step {
  border: none;
  margin: 0;
  padding: 0 0 26px;
  min-width: 0;
}

.tool-step + .tool-step { border-top: 1px solid var(--line); padding-top: 24px; }

.tool-step[hidden], .tool-sub[hidden] { display: none; }

.tool-step:not([hidden]) { counter-increment: tool-step; }

/* Floated so the legend sits inside the fieldset instead of on its border */
.tool-step legend {
  float: left;
  width: 100%;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.2rem;
  font-weight: 500;
  padding: 0;
  margin-bottom: 12px;
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.tool-step legend::before {
  content: counter(tool-step, decimal-leading-zero);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  color: var(--accent-deep);
  letter-spacing: 0.06em;
}

.tool-step > :not(legend) { clear: both; }

.tool-hint { color: var(--muted); font-size: 0.88rem; margin: -6px 0 12px; }

.tool-sub { margin-top: 18px; }

.tool-sub-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: 8px;
}

.choice-grid { display: flex; flex-wrap: wrap; gap: 8px; }

.choice {
  position: relative;
  display: inline-flex;
  cursor: pointer;
}

.choice input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.choice-text {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  min-height: 44px;
  padding: 9px 14px;
  font-size: 0.9rem;
  line-height: 1.3;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.choice-hint {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.68rem;
  color: var(--muted);
  margin-top: 2px;
}

.choice:hover .choice-text { border-color: var(--accent); }

.choice input:checked + .choice-text {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}

.choice input:checked + .choice-text .choice-hint { color: rgba(250, 249, 246, 0.7); }

.choice input:focus-visible + .choice-text {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.tool-submit-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.tool-error { font-size: 0.88rem; color: #A3402E; }

/* Results */

.tool-results { padding-top: 0; }

.results-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 20px;
}

.results-head h2 { font-size: clamp(1.5rem, 3vw, 2rem); outline: none; }

.results-counts { color: var(--muted); font-size: 0.9rem; margin-top: 6px; }

.results-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.results-summary {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 6px 18px;
  margin: 0 0 20px;
  padding: 16px 20px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 0.88rem;
}

.results-summary dt { color: var(--muted); }

.results-summary dd { margin: 0; }

.results-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 24px;
}

.results-legend .badge + span { margin-right: 10px; }

.badge {
  display: inline-block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.66rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--accent-deep);
  background: var(--surface);
}

.badge-core { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.badge-applies { background: var(--surface-2); border-color: var(--accent); }
.badge-consider { color: var(--muted); }
.badge-status { border-color: #6E8A6A; color: #3F5A3B; background: #EEF3EC; }
.badge-kind { border-style: dashed; }

.market-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 8px;
}

.market-tabs[hidden] { display: none; }

.market-tab {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--muted);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 12px 16px;
  min-height: 44px;
  cursor: pointer;
  margin-bottom: -1px;
}

.market-tab:hover { color: var(--ink); }

.market-tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--accent); }

.market-panel { display: none; }

.market-panel.is-active { display: block; }

.market-panel-title { display: none; }

.result-group { margin-top: 28px; padding-block: 0; }

.result-group-title {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-deep);
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 10px;
}

.result-group-count {
  font-size: 0.68rem;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 1px 7px;
}

.std-list {
  list-style: none;
  margin: 0;
  padding: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.std-item { padding: 14px 18px; break-inside: avoid; }

.std-item + .std-item { border-top: 1px solid var(--line); }

.std-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 6px 12px;
}

.std-ref {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.std-badges { display: flex; flex-wrap: wrap; gap: 6px; }

.std-title { font-weight: 500; font-size: 0.95rem; margin-top: 4px; }

.std-why { color: var(--muted); font-size: 0.88rem; margin-top: 2px; max-width: 80ch; }

.tool-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-top: 40px;
  padding: clamp(22px, 3.5vw, 32px);
  background: var(--ink);
  color: var(--bg);
  border-radius: 14px;
}

.tool-cta h2 { font-size: 1.4rem; margin-bottom: 6px; }

.tool-cta p { color: rgba(250, 249, 246, 0.75); font-size: 0.92rem; max-width: 60ch; }

.tool-cta .btn-primary { background: var(--bg); color: var(--ink); }

.tool-cta .btn-primary:hover { background: var(--surface-2); }

.tool-disclaimer { margin-top: 24px; font-size: 0.8rem; color: var(--muted); max-width: 90ch; }

.gate-fineprint { font-size: 0.78rem; color: var(--muted); margin: 0; }

.gate-fineprint a { color: var(--muted); }

.print-header { display: none; }

@media (max-width: 560px) {
  .results-summary { grid-template-columns: 1fr; gap: 2px; }
  .results-summary dd { margin-bottom: 8px; }
  .results-actions, .results-actions .btn { width: 100%; }
}

/* ---------- Standards tool teaser (index.html) ---------- */

.tool-teaser-card {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(20px, 4vw, 48px);
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: clamp(24px, 4vw, 44px);
}

.tool-teaser-card h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }

.tool-teaser-points { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 10px; }

.tool-teaser-points li {
  display: flex;
  gap: 10px;
  font-size: 0.95rem;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.tool-teaser-points li::before { content: '→'; color: var(--accent); }

@media (max-width: 820px) {
  .tool-teaser-card { grid-template-columns: 1fr; }
}

/* ---------- Print (standards list) ---------- */

@media print {
  @page { margin: 16mm 14mm; }

  body { background: #fff; font-size: 10pt; }

  .topbar, .tool-intro, .tool-form, .site-footer, .results-actions,
  .market-tabs, .gate-overlay, .chat-fab, .tool-cta .btn { display: none !important; }

  main { padding: 0; max-width: none; }

  section { padding-block: 0; }

  .print-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
    padding-bottom: 10px;
    margin-bottom: 18px;
    border-bottom: 1px solid #000;
  }

  .print-header img { width: 60mm; height: auto; }

  .print-meta { font-size: 8pt; color: #555; text-align: right; }

  .results-head h2:focus { outline: none; }

  .market-panel { display: block !important; }

  .market-panel + .market-panel { break-before: page; }

  .market-panel-title { display: block; font-size: 14pt; margin: 18px 0 4px; }

  .results-summary, .std-list { background: #fff; }

  .result-group-title { break-after: avoid; }

  .badge { background: #fff !important; color: #000 !important; border-color: #888 !important; }

  .badge-core { font-weight: 700; border-color: #000 !important; }

  .tool-cta { background: #fff; color: #000; border: 1px solid #888; margin-top: 24px; }

  .tool-cta p { color: #333; }
}
