/* =========================================================================
   Threadline — "Why Threadline" comparison microsite
   Layers on top of site.css. Adds: comparison tables, switch cards,
   honesty markers, disclosure badge, sticky CTA.
   ========================================================================= */

:root {
  --ok:    #5E8C61;   /* honest green  */
  --clay:  #C2705E;   /* loss red/clay */
  --warn2: #C99A4E;   /* partial amber */
}

/* ---- Disclosure badge ---- */
.disclosure {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--sec-surface); border: 1px solid var(--sec-line);
  border-radius: var(--radius-pill); padding: 10px 18px;
  font-size: 14px; color: var(--sec-fg-2); max-width: 60ch; line-height: 1.4;
  text-align: left;
}
.disclosure .wave { font-size: 16px; }

/* ---- Microsite hero (centered, calm) ---- */
.m-hero { text-align: center; padding-top: 128px; }
.m-hero .wrap { display: flex; flex-direction: column; align-items: center; }
.m-hero h1 { font-size: clamp(34px, 5.4vw, 64px); margin-top: 24px; max-width: 18ch; }
.m-hero .lead { margin-top: 22px; max-width: 60ch; text-align: center; }
.m-hero .cta-row { margin-top: 32px; justify-content: center; }
.m-hero .hero-micro { margin-top: 16px; }

/* ---- Premise band ---- */
.premise { text-align: center; }
.premise .wrap { max-width: 760px; }
.premise h2 { font-size: clamp(30px, 4.4vw, 50px); }
.premise p { margin-top: 22px; font-size: clamp(17px, 1.6vw, 21px); color: var(--sec-fg-2); line-height: var(--lh-normal); }

/* =========================================================================
   COMPARISON TABLES
   ========================================================================= */
.cmp-legend { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 20px; font-size: 13.5px; color: var(--sec-fg-3); }
.cmp-legend b { color: var(--sec-fg); font-weight: 700; }

.cmp-scroll { margin-top: 32px; overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius-lg); border: 1px solid var(--sec-line); background: var(--sec-surface); }
table.cmp { width: 100%; border-collapse: collapse; min-width: 640px; font-size: 15px; }
table.cmp th, table.cmp td { padding: 15px 16px; text-align: center; border-bottom: 1px solid var(--sec-line); }
table.cmp thead th { font-family: var(--font-body); font-weight: 700; font-size: 13px; letter-spacing: .04em; color: var(--sec-fg); background: var(--surface-alt); position: sticky; top: 0; }
table.cmp thead th a { color: inherit; text-decoration: underline; text-underline-offset: 2px; text-decoration-color: var(--sec-line); }
table.cmp tbody th {
  text-align: left; font-family: var(--font-body); font-weight: 600; font-size: 14.5px; color: var(--sec-fg);
  position: sticky; left: 0; background: var(--sec-surface); z-index: 2; min-width: 200px;
  border-right: 1px solid var(--sec-line);
}
table.cmp tr:last-child td, table.cmp tr:last-child th { border-bottom: 0; }
table.cmp .mark { font-size: 17px; font-weight: 700; line-height: 1; }
.mark.yes { color: var(--ok); }
.mark.no  { color: var(--clay); }
.mark.part{ color: var(--warn2); }
.mark.unk { color: var(--sec-fg-3); }
/* Threadline highlighted column */
table.cmp .tl { background: color-mix(in srgb, var(--brass-web) 11%, transparent); }
table.cmp thead th.tl { background: color-mix(in srgb, var(--brass-web) 20%, var(--surface-alt)); color: var(--cocoa); }
html[data-theme="dark"] table.cmp thead th.tl { color: var(--brass); }
table.cmp tbody th.row-note { font-weight: 600; }
table.cmp .cell-note { display: block; font-size: 11.5px; color: var(--sec-fg-3); font-weight: 500; margin-top: 3px; letter-spacing: 0; }
table.cmp td.price-cell, table.cmp th.price-row { font-size: 12.5px; font-weight: 600; }
table.cmp .tl.price-cell { color: var(--cocoa); }
html[data-theme="dark"] table.cmp .tl.price-cell { color: var(--brass); }

