/* SoftwareAlternatives. Daylight: warm off-white paper, one confident raspberry, a calm teal, soft rounded cards
   with 1px rule borders and soft shadows, and the ≈ wave used sparingly. Every token from the design system's
   tokens.json is a custom property below. Daylight (light) is the default on :root; Night (dark) applies from the
   OS setting unless the reader chose light, or from the header toggle (data-theme on <html>, stored as "sa-theme"). */

:root {
  /* color: grounds */
  --paper: #fbf7f4;
  --surface: #ffffff;
  --sunken: #f4ede8;
  /* color: lines */
  --rule: #e9dfd8;
  --edge: #8e8794;
  /* color: text */
  --ink: #1d1b22;
  --muted: #5b5662;
  /* color: accents */
  --rasp: #b4235a;
  --rasp-fill: #b4235a;
  --on-rasp: #ffffff;
  --rasp-wash: rgba(180, 35, 90, 0.07);
  --teal: #0f5e63;
  --mint: #cdeee8;
  /* color: states */
  --positive: #1f7a3a;
  --caution: #9a5a00;
  --negative: #b42318;
  /* shadow */
  --card: 0 1px 2px rgba(29, 27, 34, 0.05), 0 8px 24px rgba(29, 27, 34, 0.06);
  --raise: 0 2px 6px rgba(29, 27, 34, 0.08), 0 16px 40px rgba(180, 35, 90, 0.12);

  /* type */
  --font-display: Outfit, "Segoe UI", system-ui, sans-serif;
  --font-body: "DM Sans", "Segoe UI", system-ui, sans-serif;
  --font-mono: "Fragment Mono", ui-monospace, Menlo, monospace;

  /* space */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --space-20: 80px;

  /* radius */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  /* layout */
  --content: 1120px;
  --column: 720px;
  --gutter: var(--space-6);

  /* derived (not design tokens). --rasp-solid is rasp-fill wherever white text sits on raspberry: in Night the
     token #e0477f gives white text only 3.9:1, so text-bearing fills use #c2346b there (5.3:1). */
  --rasp-solid: var(--rasp-fill);
  /* the waves divider, drawn in the current raspberry */
  --waves: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 36 12'%3E%3Cpath d='M2 5 C6 1 10 1 14 4.5 C18 8 22 8 26 4.5 C29 2 32 2 34 3.5' fill='none' stroke='%23b4235a' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E");
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #141218;
    --surface: #1d1a22;
    --sunken: #26222c;
    --rule: #2f2a36;
    --edge: #5f5869;
    --ink: #f4f1f6;
    --muted: #aaa3b2;
    --rasp: #ff7aa6;
    --rasp-fill: #e0477f;
    --rasp-solid: #c2346b;
    --on-rasp: #ffffff;
    --rasp-wash: rgba(255, 122, 166, 0.12);
    --teal: #5fc4c0;
    --mint: #1f4b4a;
    --positive: #5fd08b;
    --caution: #f0b44c;
    --negative: #f2877c;
    --card: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.35);
    --raise: 0 2px 6px rgba(0, 0, 0, 0.5), 0 16px 40px rgba(0, 0, 0, 0.45);
    --waves: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 36 12'%3E%3Cpath d='M2 5 C6 1 10 1 14 4.5 C18 8 22 8 26 4.5 C29 2 32 2 34 3.5' fill='none' stroke='%23ff7aa6' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E");
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #141218;
  --surface: #1d1a22;
  --sunken: #26222c;
  --rule: #2f2a36;
  --edge: #5f5869;
  --ink: #f4f1f6;
  --muted: #aaa3b2;
  --rasp: #ff7aa6;
  --rasp-fill: #e0477f;
  --rasp-solid: #c2346b;
  --on-rasp: #ffffff;
  --rasp-wash: rgba(255, 122, 166, 0.12);
  --teal: #5fc4c0;
  --mint: #1f4b4a;
  --positive: #5fd08b;
  --caution: #f0b44c;
  --negative: #f2877c;
  --card: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.35);
  --raise: 0 2px 6px rgba(0, 0, 0, 0.5), 0 16px 40px rgba(0, 0, 0, 0.45);
  --waves: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 36 12'%3E%3Cpath d='M2 5 C6 1 10 1 14 4.5 C18 8 22 8 26 4.5 C29 2 32 2 34 3.5' fill='none' stroke='%23ff7aa6' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E");
  color-scheme: dark;
}

/* ------------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-body); font-size: 17px; line-height: 28px;
  -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--rasp); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2.5px; }
:focus-visible { outline: 3px solid var(--rasp); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); margin: 0; }
h2 { font-size: 26px; line-height: 32px; font-weight: 700; letter-spacing: -0.015em; }
h3 { font-size: 19px; line-height: 26px; font-weight: 600; }
p { margin: 0; }
time { font-variant-numeric: tabular-nums; }
::selection { background: var(--mint); color: var(--ink); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.sa-skip { position: absolute; left: var(--space-4); top: -60px; z-index: 50; background: var(--rasp-solid); color: var(--on-rasp); padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-sm); font-weight: 700; }
.sa-skip:focus { top: var(--space-2); }

.sa-wrap { width: 100%; max-width: calc(var(--content) + 2 * var(--gutter)); margin: 0 auto; padding-inline: var(--gutter); }
.sa-label { font: 700 12px/16px var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--teal); margin: 0; }
a.sa-label { text-decoration: none; }
a.sa-label:hover { color: var(--rasp); }
.sa-label--muted { color: var(--muted); }
.sa-label--positive { color: var(--positive); }
.sa-label--negative { color: var(--negative); }
.sa-waves { display: block; width: 36px; height: 12px; margin: 6px 0 var(--space-3); background: var(--waves) no-repeat; }
.sa-data { font-family: var(--font-mono); font-size: 14px; line-height: 20px; font-weight: 400; font-variant-numeric: tabular-nums; }
.sa-data-l { font-family: var(--font-mono); font-size: 24px; line-height: 30px; font-weight: 400; font-variant-numeric: tabular-nums; }
.sa-muted { color: var(--muted); }
.sa-note { color: var(--muted); font-size: 15px; line-height: 23px; margin-top: var(--space-3); }
.sa-display-xl { font-size: 60px; line-height: 62px; font-weight: 700; letter-spacing: -0.035em; }
.sa-display-l { font-size: 44px; line-height: 50px; font-weight: 700; letter-spacing: -0.03em; }
.sa-lead { font-size: 19px; line-height: 30px; color: var(--muted); max-width: 680px; }

/* Icons: 1.75px line on a 24px grid, rounded caps */
.sa-icon { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.sa-icon--sm { width: 18px; height: 18px; }

/* ------------------------------------------------------------------ components (bundle.css, on tokens) */
.sa-btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); padding: var(--space-3) 22px; border-radius: var(--radius-md);
  border: 1.5px solid var(--edge); background: var(--surface); color: var(--ink); font: 600 15px/20px var(--font-display);
  text-decoration: none; cursor: pointer; transition: box-shadow .15s ease-out, transform .15s ease-out; }
