/* SafeCheck — marketing site
   Documentary / blueprint aesthetic: hairlines, no card-shadows, sequence numbering only where real. */

@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@800;900&family=IBM+Plex+Sans:wght@400;500;600;700&family=IBM+Plex+Mono:wght@500&display=swap');

:root {
  --ink: #15191C;
  --paper: #E9EAE4;
  --paper-raised: #F2F2ED;
  --steel: #4A5568;
  --line: #C7C9C0;
  --signal: #E8A317;
  --signal-ink: #2B1F00;
  --deep: #1D3F63;
  --white: #FFFFFF;
  --max: 960px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.12;
  margin: 0;
  color: var(--ink);
}

h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); font-weight: 900; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.15rem; font-weight: 700; }

p { margin: 0 0 1em; max-width: 62ch; }
a { color: var(--deep); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--deep);
  outline-offset: 3px;
}

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

/* ---------- header ---------- */
header.site {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 20;
}
header.site::before {
  content: '';
  display: block;
  height: 3px;
  background: var(--signal);
}
.nav-row {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: 12px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}
.brand-mark {
  width: 48px;
  height: 48px;
  object-fit: contain;
  display: block;
}
.brand-name {
  font-family: 'IBM Plex Sans', sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: -0.01em;
}
nav.primary {
  display: flex;
  gap: 28px;
  align-items: center;
}
nav.primary a {
  color: var(--steel);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
nav.primary a:hover,
nav.primary a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--signal);
}

.nav-toggle { display: none; }

@media (max-width: 720px) {
  nav.primary {
    position: fixed;
    inset: 65px 0 auto 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 28px 20px;
    gap: 4px;
    display: none;
  }
  nav.primary.open { display: flex; }
  nav.primary a { width: 100%; padding: 10px 0; border-bottom: 1px solid var(--line); }
  .nav-toggle {
    display: inline-flex;
    background: none;
    border: 1px solid var(--ink);
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }
  .nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
    content: '';
    display: block;
    width: 16px;
    height: 2px;
    background: var(--ink);
    position: relative;
  }
  .nav-toggle span::before { position: absolute; top: -5px; width: 16px; }
  .nav-toggle span::after { position: absolute; top: 5px; width: 16px; }
}

/* ---------- generic sections ---------- */
section { padding: 72px 0; border-bottom: 1px solid var(--line); }
section:last-of-type { border-bottom: none; }
.section-label {
  font-family: 'IBM Plex Sans', sans-serif;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--deep);
  margin-bottom: 14px;
}

/* ---------- video frame (for the voorbeelden page) ---------- */
.video-frame {
  position: relative;
  border: 1px solid var(--ink);
  background: #0d0f11;
  padding: 8px;
  margin-top: 18px;
}
.video-frame .corner { width: 16px; height: 16px; }
.video-frame .corner.tl { top: -1px; left: -1px; border-top: 2px solid var(--signal); border-left: 2px solid var(--signal); }
.video-frame .corner.tr { top: -1px; right: -1px; border-top: 2px solid var(--signal); border-right: 2px solid var(--signal); }
.video-frame .corner.bl { bottom: -1px; left: -1px; border-bottom: 2px solid var(--signal); border-left: 2px solid var(--signal); }
.video-frame .corner.br { bottom: -1px; right: -1px; border-bottom: 2px solid var(--signal); border-right: 2px solid var(--signal); }
.video-frame video {
  display: block;
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
}
.video-caption {
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--steel);
  text-align: center;
}

/* ---------- title frame (corner registration marks) ---------- */
.title-frame {
  position: relative;
  display: inline-block;
  padding: 34px 44px;
}
.title-frame .corner {
  position: absolute;
  width: 22px;
  height: 22px;
}
.title-frame .corner.tl { top: 0; left: 0; border-top: 2px solid var(--ink); border-left: 2px solid var(--ink); }
.title-frame .corner.tr { top: 0; right: 0; border-top: 2px solid var(--ink); border-right: 2px solid var(--ink); }
.title-frame .corner.bl { bottom: 0; left: 0; border-bottom: 2px solid var(--ink); border-left: 2px solid var(--ink); }
.title-frame .corner.br { bottom: 0; right: 0; border-bottom: 2px solid var(--ink); border-right: 2px solid var(--ink); }
.title-frame h1 { margin: 0; }

