/* Comparison + explainer pages. Layers on top of legal.css, reusing its tokens. */

.cmp-note {
  max-width: 1100px;
  margin: 0 auto clamp(28px, 4vw, 44px);
  padding: 18px 22px;
  background: var(--surface, #fff);
  border: 1px solid var(--line, #E2DED2);
  border-left: 3px solid var(--accent, #BEFF50);
  border-radius: 12px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink70, #4A4A40);
}
.cmp-note strong { color: var(--ink, #14140F); }

.cmp-callout {
  margin: 22px 0;
  padding: 18px 22px;
  background: var(--bg2, #F4F1E8);
  border-radius: 12px;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink, #14140F);
}
.cmp-callout em { font-family: var(--serif, Georgia, serif); font-style: italic; }

/* Table: must scroll inside itself, never push the page sideways. */
.cmp-scroll {
  overflow-x: auto;
  min-width: 0;              /* stop advertising the content's intrinsic width
                                to the grid/flex track above it */
  -webkit-overflow-scrolling: touch;
  margin: 4px 0 10px;
  border: 1px solid var(--line, #E2DED2);
  border-radius: 12px;
}
.cmp-table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 15px; }
.cmp-table thead th {
  position: sticky; top: 0;
  background: var(--bg2, #F4F1E8);
  text-align: left;
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink45, #6B6B60);
  padding: 12px 16px;
  border-bottom: 1px solid var(--line, #E2DED2);
}
.cmp-table thead th:nth-child(2) { color: var(--ink, #14140F); }
.cmp-table td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--line, #E2DED2);
  vertical-align: top;
  line-height: 1.5;
}
.cmp-table tbody tr:last-child td { border-bottom: 0; }
.cmp-table td:first-child {
  font-weight: 600; color: var(--ink, #14140F); width: 26%; background: var(--bg, #FAFAF3);
}
.cmp-table td:nth-child(2) { background: rgba(190, 255, 80, .10); }

.cmp-cta {
  margin-top: 34px;
  padding: 26px;
  background: var(--surface, #fff);
  border: 1px solid var(--line, #E2DED2);
  border-radius: 16px;
}
.cmp-cta h3 { margin: 0 0 8px; font-size: 21px; }
.cmp-cta p { margin: 0 0 16px; color: var(--ink70, #4A4A40); }
.cmp-cta .lp-btn { display: inline-block; }
.cmp-cta .lp-note { margin-top: 14px; margin-bottom: 0; }

/* Explainer pages */
.cmp-def {
  margin: 0 0 26px;
  padding: 22px 24px;
  background: var(--surface, #fff);
  border: 1px solid var(--line, #E2DED2);
  border-radius: 14px;
}
.cmp-def h2 { margin-top: 0 !important; font-size: 18px !important; }
.cmp-def p:last-child { margin-bottom: 0; }

.cmp-steps { counter-reset: s; list-style: none; padding: 0; margin: 18px 0; }
.cmp-steps > li {
  counter-increment: s;
  position: relative;
  padding: 0 0 18px 46px;
  margin: 0;
}
.cmp-steps > li::before {
  content: counter(s, decimal-leading-zero);
  position: absolute; left: 0; top: 1px;
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 12px; letter-spacing: .06em;
  color: var(--ink, #14140F);
  background: var(--accent, #BEFF50);
  width: 30px; height: 22px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 6px;
}

@media (max-width: 640px) {
  .cmp-table td:first-child { width: 34%; }
  .cmp-note, .cmp-callout { font-size: 14.5px; }
}

/* ═══════════════════════════════════════════════════════════════
   CROSS-ARTICLE NAVIGATION
   "Keep reading" cards + grouped site footer. Append-only.
   ═══════════════════════════════════════════════════════════════ */

/* Keep reading — 3-up card grid, stacks on mobile */
.kr-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 16px 0 0;
}
@media (min-width: 720px) {
  .kr-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.kr-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  padding: 16px 18px;
  background: var(--surface, #fff);
  border: 1.5px solid var(--line, rgba(20, 20, 15, .13));
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.kr-card:hover,
.kr-card:focus-visible {
  transform: translateY(-3px);
  border-color: var(--ink, #14140F);
  box-shadow: 0 10px 24px rgba(20, 20, 15, .08);
}
.kr-kicker {
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent, #3C6300);
}
.kr-title {
  font-family: var(--display, system-ui, sans-serif);
  font-weight: 700;
  font-size: 15.5px;
  line-height: 1.25;
  letter-spacing: -.01em;
  color: var(--ink, #14140F);
  text-wrap: balance;
  overflow-wrap: anywhere;
}
.kr-why {
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--ink70, rgba(20, 20, 15, .70));
}
.lp-sec .kr-all {
  margin: 14px 0 0;
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink45, rgba(20, 20, 15, .45));
}
.lp-sec .kr-all a {
  color: var(--accent, #3C6300);
  font-weight: 600;
  text-decoration: none;
}
.lp-sec .kr-all a:hover { text-decoration: underline; }

/* Grouped site footer — 4 columns desktop, 2 tablet, 1 mobile */
.lp-foot-nav {
  flex: 1 1 100%;
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px 28px;
}
@media (min-width: 560px) {
  .lp-foot-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
  .lp-foot-nav { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.lp-foot-col { min-width: 0; }
.lp-foot-h {
  display: block;
  margin-bottom: 10px;
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink45, rgba(20, 20, 15, .45));
}
.lp-foot-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.lp-foot-col li { margin: 0; padding: 0; }
.lp-foot-col a {
  display: inline-block;
  line-height: 1.35;
  overflow-wrap: anywhere;
  transition: color .15s;
}

/* ═══════════════════════════════════════════════════════════════
   FOOTER BRAND BLOCK + HARD-SHADOW CTA BUTTON
   Round-2 spec §8 / §9. Append-only.
   ═══════════════════════════════════════════════════════════════ */

/* The footer now stacks brand → nav → baseline, so top-align the flex row. */
.lp-foot-in { align-items: flex-start; }

.lp-foot-brand {
  flex: 1 1 100%;
  width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
  margin: 0 0 24px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line, rgba(20, 20, 15, .13));
}
/* .lp-foot a in legal.css would otherwise flatten the wordmark to 13px body text. */
.lp-foot .lp-word {
  font-family: var(--display, system-ui, sans-serif);
  font-weight: 800;
  font-size: 20px;
  line-height: 1;
  letter-spacing: -.03em;
  color: var(--ink, #14140F);
}
.lp-foot-tag {
  margin: 0;
  max-width: 36ch;
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink70, rgba(20, 20, 15, .70));
}
.lp-foot-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink45, rgba(20, 20, 15, .45));
}
.lp-foot-kicker::before {
  content: "";
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lime, #BEFF50);
  box-shadow: 0 0 0 1px var(--ink, #14140F);
}

.lp-foot-base {
  flex: 1 1 100%;
  width: 100%;
  min-width: 0;
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--line, rgba(20, 20, 15, .13));
}

/* Hard-shadow CTA button (spec §8). --accent on --bg resolves to
   #3C6300 on #F7F4EC = 6.4:1, clears WCAG AA for normal text. */
.cmp-btn-hard{
  display:inline-flex; align-items:center; gap:8px;
  background:var(--accent); color:var(--bg);
  border:2px solid var(--ink); box-shadow:3px 3px 0 var(--ink);
  border-radius:12px; padding:11px 18px;
  font-family:var(--display); font-weight:800; font-size:14px;
  text-decoration:none; transition:transform .15s, box-shadow .15s;
}
.cmp-btn-hard:hover{ transform:translate(-1px,-1px); box-shadow:4px 4px 0 var(--ink); }
.cmp-btn-hard:active{ transform:translate(1px,1px); box-shadow:2px 2px 0 var(--ink); }
/* .cmp-cta .lp-btn{display:inline-block} above out-specifies .cmp-btn-hard. */
.cmp-cta .cmp-btn-hard { display: inline-flex; }

@media (prefers-reduced-motion: reduce) {
  .cmp-btn-hard { transition: none; }
  .cmp-btn-hard:hover, .cmp-btn-hard:active { transform: none; }
}