.sa-btn:hover { box-shadow: var(--raise); transform: translateY(-1px); text-decoration: none; }
.sa-btn--primary { background: var(--rasp-solid); border-color: var(--rasp-solid); color: var(--on-rasp); }
.sa-btn--sm { padding: 7px 14px; font-size: 14px; border-radius: 12px; }
.sa-btn--link { border-color: transparent; background: transparent; color: var(--rasp); padding-inline: 0; text-decoration: underline; text-underline-offset: 4px; }
.sa-btn--link:hover { box-shadow: none; transform: none; }

.sa-chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 11px; border-radius: var(--radius-pill); border: 1px solid var(--rule);
  background: var(--surface); font: 700 11px/18px var(--font-body); letter-spacing: .06em; text-transform: uppercase; color: var(--ink); white-space: nowrap; }
.sa-chip--pick, .sa-chip--rasp { background: var(--rasp-solid); border-color: var(--rasp-solid); color: var(--on-rasp); }
.sa-chip--to { background: var(--mint); border-color: var(--mint); color: var(--ink); }
.sa-chip--ok { border-color: var(--positive); color: var(--positive); }
.sa-chip--caution { border-color: var(--caution); color: var(--caution); }
.sa-chip--limit { border-color: var(--negative); color: var(--negative); }

.sa-pick { display: inline-block; margin-left: var(--space-2); font: 700 10px/16px var(--font-body); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap;
  color: var(--on-rasp); background: var(--rasp-solid); border-radius: var(--radius-pill); padding: 1px 8px; vertical-align: 2px; }

.sa-card { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-lg); box-shadow: var(--card); padding: var(--space-6);
  transition: box-shadow .15s ease-out, transform .15s ease-out; }
a.sa-card { color: inherit; text-decoration: none; display: block; }
a.sa-card:hover { box-shadow: var(--raise); transform: translateY(-2px); }
.sa-card h3 { margin: 0 0 var(--space-2); }

.sa-tip { background: var(--mint); color: var(--ink); border-radius: var(--radius-md); padding: var(--space-4) var(--space-6); }
.sa-tip a { color: var(--ink); }

/* ------------------------------------------------------------------ header */
.sa-header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: saturate(1.2) blur(10px);
  -webkit-backdrop-filter: saturate(1.2) blur(10px); border-bottom: 1px solid var(--rule); }
.sa-header__row { display: flex; align-items: center; gap: var(--space-8); min-height: 70px; }
.sa-header__brand { display: inline-flex; flex: none; border-radius: var(--radius-sm); }
.sa-logo { height: 30px; width: auto; }
.sa-footer .sa-logo { height: 28px; }
.sa-logo--dark { display: none; }
:root[data-theme="dark"] .sa-logo--light { display: none; }
:root[data-theme="dark"] .sa-logo--dark { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .sa-logo--light { display: none; }
  :root:not([data-theme="light"]) .sa-logo--dark { display: block; }
}
.sa-nav { display: flex; gap: var(--space-1); margin-right: auto; }
.sa-nav a { color: var(--ink); text-decoration: none; font: 600 15px/20px var(--font-display); padding: 8px 14px; border-radius: var(--radius-pill); }
.sa-nav a:hover { background: var(--sunken); }
.sa-nav a[aria-current="page"] { background: var(--rasp-wash); color: var(--rasp); }
.sa-header__tools { display: flex; gap: var(--space-2); }
.sa-iconbtn { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--rule); background: var(--surface);
  color: var(--ink); cursor: pointer; padding: 0; transition: box-shadow .15s ease-out; }
.sa-iconbtn:hover { box-shadow: var(--raise); }
.sa-iconbtn .sa-icon { width: 20px; height: 20px; }
.sa-icon--sun { display: none; }
:root[data-theme="dark"] .sa-icon--sun { display: block; }
:root[data-theme="dark"] .sa-icon--moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .sa-icon--sun { display: block; }
  :root:not([data-theme="light"]) .sa-icon--moon { display: none; }
}

/* ------------------------------------------------------------------ sections */
.sa-section { padding-block: var(--space-12); }
.sa-section--tight { padding-block: var(--space-8) var(--space-12); }
.sa-section--flush { padding-block: 0; }
.sa-section--first { padding-top: var(--space-12); }
.sa-section--band { background: var(--sunken); }
.sa-sechead { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-4); margin-bottom: var(--space-6); flex-wrap: wrap; }
.sa-sechead h2 { font-size: 32px; line-height: 38px; font-weight: 700; letter-spacing: -0.02em; }
.sa-sechead .sa-waves { margin-bottom: var(--space-2); }
.sa-sechead__link { font-size: 15px; }
.sa-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-8); }

/* ------------------------------------------------------------------ home hero */
.sa-hero-home { padding-block: var(--space-12) var(--space-12); overflow: hidden; position: relative;
  background: radial-gradient(900px 420px at 88% 18%, var(--rasp-wash), transparent 70%), radial-gradient(700px 380px at 70% 100%, color-mix(in srgb, var(--mint) 55%, transparent), transparent 70%); }
.sa-hero-home__grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: var(--space-12); align-items: center; }
.sa-eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); font: 600 14px/20px var(--font-body); color: var(--muted); margin-bottom: var(--space-6); }
.sa-hero-home h1 { max-width: 620px; }
.sa-hero-home h1 em { font-style: normal; color: var(--rasp); }
.sa-hero-home .sa-lead { margin-top: var(--space-6); max-width: 560px; }
.sa-hero-home__facts { list-style: none; margin: var(--space-8) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-3); }
.sa-hero-home__facts li { display: flex; align-items: baseline; gap: var(--space-2); background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-pill);
  padding: 6px 14px; font-size: 14px; line-height: 20px; color: var(--muted); }
.sa-hero-home__facts b { color: var(--ink); font-size: 15px; }

