/* ============================================
   Public + pre-auth chrome — Sandlot Hub (#39 UI Brief v2)
   Tokens: design-tokens.css (navy #24313A, portal blue #0072EB)
   Fonts: Inter ONLY on portal/auth (override --font-heading)
   Light sticky nav · monoline SVG icons · no emoji · no trial/pricing
   ============================================ */

html { scroll-behavior: smooth; overflow-x: hidden; }
body.portal-body *,
body.auth-body * { box-sizing: border-box; }

body.portal-body,
body.auth-body {
  /* Brief v2: Inter only — do not pull Playfair into pre-auth chrome */
  --font-heading: var(--font-sans);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--text-primary);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  margin: 0;
}

body.auth-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--white);
  overflow-x: hidden;
}
body.portal-body { overflow-x: hidden; }
.auth-mobile-brand { display: none; }

a { color: var(--portal-blue); text-decoration: none; }
a:hover { color: var(--portal-hover); }

.portal-skip {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.portal-skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 200;
  width: auto;
  height: auto;
  padding: 0.5rem 1rem;
  background: var(--white);
  color: var(--brand-900);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

/* ---- Buttons ---- */
.btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--portal-blue);
  color: #fff !important;
  font-size: 0.875rem;
  font-weight: 700;
  padding: 0.55rem 1.15rem;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: background var(--transition-fast);
  text-decoration: none;
  font-family: inherit;
}
.btn-pill:hover { background: var(--portal-hover); color: #fff !important; }
.btn-pill-lg { padding: 0.8rem 1.5rem; font-size: 0.95rem; }
.btn-pill-block { width: 100%; padding: 0.85rem 1rem; font-size: 1rem; border-radius: var(--radius-lg); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--brand-900) !important;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.75rem 1.35rem;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--neutral-300);
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
}
.btn-ghost:hover { border-color: var(--brand-900); color: var(--brand-900) !important; }

.btn-ghost-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: #fff !important;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.75rem 1.35rem;
  border-radius: var(--radius-full);
  border: 1.5px solid rgba(255,255,255,0.4);
  text-decoration: none;
}
.btn-ghost-light:hover { border-color: #fff; color: #fff !important; }

.btn-text {
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(255,255,255,0.9) !important;
  padding: 0.4rem 0.75rem;
  text-decoration: none;
}
.btn-text:hover { color: #fff !important; }

.btn-text-dark {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--neutral-500) !important;
  text-decoration: none;
  margin-right: 0.75rem;
}
.btn-text-dark:hover { color: var(--brand-900) !important; }

/* ---- Portal sticky nav (light — Brief v2) ---- */
.portal-nav,
.portal-nav.is-light {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--brand-900);
  height: 64px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--neutral-200);
  box-shadow: none;
}
.portal-nav-inner {
  max-width: 1120px;
  width: 100%;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  gap: 2rem;
}
.portal-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: var(--brand-900) !important;
  flex-shrink: 0;
  text-decoration: none;
}
.portal-logo .hub { font-weight: 500; color: var(--neutral-500); }
.portal-logo svg { width: 32px; height: 32px; }
.portal-logo-mark {
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--brand-900);
  display: grid; place-items: center; color: #fff; flex-shrink: 0;
}
.portal-logo-mark .portal-ico { width: 18px; height: 18px; color: #fff; }
.portal-logo-mark.is-sm { width: 22px; height: 22px; border-radius: 6px; }
.portal-logo-mark.is-sm .portal-ico { width: 12px; height: 12px; }
.portal-nav-links {
  display: flex;
  gap: 1.75rem;
  margin-left: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--neutral-600);
}
.portal-nav-links a { color: inherit; }
.portal-nav-links a:hover { color: var(--portal-blue); }
.portal-nav-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.btn-ghost-sm {
  padding: 0.5rem 1rem !important;
  font-size: 0.875rem !important;
}
.portal-nav-actions .btn-ghost {
  color: var(--brand-900) !important;
  border-color: var(--neutral-200);
  background: #fff;
}
.portal-nav-actions .btn-ghost:hover {
  border-color: var(--portal-blue);
  color: var(--portal-blue) !important;
}
.portal-nav-actions .btn-text-muted {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--neutral-500) !important;
  padding: 0.35rem 0.5rem;
}
.portal-nav-actions .btn-text-muted:hover { color: var(--brand-900) !important; }