@media (max-width: 640px) {
  .title-frame { padding: 22px 24px; }
  .title-frame .corner { width: 16px; height: 16px; }
}

/* ---------- hero ---------- */
.hero {
  padding: 64px 0 60px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
.hero p.lead {
  font-size: 1.15rem;
  color: var(--steel);
  max-width: 46ch;
  margin-top: 18px;
}
.hero-ctas { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }

.hero-single {
  display: block;
  padding: 88px 0 76px;
}
.hero-single h1 { max-width: 18ch; }
.hero-tagline {
  font-family: 'IBM Plex Sans', sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  line-height: 1.35;
  color: var(--ink);
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  max-width: 50ch;
}

@media (max-width: 720px) {
  section { padding: 44px 0; }
  .hero-single { padding: 52px 0 44px; }
  .hero-tagline { font-size: 1.1rem; margin-top: 18px; padding-top: 16px; }
}

.btn {
  display: inline-block;
  font-family: 'IBM Plex Sans', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px 24px;
  text-decoration: none;
  border: 1px solid var(--ink);
  color: var(--ink);
  background: transparent;
  cursor: pointer;
}
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--deep); border-color: var(--deep); color: var(--white); }
.btn-secondary:hover { background: var(--ink); color: var(--paper); }
.btn-signal { background: var(--signal); border-color: var(--signal); color: var(--signal-ink); }
.btn-signal:hover { background: #cf9412; border-color: #cf9412; }

/* fiche mockup */
.fiche {
  background: var(--white);
  border: 1px solid var(--ink);
  padding: 22px;
  position: relative;
}
.fiche::before {
  content: 'SC-014 · ASBESTFICHE';
  position: absolute;
  top: -11px;
  left: 18px;
  background: var(--paper);
  padding: 0 8px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  color: var(--steel);
}
.fiche-row {
  display: grid;
  grid-template-columns: 40% 60%;
  border-top: 1px solid var(--line);
  padding: 10px 0;
  font-size: 0.88rem;
}
.fiche-row:first-of-type { border-top: none; padding-top: 4px; }
.fiche-row dt { color: var(--steel); }
.fiche-row dd { margin: 0; font-weight: 500; }
.fiche-row dd.filling {
  color: var(--deep);
  background: linear-gradient(90deg, var(--paper-raised) 0%, var(--paper-raised) 100%);
  position: relative;
}
.fiche-check {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--steel);
}
.fiche-check .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--signal);
  flex-shrink: 0;
}

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

/* ---------- how it works (real sequence → numbered) ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  margin-top: 32px;
}
.step {
  padding: 28px 26px;
  border-right: 1px solid var(--line);
}
.step:last-child { border-right: none; }
.step-num {
  font-family: 'IBM Plex Sans', sans-serif;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--signal);
  display: block;
  margin-bottom: 10px;
}
.step h3 { margin-bottom: 8px; }
.step p { font-size: 0.94rem; color: var(--steel); margin-bottom: 0; }

@media (max-width: 720px) {
  .steps { grid-template-columns: 1fr; }
  .step { border-right: none; border-bottom: 1px solid var(--line); }
  .step:last-child { border-bottom: none; }
}

/* ---------- feature list (documentary, not cards) ---------- */
.feature-rows { margin-top: 24px; }
.feature-row {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
}
.feature-row:last-child { border-bottom: 1px solid var(--line); }
.feature-row h3 { color: var(--ink); }
.feature-row .tag {
  font-family: 'IBM Plex Sans', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--deep);
  display: inline-block;
  margin-bottom: 8px;
}
.feature-row p { color: var(--steel); font-size: 0.96rem; margin-bottom: 0; max-width: 56ch; }

@media (max-width: 720px) {
  .feature-row { grid-template-columns: 1fr; gap: 8px; padding: 20px 0; }
}