.cmp-foot { margin-top: 18px; font-size: 13px; color: var(--sec-fg-3); max-width: 70ch; }
.cmp-foot.note { margin-top: 10px; }
.sources { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--sec-line); }
.sources h4 { font-family: var(--font-body); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--sec-fg-3); }
.sources ol { margin: 14px 0 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.sources li { font-size: 13px; color: var(--sec-fg-2); line-height: 1.5; }
.sources a { color: var(--sec-accent); text-decoration: underline; text-underline-offset: 2px; word-break: break-word; }

.callout {
  margin-top: 28px; background: var(--ai-gradient); color: #fff; border-radius: var(--radius-lg);
  padding: 24px 26px; font-size: 16px; line-height: 1.55; box-shadow: var(--shadow-ai);
}
.callout b { font-weight: 700; }
.honesty-note { margin-top: 16px; font-size: 13.5px; color: var(--sec-fg-3); max-width: 72ch; font-style: italic; }

/* =========================================================================
   SWITCH CARDS
   ========================================================================= */
.switch-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 52px; }
.switch-card { background: var(--sec-surface); border: 1px solid var(--sec-line); border-radius: var(--radius-xl); padding: 30px; }
.switch-card .sc-from { display: inline-flex; align-items: center; gap: 9px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--sec-accent); }
.switch-card .sc-from::before { content: "↳"; font-size: 15px; }
.switch-card h3 { font-size: 22px; margin-top: 14px; }
.switch-card p { margin-top: 12px; color: var(--sec-fg-2); font-size: 15.5px; line-height: var(--lh-normal); }

/* =========================================================================
   WHAT YOU GET — bullet rows
   ========================================================================= */
.get-list { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 18px 40px; }
.get-list li { display: flex; gap: 14px; align-items: flex-start; }
.get-list .g-ico { flex: none; width: 38px; height: 38px; border-radius: 11px; background: var(--cocoa-bg); color: var(--cocoa); display: grid; place-items: center; }
html[data-theme="dark"] .get-list .g-ico { background: rgba(201,162,75,.16); color: var(--brass); }
.get-list .g-ico svg { width: 19px; height: 19px; }
.get-list h4 { font-family: var(--font-body); font-size: 16px; font-weight: 700; color: var(--sec-fg); }
.get-list p { margin-top: 4px; font-size: 14.5px; color: var(--sec-fg-2); line-height: 1.5; }

/* ---- Who it's NOT for ---- */
.notfor { max-width: 760px; }
.notfor-list { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-direction: column; gap: 14px; }
.notfor-list li { display: flex; gap: 13px; align-items: flex-start; font-size: 16px; color: var(--sec-fg-2); }
.notfor-list .x { flex: none; width: 24px; height: 24px; border-radius: 50%; background: color-mix(in srgb, var(--clay) 16%, transparent); color: var(--clay); display: grid; place-items: center; font-size: 13px; font-weight: 700; margin-top: 1px; }

/* =========================================================================
   STICKY CTA (appears after comparison)
   ========================================================================= */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  display: flex; align-items: center; justify-content: center; gap: 18px;
  padding: 14px 20px; background: color-mix(in srgb, var(--cocoa) 96%, black);
  color: #fff; transform: translateY(100%); transition: transform .35s ease;
  box-shadow: 0 -6px 24px rgba(20,18,16,.18);
}
.sticky-cta.show { transform: none; }
.sticky-cta span { font-size: 15px; font-weight: 500; }
.sticky-cta .btn { background: var(--brass); color: #1A1512; padding: 11px 22px; }
.sticky-cta .btn:hover { opacity: .92; background: var(--brass); }
@media (max-width: 560px) { .sticky-cta span { display: none; } .sticky-cta { padding: 12px; } }

/* ---- responsive ---- */
@media (max-width: 860px) {
  .switch-grid { grid-template-columns: 1fr; }
  .get-list { grid-template-columns: 1fr; }
}