/* The hero visual: a grid of logo-ratio tiles with two stacked switch cards on top (decorative, aria-hidden). */
.sa-heroart { position: relative; min-height: 480px; }
.sa-heroart__tiles { position: absolute; right: -24px; top: 0; display: grid; grid-template-columns: repeat(3, 92px); gap: 18px; }
.sa-heroart__tiles .t { width: 92px; height: 92px; border-radius: 25px; display: grid; place-items: center; }
.sa-heroart__tiles .s { background: var(--surface); border: 1.5px solid var(--rule); }
.sa-heroart__tiles .m { background: var(--mint); }
.sa-heroart__tiles .r { background: var(--rasp-fill); box-shadow: var(--raise); }
.sa-heroart__tiles .r svg { width: 64px; height: 64px; fill: none; stroke: #ffffff; stroke-width: 5.5; stroke-linecap: round; }
.sa-heroart__card { position: absolute; display: grid; grid-template-columns: 1fr auto 1.2fr; width: 430px; max-width: 100%; background: var(--surface);
  border: 1px solid var(--rule); border-radius: var(--radius-lg); box-shadow: var(--raise); overflow: hidden; font-size: 14px; line-height: 20px; }
.sa-heroart__card .from { background: var(--sunken); padding: 16px 18px; display: grid; gap: 4px; align-content: start; }
.sa-heroart__card .to { padding: 16px 18px; display: grid; gap: 4px; align-content: start; }
.sa-heroart__card .lbl { font: 700 11px/14px var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.sa-heroart__card .to .lbl { color: var(--teal); }
.sa-heroart__card b { font: 700 17px/22px var(--font-display); margin-bottom: 2px; }
.sa-heroart__card .to b { color: var(--teal); }
.sa-heroart__card i { font-style: normal; color: var(--ink); }
.sa-heroart__card i::before { content: "−"; color: var(--negative); font-weight: 700; margin-right: 6px; }
.sa-heroart__card i.g::before { content: "+"; color: var(--positive); }
.sa-heroart__card .arr { display: grid; place-items: center; padding: 0 10px; color: var(--rasp); font: 700 22px/1 var(--font-display);
  background: linear-gradient(90deg, var(--sunken) 50%, var(--surface) 50%); }
.sa-heroart__card .arr svg { width: 34px; height: 20px; fill: none; stroke: var(--rasp); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.sa-heroart__card--back { left: 0; top: 112px; width: 400px; transform: rotate(-3deg); }
.sa-heroart__card--front { left: 46px; top: 236px; }
.sa-heroart__chip { position: absolute; left: 96px; bottom: 0; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-pill); padding: 6px 14px;
  box-shadow: var(--card); color: var(--muted); }

/* ------------------------------------------------------------------ trending strip */
.sa-trending { border-block: 1px solid var(--rule); background: var(--surface); }
.sa-trending__row { display: flex; align-items: center; gap: var(--space-6); min-height: 68px; padding-block: var(--space-3); }
.sa-trending__label { display: inline-flex; align-items: center; gap: var(--space-2); flex: none; color: var(--rasp); }
.sa-trending__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-2); }
.sa-trend { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border: 1px solid var(--rule); border-radius: var(--radius-pill); background: var(--paper);
  color: var(--ink); text-decoration: none; font: 600 15px/20px var(--font-display); transition: box-shadow .15s ease-out; }
.sa-trend:hover { box-shadow: var(--raise); }
.sa-trend__op { font: 400 13px/1 var(--font-mono); color: var(--rasp); }
.sa-trending__empty { color: var(--muted); font-size: 15px; line-height: 22px; }

/* ------------------------------------------------------------------ featured head-to-head */
.sa-feature { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: var(--space-8); align-items: start; background: var(--surface);
  border: 1px solid var(--rule); border-radius: var(--radius-lg); box-shadow: var(--card); padding: var(--space-8); }
.sa-feature__names { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-3); font-size: 40px; line-height: 44px; letter-spacing: -.025em; margin-bottom: var(--space-3); }
.sa-feature__op { font: 400 18px/1 var(--font-mono); color: var(--rasp); }
.sa-feature__answer { background: var(--rasp-wash); border-radius: var(--radius-md); padding: var(--space-4); margin: var(--space-6) 0; }
.sa-feature__answer p + p { margin-top: var(--space-2); }
.sa-feature__more { margin-top: var(--space-3); color: var(--muted); }

/* ------------------------------------------------------------------ story cards */
.sa-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-6); }
.sa-story { padding: 0; overflow: hidden; display: flex; }
.sa-story:hover { box-shadow: var(--raise); }
.sa-story__link { display: flex; flex-direction: column; width: 100%; color: inherit; text-decoration: none; }
.sa-story__media { display: block; aspect-ratio: 16 / 8; background: var(--sunken); overflow: hidden; }
.sa-story__thumb { width: 100%; height: 100%; object-fit: cover; }
.sa-story__media--blank { display: flex; align-items: center; justify-content: center; gap: 14px;
  background: linear-gradient(135deg, var(--sunken), color-mix(in srgb, var(--mint) 60%, var(--sunken))); }
.sa-story__tile { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; background: var(--surface); color: var(--teal); border: 1px solid var(--rule); }
.sa-story__tile--approx { background: var(--rasp-fill); color: #ffffff; border-color: var(--rasp-fill); }
.sa-story__tile .sa-icon { width: 30px; height: 30px; }
.sa-story__tile--approx .sa-icon { stroke-width: 2.4; }
.sa-story__body { display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-6); flex: 1; }
.sa-story__meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-3); }
.sa-story__cat { font: 700 12px/16px var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--teal); }
.sa-story__title { font-size: 21px; line-height: 27px; font-weight: 700; letter-spacing: -.01em; }
.sa-story__link:hover .sa-story__title { color: var(--rasp); }
.sa-vs { font: 400 14px/1 var(--font-mono); color: var(--rasp); padding-inline: 2px; }
.sa-story__answer, .sa-story__dek { font-size: 15px; line-height: 23px; color: var(--muted); }
.sa-story__alabel { font: 700 11px/16px var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--rasp); margin-right: 4px; }
.sa-story__foot { margin-top: auto; padding-top: var(--space-3); border-top: 1px solid var(--rule); color: var(--muted); font-size: 13px; }
a.sa-moretile { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: var(--space-2); background: var(--rasp-wash); }
.sa-moretile__n { font-size: 44px; line-height: 48px; color: var(--rasp); }
.sa-moretile__label { font: 600 18px/24px var(--font-display); }
.sa-moretile__go { display: inline-flex; align-items: center; gap: 6px; color: var(--rasp); font-weight: 700; margin-top: var(--space-2); }

/* Empty state */
.sa-empty { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: var(--space-8); align-items: center; padding: var(--space-8); }
.sa-empty h2 { font-size: 32px; line-height: 38px; margin-bottom: var(--space-3); }
.sa-empty p { color: var(--muted); }
.sa-empty__note { display: grid; gap: var(--space-2); background: var(--mint); border-radius: var(--radius-md); padding: var(--space-6); font: 600 17px/25px var(--font-display); }
.sa-empty__note .sa-label { color: var(--ink); }

