/* Shared shell for the comparison and guide pages.
   Tokens are copied from index.html on purpose: the homepage keeps its CSS
   inline so it has no render-blocking request, and these pages are not hot
   enough to justify the same trick. */
:root{
  --bg:#ffffff; --bg-2:#f6f6f5; --ink:#131313; --ink-2:#5a5a58; --ink-3:#8e8e8b;
  --line:#e7e7e4; --line-2:#f0f0ed; --card:#fbfbfa;
  --nav:rgba(255,255,255,.72); --nav-line:rgba(19,19,19,.09);
  --btn:#131313; --btn-ink:#ffffff;
  --shot-frame:#efefec;
  --good:#1a7f4b; --bad:#a33a2a;
}
:root[data-theme=dark]{
  --bg:#0e0e0d; --bg-2:#151514; --ink:#f2f2ee; --ink-2:#a3a39d; --ink-3:#6f6f6a;
  --line:#262624; --line-2:#1d1d1b; --card:#161615;
  --nav:rgba(20,20,19,.72); --nav-line:rgba(242,242,238,.1);
  --btn:#f2f2ee; --btn-ink:#0e0e0d;
  --shot-frame:#1b1b1a;
  --good:#4ac07f; --bad:#e0715c;
}
*{box-sizing:border-box}
img{max-width:100%;height:auto;display:block}
html{scroll-behavior:smooth}
body{
  margin:0;background:var(--bg);color:var(--ink);
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI Variable Display","Segoe UI",Inter,system-ui,sans-serif;
  font-size:16px;line-height:1.55;-webkit-font-smoothing:antialiased;letter-spacing:-.011em;
}
a{color:inherit}
.wrap{max-width:1120px;margin:0 auto;padding:0 24px}
.narrow{max-width:720px;margin:0 auto;padding:0 24px}

/* nav, same pill as the homepage */
nav{position:fixed;top:18px;left:0;right:0;z-index:50;display:flex;justify-content:center;pointer-events:none}
.pill{
  pointer-events:auto;display:flex;align-items:center;gap:6px;
  background:var(--nav);backdrop-filter:blur(18px) saturate(180%);-webkit-backdrop-filter:blur(18px) saturate(180%);
  border:1px solid var(--nav-line);border-radius:999px;padding:6px 6px 6px 16px;
  box-shadow:0 1px 2px rgba(0,0,0,.04),0 8px 28px -12px rgba(0,0,0,.18);
}
.pill .brand{display:flex;align-items:center;gap:8px;font-weight:600;font-size:14.5px;margin-right:10px;text-decoration:none}
.pill .brand img{width:20px;height:20px;border-radius:5px;display:block}
.pill a.link{padding:7px 11px;border-radius:999px;font-size:14px;color:var(--ink-2);text-decoration:none;transition:color .15s,background .15s}
.pill a.link:hover{color:var(--ink);background:var(--line-2)}
.pill .cta{background:var(--btn);color:var(--btn-ink);padding:8px 15px;border-radius:999px;font-size:14px;font-weight:500;text-decoration:none}
.pill button{
  background:none;border:0;width:32px;height:32px;border-radius:999px;cursor:pointer;color:var(--ink-2);
  display:grid;place-items:center;transition:color .15s,background .15s
}
.pill button:hover{color:var(--ink);background:var(--line-2)}
@media(max-width:720px){.pill a.link{display:none}}
/* Past the top of the page the pill lifts off the content a little harder.
   Needs a script to toggle the class; see the motion block at the end. */
.pill.scrolled{box-shadow:0 1px 2px rgba(0,0,0,.06),0 12px 32px -12px rgba(0,0,0,.22)}

/* article head */
.masthead{padding:126px 0 0}
.crumb{font-size:13.5px;color:var(--ink-3);margin:0 0 18px}
.crumb a{color:var(--ink-3);text-decoration:none}
.crumb a:hover{color:var(--ink)}
.crumb span{margin:0 7px;opacity:.5}
h1{
  font-size:clamp(32px,4.8vw,52px);line-height:1.06;letter-spacing:-.032em;font-weight:640;
  margin:0 0 18px;text-wrap:balance
}
.standfirst{font-size:19px;color:var(--ink-2);line-height:1.5;margin:0;text-wrap:pretty}
.byline{font-size:13.5px;color:var(--ink-3);margin:26px 0 0;padding-top:22px;border-top:1px solid var(--line)}

/* prose */
article{padding:44px 0 0}
article h2{font-size:clamp(23px,2.8vw,30px);line-height:1.15;letter-spacing:-.024em;font-weight:640;margin:52px 0 14px;text-wrap:balance}
article h3{font-size:18px;font-weight:600;letter-spacing:-.014em;margin:34px 0 10px}
article p{margin:0 0 18px;color:var(--ink-2);line-height:1.65;text-wrap:pretty}
article p strong,article li strong{color:var(--ink);font-weight:600}
article a{color:var(--ink);text-decoration:underline;text-underline-offset:2px;text-decoration-color:var(--ink-3)}
article a:hover{text-decoration-color:var(--ink)}
article ul,article ol{margin:0 0 18px;padding-left:22px;color:var(--ink-2);line-height:1.65}
article li{margin:0 0 9px}
article code{
  font-family:ui-monospace,SFMono-Regular,"SF Mono",Menlo,monospace;font-size:13.5px;
  background:var(--bg-2);border:1px solid var(--line);border-radius:5px;padding:1px 5px
}
blockquote{
  margin:26px 0;padding:0 0 0 20px;border-left:2px solid var(--line);
  color:var(--ink-2);font-style:normal
}
blockquote p:last-child{margin-bottom:0}
blockquote cite{display:block;margin-top:8px;font-size:13.5px;color:var(--ink-3);font-style:normal}

