/* ============================================================
   BranchPy Studio v2 — Marketing component layer
   Ported from the approved website prototype (.design-reference-local/prototype.html).
   Self-contained + sx- prefixed so it never collides with the
   existing style.css / style.brand.css / style.studio-shell.css layers.
   ============================================================ */

:root {
  /* Global BranchPy Studio v2 brand tokens (canonical names per brand system) */
  --brand-navy: #0b1223;
  --brand-navy-deep: #070d1b;
  --brand-navy-mid: #0f1729;
  --brand-orange: #ff853c;
  --brand-orange-hover: #e8742e;
  --brand-orange-soft: #fff6f0;
  --brand-blue: #3b7fff;
  --surface-white: #ffffff;
  --surface-light: #f6f8fa;
  --surface-off-white: #f8fafc;
  --text-dark: #0b1223;
  --text-body: #475569;
  --text-muted: #64748b;
  --border-light: #e7ebf0;

  --sx-navy: #0b1223;
  --sx-navy-deep: #070d1b;
  --sx-navy-mid: #0f1729;
  --sx-orange: #ff853c;
  --sx-orange-h: #e8742e;
  --sx-og: rgba(255, 133, 60, .2);
  --sx-orange-soft: #fff6f0;
  --sx-blue: #3b7fff;
  --sx-white: #fff;
  --sx-surface: #f6f8fa;
  --sx-body: #475569;
  --sx-muted: #64748b;
  --sx-ink: #0b1223;
  --sx-border: #e7ebf0;
  --sx-r: 12px;
  --sx-r-lg: 16px;
  --sx-r-xl: 22px;
  --sx-mw: 1180px;
  --sx-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff853c' stroke-width='2.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}

/* ---- official logo lockup ---- */
.brand-logo { display: block; width: auto; }
.studio-brand .brand-logo { height: 33px; }
.studio-footer-brand .brand-logo { height: 28px; }
@media (max-width: 600px) { .studio-brand .brand-logo { height: 28px; } }
@media (max-width: 420px) { .studio-brand .brand-logo { height: 24px; } }
/* Note: the SVGs were cropped to the artwork bounds (viewBox 70 78 875 207),
   so the same px height now renders a noticeably larger, fuller lockup. */

/* ---- scope reset ---- */
.sx { font-family: 'Poppins', system-ui, sans-serif; }
.sx *, .sx *::before, .sx *::after { box-sizing: border-box; }
.sx-container { max-width: var(--sx-mw); margin: 0 auto; padding: 0 2rem; }
.sx svg { display: block; }

.sx h1, .sx h2, .sx h3, .sx h4 { line-height: 1.18; letter-spacing: -.02em; color: var(--sx-ink); }
.sx h1 { font-size: clamp(2.3rem, 5vw, 3.7rem); font-weight: 700; letter-spacing: -.035em; line-height: 1.08; }
.sx h2 { font-size: clamp(1.7rem, 3.3vw, 2.5rem); font-weight: 700; letter-spacing: -.03em; }
.sx h3 { font-size: 1.2rem; font-weight: 600; }

/* ---- buttons ---- */
.sx-btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.7rem; border-radius: 10px; font-family: inherit; font-weight: 500;
  font-size: .92rem; border: none; cursor: pointer; transition: all .22s; text-decoration: none;
  white-space: nowrap; line-height: 1; }
