/* =============================================================================
 * Social Breathalyzer — design system (sb-* classes).
 *
 * Ported from the sb-frontend Astro project so the marketing pages of
 * socialbreathalyzer.ai share one consistent look. Plain CSS, no framework.
 *
 * NAMESPACE: every class in this file is prefixed `sb-` so it can coexist
 * with the legacy style.css (used by upload.html, report.html, etc).
 * Pages that opt in to the new design replace their body content with
 * sb-* markup and drop the legacy class usage.
 *
 * Loaded AFTER /assets/style.css when a page wants the new look.
 * ============================================================================= */

/* Self-hosted fonts so static pages (start / upload / report / sample-report)
   render in the same Bricolage Grotesque + Inter as the Astro pages — not the
   browser's system fallback. Files live in /public/fonts (same-origin, CSP-safe). */
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/bricolage-grotesque-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/bricolage-grotesque-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 800; font-display: swap; src: url("/fonts/bricolage-grotesque-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/inter-latin-700-normal.woff2") format("woff2"); }

:root {
  --sb-ink:    #0B0B12;
  --sb-paper:  #FFF8F0;
  --sb-pop:    #FF3D7F;
  --sb-cyber:  #5B5BFF;
  --sb-lime:   #C8FF3D;
  --sb-sun:    #FFD23D;
  --sb-bruise: #2A1A4A;

  --sb-shadow:       6px 6px 0 0 #0B0B12;
  --sb-shadow-sm:    3px 3px 0 0 #0B0B12;
  --sb-shadow-lg:    8px 8px 0 0 #0B0B12;
  --sb-border:       3px solid #0B0B12;
  --sb-radius:       1.5rem;       /* 24px */
  --sb-radius-pill:  9999px;

  --sb-font-display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --sb-font-body:    "Inter", ui-sans-serif, system-ui, sans-serif;
}

/* Reset only the bits we need so we don't fight legacy style.css. */
body.sb-redesign {
  background: var(--sb-paper);
  color: var(--sb-ink);
  font-family: var(--sb-font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior-y: none;
  margin: 0;
}
body.sb-redesign h1, body.sb-redesign h2, body.sb-redesign h3 {
  font-family: var(--sb-font-display);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0;
}
body.sb-redesign a { color: inherit; }

/* Tap targets */
body.sb-redesign button,
body.sb-redesign a.sb-btn-primary,
body.sb-redesign a.sb-btn-secondary { min-height: 44px; }

/* --- Layout helpers --- */
.sb-container {
  max-width: 720px;       /* matches max-w-3xl in our Astro pages */
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}
@media (min-width: 640px) {
  .sb-container { padding-left: 24px; padding-right: 24px; }
}

/* The dynamic wizard steps (platform walkthroughs + confirmation) are injected
   by wizard.js without an inner .container, so they ran full-bleed. Constrain
   #step-dynamic to the same 1120px content width as the hero and the marketing
   sections above it, centered, with a 20px gutter on narrow screens. */
#step-dynamic {
  width: min(1120px, calc(100% - 40px));
  margin-left: auto;
  margin-right: auto;
  margin-top: 1.25rem;
}

/* Keep the wizard progress bar's outer edges aligned with #step-dynamic and the
   marketing content (overrides the legacy .container's 1280px max-width). */
#progress.wizard-progress {
  max-width: 1120px;
  /* Sit the breadcrumb centered in the band between the header and the step
     content: a little more breathing room up top, less below. */
  margin: 1.75rem auto 0.5rem;
  gap: 0.5rem;
}

/* Wizard progress pills, redesign aesthetic. The legacy style.css renders these
   as a thin monospace "terminal" stepper; here they pick up the app's bold
   display type, pill shape, ink borders, and hard offset shadow. Phase colors
   read as a progression: paper = upcoming, lime = done, ink = current. */
body.sb-redesign #progress.wizard-progress .pill {
  font-family: var(--sb-font-display);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.01em;
  text-transform: none;
  line-height: 1.1;
  color: var(--sb-ink);
  background: var(--sb-paper);
  border: 2px solid var(--sb-ink);
  border-radius: var(--sb-radius-pill);
  padding: 0.4rem 0.9rem;
}
body.sb-redesign #progress.wizard-progress .pill.done {
  background: #3A3A44;
  color: var(--sb-paper);
  border-color: #3A3A44;
}
body.sb-redesign #progress.wizard-progress .pill[aria-current="step"] {
  background: var(--sb-lime);
  color: var(--sb-ink);
  border-color: var(--sb-ink);
}