/* ------------------------------------------------------------------ section tiles */
.sa-sections { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-4); }
.sa-sectile { display: flex; flex-direction: column; gap: var(--space-2); height: 100%; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-lg);
  padding: var(--space-6); color: inherit; text-decoration: none; box-shadow: var(--card); transition: box-shadow .15s ease-out, transform .15s ease-out; }
a.sa-sectile:hover { box-shadow: var(--raise); transform: translateY(-2px); }
.sa-sectile h3 { font-size: 18px; line-height: 24px; }
.sa-sectile p { font-size: 14px; line-height: 21px; color: var(--muted); margin-bottom: var(--space-3); }
.sa-sectile__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; margin-bottom: var(--space-2); }
.sa-sectile__icon--0 { background: var(--mint); color: var(--teal); }
.sa-sectile__icon--1 { background: var(--rasp-wash); color: var(--rasp); }
.sa-sectile__status { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; color: var(--rasp); }
.sa-sectile .sa-chip { margin-top: auto; align-self: flex-start; color: var(--muted); }

/* ------------------------------------------------------------------ fee checks table, panels */
.sa-pricetable { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 22px; }
.sa-pricetable th, .sa-pricetable td { text-align: left; padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--rule); vertical-align: top; }
.sa-pricetable thead th { background: var(--sunken); font: 700 11px/16px var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--edge); }
.sa-pricetable tbody tr:last-child th, .sa-pricetable tbody tr:last-child td { border-bottom: 0; }
.sa-pricetable tbody th a { font: 600 16px/22px var(--font-display); color: var(--ink); text-decoration: none; }
.sa-pricetable tbody th a:hover { color: var(--rasp); }
.sa-pricetable__in { color: var(--muted); }

.sa-panels { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-4); }
.sa-panel { position: relative; display: flex; flex-direction: column; gap: var(--space-2); background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-lg);
  padding: var(--space-6); box-shadow: var(--card); }
.sa-panel__n { position: absolute; right: var(--space-6); top: var(--space-6); color: var(--muted); }
.sa-panel__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; background: var(--rasp-wash); color: var(--rasp); margin-bottom: var(--space-2); }
.sa-panel p { font-size: 15px; line-height: 23px; color: var(--muted); }
.sa-panel__fact { margin-top: auto; padding-top: var(--space-3); color: var(--teal) !important; font-size: 13px !important; }

/* ------------------------------------------------------------------ breadcrumbs, page heads, listings */
.sa-crumbs ol { list-style: none; margin: 0; padding: var(--space-6) 0 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; line-height: 20px; color: var(--muted); }
.sa-crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--edge); }
.sa-crumbs a { color: var(--muted); text-decoration: none; }
.sa-crumbs a:hover { color: var(--rasp); text-decoration: underline; }
.sa-crumbs [aria-current] { color: var(--ink); }
.sa-pagehead { padding-block: var(--space-8) var(--space-6); }
.sa-pagehead .sa-lead { margin-top: var(--space-4); }
.sa-pagehead .sa-data { margin-top: var(--space-4); }
.sa-pagehead--narrow { max-width: var(--column); }
.sa-listhead { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-8); align-items: end; }
.sa-listhead h1 { display: flex; align-items: center; gap: var(--space-4); }
.sa-listhead__icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--mint); color: var(--teal); flex: none; }
.sa-listhead__icon .sa-icon { width: 30px; height: 30px; }
.sa-listhead__facts { display: grid; grid-template-columns: repeat(2, minmax(120px, auto)); gap: var(--space-3); margin: 0; }
.sa-listhead__facts div { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-md); padding: var(--space-3) var(--space-4); }
.sa-listhead__facts dt { font: 700 11px/16px var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.sa-listhead__facts dd { margin: 2px 0 0; font-size: 18px; line-height: 24px; }
.sa-group + .sa-group { margin-top: var(--space-12); }
.sa-authorhead { display: flex; gap: var(--space-6); align-items: flex-start; }
.sa-teamfacts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); }
.sa-teamfacts p + p { margin-top: var(--space-2); color: var(--muted); font-size: 15px; line-height: 23px; }
.sa-author__social { list-style: none; padding: 0; margin: var(--space-3) 0 0; display: flex; gap: var(--space-3); }

/* ------------------------------------------------------------------ static pages */
.sa-page { padding-bottom: var(--space-12); }
.sa-page .sa-prose { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-lg); box-shadow: var(--card); padding: var(--space-8) var(--space-8); }
@media (min-width: 900px) { .sa-page--wide .sa-prose { max-width: var(--content); } }
.sa-ratecard { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); margin: var(--space-6) 0; }
.sa-page .sa-prose .sa-ratecard .sa-plan { margin: 0; }
.sa-ratecard .sa-plan h3 { margin: 0; }
.sa-ratecard .sa-plan p { margin: 0; }

/* ------------------------------------------------------------------ prose */
.sa-prose { max-width: var(--column); overflow-wrap: break-word; }
.sa-prose > * + * { margin-top: var(--space-4); }
.sa-prose h2 { font-size: 26px; line-height: 32px; margin-top: var(--space-12); scroll-margin-top: 96px; }
.sa-prose h3 { margin-top: var(--space-8); scroll-margin-top: 96px; }
.sa-prose > h2:first-child { margin-top: 0; }
.sa-prose ul, .sa-prose ol { padding-left: 1.3em; }
.sa-prose li + li { margin-top: var(--space-2); }
.sa-prose ul li::marker { color: var(--rasp); }
.sa-prose strong { font-weight: 700; }
.sa-prose code { font-family: var(--font-mono); font-size: .86em; background: var(--sunken); border: 1px solid var(--rule); border-radius: 6px; padding: 1px 5px; }
.sa-prose blockquote { margin: var(--space-6) 0; background: var(--mint); color: var(--ink); border-radius: var(--radius-md); padding: var(--space-4) var(--space-6); }
.sa-prose blockquote a { color: var(--ink); }
.sa-prose blockquote > * + * { margin-top: var(--space-2); }
.sa-table-scroll { overflow-x: auto; border: 1px solid var(--edge); border-radius: var(--radius-md); background: var(--surface); }
.sa-prose table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 22px; }
.sa-prose th, .sa-prose td { text-align: left; padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--rule); vertical-align: top; }
.sa-prose thead th { background: var(--sunken); border-bottom: 1px solid var(--edge); font-weight: 700; }
.sa-prose tbody tr:last-child td { border-bottom: 0; }
.sa-prose h2[id^="when-to-stay"] { display: flex; align-items: center; gap: var(--space-3); }
.sa-prose h2[id^="when-to-stay"]::before { content: ""; width: 32px; height: 32px; flex: none; border-radius: 10px; background: var(--mint) var(--waves) center / 22px no-repeat; }