.portal-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  margin-left: auto;
}
.portal-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--brand-900);
  margin: 5px 0;
  border-radius: 1px;
}

/* Monoline SVG icon utility */
.portal-ico {
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  width: 20px;
  height: 20px;
  display: block;
}
.badge-new {
  display: inline-block;
  font-size: 0.55rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--portal-blue);
  color: #fff;
  padding: 2px 6px;
  border-radius: 4px;
  vertical-align: middle;
  margin-left: 4px;
  line-height: 1.2;
}

.portal-container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ---- Hero ---- */
.portal-hero {
  padding: 5rem 0 4.5rem;
  background: linear-gradient(180deg, var(--brand-50) 0%, var(--white) 100%);
}
.portal-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3.5rem;
  align-items: center;
}
.portal-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--portal-blue);
  margin-bottom: 1rem;
}
.portal-chip {
  background: var(--brand-100);
  color: #1e40af;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
  letter-spacing: 0.02em;
}
.portal-chip.soft {
  background: #dcfce7;
  color: #166534;
}
.portal-hero h1 {
  font-family: var(--font-sans);
  font-size: clamp(2.1rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.035em;
  color: var(--brand-900);
  margin: 0 0 1.1rem;
}
.portal-hero h1 em {
  font-style: normal;
  color: var(--portal-blue);
}
.portal-hero-rule {
  width: 48px; height: 3px; border-radius: 2px;
  background: linear-gradient(90deg, var(--portal-blue), var(--brand-200));
  margin-bottom: 1.1rem;
}
.portal-eyebrow-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--portal-blue);
  box-shadow: 0 0 0 3px rgba(0,114,235,0.18);
  display: inline-block;
}
.portal-hero-tertiary {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--neutral-500);
}
.portal-hero-tertiary a {
  color: var(--portal-blue);
  font-weight: 600;
}
.portal-section-kicker .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--portal-blue);
  display: inline-block;
}
.portal-section-head.is-left {
  text-align: left;
  margin-left: 0;
  max-width: 40rem;
}
.portal-hero-sub {
  font-size: 1.125rem;
  color: var(--neutral-600);
  line-height: 1.65;
  margin: 0 0 2rem;
  max-width: 34rem;
}
.portal-hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}
.portal-hero-note {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: var(--neutral-500);
}

/* Product proof card */
.portal-proof {
  background: var(--white);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--neutral-200);
  overflow: hidden;
}
.portal-proof-chrome {
  background: var(--neutral-50);
  border-bottom: 1px solid var(--neutral-200);
  padding: 0.65rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.portal-proof-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--neutral-200);
}
.portal-proof-title {
  margin-left: 0.5rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--neutral-500);
}

.portal-proof-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--neutral-400);
  margin-bottom: 0.75rem;
}
.portal-proof-tabs { display: flex; gap: 0.35rem; margin-bottom: 0; margin-left: auto; }
.portal-proof-tab {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  background: var(--neutral-100);
  color: var(--neutral-600);
}
.portal-proof-tab.is-active {
  background: var(--brand-100);
  color: var(--portal-blue);
}
.portal-proof-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--neutral-100);
}
.portal-proof-row:last-child { border-bottom: none; }
.portal-proof-player {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--neutral-900);
}
.portal-proof-meta {
  font-size: 0.7rem;
  color: var(--neutral-500);
  margin-top: 0.15rem;
}
.portal-proof-badge {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.25rem 0.55rem;
  border-radius: var(--radius-full);
  background: #fef3c7;
  color: #92400e;
  white-space: nowrap;
}
.portal-proof-badge.is-ok {
  background: #dcfce7;
  color: #166534;
}

