/* ============================================================
   Savory Marketing — shared.css
   Cross-page section / layout / typography scaffolding.
   Tokens only — zero raw hex. Consumes styles/variables.css.
   ============================================================ */

/* ---------- sections & typography ---------- */
.section{padding-block:96px}
.section--tight{padding-block:64px}
.section--flush{padding-top:0}
.section--alt{background:var(--surface);border-block:1px solid var(--line)}
.eyebrow{font-size:12px;font-weight:600;letter-spacing:.07em;text-transform:uppercase;
  color:var(--accent);margin-bottom:14px}
.h2{font-size:clamp(26px,3.4vw,34px);font-weight:600;letter-spacing:-.015em;line-height:1.2;
  max-width:var(--measure-headline);text-wrap:balance}
.lede{font-size:17px;color:var(--ink-secondary);line-height:1.62;max-width:var(--measure-head);
  text-wrap:pretty;margin-top:14px}
/* Multi-sentence display headings break at the period, not at balance's midpoint:
   one .h-line per sentence; inherited text-wrap:balance still governs wrap within each.
   --soft: short headings that fit one line on wide viewports flow inline there,
   and fall back to sentence-per-line only where the heading must wrap. */
.h-line{display:block}
@media (min-width:600px){.h-line--soft{display:inline}}
.nobr{white-space:nowrap}
.sec-head{text-align:center}
.sec-head .h2{margin-inline:auto}
.sec-head .lede{margin-inline:auto}
/* left-aligned variant: section head stacked above a split/grid row */
.sec-head--left{text-align:left;margin-bottom:44px}
.sec-head--left .h2,.sec-head--left .lede{margin-inline:0}

/* ---------- proof strip ---------- */
.proof{border-block:1px solid var(--line);background:var(--surface)}
.proof__inner{display:grid;grid-template-columns:repeat(4,1fr)}
.proof__cell{padding:26px 24px;border-left:1px solid var(--line-soft)}
.proof__cell:first-child{border-left:0}
.proof__value{font-size:24px;font-weight:600;letter-spacing:-.02em;font-variant-numeric:tabular-nums}
.proof__label{font-size:13px;color:var(--ink-secondary);margin-top:4px;line-height:1.4}
@media (max-width:820px){.proof__inner{grid-template-columns:repeat(2,1fr)}
  .proof__cell:nth-child(3){border-left:0}
  .proof__cell{border-top:1px solid var(--line-soft)}
  .proof__cell:nth-child(-n+2){border-top:0}}

/* ---------- problem trio ---------- */
.problems{display:grid;grid-template-columns:repeat(3,1fr);gap:0;margin-top:44px;border-top:1px solid var(--line)}
.problem{padding:28px 28px 0 0;margin-right:28px}
.problem+.problem{border-left:1px solid var(--line-soft);padding-left:28px}
.problem h3{font-size:16px;font-weight:600;letter-spacing:-.01em}
.problem p{font-size:14.5px;color:var(--ink-secondary);line-height:1.6;margin-top:8px}
.problem__kicker{display:inline-block;font-size:12px;font-weight:600;border-radius:var(--r-chip);
  padding:3px 8px;margin-bottom:12px}
@media (max-width:820px){.problems{grid-template-columns:1fr}
  .problem{margin-right:0;padding:24px 0}
  .problem+.problem{border-left:0;border-top:1px solid var(--line-soft);padding-left:0}}

/* ---------- split rows ---------- */
.split{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);gap:64px;align-items:center}
.split--flip{grid-template-columns:minmax(0,7fr) minmax(0,5fr)}
.split--top{align-items:start}
.split__copy .h2{font-size:clamp(24px,3vw,31px)}
.feature-list{margin-top:22px;display:grid;gap:12px}
.split__copy>.feature-list:first-child{margin-top:0}
.split__visual>.feature-list:first-child{margin-top:0}
.split__copy>.lede:first-child{margin-top:0}
.feature-list li{display:flex;gap:12px;font-size:14.5px;color:var(--ink-secondary);line-height:1.55}
.feature-list li strong{color:var(--ink);font-weight:500}
.tick{flex-shrink:0;width:20px;height:20px;border-radius:50%;
  background:var(--positive-soft);color:var(--positive);display:grid;place-items:center;
  font-size:11px;margin-top:1px}
.textlink{color:var(--accent);font-weight:500;font-size:14.5px;display:inline-flex;
  align-items:center;gap:6px;margin-top:22px}
.textlink:hover{color:var(--accent-hover)}
@media (max-width:980px){.split,.split--flip{grid-template-columns:1fr;gap:40px}
  .split--flip .split__visual{order:-1}}