/* Social platform breadcrumbs (the per-platform walkthrough nav) adopt the
   redesigned stepper's pill shape + bold display type so the two rows read as
   the same component. Colors are left to style.css on purpose: each platform
   keeps its own state color (red = current platform, ink outline = selected,
   dashed = optional). */
body.sb-redesign .walkthrough-platform-nav { justify-content: center; }
body.sb-redesign .walkthrough-platform-nav-link {
  font-family: var(--sb-font-display);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  line-height: 1.1;
  border-width: 2px;
  border-radius: var(--sb-radius-pill);
  padding: 0.4rem 0.9rem;
  text-align: center;
}

/* --- Header --- */
.sb-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(255, 248, 240, 0.92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-bottom: 3px solid var(--sb-ink);
}
.sb-header-inner {
  /* Match the homepage header (max-w-6xl = 1152px); overrides .sb-container's
     720px so the nav spans the full page width like index.astro. */
  max-width: 1152px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  /* Top/bottom only so .sb-container supplies the responsive l/r padding
     (20px, 24px ≥640) — otherwise the nav sits flush to the viewport edge. */
  padding-top: 12px;
  padding-bottom: 12px;
}
.sb-brand {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--sb-font-display);
  font-weight: 800;
  font-size: 18px;
  text-decoration: none;
  letter-spacing: -0.01em;
}
@media (min-width: 640px) { .sb-brand { font-size: 20px; } }
.sb-brand-mark {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--sb-pop);
  color: var(--sb-paper);
  border: var(--sb-border);
  box-shadow: var(--sb-shadow-sm);
  border-radius: var(--sb-radius-pill);
  padding: 4px 14px;
  font-family: var(--sb-font-display);
  font-weight: 800;
}
.sb-brand-mark-lg { padding: 6px 16px; font-size: 18px; }
.sb-brand-name { display: none; }
@media (min-width: 768px) { .sb-brand-name { display: inline; } }
.sb-brand-name-sm { display: inline; }
@media (min-width: 768px) { .sb-brand-name-sm { display: none; } }

.sb-nav { display: flex; align-items: center; gap: 4px; font-family: var(--sb-font-display); font-weight: 700; font-size: 14px; }
@media (min-width: 768px) { .sb-nav { gap: 12px; } }
.sb-nav a {
  padding: 4px 10px;
  border-radius: var(--sb-radius-pill);
  text-decoration: none;
  color: var(--sb-ink);
}
.sb-nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.sb-nav a.sb-nav-active { background: var(--sb-ink); color: var(--sb-paper); text-decoration: none; }
.sb-nav-cta {
  display: none;
  align-items: center; gap: 4px;
  padding: 6px 14px;
  background: var(--sb-lime); color: var(--sb-ink);
  border: var(--sb-border); box-shadow: var(--sb-shadow-sm);
  border-radius: var(--sb-radius-pill);
  font-family: var(--sb-font-display);
  font-weight: 700; font-size: 12px;
  text-transform: uppercase; letter-spacing: 0.06em;
  text-decoration: none;
}
@media (min-width: 768px) {
  .sb-nav-cta { display: inline-flex; }
}

/* --- Mobile hamburger menu --- */
.sb-nav-toggle {
  display: none;
  align-items: center; justify-content: center;
  width: 44px; height: 44px;
  margin-right: -8px;            /* pull the icon to the edge padding */
  background: transparent; border: 0; padding: 0;
  color: var(--sb-ink); cursor: pointer;
}
.sb-nav-toggle .sb-icon-menu { display: block; }
.sb-nav-toggle .sb-icon-close { display: none; }
.sb-header.is-menu-open .sb-nav-toggle .sb-icon-menu { display: none; }
.sb-header.is-menu-open .sb-nav-toggle .sb-icon-close { display: block; }

@media (max-width: 767.98px) {
  .sb-nav-toggle { display: inline-flex; }
  .sb-nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--sb-paper);
    border-bottom: 3px solid var(--sb-ink);
    box-shadow: var(--sb-shadow);
    padding: 8px 20px 16px;
  }
  .sb-header.is-menu-open .sb-nav { display: flex; }
  .sb-nav a { padding: 12px 8px; border-radius: 10px; font-size: 16px; }
  .sb-nav-cta {
    display: inline-flex; justify-content: center;
    margin-top: 10px; padding: 12px 18px; font-size: 13px;
  }
}