/* ---------- ROI receipt card (deliberate surprise moment) ---------- */
.roi-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 56px;
  align-items: start;
}
.receipt {
  background: var(--white);
  border: 1px solid var(--ink);
  border-bottom: none;
  padding: 26px 26px 22px;
  max-width: 320px;
  margin-left: auto;
  transform: rotate(-1.4deg);
  position: relative;
}
.receipt::after {
  content: "";
  position: absolute;
  left: -1px; right: -1px; bottom: -9px;
  height: 9px;
  background:
    linear-gradient(135deg, var(--white) 50%, transparent 50%) 0 0 / 9px 9px repeat-x,
    linear-gradient(-135deg, var(--white) 50%, transparent 50%) 0 0 / 9px 9px repeat-x;
}
.receipt-head {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-align: center;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px dashed var(--line);
  color: var(--steel);
}
.receipt-row, .receipt-total {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.85rem;
  padding: 6px 0;
  color: var(--steel);
}
.receipt-total {
  color: var(--ink);
  font-weight: 700;
  border-top: 1px dashed var(--line);
  margin-top: 4px;
  padding-top: 10px;
}
.receipt-foot {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.85rem;
  text-align: center;
  color: var(--deep);
  line-height: 1.6;
}

@media (max-width: 800px) {
  .roi-grid { grid-template-columns: 1fr; }
  .receipt { margin: 0 auto; }
}

/* ---------- proof stat block (deliberate break from the paper background) ---------- */
.proof {
  padding: 0;
  border-bottom: 1px solid var(--line);
}
.proof-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
}
.proof-stat {
  background: var(--ink);
  padding: 56px 48px 56px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  clip-path: polygon(0 0, 100% 0, 88% 100%, 0 100%);
}
.proof-number {
  font-family: 'IBM Plex Sans', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 5.6rem;
  line-height: 0.85;
  color: var(--signal);
}
.proof-label {
  margin-top: 14px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--paper);
}
.proof-copy {
  padding: 56px 28px 56px 24px;
  margin-left: -24px;
}
.proof-copy p {
  font-size: 1.02rem;
  color: var(--ink);
  margin-bottom: 0.85em;
  max-width: 56ch;
}
.proof-copy h3 {
  margin: 22px 0 10px;
  padding-left: 16px;
  border-left: 3px solid var(--signal);
}
.proof-close {
  margin-top: 18px !important;
  font-size: 1.15rem !important;
  font-weight: 700;
  color: var(--ink);
}

@media (max-width: 800px) {
  .proof-grid { grid-template-columns: 1fr; }
  .proof-stat {
    padding: 40px 28px 56px;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 86%);
  }
  .proof-number { font-size: 4.2rem; }
  .proof-copy { padding: 44px 28px 36px; margin-left: 0; }
}