/* Focus card product-proof rows */
.fc-row {
  display: grid;
  grid-template-columns: 4px 1fr;
  background: #fff;
  border: 1px solid var(--neutral-200);
  border-radius: 10px;
  overflow: hidden;
}
.fc-rail { background: #dc2626; }
.fc-rail.med { background: #d97706; }
.fc-rail.ok { background: #16a34a; }
.fc-content { padding: 12px 14px; }
.fc-top {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px;
}
.sev {
  font-size: 0.6rem; font-weight: 800; letter-spacing: 0.04em;
  padding: 2px 6px; border-radius: 4px; text-transform: uppercase;
}
.sev.high { background: #fee2e2; color: #991b1b; }
.sev.med { background: #fef3c7; color: #92400e; }
.fc-cat {
  font-size: 0.65rem; font-weight: 700; color: var(--neutral-500);
  text-transform: uppercase; letter-spacing: 0.03em;
}
.fc-player { font-size: 0.8rem; font-weight: 700; color: var(--brand-900); margin-left: auto; }
.fc-copy {
  font-size: 0.78rem; color: var(--neutral-600); line-height: 1.45; margin: 0 0 8px;
}
.bar-row {
  display: grid; grid-template-columns: 36px 1fr auto; gap: 8px; align-items: center;
  margin-bottom: 6px;
}
.bar-label { font-size: 0.65rem; font-weight: 700; color: var(--neutral-500); }
.bar-track {
  position: relative; height: 6px; background: var(--neutral-100);
  border-radius: 999px; overflow: visible;
}
.bar-fill {
  height: 100%; border-radius: 999px; background: #dc2626; width: 40%;
}
.bar-fill.med { background: #d97706; }
.bar-tick {
  position: absolute; top: -3px; width: 2px; height: 12px;
  background: var(--brand-900); border-radius: 1px;
}
.bar-val { font-size: 0.65rem; color: var(--neutral-500); white-space: nowrap; }
.fc-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px;
}
.fc-meta { font-size: 0.65rem; color: var(--neutral-400); }
.fc-cta {
  font-size: 0.68rem; font-weight: 700; color: #fff;
  background: var(--portal-blue); padding: 5px 10px; border-radius: 999px;
}
.flow-arrow {
  text-align: center; font-size: 0.72rem; font-weight: 600;
  color: var(--portal-blue); padding: 4px 0;
}
.dev-mini {
  background: var(--brand-50); border: 1px solid var(--brand-100);
  border-radius: 10px; padding: 12px 14px;
}
.dev-mini-h {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 4px;
}
.dev-mini-h strong { font-size: 0.8rem; color: var(--brand-900); }
.dev-mini p { font-size: 0.75rem; color: var(--neutral-600); margin: 0 0 6px; }
.dev-mini ul { margin: 0; padding-left: 1.1rem; font-size: 0.72rem; color: var(--neutral-600); }
.dev-mini li { margin-bottom: 2px; }
.portal-proof-body { padding: 1.25rem; display: flex; flex-direction: column; gap: 10px; }

/* ---- Sections ---- */
.portal-section { padding: 4.5rem 0; }
.portal-section-alt { background: var(--neutral-50); }
.portal-section-navy {
  background: var(--brand-900);
  color: #fff;
}
.portal-section-head {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto 2.75rem;
}
.portal-section-kicker {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--portal-blue);
  margin-bottom: 0.5rem;
}
.portal-section-navy .portal-section-kicker { color: var(--brand-300); }
.portal-section-head h2 {
  font-family: var(--font-sans);
  font-size: clamp(1.5rem, 3vw, 2.15rem);
  font-weight: 800;
  color: var(--brand-900);
  margin: 0 0 0.75rem;
  letter-spacing: -0.01em;
}
.portal-section-navy .portal-section-head h2 { color: #fff; }
.portal-section-head p {
  font-size: 1rem;
  color: var(--neutral-600);
  margin: 0;
}
.portal-section-navy .portal-section-head p { color: rgba(255,255,255,0.7); }

/* Feature story — full */
.feature-story-full .feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.feature-story-full .feature-card {
  background: var(--white);
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius-xl);
  padding: 1.25rem 1.35rem;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}
.feature-story-full .feature-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.feature-story-full .feature-group-label {
  grid-column: 1 / -1;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--neutral-500);
  margin: 0.75rem 0 0.15rem;
}
.feature-story-full .feature-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
  color: var(--portal-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
}
.feature-story-full .feature-icon .portal-ico { width: 20px; height: 20px; }
.feature-story-full .feature-card.is-sport .feature-icon {
  background: #dcfce7;
  border-color: #bbf7d0;
  color: #166534;
}
.feature-story-full .feature-card.is-new {
  border-color: var(--brand-200);
  background: linear-gradient(180deg, #fff 0%, var(--brand-50) 100%);
  box-shadow: var(--shadow-md);
}
.feature-story-full .feature-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0 0 0.35rem;
  color: var(--brand-900);
}
.feature-story-full .feature-card p {
  font-size: 0.8rem;
  color: var(--neutral-600);
  line-height: 1.55;
  margin: 0;
}

/* Feature story — auth rail (light professional — Brief v2) */
.feature-story-auth {
  color: var(--brand-900);
  position: relative;
}
.feature-story-auth .auth-rail-kicker {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.05em;
  text-transform: uppercase; color: var(--portal-blue); margin-bottom: 10px;
}
.feature-story-auth .auth-rail-kicker .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--portal-blue);
}
.feature-story-auth .auth-rail-brand {
  /* kept for branding logo row / STE; visually de-emphasized when kicker present */
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0);
}
.feature-story-auth h2 {
  font-size: clamp(1.35rem, 2.5vw, 1.65rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin: 0 0 8px;
  color: var(--brand-900);
}
.feature-story-auth h2 span { color: var(--portal-blue); font-style: normal; }
.feature-story-auth .auth-rail-sub {
  font-size: 0.9rem;
  margin: 0 0 1.25rem;
  max-width: 28rem;
  color: var(--neutral-600);
  line-height: 1.55;
}
.feature-story-auth .auth-feat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.feature-story-auth .auth-feat-card {
  background: #fff;
  border: 1px solid var(--neutral-200);
  border-radius: 10px;
  padding: 11px 12px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.feature-story-auth .auth-feat-card.is-new {
  border-color: var(--brand-200);
  background: linear-gradient(180deg, #fff, var(--brand-50));
}
.feature-story-auth .auth-feat-ico {
  width: 32px; height: 32px; border-radius: 8px; flex-shrink: 0;
  background: var(--brand-50); border: 1px solid var(--brand-100);
  display: grid; place-items: center; color: var(--portal-blue);
}
.feature-story-auth .auth-feat-ico .portal-ico { width: 16px; height: 16px; }
.feature-story-auth .auth-feat-card strong {
  display: block;
  font-size: 0.8rem;
  margin-bottom: 1px;
  color: var(--brand-900);
}
.feature-story-auth .auth-feat-card span {
  font-size: 0.68rem;
  color: var(--neutral-500);
  line-height: 1.35;
}
.feature-story-auth .auth-sec-band {
  margin-top: 14px;
  padding: 12px;
  border-radius: 10px;
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
  font-size: 0.78rem;
  color: var(--neutral-700);
}

/* Feature strip — MUST stay visible on mobile (never display:none without a
   mobile override that restores visibility). Desktop auth hides the strip
   only when the auth card grid is shown. */
.feature-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 0.25rem 0 0.5rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  max-width: 100%;
  min-width: 0;
}
.feature-strip .feature-chip {
  flex: 0 0 auto;
  padding: 6px 10px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--neutral-200);
  font-size: 0.7rem;
  font-weight: 700;
  white-space: nowrap;
  color: var(--neutral-700);
}
.feature-strip.is-light .feature-chip {
  background: #fff;
  border-color: var(--neutral-200);
  color: var(--neutral-700);
}
.feature-strip .feature-chip.is-new {
  background: var(--brand-50);
  border-color: var(--brand-200);
  color: var(--portal-blue);
}
.feature-chip .badge-new {
  margin-left: 4px;
  font-size: 0.5rem;
  padding: 1px 4px;
}
.is-legacy-sr {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Home mobile strip sits under hero CTAs */
.portal-hero-strip {
  margin-top: 1.5rem;
  display: none;
}
.portal-hero-strip .feature-strip { display: flex; }

/* Showcase — Focus + Day sheet product proof (Brief v2)
   Keeps data-testid="portal-focus-band" on the section for STE File A/B. */
.portal-showcase-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.showcase-panel {
  background: #fff;
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.showcase-panel-label {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 14px 16px;
  background: var(--neutral-50);
  border-bottom: 1px solid var(--neutral-200);
}
.showcase-panel-label strong {
  display: block; font-size: 0.9rem; color: var(--brand-900);
}
.showcase-panel-label span {
  display: block; font-size: 0.72rem; color: var(--neutral-500); margin-top: 2px;
}
.showcase-panel-label .badge-new { margin-left: auto; flex-shrink: 0; }
.showcase-panel-body {
  padding: 14px 16px;
  display: flex; flex-direction: column; gap: 10px;
}
.showcase-caption {
  margin-top: 1.25rem;
  font-size: 0.85rem;
  color: var(--neutral-500);
  text-align: center;
}
.ds-toolbar {
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
}
.ds-btn {
  font-size: 0.68rem; font-weight: 600;
  padding: 5px 9px; border-radius: 6px;
  border: 1px solid var(--neutral-200); background: #fff; color: var(--neutral-700);
}
.ds-btn.is-primary {
  background: var(--portal-blue); color: #fff; border-color: var(--portal-blue);
}
.ds-meta { font-size: 0.68rem; color: var(--neutral-500); margin-left: auto; }
.ds-status {
  display: inline-block; align-self: flex-start;
  font-size: 0.6rem; font-weight: 800; letter-spacing: 0.05em;
  padding: 3px 8px; border-radius: 4px;
  background: #fef3c7; color: #92400e;
}
.ds-sheet {
  border: 1px solid var(--neutral-200); border-radius: 10px;
  padding: 14px; background: #fff;
}
.ds-eyebrow {
  font-size: 0.65rem; font-weight: 700; letter-spacing: 0.05em;
  text-transform: uppercase; color: var(--portal-blue); margin-bottom: 4px;
}
.ds-sheet h4 {
  font-size: 1.05rem; font-weight: 800; color: var(--brand-900); margin: 0 0 2px;
}
.ds-sub { font-size: 0.75rem; color: var(--neutral-500); margin: 0 0 10px; }
.ds-block {
  display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  padding: 8px 0; border-top: 1px solid var(--neutral-100);
  font-size: 0.78rem;
}
.ds-block strong { color: var(--brand-900); }
.ds-block span { color: var(--neutral-500); }

/* Legacy navy focus-card classes kept harmless if referenced elsewhere */
.portal-focus-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.portal-focus-card {
  background: #fff;
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
}
.portal-focus-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--brand-50);
  color: var(--portal-blue);
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.75rem;
}
.portal-focus-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: var(--brand-900);
}
.portal-focus-card p {
  font-size: 0.875rem;
  color: var(--neutral-600);
  line-height: 1.6;
  margin: 0;
}