/* ------------------------------------------------------------------ article */
.sa-article__head { padding-top: var(--space-6); }
.sa-article__head > * { max-width: 860px; }
.sa-article__kicker { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); margin-bottom: var(--space-4); }
.sa-article__head .sa-lead { margin-top: var(--space-4); }
.sa-byline { display: flex; align-items: center; gap: var(--space-3); margin-top: var(--space-6); }
.sa-byline p { display: flex; flex-direction: column; font-size: 15px; line-height: 22px; }
.sa-byline p > span:first-child { font-weight: 600; }
.sa-byline a { color: var(--ink); }
.sa-byline .sa-data { color: var(--muted); font-size: 13px; }
.sa-disclosure { display: flex; gap: var(--space-2); align-items: flex-start; margin-top: var(--space-6); font-size: 14px; line-height: 21px; color: var(--muted);
  background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-md); padding: var(--space-3) var(--space-4); }
.sa-disclosure .sa-icon { margin-top: 2px; color: var(--teal); }
.sa-disclosure strong { color: var(--ink); }
.sa-hero { margin: var(--space-8) 0 0; max-width: var(--content) !important; }
.sa-hero img { width: 100%; border-radius: var(--radius-lg); border: 1px solid var(--rule); aspect-ratio: 16 / 9; object-fit: cover; }
.sa-hero__credit { margin-top: var(--space-2); font-size: 13px; line-height: 18px; color: var(--muted); }
.sa-hero__credit a { color: var(--muted); }

.sa-article__top { padding-top: var(--space-8); }
.sa-article__top > * { max-width: 860px; }
.sa-answer { background: var(--rasp-wash); border: 1px solid var(--rule); border-radius: var(--radius-lg); padding: var(--space-6); }
.sa-answer .sa-label { color: var(--rasp); }
.sa-answer__text { font-size: 18px; line-height: 29px; }
.sa-answer__text p + p { margin-top: var(--space-3); }
.sa-answer__text strong { color: var(--ink); }
.sa-answer__picks { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--space-3); margin-top: var(--space-4); }
.sa-answer__pick { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-md); padding: var(--space-3) var(--space-4); font-size: 15px; line-height: 22px; color: var(--muted); }
.sa-answer__pick b { display: block; font: 700 17px/24px var(--font-display); color: var(--ink); }

.sa-matchup, .sa-spec, .sa-switches { padding-top: var(--space-12); }
.sa-matchup h2, .sa-spec h2, .sa-switches h2 { margin-bottom: var(--space-6); }
.sa-h2h-wrap { overflow-x: auto; border: 1px solid var(--edge); border-radius: var(--radius-md); background: var(--surface); }
.sa-h2h, .sa-spec__table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 22px; }
.sa-h2h th, .sa-spec__table th { background: var(--sunken); text-align: left; padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--edge); vertical-align: top; }
.sa-h2h th.sa-h2h__tool { font: 700 17px/24px var(--font-display); }
.sa-h2h thead th.sa-h2h__crit, .sa-spec__table thead th { font: 700 11px/16px var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.sa-h2h thead th.sa-h2h__crit { width: 28%; }
.sa-h2h td, .sa-spec__table td { padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--rule); vertical-align: top; }
.sa-h2h tbody th.sa-h2h__crit { background: transparent; font: 500 15px/22px var(--font-body); color: var(--muted); border-bottom: 1px solid var(--rule); }
.sa-h2h tbody tr:last-child td, .sa-h2h tbody tr:last-child th { border-bottom: 0; }
.sa-h2h td.is-pick { background: var(--rasp-wash); }
.sa-h2h code { font-family: var(--font-mono); font-size: 14px; }
.sa-spec__table tbody th { background: transparent; font: 600 16px/22px var(--font-display); border-bottom: 1px solid var(--rule); }
.sa-spec__table tbody tr:last-child td, .sa-spec__table tbody tr:last-child th { border-bottom: 0; }
.sa-spec__table tr.is-reviewed td, .sa-spec__table tr.is-reviewed th { background: var(--rasp-wash); }
.sa-spec__n { color: var(--muted); width: 48px; }
.sa-checked { display: block; color: var(--muted); font-size: 12px; line-height: 18px; }
.sa-spec__cta { text-align: right; white-space: nowrap; }
.sa-cite { font: 400 11px/1 var(--font-mono); margin-left: 2px; white-space: nowrap; }
.sa-cite a, .sa-cite span { color: var(--rasp); text-decoration: none; padding: 0 1px; }
.sa-cite a + a::before { content: ","; color: var(--muted); margin-right: 1px; }
.sa-cite a:hover { text-decoration: underline; }
.sa-pricerow { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); margin-top: var(--space-6); }
.sa-pricerow__item { display: grid; gap: var(--space-2); justify-items: start; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-lg); padding: var(--space-6); box-shadow: var(--card); }
.sa-pricerow__name { font: 700 20px/26px var(--font-display); }
.sa-pricerow .sa-data { color: var(--muted); }

/* Switch card: from X to Y */
.sa-switches__list { display: grid; gap: var(--space-4); max-width: 920px; }
.sa-switch { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.3fr); align-items: stretch; border: 1px solid var(--rule); border-radius: var(--radius-lg);
  overflow: hidden; background: var(--surface); box-shadow: var(--card); scroll-margin-top: 96px; }
.sa-switch__from { background: var(--sunken); padding: var(--space-4) var(--space-6) var(--space-6); }
.sa-switch__to { padding: var(--space-4) var(--space-6) var(--space-6); }
.sa-switch__name { font: 700 19px/25px var(--font-display); margin: 2px 0 0; }
.sa-switch__to .sa-switch__name, .sa-switch__to .sa-switch__name a { color: var(--teal); }
.sa-switch__to .sa-switch__name a { text-decoration-thickness: 1.5px; }
.sa-switch__arrow { display: grid; place-items: center; padding: 0 var(--space-3); background: linear-gradient(90deg, var(--sunken) 50%, var(--surface) 50%); }
.sa-switch__arrow svg { width: 40px; height: 24px; fill: none; stroke: var(--rasp); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.sa-switch ul { list-style: none; margin: var(--space-2) 0 0; padding: 0; display: grid; gap: 5px; font-size: 15px; line-height: 22px; }
.sa-switch li { padding-left: 18px; text-indent: -18px; }
.sa-switch li::before { display: inline-block; width: 18px; text-indent: 0; font-weight: 700; }
.sa-switch .why::before { content: "·"; color: var(--muted); }
.sa-switch .gain::before { content: "+"; color: var(--positive); }
.sa-switch .lose::before { content: "−"; color: var(--negative); }
.sa-switch .why { color: var(--muted); }
.sa-prose .sa-switch { margin: var(--space-6) 0; }
.sa-prose .sa-switch ul { padding-left: 0; }
.sa-prose .sa-switch li + li { margin-top: 0; }

.sa-article__after { padding-top: var(--space-8); display: grid; gap: var(--space-6); }
.sa-article__after > * { max-width: var(--column); }
.sa-article__grid { display: grid; grid-template-columns: minmax(0, var(--column)) minmax(0, 290px); justify-content: space-between; gap: var(--space-12);
  padding-top: var(--space-12); padding-bottom: var(--space-12); }
.sa-article__main { min-width: 0; }
.sa-article__aside { display: grid; gap: var(--space-4); align-content: start; position: sticky; top: 96px; }
.sa-aside-box { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-lg); padding: var(--space-6); display: grid; gap: var(--space-3); justify-items: start; }
.sa-aside-box p:not(.sa-label) { font-size: 15px; line-height: 23px; }
.sa-aside-box .sa-label + p { color: var(--muted); }
.sa-toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; width: 100%; }
.sa-toc a { display: block; padding: 5px 10px; margin-inline: -10px; border-radius: var(--radius-sm); color: var(--ink); text-decoration: none; font-size: 15px; line-height: 21px; }
.sa-toc a:hover { background: var(--rasp-wash); color: var(--rasp); }