/* ---------- dark CTA panel (bold closing moment, reused sparingly) ---------- */
.cta-dark {
  background: var(--ink);
  padding: 56px 48px;
  clip-path: polygon(0 0, 100% 0, 100% 92%, 97% 100%, 0 100%);
}
.cta-dark h2 { color: var(--paper); max-width: 22ch; }
.cta-dark p { color: #AEB4BB; margin-top: 14px; }
.cta-dark .btn-secondary { border-color: var(--paper); color: var(--paper); }
.cta-dark .btn-secondary:hover { background: var(--paper); color: var(--ink); }

@media (max-width: 640px) {
  .cta-dark { padding: 40px 28px; clip-path: none; }
}

.ui-ref {
  display: inline-block;
  border: 1px solid var(--line);
  background: var(--paper-raised);
  padding: 1px 9px;
  font-weight: 600;
  font-size: 0.92em;
  color: var(--ink);
  border-radius: 3px;
  white-space: nowrap;
}

/* ---------- feature accordion ---------- */
.accordion { border-top: 1px solid var(--line); }
.acc-item {
  border-bottom: 1px solid var(--line);
}
.acc-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  cursor: pointer;
  list-style: none;
}
.acc-item summary::-webkit-details-marker { display: none; }
.acc-item summary::marker { content: ""; }
.acc-item summary .tag {
  font-family: 'IBM Plex Sans', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--deep);
  display: block;
  margin-bottom: 6px;
}
.acc-item summary h3 { font-size: 1.08rem; }
.acc-toggle {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border: 1px solid var(--ink);
  position: relative;
}
.acc-toggle::before, .acc-toggle::after {
  content: "";
  position: absolute;
  background: var(--ink);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.acc-toggle::before { width: 12px; height: 1.5px; }
.acc-toggle::after { width: 1.5px; height: 12px; transition: transform 0.15s ease; }
.acc-item[open] .acc-toggle::after { transform: translate(-50%, -50%) rotate(90deg) scaleY(0); }
.acc-item[open] .acc-toggle { background: var(--signal); border-color: var(--signal); }
.acc-item[open] .acc-toggle::before, .acc-item[open] .acc-toggle::after { background: var(--signal-ink); }
.acc-item p {
  padding: 0 0 26px;
  color: var(--steel);
  font-size: 0.98rem;
  max-width: 58ch;
}

@media (max-width: 640px) {
  .acc-item summary { padding: 18px 0; gap: 12px; align-items: flex-start; }
  .acc-item summary h3 { font-size: 1rem; }
  .acc-toggle { width: 24px; height: 24px; margin-top: 2px; }
  .acc-item p { padding-bottom: 20px; font-size: 0.95rem; }
}

/* ---------- pricing ---------- */
.price-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 32px;
  border: 1px solid var(--ink);
}
.price-tab {
  flex: 1 1 auto;
  font-family: 'IBM Plex Sans', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  background: transparent;
  border: none;
  border-right: 1px solid var(--ink);
  padding: 14px 18px;
  color: var(--steel);
  cursor: pointer;
}
.price-tab:last-child { border-right: none; }
.price-tab:hover { background: var(--paper-raised); color: var(--ink); }
.price-tab.active { background: var(--ink); color: var(--paper); }
.price-tab { position: relative; }
.price-tab .badge {
  position: absolute;
  top: -11px;
  right: 10px;
  background: var(--signal);
  color: var(--signal-ink);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 8px;
  border: 1px solid var(--ink);
}

@media (max-width: 640px) {
  .price-tabs { display: grid; grid-template-columns: 1fr 1fr; }
  .price-tab { border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
  .price-tab:nth-child(2n) { border-right: none; }
  .price-tab:nth-child(3), .price-tab:nth-child(4) { border-bottom: none; }
}

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

.price-block {
  border: 1px solid var(--ink);
  padding: 40px 36px;
  margin-top: 32px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px;
  align-items: center;
}
.price-amount {
  font-family: 'IBM Plex Sans', sans-serif;
  font-weight: 700;
  letter-spacing: -0.01em;
  font-size: 3rem;
  line-height: 1;
}
.price-amount span {
  font-family: 'IBM Plex Sans', sans-serif;
  font-weight: 500;
  font-size: 1rem;
  color: var(--steel);
}
.cadence-row {
  display: flex;
  gap: 10px;
  margin-top: 18px;
  flex-wrap: wrap;
}
.cadence {
  border: 1px solid var(--line);
  padding: 7px 14px;
  font-size: 0.85rem;
  color: var(--steel);
  font-family: 'IBM Plex Mono', monospace;
}
.notice {
  margin-top: 28px;
  border-left: 3px solid var(--signal);
  background: var(--paper-raised);
  padding: 16px 20px;
  font-size: 0.95rem;
  color: var(--ink);
}
.notice strong { font-weight: 700; }

.includes { margin-top: 40px; }
.includes ul { list-style: none; padding: 0; margin: 18px 0 0; }
.includes li {
  padding: 12px 0;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 12px;
  font-size: 0.95rem;
}
.includes li:last-child { border-bottom: 1px solid var(--line); }
.includes li::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--signal);
  margin-top: 8px;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .price-block { grid-template-columns: 1fr; text-align: left; }
}