/* ---------- steps ---------- */
.steps{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;margin-top:48px}
.steps--four{grid-template-columns:repeat(4,1fr)}
@media (max-width:1000px){.steps--four{grid-template-columns:repeat(2,1fr)}}
.step{background:var(--surface);border:1px solid var(--line);border-radius:var(--r-card);padding:26px}
.step h3{font-size:16px;font-weight:600;letter-spacing:-.01em;display:flex;align-items:center;gap:10px}
.step p{font-size:14px;color:var(--ink-secondary);line-height:1.6;margin-top:10px}
.step__glyph{width:30px;height:30px;border-radius:var(--r-btn);background:var(--accent-soft);
  color:var(--accent);display:grid;place-items:center;flex-shrink:0}
@media (max-width:820px){.steps{grid-template-columns:1fr}}

/* ---------- comparison table ---------- */
/* comparison: a stack of section CARDS floating on the page canvas. .compare-wrap
   is the horizontal scroll container; .compare-stack sets the min-width + the
   canvas gap between cards; every card's table shares one fixed column layout
   (colgroup + table-layout:fixed) so columns align across all cards. */
.compare-wrap{overflow-x:auto;margin-top:44px;contain:paint}
.compare-stack{display:grid;gap:14px;min-width:720px}
.compare-card{border:1px solid var(--line);border-radius:var(--r-card);background:var(--surface);overflow:hidden}
.compare{width:100%;border-collapse:collapse;font-size:14px;table-layout:fixed}
.compare__c-cap{width:40%}
.compare th,.compare td{padding:13px 18px;text-align:center;border-top:1px solid var(--line-soft)}
/* capability label reads left; rating columns center under their header */
.compare th:first-child,.compare td:first-child{text-align:left}
.compare thead th{border-top:0;font-size:13px;color:var(--ink-secondary);font-weight:500;border-bottom:1px solid var(--line)}
/* first header cell carries the section name (uppercase), in place of a label */
.compare thead th:first-child{text-transform:uppercase;font-size:11.5px;letter-spacing:.05em;font-weight:600}
.compare thead th.is-us{color:var(--accent);font-weight:600;background:var(--accent-soft)}
.compare td.is-us{background:var(--accent-soft)}
.compare td:first-child{color:var(--ink-secondary);font-size:13.5px}
.cmp-y{color:var(--positive);font-weight:600}
.cmp-n{color:var(--ink-ghost)}
.cmp-p{color:var(--caution);font-weight:500}
/* footnote reference on a rating cell (superscript) + in the footnote list (inline) */
.cmp-ref{font-size:.66em;font-weight:600;vertical-align:super;margin-left:2px;color:var(--ink-secondary)}
.compare-fn .cmp-ref{vertical-align:baseline;flex-shrink:0}
/* legend + footnotes: caption-scale meta, full table width (align to caption) */
.compare-legend{display:flex;flex-wrap:wrap;gap:8px 18px;list-style:none;padding:0;margin:14px 0 0;
  font-size:12.5px;color:var(--ink-secondary)}
.compare-legend li{display:flex;align-items:center;gap:6px}
/* footnotes render on the canvas below their card, like the closing note */
.compare-fn{list-style:none;margin:0;padding:0;font-size:12.5px;color:var(--ink-secondary);
  display:grid;gap:6px}
.compare-fn li{display:flex;gap:8px;align-items:baseline}
.compare-note{font-size:12.5px;color:var(--ink-secondary);margin-top:12px}

/* ---------- also-in-the-box: alternating feature vignettes ---------- */
/* Zigzag .split rows (copy + a compact, token-built vignette) instead of a flat
   mini-grid. Each vignette reuses the shared .m-* / .frame / hue atoms; the .vg-*
   layer below adds only the pieces those atoms don't already provide. */
.also-stack{margin-top:40px}
/* one hairline per row so the four capabilities read as distinct entries in one
   box, not a single wall. Padding both sides of the divider carries the rhythm. */
.also-stack>.split{padding-block:60px}
.also-stack>.split:first-child{padding-top:0}
.also-stack>.split:last-child{padding-bottom:0}
.also-stack>.split+.split{border-top:1px solid var(--line)}
.also-stack .split__copy h3{font-size:clamp(19px,2.3vw,22px);font-weight:600;
  letter-spacing:-.012em;line-height:1.25}
.also-stack .split__copy .lede{margin-top:12px}
.also-stack .split__copy>.feature-list:first-child{margin-top:0}
@media (max-width:980px){.also-stack>.split{padding-block:44px}}

/* shared vignette chrome */
.vg{font-size:12px;line-height:1.45;user-select:none}
.vg__head{display:flex;align-items:baseline;gap:8px;margin-bottom:12px}
.vg__title{font-weight:600;font-size:13px;color:var(--ink);letter-spacing:-.01em}
.vg__meta{font-size:10.5px;color:var(--ink-tertiary)}
.vg__meta--end{margin-left:auto}
/* generic footer strip (daily-brief due line, lock state) */
.vg-foot{display:flex;align-items:center;gap:8px;margin-top:11px;padding-top:12px;
  border-top:1px solid var(--line-soft);font-size:11px;color:var(--ink-secondary);line-height:1.45}