.sx-btn-lg { padding: 1rem 2rem; font-size: .98rem; }
.sx-btn-sm { padding: .58rem 1.15rem; font-size: .86rem; }
.sx-btn-white { background: var(--sx-white); color: var(--sx-navy); }
.sx-btn-white:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(0,0,0,.18); color: var(--sx-navy); }
.sx-btn-orange { background: var(--sx-orange); color: #fff; box-shadow: 0 2px 14px var(--sx-og); }
.sx-btn-orange:hover { background: var(--sx-orange-h); transform: translateY(-2px); box-shadow: 0 10px 28px var(--sx-og); color: #fff; }
.sx-btn-dark { background: rgba(255,255,255,.06); color: rgba(255,255,255,.9); border: 1px solid rgba(255,255,255,.14); }
.sx-btn-dark:hover { background: rgba(255,255,255,.12); color: #fff; transform: translateY(-2px); }
.sx-btn-ghost { background: transparent; color: var(--sx-navy); border: 1px solid var(--sx-border); }
.sx-btn-ghost:hover { border-color: var(--sx-orange); color: var(--sx-orange); transform: translateY(-2px); }

/* ---- icons ---- */
.sx-ic { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  border-radius: 11px; width: 46px; height: 46px; transition: .2s; }
.sx-ic svg { width: 21px; height: 21px; stroke-width: 1.6; }
.sx-ic-light { background: var(--sx-surface); border: 1px solid var(--sx-border); color: var(--sx-navy); }
.sx-ic-dark { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); color: #fff; }

/* ---- eyebrows ---- */
.sx-ey { display: inline-block; font-size: .7rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: .14em; padding: .3rem .85rem; border-radius: 999px; margin-bottom: 1rem; }
.sx-ey-o, .sx-ey-b { background: rgba(100,116,139,.08); color: #5b6675; border: 1px solid rgba(100,116,139,.22); }
.sx-ey-d { background: rgba(255,255,255,.05); color: rgba(255,255,255,.6); border: 1px solid rgba(255,255,255,.16); }

/* ---- sections ---- */
.sx-sec { padding: 6rem 0; background: var(--sx-white); }
.sx-sec-alt { background: var(--sx-surface); }
.sx-sec-hd { text-align: center; max-width: 640px; margin: 0 auto 3.5rem; }
.sx-sec-hd p { color: var(--sx-body); margin-top: .8rem; font-size: 1.02rem; font-weight: 300; }
.sx-sec-dark { background: linear-gradient(165deg, #070d1b 0%, #0e1729 60%, #111b32 100%); position: relative; overflow: hidden; }
.sx-sec-dark::before { content: ''; position: absolute; top: -30%; left: 50%; transform: translateX(-50%);
  width: 900px; height: 560px; background: radial-gradient(ellipse, rgba(59,127,255,.08), transparent 70%); pointer-events: none; }
.sx-sec-dark > * { position: relative; z-index: 1; }
.sx-sec-dark h2, .sx-sec-dark h3 { color: #fff; }
.sx-sec-dark .sx-sec-hd p { color: rgba(255,255,255,.5); }

/* ---- hero ---- */
.sx-hero { background: var(--sx-navy-deep); display: flex; flex-direction: column; align-items: center;
  justify-content: center; text-align: center; position: relative; overflow: hidden; padding: 8rem 2rem 3.5rem; }
.sx-hero-grid { position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.022) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.022) 1px, transparent 1px);
  background-size: 64px 64px; mask-image: radial-gradient(ellipse 90% 75% at 50% 0%, black 30%, transparent 100%); }
.sx-g1 { position: absolute; top: -25%; left: 50%; transform: translateX(-50%); width: 1000px; height: 680px;
  background: radial-gradient(ellipse, rgba(59,127,255,.14) 0%, transparent 65%); pointer-events: none; }
.sx-g2 { position: absolute; top: 30%; right: -8%; width: 480px; height: 480px;
  background: radial-gradient(ellipse, rgba(255,133,60,.06) 0%, transparent 70%); pointer-events: none; }
.sx-hero-content { position: relative; z-index: 1; width: 100%; }
.sx-hero-badge { display: inline-flex; align-items: center; gap: .55rem; background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1); color: rgba(255,255,255,.7); font-size: .78rem; font-weight: 400;
  padding: .36rem 1rem .36rem .4rem; border-radius: 999px; margin-bottom: 1.4rem; backdrop-filter: blur(8px); }
.sx-hero-pill { display: inline-flex; align-items: center; gap: .4rem; background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18); padding: .16rem .6rem; border-radius: 999px; font-size: .72rem;
  font-weight: 600; color: rgba(255,255,255,.7); }
.sx-hero h1 { color: #fff; max-width: 880px; margin: 0 auto 1.1rem; }
.sx-hero h1 em { font-style: normal; color: var(--sx-orange); }
.sx-hero-sub { font-size: 1.05rem; color: rgba(255,255,255,.55); max-width: 620px; margin: 0 auto 1.8rem; line-height: 1.65; font-weight: 300; }
.sx-hero-actions { display: flex; gap: .85rem; justify-content: center; flex-wrap: wrap; margin-bottom: 1rem; }
.sx-hero-micro { font-size: .82rem; color: rgba(255,255,255,.4); margin-bottom: 2.5rem; font-weight: 300; }
.sx-hero-micro a { color: var(--sx-orange); font-weight: 500; }
.sx-hero-screen { width: 100%; max-width: 1000px; margin: 0 auto; }
.sx-browser { background: #10151f; border: 1px solid rgba(255,255,255,.08); border-radius: 14px 14px 0 0;
  overflow: hidden; box-shadow: 0 -4px 80px rgba(59,127,255,.08), 0 -40px 110px rgba(0,0,0,.4); }
.sx-browser-bar { height: 42px; background: #0c1018; border-bottom: 1px solid rgba(255,255,255,.06);
  display: flex; align-items: center; padding: 0 1rem; gap: .55rem; }
.sx-dot { width: 11px; height: 11px; border-radius: 50%; }
.sx-dot-r { background: #ff5f56; } .sx-dot-y { background: #febc2e; } .sx-dot-g { background: #27c93f; }
.sx-burl { flex: 1; height: 25px; background: rgba(255,255,255,.04); border-radius: 6px; display: flex;
  align-items: center; justify-content: center; font-size: .71rem; font-family: 'JetBrains Mono', monospace;
  color: rgba(255,255,255,.26); margin: 0 .75rem; }
.sx-browser img { width: 100%; display: block; }

/* ---- value strip ---- */
.sx-vstrip { background: var(--sx-navy-mid); padding: 1.4rem 0; border-top: 1px solid rgba(255,255,255,.05); }
.sx-vstrip-row { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; }
.sx-vi { display: flex; align-items: center; gap: .55rem; font-size: .85rem; color: rgba(255,255,255,.58);
  font-weight: 300; padding: .5rem 1.6rem; border-right: 1px solid rgba(255,255,255,.07); }
.sx-vi:last-child { border-right: none; }
.sx-vi svg { width: 15px; height: 15px; stroke-width: 2; color: var(--sx-orange); flex-shrink: 0; }

/* ---- detect grid ---- */
.sx-detect-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2rem; }
.sx-detect-item { display: flex; align-items: flex-start; gap: 1rem; padding: 1.4rem; background: var(--sx-white);
  border: 1px solid var(--sx-border); border-radius: var(--sx-r-lg); transition: .2s; }
.sx-detect-item:hover { border-color: rgba(255,133,60,.4); box-shadow: 0 8px 28px rgba(11,18,35,.05); }
.sx-detect-item:hover .sx-ic-light { color: var(--sx-orange); border-color: rgba(255,133,60,.3); background: var(--sx-orange-soft); }
.sx-detect-item h4 { font-size: .92rem; margin: 0 0 .25rem; color: var(--sx-ink); font-weight: 600; }
.sx-detect-item p { font-size: .83rem; color: var(--sx-muted); margin: 0; line-height: 1.5; }

/* ---- detect split block: cards left, screenshot showcase right ---- */
.sx-detect-block { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 3.25rem; align-items: center; margin-top: 2.5rem; }
.sx-detect-cards { display: flex; flex-direction: column; gap: .85rem; }
.sx-detect-cards .sx-detect-item { padding: 1.05rem 1.25rem; }
.sx-detect-note { display: flex; align-items: center; gap: .55rem; font-size: .84rem; color: var(--sx-muted); margin: .8rem 0 0; padding-left: .25rem; }
.sx-detect-note svg { width: 15px; height: 15px; stroke-width: 2; color: var(--sx-orange); flex-shrink: 0; }

/* product-showcase panel: two large screenshots stacked directly inside one
   shared light container — no inner cards, no captions. Fixed-height frames
   use a top-anchored crop so the showcase height matches the left column;
   the full screenshots remain available via the lightbox. */
.sx-detect-showcase { min-width: 0; display: flex; flex-direction: column; gap: 1.1rem;
  padding: 1.25rem; border-radius: 24px;
  background: linear-gradient(150deg, var(--sx-orange-soft) 0%, rgba(11,18,35,.04) 100%); }
.sx .sx-detect-showcase .sx-detect-shot { width: 100%; height: 264px; border-radius: 14px;
  box-shadow: 0 14px 36px rgba(11,18,35,.16); }
.sx .sx-detect-showcase .sx-detect-shot img { display: block; width: 100%; height: 100%; max-width: none;
  object-fit: cover; object-position: top center; }
@media (max-width: 960px) {
  .sx-detect-block { grid-template-columns: 1fr; gap: 2.5rem; }
  .sx-detect-showcase { width: 100%; max-width: 560px; margin: 0 auto; }
}
@media (max-width: 560px) {
  .sx-detect-showcase { padding: .9rem; border-radius: 18px; }
  .sx .sx-detect-showcase .sx-detect-shot { height: 250px; }
}

/* ---- steps ---- */
.sx-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; max-width: 840px; margin: 0 auto; position: relative; }
.sx-steps::before { content: ''; position: absolute; top: 33px; left: calc(16.66% + 24px); right: calc(16.66% + 24px);
  height: 1px; background: linear-gradient(90deg, var(--sx-orange), var(--sx-blue)); opacity: .4; }
.sx-step { text-align: center; position: relative; z-index: 1; padding: 2rem 1.4rem; background: var(--sx-white);
  border: 1px solid var(--sx-border); border-radius: var(--sx-r-lg); transition: .22s; }
.sx-step:hover { border-color: rgba(255,133,60,.4); box-shadow: 0 10px 30px rgba(11,18,35,.06); transform: translateY(-3px); }
.sx-snum { width: 48px; height: 48px; border-radius: 50%; background: var(--sx-white); border: 1.5px solid var(--sx-orange);
  color: var(--sx-orange); font-size: 1.05rem; font-weight: 700; display: flex; align-items: center; justify-content: center; margin: 0 auto 1.1rem; }
.sx-step h4 { font-size: .98rem; margin: 0 0 .4rem; font-weight: 600; }
.sx-step p { font-size: .86rem; color: var(--sx-muted); margin: 0; font-weight: 300; }

/* ---- promise grid (dark) ---- */
.sx-promise-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.1rem; max-width: 840px; margin: 0 auto; }
.sx-promise-item { padding: 1.6rem; background: rgba(255,255,255,.025); border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--sx-r-lg); transition: .2s; }
.sx-promise-item:hover { border-color: rgba(255,133,60,.3); }
.sx-promise-item .sx-ic { margin-bottom: 1rem; }
.sx-promise-item h4 { color: #fff; font-size: .98rem; margin: 0 0 .4rem; font-weight: 600; }
.sx-promise-item p { font-size: .86rem; color: rgba(255,255,255,.48); margin: 0; line-height: 1.6; font-weight: 300; }

/* ---- feature cards ---- */
.sx-feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; margin-top: 2rem; }
/* Deliberate column modifier: 4-item sections use 2x2 instead of an orphaned 3+1 */
.sx-feat-grid.cols-2, .sx-detect-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
/* 4 numbered steps: 4 across on desktop (no 3+1 orphan), 2x2 tablet, 1 col mobile */
.sx-steps.sx-steps-4 { grid-template-columns: repeat(4, 1fr); max-width: 960px; }
.sx-steps.sx-steps-4::before { display: none; }
.sx-feat-card { position: relative; padding: 1.6rem 1.4rem; background: var(--sx-white); border: 1px solid var(--sx-border);
  border-radius: var(--sx-r-lg); transition: .22s; }