.sa-block { margin-top: var(--space-12); scroll-margin-top: 96px; }
.sa-block > h2 { margin-bottom: var(--space-6); }
.sa-block__tool { margin: var(--space-6) 0 var(--space-3); }
.sa-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: var(--space-4); }
.sa-plan { display: grid; gap: var(--space-2); align-content: start; }
.sa-plan h4 { font: 600 19px/26px var(--font-display); }
.sa-plan--pick { border-color: var(--rasp); box-shadow: 0 0 0 2px var(--rasp), var(--card); }
.sa-plan--pick .sa-chip { justify-self: start; }
.sa-plan__price { font: 400 24px/30px var(--font-mono); }
.sa-plan__checked { font: 400 12px/18px var(--font-mono); color: var(--muted); }
.sa-plan__facts { margin: var(--space-2) 0 0; display: grid; gap: 0; border-top: 1px solid var(--rule); }
.sa-plan__facts div { display: flex; justify-content: space-between; gap: var(--space-3); padding: 8px 0; border-bottom: 1px solid var(--rule); font-size: 14px; line-height: 20px; }
.sa-plan__facts dt { color: var(--muted); }
.sa-plan__facts dd { margin: 0; text-align: right; }
.sa-plan ul { margin: var(--space-2) 0 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 15px; line-height: 22px; }
.sa-plan li::before { content: "✓"; color: var(--positive); font-weight: 700; margin-right: 8px; }

.sa-tool + .sa-tool { margin-top: var(--space-4); }
.sa-tool { scroll-margin-top: 96px; }
.sa-tool__head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); }
.sa-tool__head h3 { margin: 0; font-size: 21px; }
.sa-tool__meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-2) var(--space-4); margin: var(--space-3) 0 var(--space-4); font-size: 15px; color: var(--muted); }
.sa-proscons { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--space-4); }
.sa-proscons > div { background: var(--paper); border-radius: var(--radius-md); padding: var(--space-4); }
.sa-proscons ul { list-style: none; margin: var(--space-2) 0 0; padding: 0; display: grid; gap: 6px; font-size: 15px; line-height: 22px; }
.sa-proscons li { padding-left: 18px; text-indent: -18px; }
.sa-proscons .plus::before { content: "+"; color: var(--positive); font-weight: 700; display: inline-block; width: 18px; text-indent: 0; }
.sa-proscons .minus::before { content: "−"; color: var(--negative); font-weight: 700; display: inline-block; width: 18px; text-indent: 0; }

.sa-product { margin: var(--space-4) 0 0; }
.sa-product img { width: 100%; border-radius: var(--radius-md); border: 1px solid var(--rule); background: var(--sunken); }
.sa-product__caption { margin-top: var(--space-2); font-size: 13px; line-height: 18px; color: var(--muted); }
.sa-prose .sa-product { margin: var(--space-4) 0 var(--space-6); }
.sa-product--card { margin: var(--space-3) 0 0; }

.sa-faq details { border-bottom: 1px solid var(--rule); padding: var(--space-4) 0; }
.sa-faq details:first-of-type { border-top: 1px solid var(--rule); }
.sa-faq summary { cursor: pointer; font: 600 18px/26px var(--font-display); list-style: none; display: flex; justify-content: space-between; gap: var(--space-4); }
.sa-faq summary::-webkit-details-marker { display: none; }
.sa-faq summary::after { content: "+"; color: var(--rasp); font: 400 22px/26px var(--font-mono); }
.sa-faq details[open] summary::after { content: "−"; }
.sa-faq__a { margin-top: var(--space-2); color: var(--ink); }
.sa-faq__a p + p { margin-top: var(--space-2); }
.sa-corrections { padding-left: 1.2em; }
.sa-stay { background: color-mix(in srgb, var(--mint) 45%, var(--surface)); border: 1px solid var(--rule); border-radius: var(--radius-lg); padding: var(--space-6); }
.sa-stay .sa-prose h2 { margin-top: 0; }

.sa-sources { margin: var(--space-4) 0 0; padding: 0; list-style: none; border-top: 2px solid var(--ink); }
.sa-sources li { display: grid; grid-template-columns: 32px 1fr auto; gap: var(--space-3); padding: var(--space-3) 0; border-bottom: 1px solid var(--rule); font-size: 15px; line-height: 22px; scroll-margin-top: 96px; }
.sa-sources li:target { background: var(--rasp-wash); }
.sa-sources__n { color: var(--rasp); }
.sa-sources a { color: var(--ink); text-underline-offset: 3px; }
.sa-sources__domain { display: block; color: var(--muted); font-size: 13px; line-height: 18px; }
.sa-sources time { font: 400 12px/22px var(--font-mono); color: var(--muted); white-space: nowrap; }
.sa-updated { margin-top: var(--space-8); font-size: 15px; line-height: 23px; }

.sa-sponsor { border: 1.5px dashed var(--caution); background: var(--surface); border-radius: var(--radius-lg); padding: var(--space-6); margin-top: var(--space-8); }
.sa-sponsor h4 { font: 600 18px/25px var(--font-display); margin: var(--space-3) 0 var(--space-2); }
.sa-sponsor__text { font-size: 15px; line-height: 24px; margin-bottom: var(--space-4); }
.sa-sponsor small { display: block; margin-top: var(--space-3); color: var(--muted); font-size: 13px; line-height: 19px; }