/* --- Buttons --- */
.sb-btn-primary,
.sb-btn-secondary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: var(--sb-radius-pill);
  padding: 12px 24px;
  font-family: var(--sb-font-display);
  font-weight: 700;
  font-size: 18px;
  text-decoration: none;
  cursor: pointer;
  border: var(--sb-border);
  box-shadow: var(--sb-shadow);
  transition: transform 100ms ease, box-shadow 100ms ease;
  line-height: 1.2;
}
.sb-btn-primary { background: var(--sb-pop); color: var(--sb-paper); }
.sb-btn-secondary { background: var(--sb-paper); color: var(--sb-ink); }
.sb-btn-primary:active,
.sb-btn-secondary:active {
  transform: translate(3px, 3px);
  box-shadow: var(--sb-shadow-sm);
}
.sb-btn-lime { background: var(--sb-lime); color: var(--sb-ink); }
.sb-btn-cyber { background: var(--sb-cyber); color: var(--sb-paper); }

/* --- Cards --- */
.sb-card {
  background: var(--sb-paper);
  border-radius: var(--sb-radius);
  border: var(--sb-border);
  box-shadow: var(--sb-shadow);
  padding: 24px;
}
@media (min-width: 640px) { .sb-card { padding: 32px; } }
.sb-card-lime { background: var(--sb-lime); }
.sb-card-sun { background: var(--sb-sun); }
.sb-card-cyber { background: var(--sb-cyber); color: var(--sb-paper); }
.sb-card-bruise { background: var(--sb-bruise); color: var(--sb-paper); }
.sb-card-pop { background: var(--sb-pop); color: var(--sb-paper); }

/* --- Tags / chips --- */
.sb-tag {
  display: inline-block;
  font-family: var(--sb-font-display);
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--sb-cyber);
}
.sb-tag-pop { color: var(--sb-pop); }
.sb-tag-lime { color: var(--sb-lime); }
.sb-tag-ink { color: var(--sb-ink); }
.sb-tag-muted { color: rgba(11, 11, 18, 0.45); }

.sb-pill {
  display: inline-block;
  font-family: var(--sb-font-display);
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--sb-paper);
  color: var(--sb-ink);
  border: var(--sb-border);
  border-radius: var(--sb-radius-pill);
  padding: 4px 12px;
  white-space: nowrap;
}