.vg-foot strong{color:var(--ink);font-weight:600}
.vg-foot__ico{color:var(--ink-tertiary);flex-shrink:0}

/* daily-brief agenda rows (reuses .m-meeting__edge--* for the hue bar) */
.vg-row{display:flex;align-items:flex-start;gap:10px;padding:8px 0;border-top:1px solid var(--line-soft)}
.vg-row:first-of-type{border-top:0}
.vg-row__time{font-family:var(--font-mono);font-size:10.5px;color:var(--ink-tertiary);
  width:42px;flex-shrink:0;padding-top:1px}
.vg-row__title{font-weight:500;color:var(--ink);font-size:11.5px;line-height:1.3}
.vg-row__sub{font-size:10px;color:var(--ink-tertiary);margin-top:2px}

/* insights: stat grid (reuses .m-stat__v/.m-stat__l type) + weekly spark */
.vg-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:1px;background:var(--line-soft);
  border:1px solid var(--line-soft);border-radius:var(--r-card);overflow:hidden}
.vg-stats>div{background:var(--surface);padding:12px 14px}
@media (max-width:560px){.vg-stats{grid-template-columns:1fr 1fr}}
.vg-bars{display:flex;align-items:flex-end;gap:6px;height:96px;margin:18px 0 6px}
.vg-bars i{flex:1;background:var(--accent-soft);border-radius:3px 3px 0 0}
.vg-bars i:nth-child(1){height:44%}.vg-bars i:nth-child(2){height:66%}
.vg-bars i:nth-child(3){height:100%}.vg-bars i:nth-child(4){height:52%}
.vg-bars i:nth-child(5){height:78%}.vg-bars i:nth-child(6){height:34%}
.vg-bars i:nth-child(7){height:60%}
.vg-bars i.is-peak{background:var(--accent)}

/* multi-account switcher + lock */
.vg-acct{display:flex;align-items:center;gap:10px;padding:9px 11px;border-radius:var(--r-btn);
  border:1px solid var(--line-soft)}
.vg-acct+.vg-acct{margin-top:8px}
.vg-acct.is-active{border-color:var(--accent-line);background:var(--accent-soft)}
.vg-acct__name{font-weight:500;color:var(--ink);font-size:11.5px}
.vg-acct__sub{font-size:10px;color:var(--ink-tertiary);margin-top:1px}
.vg-acct__flag{margin-left:auto;font-size:9.5px;font-weight:600;color:var(--accent);
  display:inline-flex;align-items:center;gap:5px;flex-shrink:0}

/* three modes (reuses .mode-card__wash hue chip + .m-kbd) */
.vg-mode{display:flex;align-items:center;gap:11px;padding:11px 12px;border-radius:var(--r-card);
  border:1px solid var(--line-soft)}
.vg-mode+.vg-mode{margin-top:8px}
.vg-mode.is-active{border-color:var(--accent-line);background:var(--accent-soft)}
.vg-mode__desc{font-size:10.5px;color:var(--ink-secondary);line-height:1.4;min-width:0}
.vg-mode__k{margin-left:auto;flex-shrink:0}

/* ---------- article layout (blog posts, legal, privacy) ---------- */
.article{max-width:760px;margin-inline:auto;padding-inline:24px;padding-bottom:96px}
.article__meta{font-size:13.5px;color:var(--ink-secondary);margin-top:16px}
.article-body{margin-top:8px}
.article-body h2{font-size:23px;font-weight:600;letter-spacing:-.014em;line-height:1.25;
  margin-top:52px;margin-bottom:14px}
.article-body h3{font-size:17px;font-weight:600;letter-spacing:-.008em;margin-top:32px;margin-bottom:10px}
.article-body p{font-size:15.5px;color:var(--ink-secondary);line-height:1.68;margin-bottom:16px;max-width:68ch}
.article-body ul{margin:0 0 16px;display:grid;gap:8px}
.article-body ul li{display:flex;gap:10px;font-size:15px;color:var(--ink-secondary);line-height:1.6}
.article-body ul li::before{content:"·";color:var(--accent);font-weight:700;flex-shrink:0}
.article-body a{color:var(--accent);font-weight:500}
.article-body a:hover{color:var(--accent-hover)}
.article-body .mono{font-size:14px}
.article-body blockquote{border-left:2px solid var(--accent-line);padding:4px 0 4px 18px;
  margin:0 0 16px;color:var(--ink-secondary);font-size:15px;line-height:1.65}