.sa-author { display: flex; gap: var(--space-4); align-items: flex-start; margin-top: var(--space-8); }
.sa-author__avatar { display: grid; place-items: center; flex: none; border-radius: var(--radius-md); background: var(--rasp-solid); color: var(--on-rasp);
  font-family: var(--font-display); font-weight: 700; overflow: hidden; }
.sa-author__avatar img { width: 100%; height: 100%; object-fit: cover; }
.sa-author__name { font: 600 18px/25px var(--font-display); margin-top: 2px; }
.sa-author__name a { color: var(--ink); }
.sa-author__title { color: var(--muted); font-size: 15px; }
.sa-author__bio { color: var(--muted); font-size: 15px; line-height: 23px; margin-top: var(--space-2); }
.sa-author__links { font-size: 14px; margin-top: var(--space-2); }

/* ------------------------------------------------------------------ infographics */
.sa-figure { margin: var(--space-6) 0; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-lg); box-shadow: var(--card); padding: var(--space-6); }
.sa-article__top .sa-figure { margin-bottom: 0; }
.sa-figure__head { display: grid; gap: var(--space-1); margin-bottom: var(--space-4); }
.sa-figure__title { font: 700 20px/26px var(--font-display); }
.sa-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); }
.sa-bars__row { display: grid; grid-template-columns: minmax(0, 190px) minmax(0, 1fr) minmax(96px, auto); gap: var(--space-4); align-items: center; }
.sa-bars__value { text-align: right; }
.sa-bars__label { font-weight: 600; font-size: 15px; line-height: 21px; }
.sa-bars__label small { display: block; font-weight: 400; color: var(--muted); font-size: 13px; }
.sa-bars__track { display: block; height: 14px; border-radius: var(--radius-pill); background: var(--sunken); overflow: hidden; }
.sa-bars__fill { display: block; height: 100%; border-radius: var(--radius-pill); background: var(--teal); }
.sa-bars__row.is-pick .sa-bars__fill, .sa-h2hbar__side.is-pick .sa-bars__fill { background: var(--rasp-fill); }
.sa-bars__value { white-space: nowrap; }
.sa-figure__scale { color: var(--muted); margin-top: var(--space-3); font-size: 12px; }
.sa-h2hbar__metric { font-weight: 600; margin-bottom: var(--space-3); }
.sa-h2hbar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); }
.sa-h2hbar__side { background: var(--paper); border-radius: var(--radius-md); padding: var(--space-4); display: grid; gap: var(--space-2); }
.sa-h2hbar__side.is-pick { background: var(--rasp-wash); }
.sa-h2hbar__name { font: 600 17px/24px var(--font-display); }
.sa-stats { display: grid; gap: var(--space-3); margin: 0; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.sa-stats div { background: var(--paper); border-radius: var(--radius-md); padding: var(--space-4); }
.sa-stats dt { font: 700 11px/16px var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.sa-stats dd { margin: var(--space-1) 0 0; }
.sa-stats__note { font-size: 13px; line-height: 19px; color: var(--muted); }
.sa-matrix-wrap { overflow-x: auto; border: 1px solid var(--edge); border-radius: var(--radius-md); }
.sa-matrix { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 22px; }
.sa-matrix th, .sa-matrix td { text-align: left; padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--rule); }
.sa-matrix thead th { background: var(--sunken); border-bottom: 1px solid var(--edge); font-family: var(--font-display); }
.sa-matrix tbody tr:last-child th, .sa-matrix tbody tr:last-child td { border-bottom: 0; }
.sa-matrix tbody th { font-weight: 500; }
.sa-cell { font-weight: 600; }
.sa-cell--yes { color: var(--positive); }
.sa-cell--no { color: var(--negative); }
.sa-cell--partial { color: var(--caution); }
.sa-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); }
.sa-steps li { display: grid; grid-template-columns: 36px 1fr; gap: var(--space-3); align-items: start; }
.sa-steps__n { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--mint); color: var(--ink); }
.sa-steps strong { display: block; font-family: var(--font-display); font-weight: 600; }
.sa-steps span:not(.sa-chip) { display: block; color: var(--muted); font-size: 15px; line-height: 22px; }
.sa-steps .sa-chip { margin-top: var(--space-2); }
.sa-figure__caption { margin-top: var(--space-4); font-size: 15px; line-height: 23px; color: var(--muted); }
.sa-figure__source { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-2); margin-top: var(--space-3); padding-top: var(--space-3);
  border-top: 1px solid var(--rule); color: var(--muted); font-size: 12px; line-height: 18px; }
.sa-figure__source a { color: var(--rasp); }
.sa-prose .sa-steps, .sa-prose .sa-bars { padding-left: 0; }
.sa-prose .sa-steps li + li, .sa-prose .sa-bars li + li { margin-top: 0; }

/* ------------------------------------------------------------------ search, 404 */
.sa-col { max-width: calc(var(--column) + 2 * var(--gutter)); margin-inline: auto; }
.sa-search { padding-bottom: var(--space-12); }
.sa-search__form { display: flex; gap: var(--space-3); }
.sa-search__form input { flex: 1; min-width: 0; font: 400 17px/24px var(--font-body); color: var(--ink); background: var(--surface); border: 1.5px solid var(--edge);
  border-radius: var(--radius-md); padding: 11px 16px; }
.sa-search__form input:focus-visible { outline: 3px solid var(--rasp); outline-offset: 2px; }
.sa-search__status { margin-top: var(--space-4); }
.sa-search__results { list-style: none; margin: var(--space-4) 0 0; padding: 0; display: grid; gap: var(--space-3); }
.sa-search__title { display: block; font: 600 19px/26px var(--font-display); margin-top: var(--space-1); color: var(--ink); }
.sa-search__dek { color: var(--muted); font-size: 15px; line-height: 23px; margin-top: var(--space-1); }
.sa-notfound { padding-block: var(--space-12) var(--space-20); display: grid; gap: var(--space-4); }
.sa-notfound__links { display: flex; flex-wrap: wrap; gap: var(--space-4); }

/* ------------------------------------------------------------------ footer */
.sa-footer { background: var(--surface); border-top: 1px solid var(--rule); }
.sa-footer__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); gap: var(--space-8); padding-block: var(--space-12) var(--space-8); }
.sa-footer__grid.has-catalog { grid-template-columns: minmax(0, 1.4fr) repeat(4, minmax(0, 1fr)); }
.sa-footer__about p { margin-top: var(--space-4); color: var(--muted); font-size: 15px; line-height: 23px; max-width: 360px; }
.sa-footer__col { display: flex; flex-direction: column; gap: var(--space-2); align-items: flex-start; }
.sa-footer__col h2 { margin-bottom: var(--space-1); }
.sa-footer__col a { color: var(--ink); text-decoration: none; font-size: 15px; line-height: 22px; }
.sa-footer__col a:hover { color: var(--rasp); text-decoration: underline; }
.sa-footer__social { display: inline-flex; align-items: center; gap: var(--space-2); }
.sa-footer__social svg { width: 16px; height: 16px; flex: none; fill: currentColor; }
.sa-footer__sub { margin-top: var(--space-4); }
.sa-footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-3); padding-block: var(--space-6);
  background: linear-gradient(var(--rule), var(--rule)) no-repeat center top / calc(100% - 2 * var(--gutter)) 1px;
  font-size: 14px; line-height: 21px; color: var(--muted); }