/* --- Typography --- */
.sb-h1 {
  font-family: var(--sb-font-display); font-weight: 800;
  font-size: clamp(40px, 8vw, 72px);
  line-height: 0.95;
  letter-spacing: -0.025em;
  margin: 0 0 20px;
}
.sb-h2 {
  font-family: var(--sb-font-display); font-weight: 800;
  font-size: clamp(24px, 4vw, 32px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}
.sb-h3 {
  font-family: var(--sb-font-display); font-weight: 800;
  font-size: clamp(20px, 3vw, 24px);
  line-height: 1.1;
  margin: 0 0 12px;
}
.sb-lede {
  font-family: var(--sb-font-body);
  font-size: clamp(17px, 2.4vw, 21px);
  line-height: 1.45;
  color: rgba(11, 11, 18, 0.65);
  max-width: 36rem;
  margin: 0 0 28px;
}
.sb-body {
  font-family: var(--sb-font-body);
  font-size: 17px;
  line-height: 1.75;
  margin: 0 0 18px;
}
.sb-body-lg { font-size: 19px; }
.sb-mute { color: rgba(11, 11, 18, 0.6); }

/* Highlight chip (the rotated lime "actually") */
.sb-highlight {
  background: var(--sb-lime);
  border: var(--sb-border);
  padding: 0 8px;
  display: inline-block;
  transform: rotate(-1.5deg);
}

/* --- Hero with receipt card layout --- */
.sb-hero {
  padding: 56px 0 32px;
}
@media (min-width: 640px) { .sb-hero { padding: 80px 0 48px; } }
.sb-hero-grid {
  display: grid;
  gap: 32px;
  align-items: start;
}
@media (min-width: 900px) {
  /* max-width here overrides .sb-container's 720px so the two-column hero can
     actually breathe — without it the grid is crammed into 720px (thin) and
     stacks tall, pushing the CTA buttons down. */
  .sb-hero-grid { grid-template-columns: 1.1fr 0.9fr; gap: 48px; max-width: 1120px; }
}

/* Receipt card — pulled forward from the legacy hero artifact */
.sb-receipt {
  background: var(--sb-paper);
  border-radius: var(--sb-radius);
  border: var(--sb-border);
  box-shadow: var(--sb-shadow-lg);
  padding: 20px 22px 22px;
  position: relative;
  transform: rotate(1.2deg);
}
.sb-receipt-strip {
  background: var(--sb-ink); color: var(--sb-paper);
  font-family: var(--sb-font-display); font-weight: 800;
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  text-align: center;
  margin: -20px -22px 14px;
  padding: 8px 12px;
  border-bottom: var(--sb-border);
  /* match the card's inner radius (24px outer minus the 3px border) so the
     strip's top corners follow the rounded card instead of squaring it off */
  border-radius: calc(var(--sb-radius) - 3px) calc(var(--sb-radius) - 3px) 0 0;
}
.sb-receipt-num {
  font-family: var(--sb-font-display); font-weight: 800;
  font-size: 64px; line-height: 0.9; letter-spacing: -0.03em;
  color: var(--sb-pop);
}
.sb-receipt-num .unit {
  font-size: 22px; color: var(--sb-ink); letter-spacing: 0;
}
.sb-receipt-sub {
  font-family: var(--sb-font-body); font-size: 14px;
  color: rgba(11, 11, 18, 0.7);
  margin: 2px 0 12px;
}
.sb-receipt-row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 8px 0;
  border-top: 1px dashed rgba(11, 11, 18, 0.18);
  font-family: var(--sb-font-body); font-size: 14px;
}
.sb-receipt-row .k { color: rgba(11, 11, 18, 0.7); }
.sb-receipt-row .v { font-weight: 700; }
.sb-receipt-row .v.alert { color: var(--sb-pop); }
.sb-receipt-foot {
  margin-top: 12px;
  font-family: var(--sb-font-body); font-size: 11px;
  font-style: italic;
  color: rgba(11, 11, 18, 0.45);
  text-align: center;
}
.sb-receipt-stamp {
  position: absolute; top: -14px; right: -14px;
  background: var(--sb-lime); color: var(--sb-ink);
  font-family: var(--sb-font-display); font-weight: 800;
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  border: var(--sb-border); box-shadow: var(--sb-shadow-sm);
  padding: 6px 10px;
  transform: rotate(8deg);
}

/* --- Section --- */
.sb-section { padding: 48px 0; }
@media (min-width: 640px) { .sb-section { padding: 64px 0; } }
.sb-section-tight { padding: 32px 0; }

/* When an element is BOTH a section and a container (e.g. the how-it-works and
   pitch sections), .sb-section's shorthand padding (48px 0) wins over
   .sb-container's horizontal padding and the content runs full-bleed on mobile.
   Restore the container's left/right padding here. */
.sb-section.sb-container { padding-left: 20px; padding-right: 20px; }
@media (min-width: 640px) {
  .sb-section.sb-container { padding-left: 24px; padding-right: 24px; }
}

/* --- Trust check list --- */
.sb-checks {
  display: flex; flex-direction: column; gap: 10px;
  font-family: var(--sb-font-body); font-size: 15px;
}
.sb-check {
  display: flex; gap: 10px; align-items: flex-start;
  padding-left: 0;
}
.sb-check::before {
  content: "✓";
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  width: 24px; height: 24px;
  background: var(--sb-lime);
  border: var(--sb-border);
  border-radius: var(--sb-radius-pill);
  font-weight: 800;
  font-size: 13px;
  margin-top: 1px;
}

/* --- Step cards (how-it-works) --- */
.sb-step-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  /* breathing room below the section heading — the .sb-mb-* utilities lose to
     the body.sb-redesign h2 margin reset, so the gap lives on the grid */
  margin-top: 32px;
  /* stretch every card to the tallest one so the row is uniform height */
  align-items: stretch;
}
@media (min-width: 640px) { .sb-step-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.sb-step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px;
  background: var(--sb-pop); color: var(--sb-paper);
  border: var(--sb-border); border-radius: var(--sb-radius-pill);
  font-family: var(--sb-font-display); font-weight: 800; font-size: 28px;
  margin-bottom: 14px;
}
/* Number badge + title on one row */
.sb-step-head {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 12px;
}
.sb-step-head .sb-step-num { margin-bottom: 0; flex-shrink: 0; }
.sb-step-head .sb-h3 { margin: 0; }