/* ---------- contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-top: 32px;
}
.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-size: 0.85rem;
  color: var(--steel);
  margin-bottom: 6px;
  font-weight: 500;
}
.field input, .field textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--white);
  padding: 11px 12px;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 0.95rem;
  color: var(--ink);
}
.field textarea { resize: vertical; min-height: 120px; }
.contact-meta dt {
  font-family: 'IBM Plex Sans', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--steel);
  margin-top: 22px;
}
.contact-meta dt:first-child { margin-top: 0; }
.contact-meta dd { margin: 4px 0 0; font-size: 0.98rem; }

@media (max-width: 720px) {
  .contact-grid { grid-template-columns: 1fr; gap: 10px; }
}

/* ---------- footer ---------- */
footer.site {
  padding: 40px 0;
  border-top: 1px solid var(--line);
}
.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--steel);
}
.footer-row a { color: var(--steel); }
.footer-links { display: flex; gap: 20px; }

/* ---------- misc ---------- */
.eyebrow-note {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.78rem;
  color: var(--deep);
  background: var(--paper-raised);
  border: 1px solid var(--line);
  padding: 3px 10px;
  display: inline-block;
}

/* ---------- voorbeelden: onderdeel tabs ---------- */
.demo-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 32px;
  border: 1px solid var(--ink);
}
.demo-tab {
  font-family: 'IBM Plex Sans', sans-serif;
  background: transparent;
  border: none;
  border-right: 1px solid var(--ink);
  padding: 18px 16px;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.demo-tab:last-child { border-right: none; }
.demo-tab:hover { background: var(--paper-raised); }
.demo-tab-index {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.78rem;
  color: var(--deep);
}
.demo-tab-label {
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--ink);
  line-height: 1.25;
}
.demo-tab.active { background: var(--ink); }
.demo-tab.active .demo-tab-index { color: var(--signal); }
.demo-tab.active .demo-tab-label { color: var(--paper); }

.demo-panel[hidden] { display: none; }
.demo-panel { margin-top: 44px; }
.demo-intro {
  color: var(--steel);
  font-size: 1rem;
  max-width: 64ch;
  margin-bottom: 0;
}

/* onderdeel 1: step rail + stage, reused for a single video too */
.reel-layout {
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 40px;
  margin-top: 28px;
  align-items: start;
}
.reel-nav {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}
.reel-step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  text-align: left;
  background: none;
  border: none;
  border-bottom: 1px solid var(--line);
  padding: 16px 2px;
  cursor: pointer;
}
.reel-step-num {
  flex-shrink: 0;
  width: 26px; height: 26px;
  border: 1px solid var(--ink);
  display: flex; align-items: center; justify-content: center;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.82rem;
  color: var(--ink);
  margin-top: 1px;
}
.reel-step-text {
  font-size: 0.92rem;
  color: var(--steel);
  font-weight: 500;
  line-height: 1.35;
  padding-top: 3px;
}
.reel-step:hover .reel-step-text { color: var(--ink); }
.reel-step.active .reel-step-num { background: var(--signal); border-color: var(--signal); color: var(--signal-ink); }
.reel-step.active .reel-step-text { color: var(--ink); font-weight: 700; }

.reel-stage { min-width: 0; }
.reel-item[hidden] { display: none; }
.reel-desc { margin-top: 16px; color: var(--steel); font-size: 0.98rem; max-width: 58ch; }
.reel-code { margin-bottom: 2px; }

@media (max-width: 820px) {
  .reel-layout { grid-template-columns: 1fr; gap: 24px; }
  .reel-nav { flex-direction: row; flex-wrap: wrap; border-top: none; gap: 8px; }
  .reel-step { border-bottom: none; border: 1px solid var(--line); padding: 10px 12px; flex: 1 1 auto; }
  .reel-step-text { font-size: 0.85rem; padding-top: 0; }
}

@media (max-width: 640px) {
  .demo-tabs { grid-template-columns: 1fr 1fr; }
  .demo-tab { border-bottom: 1px solid var(--ink); }
  .demo-tab:nth-child(2n) { border-right: none; }
  .demo-tab:nth-child(3), .demo-tab:nth-child(4) { border-bottom: none; }
}