.sx-feat-card:hover { border-color: rgba(255,133,60,.4); transform: translateY(-3px); box-shadow: 0 10px 30px rgba(11,18,35,.06); }
.sx-feat-card:hover .sx-ic-light { color: var(--sx-orange); border-color: rgba(255,133,60,.3); background: var(--sx-orange-soft); }
.sx-feat-card .sx-ic { margin-bottom: 1rem; }
.sx-feat-card h4 { font-size: .98rem; margin: 0 0 .35rem; font-weight: 600; }
.sx-feat-card p { font-size: .84rem; color: var(--sx-muted); margin: 0; font-weight: 300; }
.sx-soon { position: absolute; top: 1rem; right: 1rem; font-size: .6rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: .05em; color: var(--sx-orange-h); background: var(--sx-orange-soft); border: 1px solid rgba(255,133,60,.3);
  padding: .18rem .5rem; border-radius: 999px; }

/* ---- tiers ---- */
.sx-tier-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; margin-top: 3rem; max-width: 900px; margin-left: auto; margin-right: auto; }
.sx-tier-card { background: var(--sx-white); border: 1px solid var(--sx-border); border-radius: var(--sx-r-lg);
  padding: 2rem 1.6rem; display: flex; flex-direction: column; transition: .22s; position: relative; }
.sx-tier-card:hover { border-color: rgba(255,133,60,.4); box-shadow: 0 12px 34px rgba(11,18,35,.07); transform: translateY(-3px); }
.sx-tier-card.pop { border-color: var(--sx-orange); box-shadow: 0 8px 32px rgba(255,133,60,.1); }
.sx-tier-badge { position: absolute; top: -11px; left: 50%; transform: translateX(-50%); background: #eceff3; color: #475569;
  border: 1px solid #cdd5df; font-size: .63rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em;
  padding: .24rem .85rem; border-radius: 999px; white-space: nowrap; }
.sx-tier-name { font-size: 1.12rem; font-weight: 600; color: var(--sx-ink); margin: .25rem 0 .15rem; }
.sx-tier-sub { font-size: .72rem; color: var(--sx-muted); font-weight: 500; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 1.1rem; }
.sx-tier-price { font-size: 2.1rem; font-weight: 700; color: var(--sx-ink); line-height: 1; margin-bottom: .25rem; letter-spacing: -.02em; }
.sx-tier-price small { font-size: .74rem; font-weight: 300; color: var(--sx-muted); display: block; margin-top: .3rem; }
.sx-tier-feats { list-style: none; padding: 0; display: flex; flex-direction: column; gap: .55rem; margin: 1.25rem 0 1.5rem; flex: 1; }
.sx-tier-feats li { position: relative; padding-left: 1.6rem; font-size: .85rem; color: var(--sx-body); font-weight: 300; }
.sx-tier-feats li::before { content: ''; position: absolute; left: 0; top: .18em; width: 14px; height: 14px; background: var(--sx-check) no-repeat center/contain; }
.sx-tier-card .sx-btn { width: 100%; white-space: normal; line-height: 1.35; text-align: center; }
.sx-tier-note { text-align: center; margin-top: 1.5rem; font-size: .85rem; color: var(--sx-muted); font-style: italic; }