.sa-footer__base a { color: var(--muted); }

/* ------------------------------------------------------------------ consent */
.sa-consent { position: fixed; right: var(--space-6); bottom: var(--space-6); z-index: 40; width: min(420px, calc(100vw - 32px)); background: var(--surface);
  border: 1px solid var(--rule); border-radius: var(--radius-lg); box-shadow: var(--raise); padding: var(--space-6); }
.sa-consent[hidden] { display: none; }
.sa-consent__title { font-size: 22px; line-height: 28px; margin-top: var(--space-1); }
.sa-consent__text { margin-top: var(--space-2); font-size: 15px; line-height: 23px; color: var(--muted); }
.sa-consent__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-4); }

/* ------------------------------------------------------------------ responsive */
@media (max-width: 1020px) {
  .sa-hero-home__grid { grid-template-columns: minmax(0, 1fr); }
  .sa-heroart { min-height: 400px; max-width: 520px; }
  .sa-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sa-sections { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sa-panels { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sa-feature { grid-template-columns: minmax(0, 1fr); }
  .sa-article__grid { grid-template-columns: minmax(0, 1fr); }
  .sa-article__aside { position: static; grid-row: 1; }
  .sa-article__aside .sa-toc { display: none; }
  .sa-footer__grid, .sa-footer__grid.has-catalog { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sa-footer__about { grid-column: 1 / -1; }
  .sa-teamfacts { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  :root { --gutter: var(--space-4); }
  body { font-size: 16px; line-height: 26px; }
  .sa-header__row { gap: var(--space-3); min-height: 62px; }
  .sa-logo { height: 24px; }
  .sa-nav { display: none; }
  .sa-header__tools { margin-left: auto; }
  .sa-iconbtn { width: 40px; height: 40px; }
  .sa-display-xl { font-size: 40px; line-height: 44px; }
  .sa-display-l { font-size: 32px; line-height: 38px; }
  .sa-lead { font-size: 17px; line-height: 27px; }
  .sa-sechead h2, .sa-empty h2 { font-size: 26px; line-height: 32px; }
  .sa-hero-home { padding-block: var(--space-8); }
  .sa-heroart { min-height: 360px; }
  .sa-heroart__tiles { grid-template-columns: repeat(3, 64px); gap: 12px; right: -8px; }
  .sa-heroart__tiles .t { width: 64px; height: 64px; border-radius: 18px; }
  .sa-heroart__tiles .r svg { width: 44px; height: 44px; }
  .sa-heroart__card { width: 100%; grid-template-columns: 1fr auto 1.15fr; font-size: 13px; }
  .sa-heroart__card .from, .sa-heroart__card .to { padding: 12px; }
  .sa-heroart__card b { font-size: 15px; line-height: 20px; }
  .sa-heroart__card--back { display: none; }
  .sa-heroart__card--front { left: 0; top: 64px; }
  .sa-heroart__chip { left: 12px; bottom: 0; }
  .sa-trending__row { flex-direction: column; align-items: flex-start; gap: var(--space-3); padding-block: var(--space-4); }
  .sa-grid, .sa-sections, .sa-panels { grid-template-columns: minmax(0, 1fr); }
  .sa-empty { grid-template-columns: minmax(0, 1fr); padding: var(--space-6); }
  .sa-feature { padding: var(--space-4); }
  .sa-h2h { font-size: 14px; line-height: 20px; }
  .sa-h2h th, .sa-h2h td { padding: 10px 10px; }
  .sa-h2h th.sa-h2h__tool { font-size: 15px; line-height: 20px; }
  .sa-h2h .sa-pick { margin-left: 0; margin-top: 4px; }
  .sa-h2h { table-layout: fixed; }
  .sa-h2h th, .sa-h2h td { overflow-wrap: anywhere; hyphens: auto; -webkit-hyphens: auto; }
  .sa-h2h code { white-space: normal; }
  .sa-feature__names { font-size: 30px; line-height: 34px; }
  .sa-listhead { grid-template-columns: minmax(0, 1fr); }
  .sa-authorhead { flex-direction: column; }
  .sa-switch { grid-template-columns: minmax(0, 1fr); }
  .sa-switch__arrow { padding: var(--space-2); background: linear-gradient(180deg, var(--sunken) 50%, var(--surface) 50%); }
  .sa-switch__arrow svg { transform: rotate(90deg); width: 32px; }
  .sa-switch__from, .sa-switch__to { padding: var(--space-4); }
  .sa-pricerow { grid-template-columns: minmax(0, 1fr); }
  .sa-ratecard { grid-template-columns: minmax(0, 1fr); }
  .sa-page .sa-prose { padding: var(--space-6) var(--space-4); }
  .sa-h2hbar { grid-template-columns: minmax(0, 1fr); }
  .sa-bars__row { grid-template-columns: minmax(0, 1fr) auto; }
  .sa-bars__label { grid-column: 1 / -1; }
  .sa-footer__grid, .sa-footer__grid.has-catalog { grid-template-columns: minmax(0, 1fr); gap: var(--space-6); }
  .sa-search__form { flex-direction: column; }
  /* tables become stacked cards */
  .sa-spec__table thead, .sa-pricetable thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .sa-spec__table tr, .sa-pricetable tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px var(--space-3); padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--rule); }
  .sa-spec__table tbody tr:last-child, .sa-pricetable tbody tr:last-child { border-bottom: 0; }
  .sa-spec__table th, .sa-spec__table td, .sa-pricetable th, .sa-pricetable td { display: block; padding: 0; border: 0 !important; }
  .sa-spec__table .sa-spec__n { display: none; }
  .sa-spec__table td[data-label], .sa-pricetable td[data-label] { grid-column: 1 / -1; }
  .sa-spec__table tbody th, .sa-pricetable tbody th { grid-column: 1; }
  .sa-spec__cta { grid-column: 2; grid-row: 1; }
  .sa-consent { right: var(--space-4); bottom: var(--space-4); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  a.sa-card:hover, a.sa-sectile:hover, .sa-btn:hover { transform: none; }
}
