/* RetenDemo /tech — house components for the under-the-hood page.
   Tokens, topbar and footer come from /styles.css; this file adds the
   document-style pieces (bands, figures, steps, tables, code, CTA). */

/* ── type additions ── */
.d-md { font-size: clamp(25px, 3.1vw, 38px); }
.d-sm { font-size: clamp(21px, 2.3vw, 29px); letter-spacing: -0.035em; }

.eyebrow {
  font-family: var(--mono);
  font-size: 11.5px; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 20px;
  display: flex; align-items: center; gap: 10px;
}
.eyebrow::before {
  content: ""; width: 22px; height: 1.5px;
  background: var(--ink); opacity: 0.35; flex: none;
}

/* ── layout ── */
.tech-hero { padding: 64px 0 12px; }
.tech-hero .display { max-width: 26ch; }
.tech-hero .lede { margin-top: 20px; }

.hero-meta {
  display: flex; flex-wrap: wrap; gap: 10px 26px;
  margin-top: 36px; padding-top: 24px;
  border-top: 1px solid var(--hairline);
  font-family: var(--mono); font-size: 12px; color: var(--muted);
}
.hero-meta b { color: var(--ink); font-weight: 500; }

section.band { padding: 72px 0 0; }
section.band:last-of-type { padding-bottom: 72px; }
.sec-head { margin-bottom: 36px; max-width: 82ch; }
.sec-head .lede { margin-top: 16px; }

.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.tech-nav { display: flex; gap: 2px; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.tech-nav::-webkit-scrollbar { display: none; }
.tech-nav a {
  font-size: 12.5px; color: var(--muted); text-decoration: none;
  padding: 6px 8px; border-radius: var(--r-sm); white-space: nowrap;
}
.tech-nav a:hover { color: var(--ink); background: var(--surface-card); }
.topbar-in .audit-link { margin-left: 0; }

/* ── cards ── */
.card {
  background: var(--surface-soft);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: 26px;
}
.card h3 + p { margin-top: 10px; }
.card p { font-size: 15px; }
.card-num {
  font-family: var(--mono); font-size: 12px; color: var(--muted);
  display: block; margin-bottom: 14px;
}
.c-mint { background: var(--mint); border-color: var(--mint); color: rgba(10,10,10,0.72); }
.c-mint h3 { color: var(--ink); }
.c-mint .card-num { color: rgba(10,10,10,0.6); }

/* ── quote ── */
.quote {
  border-left: 2px solid var(--ink);
  padding: 4px 0 4px 22px; margin: 0;
  font-size: clamp(17px, 1.9vw, 22px);
  line-height: 1.42; letter-spacing: -0.02em;
  color: var(--ink); font-weight: 500;
  max-width: 72ch;
}

/* ── figure / diagram ── */
.fig {
  margin: 0; border: 1px solid var(--hairline);
  border-radius: var(--r-xl); background: var(--surface-soft);
  padding: 34px; overflow: hidden;
}
.fig figcaption {
  margin-top: 26px; padding-top: 18px;
  border-top: 1px solid var(--hairline);
  font-family: var(--mono); font-size: 11.5px;
  letter-spacing: 0.03em; color: var(--muted); line-height: 1.5;
}
.fig-scroll { position: relative; overflow-x: auto; }
.fig-scroll::after {
  content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 28px;
  background: linear-gradient(to right, transparent, var(--surface-soft));
  pointer-events: none;
}
.fig-scroll > svg { display: block; min-width: 1000px; width: 100%; height: auto; }

/* svg text roles */
.t-zone { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; fill: var(--muted); }
.t-title { font-family: var(--font); font-size: 15px; font-weight: 600; fill: var(--ink); }
.t-title-d { font-family: var(--font); font-size: 15px; font-weight: 600; fill: #fff; }
.t-sub { font-family: var(--font); font-size: 12.5px; fill: var(--muted); }
.t-sub-d { font-family: var(--font); font-size: 12.5px; fill: rgba(255,255,255,0.72); }
.t-mono { font-family: var(--mono); font-size: 10.5px; fill: var(--muted); }
.t-lbl { font-family: var(--mono); font-size: 10.5px; fill: var(--muted); }
.t-lbl-p { font-family: var(--mono); font-size: 10.5px; fill: var(--pink); }

/* ── steps ── */
.steps { counter-reset: step; display: grid; gap: 0; }
.step {
  display: grid; grid-template-columns: 56px 1fr; gap: 22px;
  padding: 24px 0; border-top: 1px solid var(--hairline); align-items: start;
}
.step:last-child { border-bottom: 1px solid var(--hairline); }
.step-n {
  counter-increment: step;
  font-family: var(--mono); font-size: 12px; color: var(--muted);
  padding-top: 3px;
}
.step-n::before { content: "0" counter(step); }
.step h3 { margin-bottom: 8px; }
.step p { font-size: 15px; }

/* ── duty / checklist ── */
.duty {
  list-style: none; margin: 18px 0 0; padding: 0;
  display: flex; flex-direction: column; gap: 10px;
}
.duty li {
  border: 1px solid var(--hairline); background: var(--canvas);
  border-radius: var(--r-md); padding: 14px 16px;
  font-size: 14.5px; font-weight: 600; color: var(--body-strong);
  letter-spacing: -0.01em;
}
.duty li span { display: block; font-size: 13px; font-weight: 400; color: var(--muted); margin-top: 4px; }
.after-duty { margin-top: 20px; font-size: 15px; color: var(--body-strong); font-weight: 500; max-width: 68ch; }

.check-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 14px; max-width: 680px;
}
.check-list li {
  display: grid; grid-template-columns: 28px 1fr; gap: 16px; align-items: start;
  border: 1px solid var(--hairline); background: var(--surface-soft);
  border-radius: var(--r-lg); padding: 20px 22px;
  font-size: 16px; font-weight: 600; color: var(--body-strong); letter-spacing: -0.01em;
}
.check-list li span:not(.check-ic) { display: block; font-size: 14px; font-weight: 400; color: var(--muted); margin-top: 5px; }
.check-ic {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--mint);
  display: flex; align-items: center; justify-content: center;
  flex: none; margin-top: 1px;
}
.check-ic.opt { background: var(--surface-card); border: 1px dashed var(--muted-soft); }
.check-ic svg { width: 13px; height: 13px; }