/* comparison table */
.tbl{width:100%;overflow-x:auto;margin:26px 0;border:1px solid var(--line);border-radius:14px}
table{width:100%;border-collapse:collapse;font-size:14.5px;min-width:520px}
th,td{text-align:left;padding:14px 16px;border-bottom:1px solid var(--line);vertical-align:top}
thead th{font-weight:600;font-size:13px;letter-spacing:.03em;text-transform:uppercase;color:var(--ink-3);background:var(--bg-2)}
tbody th{font-weight:550;color:var(--ink);width:31%}
td{color:var(--ink-2)}
tr:last-child th,tr:last-child td{border-bottom:0}
.yes{color:var(--good);font-weight:600}
.no{color:var(--bad);font-weight:600}

/* callout */
.note{
  background:var(--card);border:1px solid var(--line);border-left:2px solid var(--ink-3);
  border-radius:12px;padding:20px 22px;margin:26px 0
}
.note p{margin:0;font-size:15px}
.note p+p{margin-top:12px}
.note .lbl{font-size:12px;letter-spacing:.08em;text-transform:uppercase;color:var(--ink-3);display:block;margin-bottom:7px}

.shot{background:var(--shot-frame);border:1px solid var(--line);border-radius:16px;padding:9px;margin:30px 0}
.shot img{width:100%;border-radius:9px;border:1px solid var(--line)}
figure{margin:30px 0}
figcaption{font-size:13.5px;color:var(--ink-3);margin-top:10px;text-align:center}

/* cta */
.cta-block{
  border:1px solid var(--line);border-radius:18px;background:var(--card);
  padding:34px;margin:56px 0 0;text-align:center
}
.cta-block h2{margin:0 0 10px;font-size:24px}
.cta-block p{max-width:46ch;margin:0 auto 22px}
.btn{
  display:inline-flex;align-items:center;gap:9px;height:46px;padding:0 22px;border-radius:999px;
  font-size:15px;font-weight:500;border:1px solid transparent;text-decoration:none;transition:opacity .15s,background .15s
}
.btn.primary{background:var(--btn);color:var(--btn-ink)}
.btn.primary:hover{opacity:.88}
.btn.ghost{border-color:var(--line);color:var(--ink)}
.btn.ghost:hover{background:var(--bg-2)}

/* related */
.related{margin:56px 0 0;border-top:1px solid var(--line);padding-top:30px}
.related h2{font-size:15px;font-weight:600;margin:0 0 16px;letter-spacing:-.01em}
.related ul{list-style:none;padding:0;margin:0;display:grid;gap:10px}
.related a{
  display:block;padding:16px 18px;border:1px solid var(--line);border-radius:12px;
  text-decoration:none;color:var(--ink);font-size:15px;font-weight:550;transition:border-color .15s,background .15s
}
.related a:hover{border-color:var(--ink-3);background:var(--bg-2)}
.related a small{display:block;font-weight:400;color:var(--ink-3);font-size:13.5px;margin-top:3px}

footer{border-top:1px solid var(--line);padding:44px 0;margin-top:80px}
footer .in{display:flex;justify-content:space-between;gap:18px;flex-wrap:wrap;max-width:1120px;margin:0 auto;padding:0 24px}
footer .l{display:flex;align-items:center;gap:9px;font-weight:600;font-size:14.5px;text-decoration:none}
footer .l img{width:19px;height:19px;border-radius:5px}
footer .r{display:flex;gap:22px;font-size:14px;color:var(--ink-3);flex-wrap:wrap}
footer .r a{text-decoration:none;color:var(--ink-3)}
footer .r a:hover{color:var(--ink)}

/* motion, shared with the homepage
   ---------------------------------------------------------------------------
   Reveal on enter: an element starts slightly low and transparent and settles
   once, the first time it scrolls into view. Plain CSS transitions driven by a
   single IntersectionObserver. Nothing is tied to scroll position, so nothing
   fights the reader's scroll.

   NOTHING IS EVER HIDDEN UNLESS THE SCRIPT IS RUNNING, deliberately. Every
   rule is gated on html.motion-on, and only motion.js sets that class: it adds
   it before the body paints, observes [data-reveal], adds `is-visible` on
   entry, and does none of it under prefers-reduced-motion. If the file fails to
   load, the class is never set and every [data-reveal] element is simply
   visible. index.html carries the same script inline.

   The numbers below are the homepage's, on purpose: a reader moving from the
   landing page to one of these should not meet a different, smaller motion.
   --------------------------------------------------------------------------- */
.motion-on [data-reveal]{
  opacity:0;transform:translateY(30px);
  transition:opacity .6s cubic-bezier(.16,1,.3,1),transform .6s cubic-bezier(.16,1,.3,1);
  transition-delay:calc(var(--i,0) * 95ms)
}
.motion-on [data-reveal].is-visible{opacity:1;transform:none}

@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto}
  /* Not just cancelled: forced to the finished state, so nothing can be left
     mid-transition and invisible. */
  .motion-on [data-reveal]{
    opacity:1 !important;transform:none !important;transition:none !important;animation:none !important
  }
}