/* --- FAQ accordion --- */
.sb-faq-list { display: flex; flex-direction: column; gap: 10px; }
.sb-faq {
  background: var(--sb-paper);
  border: var(--sb-border);
  border-radius: var(--sb-radius);
  padding: 18px 22px;
}
.sb-faq summary {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  list-style: none;
  cursor: pointer;
  font-family: var(--sb-font-display); font-weight: 700; font-size: 17px;
  line-height: 1.3;
}
.sb-faq summary::-webkit-details-marker { display: none; }
.sb-faq summary::after {
  content: "+";
  color: var(--sb-pop);
  font-family: var(--sb-font-display); font-weight: 800; font-size: 22px;
  line-height: 1;
  flex-shrink: 0;
  transition: transform 150ms ease;
}
.sb-faq[open] summary::after { transform: rotate(45deg); }
.sb-faq p { margin: 12px 0 0; line-height: 1.65; color: rgba(11, 11, 18, 0.85); }

/* --- Disclaimer callout --- */
.sb-disclaimer {
  background: var(--sb-paper);
  border-radius: var(--sb-radius);
  border: var(--sb-border);
  box-shadow: var(--sb-shadow-sm);
  padding: 16px 20px;
  font-family: var(--sb-font-body); font-size: 14px;
  line-height: 1.55;
}
.sb-disclaimer-label {
  display: block;
  font-family: var(--sb-font-display); font-weight: 700;
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--sb-pop);
  margin-bottom: 4px;
}

/* --- Footer --- */
.sb-footer {
  margin-top: 64px;
  border-top: 3px solid var(--sb-ink);
  background: var(--sb-paper);
}
.sb-footer-inner {
  /* Top/bottom only so .sb-container supplies the responsive l/r padding. */
  padding-top: 32px;
  padding-bottom: 40px;
  font-family: var(--sb-font-body);
  font-size: 14px;
  color: rgba(11, 11, 18, 0.6);
}
.sb-footer h4 {
  font-family: var(--sb-font-display); font-weight: 800;
  font-size: 15px;
  color: var(--sb-ink);
  margin: 0 0 8px;
}
.sb-footer-grid {
  display: grid; grid-template-columns: 1fr; gap: 28px;
  margin-bottom: 24px;
}
@media (min-width: 640px) {
  .sb-footer-grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; }
}
.sb-footer a { color: rgba(11, 11, 18, 0.7); text-decoration: none; }
.sb-footer a:hover { color: var(--sb-ink); text-decoration: underline; }
.sb-footer ul { list-style: none; padding: 0; margin: 0; }
.sb-footer li { margin: 4px 0; }
.sb-footer-fine { font-size: 12px; color: rgba(11, 11, 18, 0.45); line-height: 1.55; }

/* Utility */
.sb-flex { display: flex; }
.sb-flex-wrap { flex-wrap: wrap; }
.sb-gap-3 { gap: 12px; }
.sb-gap-4 { gap: 16px; }
.sb-mb-2 { margin-bottom: 8px; }
.sb-mb-3 { margin-bottom: 12px; }
.sb-mb-4 { margin-bottom: 16px; }
.sb-mb-6 { margin-bottom: 24px; }
.sb-mb-8 { margin-bottom: 32px; }
.sb-text-center { text-align: center; }
.sb-mt-6 { margin-top: 24px; }
.sb-mt-8 { margin-top: 32px; }

/* Hide the wizard progress nav when on step 1 (marketing hero).
   Replaces the legacy `data-active-step` mechanism for redesigned pages. */
body.sb-redesign:has(#step-1.active) #progress,
body.sb-redesign:not(:has(.step.active)) #progress {
  display: none !important;
}