/* ── tables ── */
.ptable-wrap {
  position: relative; overflow-x: auto;
  border: 1px solid var(--hairline); border-radius: var(--r-lg); background: var(--surface-soft);
}
.ptable-wrap::after {
  content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 28px;
  background: linear-gradient(to right, transparent, var(--surface-soft));
  pointer-events: none; border-radius: 0 var(--r-lg) var(--r-lg) 0;
}
.ptable { width: 100%; border-collapse: collapse; min-width: 860px; font-size: 14px; }
.ptable th {
  font-family: var(--mono); font-size: 10.5px; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
  text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--hairline);
}
.ptable td { padding: 13px 16px; border-bottom: 1px solid var(--hairline-soft); vertical-align: top; color: var(--body); }
.ptable tr:last-child td { border-bottom: none; }
.ptable td b { color: var(--ink); font-weight: 600; }
.ptable .mono { font-family: var(--mono); font-size: 12px; }
.ptable-tight { min-width: 0; }
.map-table { min-width: 980px; }
.map-table td { font-size: 13.5px; }
.table-note {
  margin-top: 14px; font-family: var(--mono);
  font-size: 12px; color: var(--muted); max-width: 84ch;
}

/* ── code blocks ── */
.code-label {
  margin: 0 0 10px; font-size: 11.5px; letter-spacing: 0.04em;
  color: var(--muted); text-transform: uppercase;
}

.code {
  margin: 0; background: var(--surface-dark);
  color: rgba(255, 255, 255, 0.88);
  border-radius: var(--r-lg); padding: 22px 24px;
  font-family: var(--mono); font-size: 12.5px; line-height: 1.7;
  overflow-x: auto; white-space: pre;
}
.code b { color: var(--ochre); font-weight: 500; }
.c-comment { color: rgba(255, 255, 255, 0.55); }
.code-note {
  margin-top: 12px; font-size: 13px; color: var(--muted); max-width: 56ch;
}

/* ── CTA band ── */
.cta-band {
  background: var(--teal); border-radius: var(--r-xl);
  padding: clamp(36px, 5vw, 64px); color: rgba(255,255,255,0.82);
}
.cta-band .display { color: #fff; max-width: 26ch; }
.cta-band p { margin-top: 18px; max-width: 60ch; font-size: 16px; }
.cta-band .cta-note { margin-top: 28px; font-family: var(--mono); font-size: 13px; }
.cta-band .cta-note a { color: #fff; text-decoration-color: rgba(255,255,255,0.4); }
.cta-band .cta-note a:hover { text-decoration-color: #fff; }

/* ── responsive ── */
@media (max-width: 1060px) {
  .tech-nav { display: none; }
  /* the section nav carried the auto right-margin; restore it so the
     remaining cluster (back link, CTA, RU/EN) still docks right */
  .topbar-in .audit-link { margin-left: auto; }
}
@media (max-width: 900px) {
  .g2, .g3 { grid-template-columns: 1fr; }
  section.band { padding-top: 56px; }
  .fig { padding: 22px; }
}
@media (max-width: 620px) {
  .wrap { padding: 0 18px; }
  .step { grid-template-columns: 1fr; gap: 10px; }
  .tech-hero { padding: 44px 0 8px; }
  .cta-btn { display: none; }
  .topbar-in { flex-wrap: wrap; row-gap: 6px; }
  .brand { white-space: nowrap; }
  .brand-sub { display: none; }
}
