/* ============================================================
   Termdeck — site.css  (shared marketing sub-page components)
   The /vs/* and /blog vocabulary (vs-*, post-*), dark agent-ai
   theme. Loads AFTER home.css and only ADDS: theme, tokens, nav,
   footer, buttons, code and links all come from home.css. Every
   marketing page loads both (one head-assets partial for all), so
   nothing here may restyle a class the homepage uses.
   Replaced homepage.css + vs/vs.css (the paper theme) 2026-08-03,
   when the sub-pages joined the homepage's chrome.
   ============================================================ */

/* ---- canvas: the same lit column as the homepage ----
   A sub-page section is .vs-* > .shell where the homepage says
   .hsec > .rail; the recipes are kept identical so the two read
   as one site. The glow fires once, on the hero. */
.vs-hero,.vs-section,.vs-section-tight{position:relative;border-top:1px solid var(--border-soft)}
main>.vs-hero{border-top:0}
.shell{max-width:var(--shell);margin:0 auto;background:var(--bg);border-left:1px solid var(--rail);border-right:1px solid var(--rail);position:relative;padding:52px 40px}
.shell::before{content:"";position:absolute;inset:0;pointer-events:none;background-image:var(--grid-cols);background-size:calc(100% + 1px) 100%}
.vs-hero .shell::before{background-image:var(--glow),var(--grid-cols);background-size:100% 100%,calc(100% + 1px) 100%}
.shell>*{position:relative}
.vs-section-tight .shell{padding-top:28px}

/* ---- hero ---- */
.vs-hero .shell{padding:72px 40px 56px}
.vs-title{font-size:clamp(2.2rem,4.8vw,3.6rem);letter-spacing:-.035em;max-width:26ch}
/* emphasis = the homepage h1 em: full white + hairline rule, no hue */
.vs-title .hl{color:var(--text);text-decoration:underline;text-decoration-color:rgba(255,255,255,.30);text-decoration-thickness:.055em;text-underline-offset:.14em}
.vs-lede{margin-top:18px;font-size:16.5px;color:var(--muted);max-width:62ch;line-height:1.55}
.hero-actions{margin-top:26px;display:flex;gap:12px;flex-wrap:wrap}
.vs-section-head{margin-bottom:26px}
.vs-section-title{font-size:clamp(1.7rem,3.4vw,2.4rem);margin-top:12px}

/* ---- prose links wear the one green rule (home.css .engine-link) ---- */
.vs-lede a,.vs-note a,.vs-faq-card p a,.vs-card p a,.post-body p a,.post-figure figcaption a{
  color:var(--muted);text-decoration:underline;text-decoration-color:var(--link-rule);text-decoration-thickness:1px;text-underline-offset:.16em;text-decoration-skip-ink:auto;transition:color .15s,text-decoration-color .15s}
.vs-lede a:hover,.vs-note a:hover,.vs-faq-card p a:hover,.vs-card p a:hover,.post-body p a:hover,.post-figure figcaption a:hover{
  color:var(--text);text-decoration-color:var(--brand-green-400)}

/* ---- compare table: one raised panel, "us" column on a sunken wash ---- */
.vs-cmp-wrap{overflow-x:auto;border:1px solid var(--border);border-radius:var(--r-lg);background:var(--panel);box-shadow:var(--edge),var(--lift)}
.vs-cmp{width:100%;border-collapse:collapse;font-size:14px}
.vs-cmp thead th{text-align:left;font-family:var(--mono);font-size:11px;letter-spacing:.06em;text-transform:uppercase;color:var(--faint);padding:14px 16px;border-bottom:1px solid var(--border-soft)}
.vs-cmp thead th.us{color:var(--text)}
.vs-cmp td{padding:13px 16px;border-bottom:1px solid var(--border-soft);color:var(--muted);vertical-align:top}
.vs-cmp td.row{color:var(--text);font-weight:500;min-width:180px}
.vs-cmp td.them{color:var(--faint)}
.vs-cmp td.us{color:var(--text);background:var(--sunken)}
.vs-cmp tr:last-child td{border-bottom:0}
.vs-note{margin-top:18px;font-size:13.5px;color:var(--faint);max-width:70ch}

/* ---- card grids ---- */
.vs-faq{display:grid;grid-template-columns:repeat(2,1fr);gap:16px}
.vs-highlight-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.vs-faq-card,.vs-card{background:var(--panel);border:1px solid var(--border);box-shadow:var(--edge),var(--lift);border-radius:var(--r-lg);padding:24px}
.vs-card{display:flex;flex-direction:column}
a.vs-card{transition:border-color .18s var(--ease),box-shadow .18s var(--ease),transform .18s var(--ease)}
a.vs-card:hover{border-color:var(--input);box-shadow:var(--edge),var(--lift-2);transform:translateY(-2px)}
.vs-faq-card h3,.vs-card h3{font-size:16px;margin-bottom:8px}
.vs-faq-card p,.vs-card p{font-size:13.5px;color:var(--muted);line-height:1.55}