/* ---- CTA banner ---- */
.sx-cta-banner { background: linear-gradient(140deg, var(--sx-navy-deep) 0%, #0e1729 100%); position: relative; overflow: hidden; padding: 6rem 0; text-align: center; }
.sx-cta-banner::before { content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 680px; height: 380px; background: radial-gradient(ellipse, rgba(59,127,255,.1), transparent 70%); pointer-events: none; }
.sx-cta-banner > * { position: relative; z-index: 1; }
.sx-cta-banner h2 { color: #fff; margin-bottom: 1rem; }
.sx-cta-banner p { color: rgba(255,255,255,.5); max-width: 520px; margin: 0 auto 2.4rem; font-size: 1.02rem; font-weight: 300; }
.sx-cta-actions { display: flex; gap: .85rem; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   Interior-page system (page hero + feature rows + screenshot frame)
   Reused across What BranchPy Does, About, and other content pages.
   ============================================================ */

/* Let a dark page hero run full-bleed under the fixed header (like the homepage),
   instead of sitting below the default 88px main offset. */
body.studio-hero-page main { padding-top: 0; }

.sx-page-hero {
  background: linear-gradient(165deg, #070d1b 0%, #0e1729 60%, #111b32 100%);
  padding: calc(var(--studio-header-offset, 88px) + 2.5rem) 0 4.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.sx-page-hero::before {
  content: ''; position: absolute; top: -30%; left: 50%; transform: translateX(-50%);
  width: 900px; height: 560px;
  background: radial-gradient(ellipse, rgba(59, 127, 255, .1), transparent 70%);
  pointer-events: none;
}
.sx-page-hero > * { position: relative; z-index: 1; }
.sx-page-hero h1 { color: #fff; max-width: 780px; margin: 0 auto 1rem; }
.sx-page-hero p { color: rgba(255, 255, 255, .55); max-width: 640px; margin: 0 auto; font-size: 1.08rem; font-weight: 300; line-height: 1.7; }

/* ---- feature rows (alternating text / screenshot) ---- */
.sx-frow { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; margin-bottom: 5rem; }
.sx-frow:last-child { margin-bottom: 0; }
.sx-frow.rev .sx-ft { order: 2; }
.sx-frow.rev .sx-fv { order: 1; }
.sx-ft-tag { display: inline-flex; align-items: center; gap: .45rem; background: rgba(100, 116, 139, .08);
  border: 1px solid rgba(100, 116, 139, .22); color: #5b6675; font-size: .74rem; font-weight: 600;
  padding: .3rem .75rem; border-radius: 999px; margin-bottom: 1rem; }
.sx-ft h3 { font-size: 1.45rem; margin-bottom: .85rem; font-weight: 600; }
.sx-ft .sx-prob { color: var(--sx-ink); font-weight: 500; margin-bottom: .6rem; }
.sx-ft p { color: var(--sx-body); line-height: 1.7; font-size: .96rem; font-weight: 300; }
.sx-checklist { list-style: none; margin: 1.1rem 0 0; padding: 0; display: flex; flex-direction: column; gap: .5rem; }
.sx-checklist li { position: relative; padding-left: 1.7rem; font-size: .9rem; color: var(--sx-body); font-weight: 300; }
.sx-checklist li::before { content: ''; position: absolute; left: 0; top: .2em; width: 15px; height: 15px; background: var(--sx-check) no-repeat center/contain; }
.sx-sec-dark .sx-checklist li, .sx-cta-banner .sx-checklist li { color: rgba(255, 255, 255, .72); }
/* centered reading column for narrative / legal text */
.sx-reading { max-width: 760px; margin: 0 auto; }
.sx-reading p { color: var(--sx-body); line-height: 1.8; font-size: 1rem; margin-bottom: 1rem; }
.sx-reading h2 { font-size: 1.5rem; margin: 2.25rem 0 .85rem; }
.sx-reading h3 { font-size: 1.12rem; margin: 1.5rem 0 .5rem; }
.sx-reading ul { margin: 0 0 1rem 0; padding-left: 1.2rem; }
.sx-reading li { color: var(--sx-body); line-height: 1.7; margin: .35rem 0; }
.sx-reading blockquote { margin: 1.25rem 0; padding: 1rem 1.4rem; background: var(--sx-orange-soft); border-left: 3px solid var(--sx-orange); border-radius: 0 8px 8px 0; color: var(--sx-ink); font-style: italic; }
.sx-reading-meta { font-family: 'JetBrains Mono', monospace; font-size: .8rem; color: var(--sx-muted); margin-bottom: 1.5rem; }
.sx-reading h4 { font-size: 1rem; margin: 1.4rem 0 .4rem; color: var(--sx-ink); font-weight: 600; }
.sx-reading strong { color: var(--sx-ink); }
.sx-reading a { color: var(--sx-orange-h); }
.sx-reading hr { border: none; border-top: 1px solid var(--sx-border); margin: 2.25rem 0; }
.sx-reading code { font-family: 'JetBrains Mono', monospace; font-size: .85em; background: #f1f5f9; color: #b3471f; padding: .12em .42em; border-radius: 5px; }
.sx-reading pre { background: #0f1729; color: #c7d2e5; padding: 1rem 1.2rem; border-radius: 10px; overflow-x: auto; margin: 1.25rem 0; font-size: .85rem; line-height: 1.6; border: 1px solid rgba(255,255,255,.08); }
.sx-reading pre code { background: none; color: inherit; padding: 0; font-size: 1em; }
.sx-reading table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: .92rem; }
.sx-reading th { text-align: left; padding: .7rem .85rem; border-bottom: 2px solid var(--sx-border); color: var(--sx-ink); font-weight: 600; }
.sx-reading td { padding: .7rem .85rem; border-bottom: 1px solid var(--sx-border); color: var(--sx-body); vertical-align: top; }
.sx-reading ol { margin: 0 0 1rem 0; padding-left: 1.3rem; }
.sx-reading ol li { color: var(--sx-body); line-height: 1.7; margin: .35rem 0; }

/* ---- learn guide cards ---- */
.sx-guide-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 1.5rem; }
.sx-guide-card { display: flex; flex-direction: column; background: var(--sx-white); border: 1px solid var(--sx-border); border-radius: 14px; padding: 1.6rem 1.7rem; text-decoration: none; color: inherit; transition: border-color .2s, box-shadow .2s, transform .2s; }
.sx-guide-card:hover { transform: translateY(-3px); border-color: rgba(255, 133, 60, .4); box-shadow: 0 14px 34px rgba(11, 18, 35, .08); }
.sx-guide-cat { display: inline-flex; align-items: center; gap: .45rem; font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--sx-orange-h); margin-bottom: .75rem; }
.sx-guide-cat svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sx-guide-card h3 { font-size: 1.1rem; line-height: 1.35; margin: 0 0 .55rem; color: var(--sx-ink); font-weight: 600; }
.sx-guide-card p { font-size: .9rem; color: var(--sx-muted); line-height: 1.6; margin: 0 0 1.1rem; }
.sx-guide-meta { margin-top: auto; font-family: 'JetBrains Mono', monospace; font-size: .74rem; color: var(--sx-muted); }
.sx-crumb { font-size: .8rem; color: rgba(255, 255, 255, .55); margin-bottom: 1rem; }
.sx-crumb a { color: #ffb784; text-decoration: none; }

/* ---- learn article (reading) components, scoped to .sx-article ---- */
.sx-article-meta { font-family: 'JetBrains Mono', monospace; font-size: .8rem; color: rgba(255, 255, 255, .55); margin: .7rem 0 0; }
.sx-tag-row { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: 1.1rem; }
.sx-tag-row .sx-tag { display: inline-block; font-size: .72rem; padding: .25rem .7rem; border-radius: 999px; background: rgba(255, 255, 255, .07); color: #cdd6e6; border: 1px solid rgba(255, 255, 255, .14); }
.sx-article > :first-child { margin-top: 0; }
.sx-article .guide-prose p, .sx-article .guide-prose li { color: var(--sx-body); }
.sx-article .guide-prose h2, .sx-article .guide-prose h3 { color: var(--sx-ink); }
.sx-article .guide-prose { color: var(--sx-body); }
.sx-article .math-table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: .92rem; }
.sx-article .math-table th { text-align: left; padding: .7rem .85rem; border-bottom: 2px solid var(--sx-border); color: var(--sx-muted); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; font-size: .78rem; }
.sx-article .math-table td { padding: .7rem .85rem; border-bottom: 1px solid var(--sx-border); color: var(--sx-body); }
.sx-article .math-table .highlight { color: var(--sx-orange-h); font-weight: 600; }
.sx-article .flow-diagram { background: #0f1729; color: #c7d2e5; border: 1px solid rgba(255,255,255,.08); border-radius: 10px; padding: 1.5rem; font-family: 'JetBrains Mono', monospace; font-size: .82rem; line-height: 1.9; margin: 1.5rem 0; overflow-x: auto; }
.sx-article .flow-node { color: #fff; font-weight: 600; }
.sx-article .flow-choice { color: #a78bfa; }
.sx-article .flow-merge { color: #4ade80; }
.sx-article .flow-dead { color: #f87171; }
.sx-article .step-block { border: 1px solid var(--sx-border); border-radius: 12px; padding: 1.25rem 1.5rem; margin: 1.5rem 0; background: #fff; }
.sx-article .step-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--sx-orange-h); font-weight: 600; margin-bottom: .4rem; }
.sx-article .step-title { font-size: 1.1rem; font-weight: 600; margin-bottom: .5rem; color: var(--sx-ink); }
.sx-article img { width: 100%; max-width: 100%; height: auto; display: block; border-radius: 12px; object-fit: contain; }
.sx-article .tag { display: inline-block; font-size: .72rem; padding: .2rem .65rem; border-radius: 999px; background: var(--sx-orange-soft); color: var(--sx-orange-h); border: 1px solid rgba(255, 133, 60, .25); }
.sx-article .callout { border-left: 4px solid; border-radius: 0 10px 10px 0; padding: 1rem 1.4rem; margin: 1.75rem 0; font-size: .95rem; line-height: 1.7; color: var(--sx-body); }
.sx-article .callout strong { display: block; margin-bottom: .25rem; color: var(--sx-ink); }
.sx-article .callout-blue { border-color: var(--sx-blue); background: #eef4ff; }
.sx-article .callout-yellow { border-color: #f59e0b; background: #fff8eb; }
.sx-article .callout-red { border-color: #ef4444; background: #fef2f2; }
.sx-article .callout-green { border-color: #16a34a; background: #f0fdf4; }
.sx-article .code-block { background: #0f1729; color: #c7d2e5; border: 1px solid rgba(255, 255, 255, .08); border-radius: 10px; padding: 1rem 1.25rem; font-family: 'JetBrains Mono', monospace; font-size: .82rem; line-height: 1.7; overflow-x: auto; margin: 1.5rem 0; white-space: pre; }
.sx-article .code-block .comment { color: #6b7a90; }
.sx-article .code-block .error { color: #ff7a6b; }
.sx-article .cause-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); gap: 1rem; margin: 1.5rem 0; }
.sx-article .cause-card { background: #fef2f2; border: 1px solid #fecaca; border-radius: 10px; padding: 1rem 1.25rem; font-size: .9rem; }
.sx-article .cause-card strong { display: block; margin-bottom: .3rem; color: var(--sx-ink); }
.sx-article .cause-card span { color: var(--sx-muted); font-size: .85rem; line-height: 1.5; }
.sx-article-nav { max-width: 760px; margin: 2.75rem auto 0; display: flex; justify-content: space-between; gap: 1rem; padding-top: 1.75rem; border-top: 1px solid var(--sx-border); font-size: .9rem; }
.sx-article-nav a { color: var(--sx-orange-h); text-decoration: none; font-weight: 500; }
.sx-article-nav span:last-child { margin-left: auto; text-align: right; }

/* ---- use-case (case study) components ---- */
.sx-uc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start; }
.sx-ba { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.5rem; }
.sx-ba-col { border-radius: 12px; padding: 1.1rem 1.25rem; }
.sx-ba-col.before { background: #fef2f2; border: 1px solid #fecaca; }
.sx-ba-col.after { background: #f0fdf4; border: 1px solid #bbf7d0; }
.sx-ba-col h4 { font-size: .76rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin: 0 0 .65rem; }
.sx-ba-col.before h4 { color: #dc2626; }
.sx-ba-col.after h4 { color: #16a34a; }
.sx-ba-col ul { list-style: none; padding: 0; margin: 0; }
.sx-ba-col li { font-size: .9rem; line-height: 1.6; color: var(--sx-body); padding: .22rem 0 .22rem 1.4rem; position: relative; }
.sx-ba-col.before li::before { content: "—"; position: absolute; left: 0; color: #dc2626; font-weight: 700; }
.sx-ba-col.after li::before { content: "+"; position: absolute; left: 0; color: #16a34a; font-weight: 700; }
.sx-uc-shot { border-radius: 14px; overflow: hidden; border: 1px solid var(--sx-border); box-shadow: 0 14px 40px rgba(11, 18, 35, .1); background: #fff; }
.sx-uc-shot img { width: 100%; max-width: 100%; height: auto; display: block; object-fit: contain; }
.sx-uc-shot figcaption { font-size: .76rem; color: var(--sx-muted); text-align: center; padding: .65rem 1rem; background: #f6f8fb; }
.sx-uc-quote { text-align: center; max-width: 640px; margin: 0 auto; }
.sx-uc-quote blockquote { font-size: 1.3rem; font-style: italic; line-height: 1.7; color: var(--sx-ink); margin: 0 0 1rem; border: none; padding: 0; background: none; }
.sx-uc-quote cite { font-size: .9rem; color: var(--sx-muted); font-style: normal; }
@media (max-width: 760px) { .sx-uc-grid { grid-template-columns: 1fr; } .sx-ba { grid-template-columns: 1fr; } }

/* ---- changelog release cards ---- */
.sx-cl { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 1.4rem; }
.sx-cl-card { background: var(--sx-white); border: 1px solid var(--sx-border); border-radius: var(--sx-r-lg); padding: 1.75rem; }
.sx-cl-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1.25rem; flex-wrap: wrap; }
.sx-cl-title { font-size: 1.2rem; font-weight: 600; color: var(--sx-ink); margin: 0; flex: 1 1 260px; min-width: 0; }
.sx-cl-meta { display: flex; align-items: center; gap: .5rem; flex: 0 0 auto; white-space: nowrap; }
.sx-cl-ver { font-family: 'JetBrains Mono', monospace; font-size: .76rem; font-weight: 600; color: var(--sx-orange-h); background: var(--sx-orange-soft); border: 1px solid rgba(255, 133, 60, .3); padding: .2rem .55rem; border-radius: 6px; white-space: nowrap; }
.sx-cl-date { font-family: 'JetBrains Mono', monospace; font-size: .74rem; color: var(--sx-muted); white-space: nowrap; }
.sx-cl-note { color: var(--sx-muted); font-size: .92rem; line-height: 1.6; margin: .75rem 0 .5rem; }
.sx-cl-items { margin-top: .5rem; }
.sx-cl-items details { border-top: 1px solid var(--sx-border); }
.sx-cl-items summary { padding: .7rem 0; cursor: pointer; font-size: .92rem; font-weight: 500; color: var(--sx-ink); list-style: none; display: flex; align-items: baseline; }
.sx-cl-items summary::-webkit-details-marker { display: none; }
.sx-cl-items summary::before { content: '+'; color: var(--sx-orange); font-weight: 700; margin-right: .6rem; flex-shrink: 0; }
.sx-cl-items details[open] summary::before { content: '\2013'; }
.sx-cl-items details p { padding: 0 0 .85rem 1.4rem; margin: 0; color: var(--sx-body); font-size: .9rem; line-height: 1.65; }

/* ---- community category + post cards ---- */
.sx-comm-card { display: flex; flex-direction: column; padding: 1.6rem 1.4rem; background: var(--sx-white); border: 1px solid var(--sx-border); border-radius: var(--sx-r-lg); transition: .22s; }
.sx-comm-card:hover { border-color: rgba(255, 133, 60, .4); transform: translateY(-3px); box-shadow: 0 10px 30px rgba(11, 18, 35, .06); }
.sx-comm-card:hover .sx-ic-light { color: var(--sx-orange); border-color: rgba(255, 133, 60, .3); background: var(--sx-orange-soft); }
.sx-comm-card .sx-ic { margin-bottom: 1rem; }
.sx-comm-card-link { text-decoration: none; color: inherit; display: block; flex: 1; }
.sx-comm-card h4 { font-size: 1rem; margin: 0 0 .35rem; font-weight: 600; color: var(--sx-ink); }
.sx-comm-card p { font-size: .86rem; color: var(--sx-muted); margin: 0; font-weight: 300; }
.sx-comm-card .sx-btn { margin-top: 1rem; align-self: flex-start; }
.sx-post-card { display: block; background: var(--sx-white); border: 1px solid var(--sx-border); border-radius: var(--sx-r); padding: 1rem 1.2rem; text-decoration: none; color: inherit; margin-bottom: .75rem; transition: border-color .2s, box-shadow .2s; }
a.sx-post-card:hover { border-color: rgba(255, 133, 60, .4); box-shadow: 0 6px 20px rgba(11, 18, 35, .05); }
.sx-post-card h4 { margin: 0; font-size: .98rem; color: var(--sx-ink); font-weight: 600; }
.sx-post-card .sx-post-meta { color: var(--sx-muted); font-size: .85rem; white-space: nowrap; }
.sx-search-actions { display: flex; gap: .6rem; justify-content: center; flex-wrap: wrap; margin-top: 1.5rem; }

/* ============================================================
   Authentication pages (login / register / forgot / reset)
   Overrides each page's inline styles (this layer loads after them) with the
   BranchPy Studio system: refined navy card, consistent inputs, ORANGE submit.
   ============================================================ */
.auth-container { max-width: 460px; margin: 0 auto; padding: 3rem 1.5rem 4.5rem; }
.auth-card {
  background: rgba(17, 27, 50, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 2.25rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
}
.auth-card h1 { color: #fff; font-size: 1.55rem; }
.auth-card > p { color: #94a3b8; }
.auth-card .form-group { margin-bottom: 1.25rem; }
.auth-card .form-group label { color: #e2e8f0; font-weight: 500; }
.auth-card .form-group input,
.auth-card input[type="text"],
.auth-card input[type="email"],
.auth-card input[type="password"] {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  color: #fff;
  padding: 0.7rem 0.85rem;
}
.auth-card .form-group input:focus {
  outline: none;
  border-color: var(--brand-orange, #ff853c);
  box-shadow: 0 0 0 3px rgba(255, 133, 60, 0.18);
}
.auth-card .btn-primary {
  background: var(--brand-orange, #ff853c);
  border: 1px solid transparent;
  border-radius: 10px;
  font-weight: 600;
  padding: 0.78rem;
}
.auth-card .btn-primary:hover { background: var(--brand-orange-hover, #e8742e); transform: translateY(-1px); }
.auth-card .btn-primary:focus-visible { outline: 2px solid #ffb784; outline-offset: 2px; }
.auth-card .auth-links a,
.auth-card a:not(.btn-primary):not(.btn-github) { color: #ffb784; }
.auth-card .btn-github { border-radius: 10px; }

/* ---- legal hub document links ---- */
.sx-doc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 1rem; max-width: 760px; margin: 0 auto; }
.sx-doc-link { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.15rem 1.4rem; background: var(--sx-white); border: 1px solid var(--sx-border); border-radius: var(--sx-r-lg); text-decoration: none; color: var(--sx-ink); font-weight: 600; font-size: 1rem; transition: border-color .2s, box-shadow .2s, color .2s; }
.sx-doc-link:hover { border-color: rgba(255, 133, 60, .4); box-shadow: 0 8px 26px rgba(11, 18, 35, .05); color: var(--sx-orange-h); }
.sx-doc-link::after { content: '\2192'; color: var(--sx-orange); font-weight: 700; }
.sx-soon-pill { display: inline-block; font-size: .64rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em;
  color: var(--sx-orange-h); background: var(--sx-orange-soft); border: 1px solid rgba(255, 133, 60, .3);
  padding: .2rem .6rem; border-radius: 999px; margin-left: .5rem; vertical-align: middle; }

/* ---- screenshot frame ---- */
.sx-fv { border-radius: var(--sx-r-xl); overflow: hidden; box-shadow: 0 20px 55px rgba(11, 18, 35, .18); border: 1px solid var(--sx-border); background: var(--sx-navy-deep); align-self: center; }
/* Show the full Studio screen at its natural 980x660 ratio — never crop/zoom it. */
.sx-fv img { width: 100%; max-width: 100%; height: auto; display: block; object-fit: contain; cursor: zoom-in; }
.sx-fv-soon { aspect-ratio: 980 / 660; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .6rem;
  background: linear-gradient(150deg, #0a0e17, #0f1626); color: rgba(255, 255, 255, .5); font-family: 'JetBrains Mono', monospace; font-size: .85rem; }
.sx-fv-soon svg { width: 30px; height: 30px; stroke: var(--sx-orange); }

@media (max-width: 860px) {
  .sx-frow { grid-template-columns: 1fr; gap: 2rem; margin-bottom: 3.5rem; }
  .sx-frow.rev .sx-ft { order: 1; }
  .sx-frow.rev .sx-fv { order: 2; }
}

/* ---- reveal-on-scroll (only hides when JS is active, so content is never lost) ---- */
.js .sx-reveal { opacity: 0; transform: translateY(18px); transition: opacity .5s ease, transform .5s ease; }
.js .sx-reveal.in { opacity: 1; transform: translateY(0); }

/* ---- responsive ---- */
@media (max-width: 860px) {
  .sx-steps { grid-template-columns: 1fr; }
  .sx-steps::before { display: none; }
  .sx-promise-grid { grid-template-columns: 1fr; }
  .sx-tier-grid { grid-template-columns: 1fr; }
  .sx-vi { border-right: none; }
}
@media (prefers-reduced-motion: reduce) {
  .js .sx-reveal, .js .sx-reveal.in { opacity: 1; transform: none; transition: none; }
  .sx-btn, .sx-detect-item, .sx-step, .sx-feat-card, .sx-tier-card { transition: none; }
}

/* ============================================================
   Global responsive system (tablet + mobile)
   Desktop is the visual reference; these rules only adjust spacing
   and proportion — no desktop layout/branding is changed.
   ============================================================ */

/* Product screenshots & frames: always proportional, never overflow */
.sx img, .sx-fv img, .sx-browser img, .sx-uc-shot img { max-width: 100%; height: auto; }

/* Flexible grid/flex children must be allowed to shrink (prevents overflow) */
.sx-frow > *, .sx-uc-grid > *, .sx-2col > *,
.sx-feat-card, .sx-detect-item, .sx-step, .sx-tier-card,
.sx-promise-item, .sx-guide-card, .sx-comm-card, .sx-cl-card { min-width: 0; }

/* Reusable two-column utility that stacks on small screens */
.sx-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }

/* ---- Tablet / large ---- */
@media (max-width: 1024px) {
  .sx-container { padding: 0 1.5rem; }
  .sx-sec, .sx-cta-banner { padding: 4.75rem 0; }
  .sx-frow { gap: 3rem; }
}

/* ---- Tablet ---- */
@media (max-width: 768px) {
  .sx-container { padding: 0 1.5rem; }
  .sx-sec, .sx-cta-banner { padding: 4rem 0; }
  .sx-sec-hd { margin-bottom: 2.5rem; }
  .sx-page-hero { padding: calc(var(--studio-header-offset, 88px) + 1.5rem) 0 3rem; }
  .sx-hero { padding: 7rem 1.25rem 3rem; }
  .sx-hero-micro { margin-bottom: 2.5rem; }
  .sx-2col { grid-template-columns: 1fr; gap: 1.75rem; }
}

/* ---- Mobile ---- */
@media (max-width: 600px) {
  .sx-container { padding: 0 1.25rem; }
  .sx-sec, .sx-cta-banner { padding: 3.25rem 0; }
  .sx-sec-hd { margin-bottom: 2.25rem; }
  .sx-page-hero { padding: calc(var(--studio-header-offset, 88px) + 1rem) 0 2.5rem; }
  .sx-hero { padding: 6.5rem 1.25rem 2.5rem; }
  .sx-vi { padding: .4rem 1rem; font-size: .8rem; }
  .sx-uc-grid, .sx-article .cause-grid { gap: 1.25rem; }
  .sx-cl-card { padding: 1.4rem; }
}

/* ---- Small mobile: stack hero / CTA action buttons cleanly ---- */
@media (max-width: 480px) {
  .sx-hero-actions, .sx-cta-actions { flex-direction: column; align-items: stretch;
    width: 100%; max-width: 320px; margin-left: auto; margin-right: auto; }
  .sx-hero-actions .sx-btn, .sx-cta-actions .sx-btn { width: 100%; }
  .sx-article-nav { flex-direction: column; gap: .5rem; }
  .sx-article-nav span:last-child { text-align: left; margin-left: 0; }
}

/* ---- Deliberate card-grid breakpoints (avoid orphan rows) ----
   feat/detect grids are 3 columns on desktop; balanced fallbacks below. */
@media (max-width: 980px) {
  .sx-feat-grid, .sx-detect-grid { grid-template-columns: repeat(2, 1fr); }
  .sx-steps.sx-steps-4 { grid-template-columns: repeat(2, 1fr); max-width: 520px; }
}
@media (max-width: 600px) {
  .sx-feat-grid, .sx-detect-grid,
  .sx-feat-grid.cols-2, .sx-detect-grid.cols-2 { grid-template-columns: 1fr; }
  .sx-steps.sx-steps-4 { grid-template-columns: 1fr; max-width: 360px; }
}

/* ============================================================
   Reusable content card + callout (info panels, data pages)
   ============================================================ */
.sx-card { background: var(--sx-white); border: 1px solid var(--sx-border); border-radius: var(--sx-r-lg);
  padding: 1.6rem 1.75rem; }
.sx-card > :first-child { margin-top: 0; }
.sx-card > :last-child { margin-bottom: 0; }
.sx-card h3, .sx-card h4 { color: var(--sx-ink); font-weight: 600; margin: 0 0 .5rem; }
.sx-card p { color: #334155; line-height: 1.7; }
.sx-card ul, .sx-card ol { color: #334155; line-height: 1.75; margin: .35rem 0 0; padding-left: 1.2rem; }
.sx-card li { color: #334155; margin: .4rem 0; }
.sx-card li::marker { color: var(--sx-muted); }
.sx-card-note { color: var(--sx-muted); font-size: .88rem; line-height: 1.6; margin: .85rem 0 0; }
.sx-card-head { display: flex; align-items: center; gap: .65rem; margin-bottom: .85rem; }
.sx-card-head h3 { margin: 0; }
.sx-card-head .sx-ic { width: 38px; height: 38px; border-radius: 9px; }
.sx-card-head .sx-ic svg { width: 18px; height: 18px; }

.sx-callout { background: var(--sx-orange-soft); border: 1px solid var(--sx-border);
  border-left: 4px solid var(--sx-orange); border-radius: 0 12px 12px 0; padding: 1.5rem 1.75rem; }
.sx-callout.blue { background: #eef4ff; border-left-color: var(--sx-blue); }
.sx-callout h2, .sx-callout h3 { margin-top: 0; color: var(--sx-ink); }
.sx-callout p { color: var(--sx-body); line-height: 1.7; }
.sx-callout > :last-child { margin-bottom: 0; }

/* Reading column placed on a dark section needs light text */
.sx-sec-dark .sx-reading p, .sx-sec-dark .sx-reading li { color: rgba(255, 255, 255, .72); }
.sx-sec-dark .sx-reading h2, .sx-sec-dark .sx-reading h3, .sx-sec-dark .sx-reading h4, .sx-sec-dark .sx-reading strong { color: #fff; }
.sx-sec-dark .sx-reading a { color: #ffb784; }
.sx-sec-dark .sx-reading li::marker { color: var(--sx-orange); }


/* ============================================================
   Pricing / Compare Plans page
   ============================================================ */

/* hero trust notes */
.sx-trust-row { display: flex; flex-wrap: wrap; gap: .55rem 1.6rem; justify-content: center; margin-top: 1.4rem; }
.sx-trust-row span { display: inline-flex; align-items: center; gap: .45rem; font-size: .82rem; color: rgba(255, 255, 255, .6); }
.sx-trust-row svg { width: 13px; height: 13px; stroke: var(--sx-orange); flex-shrink: 0; }

/* plan-card footnote (account/parity truth line) */
.sx-plan-foot { font-size: .78rem; color: var(--sx-muted); line-height: 1.55; margin: 1.1rem 0 1.2rem; padding-top: .9rem; border-top: 1px dashed var(--sx-border); }

/* comparison table */
.sx-cmp-wrap { overflow-x: auto; border: 1px solid var(--sx-border); border-radius: var(--sx-r-lg); background: var(--sx-white); box-shadow: 0 10px 32px rgba(11, 18, 35, .05); }
.sx-cmp-table { width: 100%; border-collapse: collapse; min-width: 760px; font-size: .88rem; }
.sx-cmp-table th, .sx-cmp-table td { padding: .8rem 1.1rem; text-align: left; border-bottom: 1px solid var(--sx-border); vertical-align: top; }
.sx-cmp-table thead th { background: var(--sx-surface); color: var(--sx-ink); font-size: .84rem; font-weight: 600; white-space: nowrap; }
.sx-cmp-table thead th.rec { color: var(--sx-orange-h); }
.sx-cmp-table tbody th { color: var(--sx-ink); font-weight: 500; width: 26%; }
.sx-cmp-table tbody td { color: var(--sx-body); font-weight: 300; }
.sx-cmp-table tbody tr:last-child th, .sx-cmp-table tbody tr:last-child td { border-bottom: none; }
.sx-cmp-table tbody tr:hover { background: rgba(255, 133, 60, .03); }
.sx-cmp-yes { color: #1e9e5a; font-weight: 700; }
.sx-cmp-no { color: #b6c0cc; }

/* pricing FAQ grid */
.sx-pfaq-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.1rem; max-width: 960px; margin: 0 auto; }
.sx-pfaq-item { background: var(--sx-white); border: 1px solid var(--sx-border); border-radius: var(--sx-r-lg); padding: 1.35rem 1.5rem; }
.sx-pfaq-item h4 { margin: 0 0 .45rem; font-size: .95rem; color: var(--sx-ink); font-weight: 600; }
.sx-pfaq-item p { margin: 0; font-size: .87rem; color: var(--sx-body); line-height: 1.65; font-weight: 300; }

@media (max-width: 760px) {
  .sx-pfaq-grid { grid-template-columns: 1fr; }
  .sx-trust-row { flex-direction: column; gap: .5rem; align-items: center; }
}

/* download page platform cards: equal height, bottom-aligned actions */
.sx-plat-grid .sx-feat-card { display: flex; flex-direction: column; align-items: flex-start; }
.sx-plat-grid .sx-feat-card .sx-btn { margin-top: auto; align-self: stretch; white-space: normal; line-height: 1.35; text-align: center; }