/* How it works */
.portal-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.portal-step {
  padding: 1.5rem;
  background: var(--white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--neutral-200);
  box-shadow: var(--shadow-md);
}
.portal-step-num {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--portal-blue);
  color: #fff;
  font-weight: 800;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}
.portal-step h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: var(--brand-900);
}
.portal-step p {
  font-size: 0.875rem;
  color: var(--neutral-600);
  line-height: 1.6;
  margin: 0;
}

/* Qualitative proof */
.portal-qual-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.portal-qual-card {
  text-align: center;
  padding: 1.75rem 1.25rem;
  background: var(--white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--neutral-200);
}
.portal-qual-card h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--brand-900);
  margin: 0 0 0.5rem;
}
.portal-qual-card p {
  font-size: 0.85rem;
  color: var(--neutral-600);
  line-height: 1.55;
  margin: 0;
}

/* Closing CTA */
.portal-cta-banner {
  background: linear-gradient(135deg, var(--brand-900) 0%, #1a3a52 60%, #0a4a8a 100%);
  color: #fff;
  padding: 4rem 0;
  text-align: center;
}
.portal-cta-banner h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin: 0 0 0.75rem;
}
.portal-cta-banner p {
  color: rgba(255,255,255,0.75);
  margin: 0 0 1.75rem;
  font-size: 1.05rem;
}
.portal-cta-tertiary {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.65);
}
.portal-cta-tertiary a {
  color: #93c5fd;
  font-weight: 600;
}
.portal-cta-actions {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* Footer */
.portal-footer {
  background: var(--brand-900);
  color: rgba(255,255,255,0.65);
  padding: 2.5rem 0 2rem;
  font-size: 0.8rem;
}
.portal-footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.portal-footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: #fff;
}
.portal-footer-brand svg { width: 22px; height: 22px; }
.portal-footer-links {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.portal-footer-links a { color: rgba(255,255,255,0.65); }
.portal-footer-links a:hover { color: #fff; }

/* ---- Auth shell ---- */
.auth-topnav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  border-bottom: 1px solid var(--neutral-200);
  background: #fff;
  flex-shrink: 0;
}
.auth-topnav .portal-logo {
  color: var(--brand-900) !important;
  font-size: 0.95rem;
}
.auth-topnav .portal-logo svg { width: 26px; height: 26px; }
.auth-topnav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.auth-topnav-actions .btn-ghost {
  color: var(--brand-900) !important;
  border-color: var(--neutral-200);
  background: #fff;
}

.auth-shell {
  flex: 1;
  display: flex;
  min-height: 0;
  min-width: 0;
}
.auth-rail {
  flex: 1;
  background: var(--neutral-50);
  color: var(--brand-900);
  border-right: 1px solid var(--neutral-200);
  padding: 40px 36px;
  overflow: auto;
  position: relative;
  min-width: 0;
}
.auth-form-panel {
  width: 440px;
  min-width: 400px;
  max-width: 520px;
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #fff;
  overflow-y: auto;
  box-sizing: border-box;
}
.auth-form-panel h1 {
  font-size: 1.45rem;
  font-weight: 800;
  margin: 0 0 4px;
  color: var(--neutral-900);
}
.auth-form-lead {
  color: var(--neutral-500);
  font-size: 0.9rem;
  margin: 0 0 22px;
}
.auth-form-group { margin-bottom: 1rem; }
.auth-form-group label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--neutral-700);
}
.auth-form-group input,
.auth-form-group select {
  width: 100%;
  padding: 10px 12px;
  border: 2px solid var(--neutral-200);
  border-radius: 8px;
  font: inherit;
  color: var(--neutral-900);
  background: #fff;
  box-sizing: border-box;
}
.auth-form-group input:focus,
.auth-form-group select:focus {
  outline: none;
  border-color: var(--portal-blue);
  box-shadow: 0 0 0 3px rgba(0,114,235,0.15);
}
.auth-form-group input.is-invalid { border-color: var(--danger-600); }
.auth-form-group input.is-valid { border-color: var(--success-600); }
.auth-hint {
  font-size: 0.8rem;
  color: var(--neutral-500);
  margin-top: 0.35rem;
}
.auth-hint .url { color: var(--portal-blue); font-weight: 700; }
.auth-status { font-size: 0.8rem; margin-top: 0.25rem; font-weight: 700; }
.auth-status.is-available { color: var(--success-600); }
.auth-status.is-taken { color: var(--danger-600); }
.auth-password-error {
  display: none;
  color: var(--danger-600);
  font-size: 0.8rem;
  margin-top: 0.35rem;
  font-weight: 600;
}
.auth-error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
  border-left: 4px solid #ef4444;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  margin-bottom: 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
}
.auth-success {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
  border-left: 4px solid #16a34a;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  margin-bottom: 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
}
.auth-error-list {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1.5rem;
  list-style: none;
}
.auth-error-list li {
  color: #dc2626;
  font-size: 0.875rem;
  padding: 0.125rem 0;
}
.auth-links {
  margin-top: 14px;
  font-size: 0.8rem;
  color: var(--neutral-500);
  text-align: center;
}
.auth-links a { color: var(--portal-blue); font-weight: 700; }
.auth-links.is-right { text-align: right; margin-top: 10px; }
.auth-form-footer {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.75rem;
  color: var(--neutral-400);
}
.auth-badge {
  display: inline-block;
  background: var(--brand-100);
  color: #1e40af;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

/* Desktop: auth rail shows card grid; strip still in DOM but visually
   secondary. Mobile: cards hide, strip MUST remain visible. */
@media (min-width: 901px) {
  .auth-rail .feature-strip {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
}

@media (max-width: 960px) {
  .portal-hero-grid { grid-template-columns: 1fr; gap: 2rem; min-width: 0; }
  .portal-hero-grid > * { min-width: 0; max-width: 100%; }
  .portal-proof { max-width: 100%; }
  .portal-hero h1 { overflow-wrap: anywhere; }
  .feature-story-full .feature-grid { grid-template-columns: 1fr 1fr; }
  .portal-focus-grid,
  .portal-showcase-grid,
  .portal-steps,
  .portal-qual-grid { grid-template-columns: 1fr; }
  .portal-nav-links { display: none; }
  .auth-shell { flex-direction: column; }
  .auth-form-panel {
    order: -1;
    width: 100%;
    min-width: 0;
    max-width: none;
  }
  .auth-rail { order: 2; padding: 20px 16px; border-right: 0; border-top: 1px solid var(--neutral-200); }
  .feature-story-auth .auth-feat-grid { display: none; }
  .feature-story-auth .auth-sec-band { display: none; }
  .auth-rail .feature-strip {
    position: static;
    width: auto;
    max-width: 100%;
    height: auto;
    padding: 0.25rem 0 0.5rem;
    margin: 0 0 0.5rem;
    overflow-x: auto;
    clip: auto;
    white-space: normal;
    display: flex;
  }
  .portal-hero-strip { display: block; }
  .portal-hero-strip .feature-strip { max-width: 100%; }
}

@media (max-width: 720px) {
  .portal-nav-inner { padding: 0 1rem; gap: 0.5rem; }
  .portal-nav-actions .btn-text-muted { display: none; }
  .portal-nav-actions .btn-ghost { display: none; }
  .portal-container { padding: 0 1rem; }
  .portal-hero { padding: 1.75rem 0 1.5rem; }
  .portal-hero h1 { font-size: 1.7rem; }
  .portal-hero-sub { font-size: 1rem; margin-bottom: 1.25rem; }
  .feature-story-full .feature-grid { grid-template-columns: 1fr; }
  .portal-section { padding: 2.25rem 0; }
  .auth-topnav { padding: 8px 14px; }
  .auth-topnav-actions .btn-ghost { display: none; }
  body.is-login .auth-topnav-actions { display: none; }
  .auth-mobile-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 1rem;
  }
  .auth-mobile-brand img {
    width: 36px; height: 36px; object-fit: contain; border-radius: 8px;
  }
  .auth-mobile-brand strong { font-size: 0.95rem; font-weight: 800; color: var(--brand-900); }
  .auth-rail-league { display: none !important; }
  .feature-story-auth h2,
  .feature-story-auth .auth-rail-sub,
  .feature-story-auth .auth-rail-kicker { display: none; }
  .auth-form-panel {
    padding: 1.25rem 1.1rem 1.5rem;
    justify-content: flex-start;
  }
  .auth-form-panel h1 { font-size: 1.35rem; }
  .auth-form-group input,
  .auth-form-group select { font-size: 16px; min-height: 44px; }
  .btn-pill-block { min-height: 48px; }
}

@media (max-width: 600px) {
  /* Intentionally do NOT hide .feature-strip or marketing chrome */
  .auth-form-panel { padding: 1.1rem 1rem 1.4rem; }
}