/* ---- closing CTA: the homepage's .cta, under the sub-page class ---- */
.vs-cta{position:relative;overflow:hidden;text-align:center;padding:64px 40px;border-radius:var(--r-xl);background:var(--panel);border:1px solid var(--border);box-shadow:var(--edge),var(--lift)}
.vs-cta::before{content:"";position:absolute;inset:0;background:var(--glow);pointer-events:none}
.vs-cta>*{position:relative}
.vs-cta .vs-section-title{margin:12px 0 8px}
.vs-cta-copy{color:var(--muted);max-width:48ch;margin:0 auto 22px;font-size:15.5px}
.vs-cta .hero-actions{margin-top:8px;justify-content:center}
.vs-related{display:flex;flex-wrap:wrap;align-items:center;gap:8px 18px;margin-top:26px;font-size:13.5px;color:var(--faint)}
.vs-related span{font-family:var(--mono);font-size:11.5px;text-transform:uppercase;letter-spacing:.06em}
.vs-related a{color:var(--muted);text-decoration:underline;text-decoration-color:var(--link-rule);text-decoration-thickness:1px;text-underline-offset:.16em}
.vs-related a:hover{color:var(--text);text-decoration-color:var(--brand-green-400)}

/* ---- blog: the index list and the post prose ---- */
.post-list{display:grid;gap:14px;grid-template-columns:minmax(0,1fr);max-width:820px}
.post-item{display:block;padding:24px 24px 22px}
.post-item time{color:var(--faint);font-family:var(--mono);font-size:12.5px;letter-spacing:.04em;text-transform:uppercase}
.post-item h2{margin:10px 0 8px;font-size:22px;letter-spacing:-.02em}
.post-item p{margin:0;color:var(--muted);font-size:14.5px;line-height:1.6}
.post-more{margin-top:14px;font-size:13.5px;font-weight:600;color:var(--text)}
.post-meta{margin:0 0 18px;color:var(--muted);font-family:var(--mono);font-size:12.5px;letter-spacing:.04em;text-transform:uppercase}
.post-body p{max-width:68ch;margin:0 0 16px;font-size:16px;line-height:1.65;color:var(--text)}
.post-body p.soft{color:var(--muted)}
.post-figure{margin:8px 0 0}
.post-figure img{display:block;width:100%;height:auto;border:1px solid var(--border);border-radius:var(--r-xl);background:var(--well)}
.post-figure figcaption{margin-top:12px;color:var(--faint);font-family:var(--mono);font-size:12.5px;line-height:1.55}
.post-steps{max-width:68ch;margin:0;padding:0;list-style:none;counter-reset:step}
.post-steps li{position:relative;margin:0 0 14px;padding-left:42px;font-size:15.5px;line-height:1.6;color:var(--muted)}
.post-steps li::before{counter-increment:step;content:counter(step);position:absolute;left:0;top:1px;display:grid;place-items:center;width:28px;height:28px;border:1px solid var(--border);border-radius:50%;background:var(--sunken);color:var(--text);font-family:var(--mono);font-size:13px;font-weight:500}
.post-steps strong{color:var(--text);font-weight:600}

/* ---- responsive ---- */
@media(max-width:900px){
  .vs-faq,.vs-highlight-grid{grid-template-columns:1fr}
}
@media(max-width:600px){
  .shell{padding-left:20px;padding-right:20px}
  .vs-hero .shell{padding-top:56px}
}

/* ============ LOAD-IN REVEAL ============
   Twin of the block in /home.css — keep them in step. On the sub-pages the
   .rv tags come from /js/reveal.js's convention pass (hero children + section
   blocks), so the hidden state can only exist on a page already running the
   script that reveals it: no-JS, a failed load, or a stale cached stylesheet
   all read the resting page. rv-move slides without fading — the hero
   headline and post figures are LCP candidates, and an opacity:0 candidate
   does not count as painted until it fades in. */
@media (prefers-reduced-motion: no-preference) {
  .rv-on .rv { opacity: 0; transform: translateY(24px); }
  .rv-on .rv-move { opacity: 1; transform: translateY(44px); }
  .rv-on .rv.rv-in {
    opacity: 1;
    transform: none;
    transition: opacity 1s cubic-bezier(.22, 1, .36, 1) var(--rvd, 0s),
      transform 1s cubic-bezier(.22, 1, .36, 1) var(--rvd, 0s);
  }
  .rv-on .rv-move.rv-in { transition-duration: 1.2s, 1.2s; }
}