/* Animation */
@keyframes sb-pop-in {
  0% { transform: scale(0.85); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
.sb-pop-in { animation: sb-pop-in 0.35s cubic-bezier(.34,1.56,.64,1); }

/* ===========================================================================
 * Legacy-component reskin. The intake wizard (/start) and the tool pages
 * (/upload, /report) still use legacy style.css classes (.btn, .btn-primary,
 * .btn-ghost, form inputs, .card). When a page opts into body.sb-redesign,
 * override those to the neo-brutalist look so they match the Astro pages.
 * =========================================================================== */
body.sb-redesign .btn {
  border: var(--sb-border);
  border-radius: var(--sb-radius-pill);
  box-shadow: var(--sb-shadow-sm);
  font-family: var(--sb-font-display);
  font-weight: 800;
  padding: 12px 26px;
  transition: transform .12s ease, box-shadow .12s ease;
}
body.sb-redesign .btn:hover:not(:disabled) { box-shadow: var(--sb-shadow); transform: translate(-1px, -1px); }
body.sb-redesign .btn:active:not(:disabled) { transform: translate(3px, 3px); box-shadow: none; }
body.sb-redesign .btn-primary,
body.sb-redesign .btn-cta { background: var(--sb-pop); color: var(--sb-paper); }
body.sb-redesign .btn-ghost { background: var(--sb-paper); color: var(--sb-ink); }
body.sb-redesign .btn:disabled,
body.sb-redesign .btn[aria-disabled="true"] { opacity: .45; box-shadow: none; }

/* Inline upload picker. The file picker + loader render inside the selected
   platform's row, so the row wraps and the picker fills the full width below
   the label/button line, separated by a hairline. */
body.sb-redesign .platform-row { flex-wrap: wrap; }
body.sb-redesign #picker-box.is-inline {
  flex-basis: 100%;
  width: 100%;
  margin-top: 0.875rem;
  padding-top: 0.875rem;
  border-top: 2px solid var(--sb-ink);
}
/* The row already names the platform, so the picker's own heading is redundant. */
body.sb-redesign #picker-box.is-inline #picker-title { display: none; }

/* Form fields */
body.sb-redesign input[type="text"],
body.sb-redesign input[type="email"],
body.sb-redesign input[type="tel"],
body.sb-redesign input[type="number"],
body.sb-redesign select,
body.sb-redesign textarea {
  border: var(--sb-border);
  border-radius: 14px;
  background: var(--sb-paper);
  color: var(--sb-ink);
  font-family: var(--sb-font-body);
  font-size: 16px;
  padding: 12px 14px;
  width: 100%;
  box-sizing: border-box;
}
body.sb-redesign input:focus,
body.sb-redesign select:focus,
body.sb-redesign textarea:focus {
  outline: none;
  box-shadow: var(--sb-shadow-sm);
}
body.sb-redesign label { font-family: var(--sb-font-display); font-weight: 700; color: var(--sb-ink); }
/* The legacy .container is 1280px wide; keep the intake form + platform picker
   at a readable, centered width so fields don't stretch across the page. */
body.sb-redesign #intake-form,
body.sb-redesign #platform-grid { max-width: 620px; margin-left: auto; margin-right: auto; }
body.sb-redesign .form-help,
body.sb-redesign .form-optional { font-family: var(--sb-font-body); }

/* Cards / file input on the upload page */
body.sb-redesign .card {
  border: var(--sb-border);
  border-radius: var(--sb-radius);
  box-shadow: var(--sb-shadow);
  background: var(--sb-paper);
}
/* Upload page: the main container reads better as plain white. */
body.sb-redesign[data-page="upload"] .card {
  background: #fff;
}
/* Platform rows blend into the white card — transparent fill, borders define them. */
body.sb-redesign[data-page="upload"] .platform-row,
body.sb-redesign[data-page="upload"] .platform-row.is-optional {
  background: transparent;
}
/* Network action buttons share a fixed width so they line up regardless of label. */
body.sb-redesign[data-page="upload"] .platform-row > button {
  flex: 0 0 auto;
  width: 190px;
  text-align: center;
  white-space: nowrap;
}
/* Let the label/help column shrink (basis 0, grow to fill) so its text wraps into
   a narrow column and the fixed-width button stays pinned right on wider screens. */
body.sb-redesign[data-page="upload"] .platform-row-label {
  flex: 1 1 0;
  min-width: 0;
}
/* Mobile: stack the button below the label and make it full width. */
@media (max-width: 640px) {
  body.sb-redesign[data-page="upload"] .platform-row {
    flex-direction: column;
    align-items: stretch;
  }
  body.sb-redesign[data-page="upload"] .platform-row-label {
    flex: 0 0 auto;
  }
  body.sb-redesign[data-page="upload"] .platform-row > button {
    width: 100%;
  }
}
body.sb-redesign input[type="file"] {
  border: var(--sb-border);
  border-radius: 14px;
  background: var(--sb-paper);
  padding: 14px;
  width: 100%;
  box-sizing: border-box;
  font-family: var(--sb-font-body);
}
