/* =============================================================================
 * Finance Reps — B2 refined site.css
 * Hero + Applications + Tracks · all with phone mocks
 * Master/detail click-through for both Apps and Tracks
 * ============================================================================= */

@font-face {
  font-family: 'Crimson Pro';
  src: url('fonts/CrimsonPro-VF.woff2') format('woff2');
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --bg-page: #EFEEE9;
  --bg-card: #FFFFFF;
  --text-primary: #1C1917;
  --text-secondary: #57534E;
  --text-tertiary: #78716C;
  --border-subtle: #E0DED7;
  --border-strong: #1C1917;
  --signal-blue: #2563EB;
  --signal-blue-deep: #1D4ED8;
  --signal-blue-tint: #EFF6FF;

  --tr-foundations-color: #92764E; --tr-foundations-deep: #5A4528; --tr-foundations-tint: #F0E2C8;
  --tr-modeling-color:    #B0827A; --tr-modeling-deep:    #6E4235; --tr-modeling-tint:    #F4DED3;
  --tr-deals-color:       #B87A50; --tr-deals-deep:       #7A4A28; --tr-deals-tint:       #F1D9C1;
  --tr-filings-color:     #6F723B; --tr-filings-deep:     #4A4B25; --tr-filings-tint:     #E9E9D1;
  --tr-opfin-color:       #7A9080; --tr-opfin-deep:       #4E5F50; --tr-opfin-tint:       #DDE7DE;
  --tr-qoe-color:         #A8893A; --tr-qoe-deep:         #7A5B2F; --tr-qoe-tint:         #F5E9CF;

  --serif: 'Crimson Pro', Georgia, 'Times New Roman', serif;
  --sans:  -apple-system, "system-ui", "Segoe UI", Roboto, sans-serif;
  --mono:  ui-monospace, "SF Mono", Menlo, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: light;
    --bg-page: #EFEEE9; --bg-card: #FFFFFF;
    --text-primary: #1C1917; --text-secondary: #57534E; --text-tertiary: #78716C;
  }
}

*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
html, body { height: 100%; }
body {
  font-family: var(--sans); font-size: 16px; line-height: 1.55;
  color: var(--text-primary); background: var(--bg-page);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
.container { max-width: 1180px; margin: 0 auto; padding: 0 32px; }

.eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--text-tertiary); display: block;
}
.eyebrow--blue { color: var(--signal-blue); }
.eyebrow--top {
  color: var(--text-tertiary); font-size: 11px;
  line-height: 1.2; text-align: right; white-space: nowrap;
}
@media (max-width: 768px) {
  .eyebrow--top { white-space: normal; max-width: 320px; }
}
@media (max-width: 640px) {
  .eyebrow--top { text-align: left; flex-basis: 100%; max-width: none; }
}

.fr-wm {
  display: inline-flex; align-items: baseline; gap: 7px;
  font-family: var(--serif); font-weight: 500; letter-spacing: -0.01em;
  color: var(--text-primary); font-size: 17px;
}
.wm__block {
  color: var(--signal-blue); font-weight: 900; line-height: 1;
  position: relative; top: 0.06em;
}

/* ---------- HERO ---------- */
.hero { padding: 24px 0 56px; }
.hero-top {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding-bottom: 20px; flex-wrap: wrap;
}
.hero-top__sep { color: #C7C4BC; opacity: 0.7; }

.hero-grid--phone {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 56px;
  align-items: center;
}
.hero-body { padding-top: 0; }
.hero__h {
  font-family: var(--serif);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.022em;
  margin: 0 0 16px;
  max-width: 22ch;
}
.hero__sub {
  font-size: 17px; line-height: 1.55; color: var(--text-secondary);
  max-width: 58ch; margin: 0 0 24px;
}
.badges { display: flex; gap: 12px; flex-wrap: wrap; }
.badge {
  display: flex; flex-direction: column; gap: 2px;
  padding: 12px 20px; background: var(--bg-card);
  border: 1px solid var(--border-subtle); border-radius: 8px;
  min-width: 196px;
}
.badge__eb { font-size: 11px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-tertiary); }
.badge__store { font-size: 16px; font-weight: 500; color: var(--text-primary); }

.hero-phone {
  display: flex; flex-direction: column; align-items: center; gap: 32px;
}

/* ---------- Section shell ---------- */
.sec {
  padding: 48px 0 56px;
  border-top: 1px solid var(--border-strong);
}
.sec__h {
  font-family: var(--serif);
  font-size: clamp(28px, 3.2vw, 36px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.018em;
  margin: 12px 0 12px;
  max-width: 30ch;
}
.sec__lede {
  font-family: var(--serif);
  font-style: italic;
  font-size: 17px;
  line-height: 1.5;
  color: var(--text-secondary);
  max-width: 64ch;
  margin: 0 0 32px;
}

/* ---------- FOOTER ---------- */
.ftr {
  padding: 28px 0 22px; margin-top: 48px;
  border-top: 1px solid var(--border-strong);
}
.ftr__top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; }
.ftr__nav { display: flex; gap: 24px; font-size: 14px; }
.ftr__nav a { color: var(--text-secondary); transition: color 120ms ease; }
.ftr__nav a:hover { color: var(--text-primary); }
.ftr__rule { border: 0; height: 1px; background: var(--border-subtle); margin: 16px 0 12px; }
.ftr__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 12px; color: var(--text-tertiary); }

/* =============================================================================
 * PHONE FRAME (shared)
 * ============================================================================= */
.phone {
  display: inline-block; position: relative;
  width: 320px; flex-shrink: 0;
}
.phone__shell {
  background: linear-gradient(180deg, #292524 0%, #1c1917 100%);
  border-radius: 44px;
  padding: 11px;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.12) inset,
    0 0 0 1px rgba(0,0,0,0.4),
    0 30px 60px -22px rgba(28,25,23,0.45);
  position: relative;
}
.phone__screen {
  background: var(--bg-page);
  border-radius: 34px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 9 / 19.5;
  isolation: isolate;
}
.phone__notch {
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 32%; height: 22px;
  background: #1c1917;
  border-bottom-left-radius: 14px;
  border-bottom-right-radius: 14px;
  z-index: 5;
}
.phone__statusbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 22px 4px;
  font-size: 11px; font-weight: 700;
  color: var(--text-primary);
  font-feature-settings: 'tnum';
}
.phone__statusbar--gray {
  background: #B9B5AC;
  color: #1c1917;
  padding: 10px 22px 6px;
}
.phone__statusbar-r { display: inline-flex; gap: 5px; align-items: center; }
.phone__content {
  padding: 6px 14px 12px;
  height: calc(100% - 26px);
  overflow: hidden;
  display: flex; flex-direction: column;
}
.phone__content--home {
  background: var(--bg-page);
  background-image: radial-gradient(circle at 1px 1px, rgba(28,25,23,0.04) 1px, transparent 0);
  background-size: 12px 12px;
}

.phone-tag {
  font-size: 9px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--text-tertiary);
  white-space: nowrap;
}
.phone-tag::before {
  content: ''; display: inline-block;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--signal-blue); margin-right: 6px;
  vertical-align: middle;
}

/* =============================================================================
 * PHONE SCREEN: HERO HOME (matches reference Image 1)
 * ============================================================================= */
.psc-h { display: flex; flex-direction: column; gap: 9px; font-family: var(--sans); }
.psc-h__top { display: flex; justify-content: space-between; align-items: flex-start; padding-top: 2px; }
.psc-h__brand { display: flex; gap: 6px; align-items: flex-start; }
.psc-h__brand-bar {
  width: 3px;
  background: var(--signal-blue);
  border-radius: 1px;
  align-self: stretch;
  min-height: 32px;
}
.psc-h__title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 22px;
  line-height: 0.95;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  margin: -2px 0 0;
}
.psc-h__top-r { display: flex; gap: 5px; align-items: center; }
.psc-h__free-pill {
  font-size: 8px; font-weight: 700;
  letter-spacing: 0.14em;
  padding: 4px 7px;
  border: 1px solid #D6D3D1;
  border-radius: 12px;
  color: var(--text-secondary);
}
.psc-h__signin {
  font-size: 8px; font-weight: 700;
  letter-spacing: 0.14em;
  padding: 4px 7px 4px 6px;
  background: #1c1917;
  color: #fff;
  border-radius: 12px;
  display: inline-flex; align-items: center; gap: 4px;
}
.psc-h__moon {
  width: 22px; height: 22px;
  border: 1px solid #D6D3D1;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-secondary);
}
.psc-h__sub {
  font-size: 11px;
  line-height: 1.4;
  color: var(--text-secondary);
  margin: -2px 0 6px;
}
.psc-h__foundations {
  background: linear-gradient(135deg, var(--tr-foundations-color) 0%, var(--tr-foundations-deep) 100%);
  color: #fff;
  border-radius: 12px;
  padding: 12px 14px 14px;
  position: relative;
  overflow: hidden;
}
.psc-h__found-pills { display: flex; gap: 5px; margin-bottom: 7px; }
.psc-h__found-pill {
  font-size: 7px; font-weight: 800;
  letter-spacing: 0.14em;
  padding: 3px 6px;
  border-radius: 10px;
  background: rgba(255,255,255,0.16);
  color: #fff;
}
.psc-h__found-pill--blue { background: var(--signal-blue); }
.psc-h__found-h {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 22px;
  line-height: 1.05;
  letter-spacing: -0.018em;
  margin: 0 0 4px;
}
.psc-h__found-s {
  font-size: 10px;
  color: rgba(255,255,255,0.9);
  margin: 0 0 8px;
  line-height: 1.35;
}
.psc-h__found-cta {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 500;
  color: #fff;
}
.psc-h__found-deco {
  position: absolute;
  top: 10px; right: 8px;
  opacity: 0.16;
  color: #fff;
}
.psc-h__apps {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex; gap: 10px; align-items: center;
}
.psc-h__apps-icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: #E7E5E1;
  color: var(--text-primary);
  display: flex; align-items: center; justify-content: center;
}
.psc-h__apps-body { flex: 1; display: flex; flex-direction: column; gap: 1px; }
.psc-h__apps-n {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 13px;
  color: var(--text-primary);
  line-height: 1.15;
}
.psc-h__apps-s {
  font-size: 9px;
  color: var(--text-secondary);
  line-height: 1.3;
}
.psc-h__apps-chev { color: var(--text-tertiary); display: flex; align-items: center; }

.psc-h__access-divider {
  display: flex; align-items: center; gap: 6px;
  margin: 4px 0 -2px;
  color: var(--text-tertiary);
}
.psc-h__access-spark { color: var(--signal-blue); display: flex; align-items: center; }
.psc-h__access-text {
  font-size: 8px; font-weight: 800;
  letter-spacing: 0.16em;
}

.psc-h__trk-list { display: flex; flex-direction: column; gap: 6px; }
.psc-h__trk-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-top: 2px solid var(--tc);
  border-radius: 9px;
  padding: 9px 11px;
  display: flex; gap: 9px; align-items: center;
}
.psc-h__trk-card-icon {
  width: 28px; height: 28px;
  background: var(--tt);
  color: var(--td);
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.psc-h__trk-card-icon svg { width: 14px; height: 14px; }
.psc-h__trk-card-body { flex: 1; display: flex; flex-direction: column; gap: 1px; }
.psc-h__trk-card-n {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 12px;
  color: var(--text-primary);
  line-height: 1.15;
}
.psc-h__trk-card-s {
  font-size: 9px;
  color: var(--text-secondary);
  line-height: 1.3;
}
.psc-h__trk-card-lock { color: var(--text-tertiary); display: flex; align-items: center; }

/* =============================================================================
 * PHONE SCREEN: APPS HOME (matches reference Image 2)
 * ============================================================================= */
.psc-ah { display: flex; flex-direction: column; gap: 10px; font-family: var(--sans); }
.psc-ah__head {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 2px;
}
.psc-ah__back { color: var(--text-primary); display: flex; }
.psc-ah__head-r { display: flex; gap: 7px; color: var(--text-secondary); }
.psc-ah__head-icon { display: flex; align-items: center; }
.psc-ah__hero {
  background: linear-gradient(135deg, #2D3A52 0%, #1E293B 100%);
  color: #fff;
  border-radius: 12px;
  padding: 12px 14px 14px;
  position: relative;
  overflow: hidden;
}
.psc-ah__hero-icon { margin-bottom: 4px; opacity: 0.95; }
.psc-ah__hero-h {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 21px;
  line-height: 1.05;
  letter-spacing: -0.018em;
  margin: 0 0 4px;
}
.psc-ah__hero-s {
  font-size: 10px;
  color: rgba(255,255,255,0.85);
  line-height: 1.4;
  margin: 0;
  max-width: 80%;
}
.psc-ah__hero-deco {
  position: absolute;
  top: -4px; right: -8px;
  opacity: 0.12;
  color: #fff;
}
.psc-ah__list { display: flex; flex-direction: column; gap: 6px; }
.psc-ah__card {
  background: var(--bg-card);
  border-radius: 10px;
  padding: 9px 11px;
  display: flex; gap: 9px; align-items: center;
  box-shadow: 0 1px 2px rgba(28,25,23,0.04);
}
.psc-ah__card-icon {
  width: 28px; height: 28px;
  background: #E7E5E1;
  color: var(--text-primary);
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.psc-ah__card-body { flex: 1; display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.psc-ah__card-n {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 12px;
  color: var(--text-primary);
  line-height: 1.15;
}
.psc-ah__card-s {
  font-size: 9px;
  color: var(--text-secondary);
  line-height: 1.3;
}
.psc-ah__card-chev { color: var(--text-tertiary); display: flex; align-items: center; }

/* =============================================================================
 * PHONE SCREEN: INDIVIDUAL APPS (Images 3-6)
 * Shared psc-app prefix
 * ============================================================================= */
.psc-app { display: flex; flex-direction: column; gap: 7px; font-family: var(--sans); }
.psc-app__head {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 2px;
}
.psc-app__head-l { display: flex; align-items: center; gap: 8px; }
.psc-app__back { color: var(--text-primary); display: flex; }
.psc-app__title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.014em;
  color: var(--signal-blue);
  margin: 0;
}
.psc-app__head-r { display: flex; gap: 6px; color: var(--text-secondary); }
.psc-app__head-r > span { display: flex; align-items: center; }
.psc-app__subhead {
  font-size: 8px; font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--text-tertiary);
  margin: 0 0 2px;
}
.psc-app__toggle-row {
  display: flex; justify-content: flex-end; margin: 2px 0;
}
.psc-app__toggle-row--split { justify-content: space-between; }
.psc-app__toggle {
  display: inline-flex;
  border-radius: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 2px;
}
.psc-app__toggle--wide { width: 100%; }
.psc-app__toggle--wide .psc-app__toggle-opt { flex: 1; text-align: center; }
.psc-app__toggle-opt {
  font-size: 9px; font-weight: 700;
  letter-spacing: 0.12em;
  padding: 5px 10px;
  border-radius: 6px;
  color: var(--text-tertiary);
}
.psc-app__toggle-opt--on {
  background: var(--signal-blue);
  color: #fff;
}
.psc-app__stats {
  font-size: 9px;
  color: var(--text-secondary);
  margin: 1px 0;
  display: flex; justify-content: space-between;
  padding: 5px 8px;
  background: rgba(28,25,23,0.025);
  border-radius: 6px;
}
.psc-app__streak { color: var(--text-tertiary); }
.psc-app__chain-card {
  background: var(--signal-blue-tint);
  border-left: 3px solid var(--signal-blue);
  border-radius: 8px;
  padding: 8px 10px;
  display: flex; flex-direction: column; gap: 2px;
}
.psc-app__chain-eb {
  font-size: 7px; font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--signal-blue-deep);
}
.psc-app__chain-n {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 12px;
  color: var(--signal-blue-deep);
  line-height: 1.15;
}
.psc-app__chain-s {
  font-size: 9px;
  color: var(--text-secondary);
  line-height: 1.4;
  margin: 0;
}
.psc-app__step-row { display: flex; justify-content: space-between; align-items: center; }
.psc-app__step-chip {
  font-size: 9px; font-weight: 600;
  padding: 3px 8px;
  background: var(--signal-blue-tint);
  color: var(--signal-blue-deep);
  border-radius: 6px;
}
.psc-app__step-dots { font-size: 9px; color: var(--signal-blue); letter-spacing: 0.3em; }
.psc-app__trx-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 8px 10px;
}
.psc-app__trx-eb {
  font-size: 7px; font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--text-tertiary);
  display: block; margin-bottom: 2px;
}
.psc-app__trx-text {
  font-size: 10px;
  color: var(--text-primary);
  line-height: 1.3;
  margin: 0;
}
.psc-app__correct-bar {
  background: #DCFCE7;
  color: #15803D;
  font-size: 11px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 6px;
}
.psc-app__ta-pair { display: flex; flex-direction: column; gap: 6px; }
.psc-app__ta {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 7px 9px;
}
.psc-app__ta-h {
  display: block;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 11px;
  text-align: center;
  margin-bottom: 4px;
  padding-bottom: 3px;
  border-bottom: 1.5px solid var(--text-primary);
}
.psc-app__ta-cols {
  display: grid; grid-template-columns: 1fr 1fr;
  font-size: 7px; font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-tertiary);
  padding-bottom: 3px;
  border-bottom: 1px solid var(--border-subtle);
}
.psc-app__ta-cols span:first-child { text-align: left; }
.psc-app__ta-cols span:last-child { text-align: right; }
.psc-app__ta-row {
  display: grid; grid-template-columns: 1fr 1fr;
  padding-top: 4px;
  font-family: var(--mono);
  font-size: 10px;
}
.psc-app__ta-row em { font-style: normal; font-weight: 600; color: var(--text-primary); }
.psc-app__ta-row em:first-child { text-align: left; }
.psc-app__ta-row em:last-child { text-align: right; }

/* Three-statement extras */
.psc-app__scn-line {
  display: flex; gap: 6px; align-items: baseline; flex-wrap: wrap;
  margin: 4px 0 2px;
}
.psc-app__scn-eb {
  font-size: 7px; font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--text-tertiary);
}
.psc-app__scn-n { font-size: 11px; font-weight: 500; color: var(--text-primary); }
.psc-app__scn-v { font-size: 11px; font-weight: 600; color: var(--signal-blue); }
.psc-app__htp {
  font-size: 9px; font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--signal-blue);
  padding: 6px 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 7px;
  display: flex; justify-content: space-between; align-items: center;
}
.psc-app__scn-card {
  background: #FFFBEB;
  border-left: 3px solid #F59E0B;
  border-radius: 8px;
  padding: 8px 10px;
}
.psc-app__scn-eb-inline {
  font-size: 7px; font-weight: 700;
  letter-spacing: 0.14em;
  color: #B45309;
  display: block; margin-bottom: 2px;
}
.psc-app__scn-body {
  font-size: 9px;
  color: var(--text-primary);
  line-height: 1.4;
  margin: 0;
}
.psc-app__directions-h {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.012em;
  margin: 4px 0 0;
}
.psc-app__dir-section { display: flex; flex-direction: column; gap: 4px; }
.psc-app__dir-eb {
  font-size: 7px; font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--signal-blue);
}
.psc-app__dir-row {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 6px 8px;
  display: flex; flex-direction: column; gap: 4px;
}
.psc-app__dir-label {
  font-size: 8px; font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text-tertiary);
}
.psc-app__dir-btns { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 4px; }
.psc-app__dir-btn {
  text-align: center;
  font-size: 11px; font-weight: 600;
  padding: 4px;
  background: var(--bg-page);
  border: 1px solid var(--border-subtle);
  border-radius: 5px;
  color: var(--text-tertiary);
  display: inline-flex; align-items: center; justify-content: center; gap: 3px;
}
.psc-app__dir-btn--sel {
  background: rgba(34,197,94,0.10);
  border-color: #16A34A;
  color: #15803D;
}

/* Bridge extras */
.psc-app__fineprint {
  font-size: 9px; color: var(--text-secondary);
  margin: 0; font-style: italic;
}
.psc-app__br-fam {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 7px 10px;
  display: flex; flex-direction: column; gap: 3px;
}
.psc-app__br-fam-eb {
  font-size: 7px; font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--text-tertiary);
}
.psc-app__br-fam-row {
  display: flex; justify-content: space-between; align-items: center;
}
.psc-app__br-fam-text {
  font-size: 11px; font-weight: 500;
  color: var(--text-primary);
}
.psc-app__br-source {
  display: flex; flex-direction: column; gap: 5px;
}
.psc-app__br-source-eb {
  font-size: 7px; font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--text-tertiary);
}
.psc-app__br-source-row {
  background: #F5EFFA;
  border-radius: 7px;
  padding: 6px 9px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 9px;
}
.psc-app__br-tag {
  font-weight: 700; letter-spacing: 0.1em;
  color: var(--text-secondary);
  font-size: 8px;
}
.psc-app__br-pill {
  font-size: 7px; font-weight: 700;
  letter-spacing: 0.12em;
  padding: 2px 6px;
  border-radius: 4px;
  background: #E9D9F2;
  color: #6B21A8;
  margin-left: 6px;
}
.psc-app__br-pill--start { background: #DDD6FE; color: #5B21B6; }
.psc-app__br-source-num {
  display: inline-flex; gap: 4px; align-items: center;
  color: var(--text-secondary);
}
.psc-app__br-current {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 7px 9px;
  display: flex; flex-direction: column; gap: 5px;
}
.psc-app__br-current-head { display: flex; justify-content: space-between; align-items: center; }
.psc-app__br-eb {
  font-size: 7px; font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--text-tertiary);
}
.psc-app__br-count { font-size: 9px; color: var(--text-tertiary); }
.psc-app__br-add-btn {
  background: var(--signal-blue);
  color: #fff;
  text-align: center;
  font-size: 9px; font-weight: 600;
  padding: 6px;
  border-radius: 6px;
  letter-spacing: 0.04em;
}
.psc-app__br-line {
  display: flex; justify-content: space-between; align-items: flex-start;
  font-size: 9px;
  padding: 4px 0;
  border-top: 1px solid var(--border-subtle);
}
.psc-app__br-line:first-of-type { border-top: 0; }
.psc-app__br-line-l { line-height: 1.4; color: var(--text-primary); }
.psc-app__br-line-l b { font-weight: 600; }
.psc-app__br-line-m { color: var(--text-tertiary); }
.psc-app__br-line-r { display: flex; gap: 4px; flex-shrink: 0; }
.psc-app__br-act {
  font-size: 7px; font-weight: 700;
  letter-spacing: 0.1em;
  padding: 3px 6px;
  border-radius: 4px;
  background: var(--bg-page);
  color: var(--text-tertiary);
  border: 1px solid var(--border-subtle);
}
.psc-app__br-act--add {
  background: #DCFCE7; color: #15803D; border-color: #BBF7D0;
}
.psc-app__br-fab {
  position: absolute;
  bottom: 10px; right: 10px;
  width: 36px; height: 36px;
  background: var(--signal-blue);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 8px rgba(37,99,235,0.4);
}

/* Model Wiring extras */
.psc-app__mw-scn {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 8px 10px;
}
.psc-app__mw-scn-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 4px; }
.psc-app__mw-scn-h {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 14px;
  color: var(--text-primary);
  margin: 0;
}
.psc-app__mw-scn-r {
  font-size: 8px; font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text-tertiary);
}
.psc-app__mw-scn-body {
  font-size: 10px;
  color: var(--text-primary);
  line-height: 1.35;
  margin: 0 0 4px;
}
.psc-app__mw-bullets {
  list-style: disc;
  padding-left: 14px;
  margin: 0;
}
.psc-app__mw-bullets li {
  list-style: disc;
  font-size: 9px;
  color: var(--text-secondary);
  line-height: 1.5;
}
.psc-app__mw-chain {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 8px 10px;
}
.psc-app__mw-chain-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.psc-app__mw-chain-eb {
  font-size: 7px; font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--text-tertiary);
}
.psc-app__mw-chain-r { font-size: 8px; color: var(--text-tertiary); }
.psc-app__mw-chain-empty {
  font-size: 8.5px;
  color: var(--text-tertiary);
  font-style: italic;
  line-height: 1.4;
  margin: 0;
}
.psc-app__mw-palette {
  display: flex; flex-direction: column; gap: 4px;
}
.psc-app__mw-palette-eb {
  font-size: 7px; font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--text-tertiary);
  padding-left: 2px;
}
.psc-app__mw-node {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 5px 8px;
  display: flex; gap: 7px; align-items: center;
  font-size: 9px;
  color: var(--text-primary);
}
.psc-app__mw-tag {
  font-size: 7px; font-weight: 700;
  letter-spacing: 0.1em;
  padding: 2px 5px;
  border-radius: 3px;
  flex-shrink: 0;
}
.psc-app__mw-tag--input { background: #DDEBFB; color: #1D4ED8; }
.psc-app__mw-tag--cfs   { background: #FEE2E2; color: #B91C1C; }
.psc-app__mw-tag--bs    { background: #FEF3C7; color: #92400E; }
.psc-app__mw-tag--is    { background: #DCFCE7; color: #15803D; }

/* =============================================================================
 * PHONE SCREEN: TRACK HOME
 * ============================================================================= */
.psc-tr { display: flex; flex-direction: column; gap: 8px; font-family: var(--sans); }
.psc-tr__head { display: flex; align-items: center; gap: 8px; padding-top: 2px; }
.psc-tr__back { color: var(--text-primary); display: flex; }
.psc-tr__hero {
  background: linear-gradient(135deg, var(--tc) 0%, var(--td) 100%);
  color: #fff;
  border-radius: 12px;
  padding: 12px 14px 14px;
  position: relative;
}
.psc-tr__hero-icon { margin-bottom: 3px; opacity: 0.95; }
.psc-tr__hero-icon svg { width: 22px; height: 22px; }
.psc-tr__hero-n {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 18px;
  line-height: 1.05;
  letter-spacing: -0.016em;
  margin: 0 0 3px;
}
.psc-tr__hero-s {
  font-size: 10px;
  color: rgba(255,255,255,0.9);
  line-height: 1.4;
  margin: 0;
}
.psc-tr__cta {
  background: var(--bg-card);
  border: 1px solid var(--td);
  border-radius: 9px;
  padding: 6px 10px;
  display: flex; justify-content: center; align-items: center; gap: 6px;
  color: var(--td);
  font-family: var(--serif); font-weight: 600; font-size: 11px;
}
.psc-tr__unit-eb {
  font-size: 8px; font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--td);
  margin: 3px 0 -3px;
}
.psc-tr__unit-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 7px 9px;
  display: flex; gap: 8px; align-items: center;
}
.psc-tr__unit-card-icon {
  width: 24px; height: 24px;
  background: var(--tt);
  color: var(--td);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.psc-tr__unit-card-body { display: flex; flex-direction: column; gap: 1px; }
.psc-tr__unit-card-n {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 11px;
  color: var(--text-primary);
  line-height: 1.15;
}
.psc-tr__unit-card-s {
  font-size: 9px;
  color: var(--text-secondary);
  line-height: 1.3;
}

/* =============================================================================
 * MASTER/DETAIL — APPS section
 * ============================================================================= */
.app-radio { position: absolute; opacity: 0; pointer-events: none; }
.apps-md-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 48px;
  align-items: start;
}
.apps-list { display: flex; flex-direction: column; }
.app-back-link {
  display: none;
  align-items: center; gap: 6px;
  font-size: 12px;
  color: var(--text-tertiary);
  cursor: pointer;
  padding: 6px 0 14px;
  font-family: var(--serif); font-style: italic;
  transition: color 120ms ease;
}
.app-back-link:hover { color: var(--text-primary); }
.app-item {
  display: grid;
  grid-template-columns: 32px 1fr 18px;
  gap: 16px;
  align-items: start;
  padding: 18px 20px 18px 16px;
  border-top: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: background 150ms ease;
  border-left: 3px solid transparent;
}
.app-item:last-of-type { border-bottom: 1px solid var(--border-subtle); }
.app-item:hover { background: rgba(37,99,235,0.03); }
.app-item__n {
  font-family: var(--serif); font-size: 20px; font-weight: 600;
  color: var(--text-tertiary);
  padding-top: 1px;
}
.app-item__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.app-item__head { display: flex; flex-direction: column; gap: 3px; }
.app-item__name {
  font-family: var(--serif); font-size: 18px; font-weight: 600;
  letter-spacing: -0.01em; margin: 0; color: var(--text-primary);
}
.app-item__brief {
  font-size: 14px; color: var(--text-secondary); margin: 0; line-height: 1.5;
}
.app-item__ext {
  max-height: 0; opacity: 0; overflow: hidden;
  transition: max-height 280ms ease, opacity 200ms ease, margin 200ms ease;
}
.app-item__ext p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-primary);
  margin: 0;
}
.app-item__chev {
  color: var(--text-tertiary);
  display: flex; align-items: center;
  padding-top: 4px;
  opacity: 0.7;
}

/* Selected state */
#app-taccount:checked  ~ .apps-md-grid .app-item--taccount,
#app-modwire:checked   ~ .apps-md-grid .app-item--modwire,
#app-threestmt:checked ~ .apps-md-grid .app-item--threestmt,
#app-bridge:checked    ~ .apps-md-grid .app-item--bridge {
  background: rgba(37,99,235,0.05);
  border-left-color: var(--signal-blue);
}
#app-taccount:checked  ~ .apps-md-grid .app-item--taccount  .app-item__ext,
#app-modwire:checked   ~ .apps-md-grid .app-item--modwire   .app-item__ext,
#app-threestmt:checked ~ .apps-md-grid .app-item--threestmt .app-item__ext,
#app-bridge:checked    ~ .apps-md-grid .app-item--bridge    .app-item__ext {
  max-height: 200px;
  opacity: 1;
  margin-top: 6px;
}
#app-taccount:checked  ~ .apps-md-grid .app-item--taccount  .app-item__n,
#app-modwire:checked   ~ .apps-md-grid .app-item--modwire   .app-item__n,
#app-threestmt:checked ~ .apps-md-grid .app-item--threestmt .app-item__n,
#app-bridge:checked    ~ .apps-md-grid .app-item--bridge    .app-item__n {
  color: var(--signal-blue);
}
#app-taccount:checked  ~ .apps-md-grid .app-back-link,
#app-modwire:checked   ~ .apps-md-grid .app-back-link,
#app-threestmt:checked ~ .apps-md-grid .app-back-link,
#app-bridge:checked    ~ .apps-md-grid .app-back-link { display: inline-flex; }

/* Phone stage */
.apps-phone-stage {
  display: flex; flex-direction: column; align-items: center; gap: 28px;
}
.app-phone { display: none; flex-direction: column; align-items: center; gap: 28px; animation: phoneFade 280ms ease; }
@keyframes phoneFade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
#app-none:checked      ~ .apps-md-grid .app-phone--none      { display: flex; }
#app-taccount:checked  ~ .apps-md-grid .app-phone--taccount  { display: flex; }
#app-modwire:checked   ~ .apps-md-grid .app-phone--modwire   { display: flex; }
#app-threestmt:checked ~ .apps-md-grid .app-phone--threestmt { display: flex; }
#app-bridge:checked    ~ .apps-md-grid .app-phone--bridge    { display: flex; }

/* =============================================================================
 * MASTER/DETAIL — TRACKS section
 * ============================================================================= */
.trk-radio { position: absolute; opacity: 0; pointer-events: none; }
.trks-md-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 48px;
  align-items: start;
}
.trks-list { display: flex; flex-direction: column; }
.trk-item {
  display: grid;
  grid-template-columns: 6px 32px 44px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px 20px 14px 14px;
  border-top: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: background 150ms ease;
  border-left: 3px solid transparent;
}
.trk-item:last-of-type { border-bottom: 1px solid var(--border-subtle); }
.trk-item:hover { background: rgba(28,25,23,0.03); }
.trk-item__bar { height: 36px; background: var(--tc); border-radius: 1px; }
.trk-item__n {
  font-family: var(--serif); font-size: 18px; font-weight: 600;
  color: var(--text-tertiary);
}
.trk-item__icon {
  width: 44px; height: 44px;
  background: var(--tt); color: var(--td);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
}
.trk-item__icon svg { width: 22px; height: 22px; }
.trk-item__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.trk-item__name {
  font-family: var(--serif); font-size: 18px; font-weight: 600;
  letter-spacing: -0.01em; color: var(--text-primary);
}
.trk-item__sub { font-size: 13px; color: var(--text-secondary); line-height: 1.4; }
.trk-item__r { display: flex; align-items: center; }
.trk-item__free {
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.14em;
  padding: 4px 9px;
  background: var(--tc); color: #fff;
  border-radius: 3px;
}
.trk-item__fc {
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.10em; text-transform: uppercase;
  white-space: nowrap;
  padding: 4px 9px;
  border: 1px solid var(--tc); color: var(--tc);
  border-radius: 3px;
}
.trk-item__lock {
  width: 32px; height: 32px;
  background: var(--tt); color: var(--td);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
}

#trk-foundations:checked ~ .trks-md-grid .trk-item[for="trk-foundations"],
#trk-modeling:checked    ~ .trks-md-grid .trk-item[for="trk-modeling"],
#trk-deals:checked       ~ .trks-md-grid .trk-item[for="trk-deals"],
#trk-filings:checked     ~ .trks-md-grid .trk-item[for="trk-filings"],
#trk-opfin:checked       ~ .trks-md-grid .trk-item[for="trk-opfin"],
#trk-qoe:checked         ~ .trks-md-grid .trk-item[for="trk-qoe"] {
  background: rgba(28,25,23,0.04);
  border-left-color: var(--tc);
}

.trks-phone-stage {
  display: flex; flex-direction: column; align-items: center; gap: 28px;
}
.trk-phone { display: none; flex-direction: column; align-items: center; gap: 28px; animation: phoneFade 280ms ease; }
#trk-foundations:checked ~ .trks-md-grid .trk-phone--foundations { display: flex; }
#trk-modeling:checked    ~ .trks-md-grid .trk-phone--modeling    { display: flex; }
#trk-deals:checked       ~ .trks-md-grid .trk-phone--deals       { display: flex; }
#trk-filings:checked     ~ .trks-md-grid .trk-phone--filings     { display: flex; }
#trk-opfin:checked       ~ .trks-md-grid .trk-phone--opfin       { display: flex; }
#trk-qoe:checked         ~ .trks-md-grid .trk-phone--qoe         { display: flex; }

/* =============================================================================
 * Responsive
 * ============================================================================= */
@media (max-width: 900px) {
  .container { padding: 0 20px; }
  .hero-grid--phone { grid-template-columns: 1fr; gap: 36px; }
  .hero-phone { order: -1; align-self: center; }
  .apps-md-grid, .trks-md-grid { grid-template-columns: 1fr; gap: 28px; }
  .apps-phone-stage, .trks-phone-stage { position: relative; top: 0; order: -1; }
  .trk-item { grid-template-columns: 4px 24px 36px 1fr auto; gap: 10px; }
  .trk-item__icon { width: 36px; height: 36px; }
  .badges { flex-direction: column; }
  .badge { min-width: 0; width: 100%; }
}

/* =============================================================================
 * V2 ADDITIONS — appended to v1 base
 * Hero feature row · app icons + tagline · phone carousel · top-alignment fix
 * ============================================================================= */

/* --- Hero: tighten top + add feature row below badges --- */
.hero { padding-top: 12px; }
.hero-grid--phone { align-items: stretch; }

.hero-feat {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 28px;
  margin: 32px 0 0;
  padding: 24px 0 0;
  border-top: 1px solid var(--border-subtle);
  max-width: 560px;
}
.hero-feat__item {
  display: flex; align-items: center; gap: 12px;
  font-size: 14px;
  color: var(--text-primary);
  font-weight: 500;
}
.hero-feat__icon {
  width: 32px; height: 32px;
  background: var(--signal-blue-tint);
  color: var(--signal-blue-deep);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

/* --- Apps / Tracks grid: header now lives inside left column --- */
.apps-md-grid, .trks-md-grid { align-items: start; }
.apps-col, .trks-col { display: flex; flex-direction: column; }
.apps-col .sec__lede, .trks-col .sec__lede { margin-bottom: 8px; }
.apps-col .apps-list, .trks-col .trks-list { margin-top: 24px; }

/* --- App item: override v1 grid to include __l (number + icon) --- */
.app-item {
  grid-template-columns: auto 1fr 18px;
}
.app-item__l {
  display: flex; align-items: center; gap: 12px;
}
.app-item__icon {
  width: 38px; height: 38px;
  background: rgba(28,25,23,0.05);
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-secondary);
  transition: background 180ms ease, color 180ms ease;
}
.app-item__tagline {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 4px;
  display: block;
  transition: color 180ms ease;
}
.app-item__body { gap: 3px; }

/* When app selected: icon goes blue, tagline goes blue */
#app-taccount:checked  ~ .apps-md-grid .app-item--taccount  .app-item__icon,
#app-modwire:checked   ~ .apps-md-grid .app-item--modwire   .app-item__icon,
#app-threestmt:checked ~ .apps-md-grid .app-item--threestmt .app-item__icon,
#app-bridge:checked    ~ .apps-md-grid .app-item--bridge    .app-item__icon {
  background: var(--signal-blue);
  color: #fff;
}
#app-taccount:checked  ~ .apps-md-grid .app-item--taccount  .app-item__tagline,
#app-modwire:checked   ~ .apps-md-grid .app-item--modwire   .app-item__tagline,
#app-threestmt:checked ~ .apps-md-grid .app-item--threestmt .app-item__tagline,
#app-bridge:checked    ~ .apps-md-grid .app-item--bridge    .app-item__tagline {
  color: var(--signal-blue);
}

/* Hide back-link (removed from HTML, this is defensive) */
.app-back-link { display: none !important; }

/* --- CAROUSEL --- */
.cs-radio { position: absolute; opacity: 0; pointer-events: none; }
.app-phone__inner {
  display: flex; flex-direction: column; align-items: center;
  gap: 20px;
}
.cs-screens { position: relative; display: flex; align-items: center; justify-content: center; }
.cs-screen { display: none; }

/* Show only the selected screen */
#taccount-s1:checked  ~ .apps-md-grid .app-phone--taccount  .cs-screen--1,
#taccount-s2:checked  ~ .apps-md-grid .app-phone--taccount  .cs-screen--2,
#threestmt-s1:checked ~ .apps-md-grid .app-phone--threestmt .cs-screen--1,
#threestmt-s2:checked ~ .apps-md-grid .app-phone--threestmt .cs-screen--2,
#modwire-s1:checked   ~ .apps-md-grid .app-phone--modwire   .cs-screen--1,
#modwire-s2:checked   ~ .apps-md-grid .app-phone--modwire   .cs-screen--2,
#bridge-s1:checked    ~ .apps-md-grid .app-phone--bridge    .cs-screen--1,
#bridge-s2:checked    ~ .apps-md-grid .app-phone--bridge    .cs-screen--2 {
  display: block;
  animation: phoneFade 280ms ease;
}

.cs-dots { display: flex; gap: 10px; justify-content: center; }
.cs-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: rgba(28,25,23,0.18);
  cursor: pointer;
  transition: background 180ms ease, transform 180ms ease;
}
.cs-dot:hover { background: rgba(28,25,23,0.32); transform: scale(1.12); }

#taccount-s1:checked  ~ .apps-md-grid .app-phone--taccount  .cs-dot--1,
#taccount-s2:checked  ~ .apps-md-grid .app-phone--taccount  .cs-dot--2,
#threestmt-s1:checked ~ .apps-md-grid .app-phone--threestmt .cs-dot--1,
#threestmt-s2:checked ~ .apps-md-grid .app-phone--threestmt .cs-dot--2,
#modwire-s1:checked   ~ .apps-md-grid .app-phone--modwire   .cs-dot--1,
#modwire-s2:checked   ~ .apps-md-grid .app-phone--modwire   .cs-dot--2,
#bridge-s1:checked    ~ .apps-md-grid .app-phone--bridge    .cs-dot--1,
#bridge-s2:checked    ~ .apps-md-grid .app-phone--bridge    .cs-dot--2 {
  background: var(--signal-blue);
  transform: scale(1.18);
}

.cs-captions { position: relative; max-width: 320px; text-align: center; min-height: 64px; }
.cs-caption { display: none; animation: phoneFade 280ms ease; }
#taccount-s1:checked  ~ .apps-md-grid .app-phone--taccount  .cs-caption--1,
#taccount-s2:checked  ~ .apps-md-grid .app-phone--taccount  .cs-caption--2,
#threestmt-s1:checked ~ .apps-md-grid .app-phone--threestmt .cs-caption--1,
#threestmt-s2:checked ~ .apps-md-grid .app-phone--threestmt .cs-caption--2,
#modwire-s1:checked   ~ .apps-md-grid .app-phone--modwire   .cs-caption--1,
#modwire-s2:checked   ~ .apps-md-grid .app-phone--modwire   .cs-caption--2,
#bridge-s1:checked    ~ .apps-md-grid .app-phone--bridge    .cs-caption--1,
#bridge-s2:checked    ~ .apps-md-grid .app-phone--bridge    .cs-caption--2 {
  display: block;
}
.cs-caption__mode {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--signal-blue);
  margin-bottom: 6px;
}
.cs-caption__desc {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-secondary);
  margin: 0;
}

/* --- Simple-mode check answer button (T-Account, Model Wiring) --- */
.psc-app__check-row { display: flex; justify-content: center; margin-top: 4px; }
.psc-app__check-btn {
  background: var(--signal-blue);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
  padding: 7px 22px;
  border-radius: 7px;
}

/* --- Model Wiring built-chain (Simple mode) --- */
.psc-app__mw-built { display: flex; flex-direction: column; gap: 3px; padding: 4px 0 2px; }
.psc-app__mw-node-built {
  background: var(--signal-blue-tint);
  border: 1px solid rgba(37,99,235,0.20);
  border-radius: 7px;
  padding: 6px 9px;
  display: flex; gap: 8px; align-items: center;
  font-size: 9.5px;
  color: var(--text-primary);
}
.psc-app__mw-arrow {
  font-size: 13px;
  color: var(--signal-blue);
  text-align: center;
  line-height: 1;
}

/* --- Bridge: red subtract variant --- */
.psc-app__br-act--sub {
  background: #FEE2E2;
  color: #B91C1C;
  border-color: #FECACA;
}

/* --- Mobile responsive --- */
@media (max-width: 900px) {
  .hero-feat { grid-template-columns: 1fr; }
  .apps-md-grid, .trks-md-grid { grid-template-columns: 1fr; gap: 24px; }
}

/* =============================================================================
 * V3 ADDITIONS — appended to v2 base
 * Hero top border + breathing room
 * Apps cards: colored bars, lock chips, WHY IT WORKS panel
 * Phone-tag pills hidden in favour of single footer disclaimer
 * Track section bottom padding tightened
 * ============================================================================= */

/* --- Hero top border + breathing room --- */
.hero {
  padding-top: 36px;
  border-top: 1px solid var(--border-strong);
}

/* --- Hide phone-tag pills (single disclaimer in footer instead) --- */
.phone-tag { display: none !important; }
.hero-phone, .trk-phone, .app-phone__inner { gap: 0 !important; }
.app-phone__inner { gap: 20px !important; } /* keep gap for carousel dots */

/* --- Apps section: COLORFUL cards (mirroring Tracks visual treatment) --- */

/* Override v1+v2 app-item styling */
.apps-list { display: flex; flex-direction: column; gap: 0; }

.app-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 0;
  padding: 22px 22px 22px 16px;
  display: grid;
  grid-template-columns: 6px 32px 48px 1fr 38px;
  gap: 14px;
  align-items: center;
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease;
  margin-bottom: -1px; /* collapse borders between cards */
  border-left: none;
  position: relative;
  overflow: hidden;
}
.app-item:first-of-type { border-top-left-radius: 12px; border-top-right-radius: 12px; }
.app-item:last-of-type { border-bottom-left-radius: 12px; border-bottom-right-radius: 12px; margin-bottom: 0; }
.app-item:hover { background: color-mix(in srgb, var(--ac) 4%, var(--bg-card)); }

/* Left colored bar */
.app-item__bar {
  height: 100%;
  background: var(--ac);
  border-radius: 1px;
  align-self: stretch;
  margin: -22px 0 -22px -16px;
  padding-left: 6px;
  width: 6px;
}

.app-item__n {
  font-family: var(--serif); font-size: 20px; font-weight: 600;
  color: var(--text-tertiary);
  text-align: center;
  align-self: start;
  padding-top: 2px;
  transition: color 180ms ease;
}
.app-item__icon {
  width: 48px; height: 48px;
  background: var(--at);
  color: var(--ad);
  border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  align-self: start;
  transition: transform 180ms ease;
}
.app-item__body {
  display: flex; flex-direction: column; gap: 3px;
  min-width: 0;
  align-self: start;
  padding-top: 2px;
}
.app-item__tagline {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ad);
  display: block;
}
.app-item__name {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.012em;
  color: var(--text-primary);
  margin: 2px 0 0;
  line-height: 1.2;
}
.app-item__brief {
  font-size: 13.5px;
  color: var(--text-secondary);
  margin: 4px 0 0;
  line-height: 1.5;
}
.app-item__r {
  width: 38px; height: 38px;
  background: var(--at);
  color: var(--ad);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  align-self: start;
  margin-top: 2px;
}
.app-item__chev { display: none !important; }
.app-item__l { display: none !important; }

/* Extended panel (visible when selected) */
.app-item__ext {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 320ms ease, opacity 240ms ease, margin 200ms ease;
}
.app-item__ext > p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-primary);
  margin: 0 0 14px;
}
.app-item__why-eb {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ad);
  display: block;
  margin-bottom: 8px;
  padding-top: 12px;
  border-top: 1px solid color-mix(in srgb, var(--ac) 20%, transparent);
}
.app-item__why-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.app-item__why-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  background: var(--bg-card);
  border: 1px solid color-mix(in srgb, var(--ac) 18%, transparent);
  border-radius: 8px;
  font-size: 13px;
  color: var(--text-primary);
  line-height: 1.4;
}
.app-item__why-item-icon {
  color: var(--ac);
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

/* Selected state — strong */
#app-taccount:checked  ~ .apps-md-grid .app-item--taccount,
#app-modwire:checked   ~ .apps-md-grid .app-item--modwire,
#app-threestmt:checked ~ .apps-md-grid .app-item--threestmt,
#app-bridge:checked    ~ .apps-md-grid .app-item--bridge {
  background: color-mix(in srgb, var(--at) 75%, var(--bg-card)) !important;
  border-color: var(--ac);
  z-index: 1;
}
/* Selected: number turns deep color */
#app-taccount:checked  ~ .apps-md-grid .app-item--taccount  .app-item__n,
#app-modwire:checked   ~ .apps-md-grid .app-item--modwire   .app-item__n,
#app-threestmt:checked ~ .apps-md-grid .app-item--threestmt .app-item__n,
#app-bridge:checked    ~ .apps-md-grid .app-item--bridge    .app-item__n {
  color: var(--ad);
}
/* Selected: icon bg becomes full color with white icon */
#app-taccount:checked  ~ .apps-md-grid .app-item--taccount  .app-item__icon,
#app-modwire:checked   ~ .apps-md-grid .app-item--modwire   .app-item__icon,
#app-threestmt:checked ~ .apps-md-grid .app-item--threestmt .app-item__icon,
#app-bridge:checked    ~ .apps-md-grid .app-item--bridge    .app-item__icon {
  background: var(--ac);
  color: #fff;
}
/* Selected: extended panel reveals */
#app-taccount:checked  ~ .apps-md-grid .app-item--taccount  .app-item__ext,
#app-modwire:checked   ~ .apps-md-grid .app-item--modwire   .app-item__ext,
#app-threestmt:checked ~ .apps-md-grid .app-item--threestmt .app-item__ext,
#app-bridge:checked    ~ .apps-md-grid .app-item--bridge    .app-item__ext {
  max-height: 600px;
  opacity: 1;
  margin-top: 14px;
}

/* --- Track section bottom padding tightened --- */
.sec--tracks { padding-bottom: 24px; }
.ftr { margin-top: 24px; padding-top: 22px; }

/* --- Footer disclaimer for phone-screen accuracy --- */
.ftr__notice {
  font-size: 11px;
  color: var(--text-tertiary);
  text-align: center;
  margin: 14px auto 0;
  font-style: italic;
  font-family: var(--serif);
  max-width: 64ch;
}

/* --- Mobile responsive adjustments for new app layout --- */
@media (max-width: 900px) {
  .app-item {
    grid-template-columns: 6px auto 1fr auto;
    padding: 18px 16px 18px 14px;
  }
  .app-item__n { display: none; }
  .app-item__icon { width: 40px; height: 40px; }
}

/* =============================================================================
 * V3 FIX — replace grid-based bar with absolute ::before bar
 * Clean grid (no bar column), bar drawn via pseudo-element
 * ============================================================================= */
.app-item {
  grid-template-columns: 32px 48px 1fr 38px !important;
  padding-left: 22px !important;
  position: relative;
}
.app-item::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 6px;
  background: var(--ac);
}
.app-item__bar { display: none !important; }

/* Now the body column is properly 1fr — text can flow normally */
.app-item__body { min-width: 0; }
.app-item__name { word-wrap: normal; overflow-wrap: break-word; }
.app-item__brief { word-wrap: normal; overflow-wrap: break-word; }
.app-item__tagline { white-space: normal; }

/* Mobile: collapse number column for tighter layout */
@media (max-width: 900px) {
  .app-item {
    grid-template-columns: 44px 1fr 38px !important;
  }
}


/* =============================================================================
 * V4 LOCKED — applied to all variants
 * Hero rule below eyebrow · footer combine · apps row parity with tracks
 * ============================================================================= */

/* Hero: rule line below the eyebrow row, matches section dividers */
.hero-top {
  border-bottom: 1px solid var(--border-strong);
  padding-bottom: 16px;
  margin-bottom: 28px;
}

/* Footer notice combined into educational disclaimer — hide the standalone */
.ftr__notice { display: none !important; }

/* APPS — row chrome now identical to TRACKS */
.apps-list { display: flex; flex-direction: column; gap: 0; }

.app-item {
  background: transparent !important;
  border: none !important;
  border-top: 1px solid var(--border-subtle) !important;
  border-radius: 0 !important;
  padding: 14px 20px 14px 14px !important;
  display: grid !important;
  grid-template-columns: 6px 32px 44px 1fr auto !important;
  gap: 14px !important;
  align-items: center !important;
  margin-bottom: 0 !important;
  position: relative;
  overflow: visible !important;
  border-left: 3px solid transparent !important;
  cursor: pointer;
  transition: background 150ms ease, border-left-color 150ms ease;
}
.app-item:last-of-type {
  border-bottom: 1px solid var(--border-subtle) !important;
}
.app-item::before { display: none !important; }

.app-item__bar {
  display: block !important;
  width: 6px;
  height: 36px;
  background: var(--ac);
  border-radius: 1px;
  align-self: start !important;
  margin: 4px 0 0 0;
  padding: 0;
}
.app-item__n {
  font-family: var(--serif); font-size: 18px; font-weight: 600;
  color: var(--text-tertiary);
  text-align: center;
  align-self: start !important;
  padding: 12px 0 0 !important;
  margin: 0;
}
.app-item__icon {
  width: 44px !important;
  height: 44px !important;
  border-radius: 10px !important;
  align-self: start !important;
  background: var(--at);
  color: var(--ad);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background 180ms ease, color 180ms ease;
}
.app-item__icon svg { width: 22px !important; height: 22px !important; }

.app-item__body {
  display: flex; flex-direction: column;
  align-self: start !important;
  padding: 8px 0 0 !important;
  gap: 2px !important;
  min-width: 0;
}
.app-item__tagline {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ad);
  display: block;
  line-height: 1.2;
}
.app-item__name {
  font-family: var(--serif);
  font-size: 18px !important;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin: 0 !important;
  line-height: 1.2 !important;
}
.app-item__brief {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 0 !important;
  line-height: 1.4;
}

.app-item__r {
  width: 32px !important;
  height: 32px !important;
  border-radius: 8px !important;
  background: var(--at);
  color: var(--ad);
  display: flex; align-items: center; justify-content: center;
  align-self: start !important;
  margin: 4px 0 0 !important;
}

/* Default expander: collapsed */
.app-item__ext {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 320ms ease, opacity 240ms ease, margin 200ms ease, padding 200ms ease;
  padding: 0;
  margin: 0;
}

/* Mobile parity with tracks */
@media (max-width: 900px) {
  .app-item {
    grid-template-columns: 6px 44px 1fr auto !important;
    padding: 14px 14px !important;
  }
  .app-item__n { display: none; }
}


/* =============================================================================
 * VARIANT C — "Blue bar + slate tile, white panel expander"
 * Tagline+name row · brand-blue + slate chromey notes · white panel inset
 * ============================================================================= */

.app-item {
  --ac: #2563EB;       /* brand blue — bar */
  --ad: #1E40AF;       /* blue-800 — glyph in tile */
  --at: #F1F5F9;       /* slate-100 — tile bg (chromey-blue-grey note) */
}
.app-item__brief { display: none !important; }  /* moved to expander */
.app-item:hover { background: rgba(37, 99, 235, 0.035) !important; }

#app-taccount:checked  ~ .apps-md-grid .app-item--taccount,
#app-modwire:checked   ~ .apps-md-grid .app-item--modwire,
#app-threestmt:checked ~ .apps-md-grid .app-item--threestmt,
#app-bridge:checked    ~ .apps-md-grid .app-item--bridge {
  background: #EFF6FF !important;
  border-left-color: #2563EB !important;
}
#app-taccount:checked  ~ .apps-md-grid .app-item--taccount  .app-item__icon,
#app-modwire:checked   ~ .apps-md-grid .app-item--modwire   .app-item__icon,
#app-threestmt:checked ~ .apps-md-grid .app-item--threestmt .app-item__icon,
#app-bridge:checked    ~ .apps-md-grid .app-item--bridge    .app-item__icon {
  background: #2563EB !important;
  color: #fff !important;
}
#app-taccount:checked  ~ .apps-md-grid .app-item--taccount  .app-item__ext,
#app-modwire:checked   ~ .apps-md-grid .app-item--modwire   .app-item__ext,
#app-threestmt:checked ~ .apps-md-grid .app-item--threestmt .app-item__ext,
#app-bridge:checked    ~ .apps-md-grid .app-item--bridge    .app-item__ext {
  max-height: 720px;
  opacity: 1;
  margin-top: 14px;
  padding: 16px 18px !important;
  background: var(--bg-card) !important;
  border: 1px solid var(--border-subtle) !important;
  border-top: 3px solid #2563EB !important;
  border-radius: 8px !important;
}

.app-item__ext > p {
  font-size: 13.5px;
  color: var(--text-primary);
  margin: 0 0 12px !important;
  line-height: 1.6;
}
.app-item__why-eb {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #1E40AF !important;
  display: block;
  margin: 0 0 8px;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle) !important;
}
.app-item__why-list {
  display: flex; flex-direction: column; gap: 6px;
  list-style: none; padding: 0; margin: 0;
}
.app-item__why-item {
  background: #F8FAFC !important;
  border: 1px solid #E2E8F0 !important;
  border-radius: 6px !important;
  padding: 8px 12px !important;
  display: flex; align-items: center; gap: 12px;
  font-size: 13px;
  color: var(--text-primary);
  line-height: 1.4;
}
.app-item__why-item-icon { color: #2563EB !important; flex-shrink: 0; }


/* =============================================================================
 * V5 — round 5 refinements on top of v4c
 * Details/summary for click-to-toggle apps
 * Tracks-style row body (name + sub)
 * Seamless expander (no white card)
 * FREE pill for T-Account and Model Wiring
 * Active SIMPLE/ADVANCED labels inside phone mocks
 * One-line apps heading, two-line apps lede
 * ============================================================================= */

/* --- Apps heading: smaller cap so it fits one line --- */
.sec__h--apps {
  font-size: clamp(26px, 2.6vw, 32px);
  max-width: none;
}
.sec__lede--apps {
  max-width: 65ch;
}

/* --- Convert .app-item (now <details>) to use the same grid as before --- */
details.app-item {
  background: transparent !important;
  border: none !important;
  border-top: 1px solid var(--border-subtle) !important;
  border-radius: 0 !important;
  padding: 0 !important;
  margin-bottom: 0 !important;
  position: relative;
  overflow: visible !important;
  border-left: 3px solid transparent !important;
  display: block !important;
  cursor: default;
  transition: background 150ms ease, border-left-color 150ms ease;
}
details.app-item:last-of-type {
  border-bottom: 1px solid var(--border-subtle) !important;
}

/* Hide the native <details> disclosure marker */
.app-item__summary {
  list-style: none;
  cursor: pointer;
  display: grid !important;
  grid-template-columns: 6px 32px 44px 1fr auto !important;
  gap: 14px !important;
  align-items: center !important;
  padding: 14px 20px 14px 14px !important;
  outline: none;
}
.app-item__summary::-webkit-details-marker { display: none; }
.app-item__summary::marker { content: ''; display: none; }

/* Row chrome — keep the V4 LOCKED layout */
.app-item__bar {
  display: block !important;
  width: 6px;
  height: 36px;
  background: var(--ac);
  border-radius: 1px;
  align-self: start !important;
  margin: 4px 0 0 0;
  padding: 0;
}
.app-item__n {
  font-family: var(--serif); font-size: 18px; font-weight: 600;
  color: var(--text-tertiary);
  text-align: center;
  align-self: start !important;
  padding: 12px 0 0 !important;
  margin: 0;
}
.app-item__icon {
  width: 44px !important;
  height: 44px !important;
  border-radius: 10px !important;
  align-self: start !important;
  background: var(--at);
  color: var(--ad);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background 180ms ease, color 180ms ease;
}
.app-item__icon svg { width: 22px !important; height: 22px !important; }

/* NEW row body — matches tracks: name (serif bold) + sub (light secondary) */
.app-item__body {
  display: flex; flex-direction: column;
  align-self: start !important;
  padding: 8px 0 0 !important;
  gap: 2px !important;
  min-width: 0;
}
.app-item__name {
  font-family: var(--serif);
  font-size: 18px !important;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin: 0 !important;
  line-height: 1.2 !important;
}
.app-item__sub {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.4;
  margin: 0 !important;
}

/* Right slot: lock chip or FREE pill */
.app-item__r {
  width: 32px !important;
  height: 32px !important;
  border-radius: 8px !important;
  background: var(--at);
  color: var(--ad);
  display: flex; align-items: center; justify-content: center;
  align-self: start !important;
  margin: 4px 0 0 !important;
}
.app-item__r--free {
  width: auto !important;
  background: transparent !important;
  padding: 0 !important;
}
.app-item__free {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  padding: 5px 10px;
  background: #2563EB;
  color: #ffffff;
  border-radius: 3px;
  line-height: 1;
}

/* Default expander state — kept collapsed via display:none from <details> native behavior.
   We use details[open] selector for visible state, no max-height animation (native instant). */
.app-item__ext {
  /* Reset the v4c locked-CSS collapse rule — <details> handles visibility natively */
  max-height: none !important;
  opacity: 1 !important;
  overflow: visible !important;
  padding: 14px 14px 18px 95px;  /* indent under the body column */
  margin: 0;
  background: transparent !important;
  border: none !important;
  border-top: 1px dashed var(--border-subtle);
  border-radius: 0 !important;
}
.app-item__ext > .app-item__ext-tagline {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #1E40AF;
  display: block;
  margin-bottom: 10px;
}
.app-item__ext > p {
  font-size: 14px !important;
  color: var(--text-primary);
  margin: 0 0 16px !important;
  line-height: 1.6;
}
.app-item__why-eb {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-tertiary) !important;
  display: block;
  margin: 0 0 10px;
  padding-top: 4px;
  border-top: none !important;
}
.app-item__why-list {
  display: flex; flex-direction: column; gap: 8px;
  list-style: none; padding: 0; margin: 0;
}
.app-item__why-item {
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  display: flex; align-items: center; gap: 12px;
  font-size: 13.5px;
  color: var(--text-primary);
  line-height: 1.45;
}
.app-item__why-item-icon { color: #2563EB !important; flex-shrink: 0; }

/* SELECTED state — replaces v4c's :checked rules */
details.app-item[open] {
  background: #EFF6FF !important;
  border-left-color: #2563EB !important;
}
details.app-item[open] .app-item__icon {
  background: #2563EB !important;
  color: #fff !important;
}

/* PHONE SWITCHING using :has() — replaces the old :checked ~ rules */
/* Default: show the Applications home phone when nothing is open */
.app-phone--none { display: flex !important; }
.apps-md-grid:has(details.app-item[open]) .app-phone--none { display: none !important; }
.apps-md-grid:has(#app-taccount[open])    .app-phone--taccount  { display: flex !important; }
.apps-md-grid:has(#app-modwire[open])     .app-phone--modwire   { display: flex !important; }
.apps-md-grid:has(#app-threestmt[open])   .app-phone--threestmt { display: flex !important; }
.apps-md-grid:has(#app-bridge[open])      .app-phone--bridge    { display: flex !important; }
.apps-md-grid:has(#app-modbuild[open])    .app-phone--modbuild    { display: flex !important; }
.apps-md-grid:has(#app-analystmath[open])  .app-phone--analystmath { display: flex !important; }

/* Hide all v4c :checked-based phone rules by ensuring our new ones win.
   Old rules: #app-X:checked ~ .apps-md-grid .app-phone--X { display: flex }
   With radios removed and using :has(), the old rules silently no-op. */

/* --- Active SIMPLE/ADVANCED labels in phone mocks --- */
.psc-app__toggle-opt {
  cursor: pointer;
  user-select: none;
  transition: background 120ms ease, color 120ms ease;
}
.psc-app__toggle-opt:hover:not(.psc-app__toggle-opt--on) {
  background: rgba(37,99,235,0.08);
}

/* Hover state for app rows — subtle wash */
details.app-item:not([open]):hover .app-item__summary {
  background: rgba(37, 99, 235, 0.025);
}

/* Ensure FREE chip dominates color over inherited tile bg */
.app-item__r .app-item__free { background: #2563EB; color: #fff; }


.hero-cta { margin-top: 40px; max-width: 520px; }
.hero-cta__lines { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.hero-cta__line { font-family: var(--serif); font-size: 17px; line-height: 1.4; color: var(--text-primary); letter-spacing: -0.005em; margin: 0; }
.hero-cta__close { margin: 0; line-height: 1.5; }
.hero-cta__link { color: var(--signal-blue-deep); font-weight: 600; text-decoration: none; font-size: 15px; border-bottom: 1px solid transparent; transition: border-color 150ms ease; display: inline-flex; align-items: baseline; gap: 6px; }
.hero-cta__link:hover { border-bottom-color: var(--signal-blue-deep); }
.hero-cta__lead { font-weight: 600; }
.hero-cta__arrow { display: inline-block; transition: transform 150ms ease; }
.hero-cta__link:hover .hero-cta__arrow { transform: translateX(3px); }


.badge { display: inline-flex; align-items: center; gap: 12px; padding: 10px 18px 10px 14px; background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: 10px; text-decoration: none; color: var(--text-primary); transition: border-color 150ms ease, background 150ms ease; }
.badge:hover { border-color: var(--text-tertiary); }
.badge__logo { display: inline-flex; align-items: center; justify-content: center; color: var(--text-primary); width: 22px; height: 22px; }
.badge__text { display: flex; flex-direction: column; gap: 0; line-height: 1.1; }
.badge__eb { font-size: 9.5px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-tertiary); }
.badge__store { font-size: 14.5px; font-weight: 600; letter-spacing: -0.005em; margin-top: 2px; }


.app-item__free { text-transform: uppercase; letter-spacing: 0.12em; padding: 5px 9px; font-size: 9.5px; }


/* === V9 — hero sub on a single line: lift the max-width === */
.hero__sub {
  max-width: none !important;
}

/* === V9.1 — More vertical air between hero left-column elements.
   Progressive: sub gets a small bump, badges a medium bump, CTA the most. === */
.hero__sub {
  margin-top: 22px !important;     /* up from ~14px — small bump */
  margin-bottom: 8px !important;
}
.badges {
  margin-top: 28px !important;     /* explicit gap from sub — medium bump */
  margin-bottom: 0 !important;
}
.hero-cta {
  margin-top: 80px !important;     /* biggest jump from 40 — questions sit further down */
}


/* === V9 — Three-Statement phone: stack the dual-toggle row vertically
   so SIMPLE/ADVANCED no longer clips past the phone edge === */
.psc-app__toggle-row--split {
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 4px;
}
.psc-app__toggle-row--split > .psc-app__toggle {
  width: 100%;
}
.psc-app__toggle-row--split > .psc-app__toggle .psc-app__toggle-opt {
  flex: 1;
  text-align: center;
}


/* === V9 — Phone home-menu cards become interactive buttons === */
.app-phone--none .psc-ah__card {
  cursor: pointer;
  transition: background 160ms ease, transform 160ms ease;
}
.app-phone--none .psc-ah__card:hover {
  background: rgba(37, 99, 235, 0.04);
  transform: translateY(-1px);
}
.app-phone--none .psc-ah__card:focus-visible {
  outline: 2px solid var(--signal-blue);
  outline-offset: 2px;
}
.app-phone--none .psc-ah__card:hover .psc-ah__card-chev {
  color: var(--signal-blue);
  transform: translateX(2px);
}
.app-phone--none .psc-ah__card-chev {
  transition: color 160ms ease, transform 160ms ease;
}


/* === V9 — Apps section: phone on the left, list on the right (locked) === */
.sec--apps .apps-md-grid {
  grid-template-columns: 360px 1fr !important;
  gap: 48px !important;
}
.sec--apps .apps-md-grid > :first-child { order: 2; }
.sec--apps .apps-md-grid > :nth-child(2) { order: 1; }
@media (max-width: 900px) {
  .sec--apps .apps-md-grid {
    grid-template-columns: 1fr !important;
  }
  .sec--apps .apps-md-grid > :first-child { order: 1; }
  .sec--apps .apps-md-grid > :nth-child(2) { order: 2; }
}


/* ============================================================================
   V9.2 — Real screenshots inside phone shells
   ============================================================================ */

/* Hide the fake 9:41 statusbar + notch when the phone displays a real
   screenshot (the screenshot already has its own UI chrome). */
.phone--photo .phone__statusbar,
.phone--photo .phone__notch,
.phone__shell--photo .phone__statusbar,
.phone__shell--photo .phone__notch {
  display: none !important;
}

/* The phone__screen becomes a positioned container for the image / carousel */
.phone--photo .phone__screen,
.phone__shell--photo .phone__screen {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

/* The image fills the screen area */
.phone-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

/* App-phone carousel: each .cs-screen sits absolutely inside .phone__screen,
   so they stack and only the active one is visible. */
.app-phone .cs {
  position: relative;
  width: 100%;
  height: 100%;
}
.app-phone .cs-screen {
  position: absolute;
  inset: 0;
  display: none;
}
.app-phone .cs-screen--1 { display: block; } /* default */

/* Dots and caption sit BELOW the phone */
.app-phone .cs-dots {
  display: flex;
  justify-content: center;
  gap: 9px;
  margin-top: 18px;
}
.app-phone .cs-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--border-subtle);
  cursor: pointer;
  transition: background 160ms ease, transform 160ms ease;
}
.app-phone .cs-dot:hover { background: var(--text-tertiary); }

.app-phone .cs-caption {
  display: block !important;
  margin-top: 14px;
  text-align: center;
  min-height: 2.6em;
}
.cs-caption-t {
  font-family: var(--serif);
  font-size: 14.5px;
  line-height: 1.45;
  color: var(--text-secondary);
  letter-spacing: -0.005em;
  margin: 0;
  font-style: italic;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
  display: none;
}
/* Default: first caption visible */
.app-phone .cs-caption-t--1 { display: block; }

/* Static caption for the apps-home (no carousel) */
.cs-caption--static .cs-caption-t { display: block; }

/* ---- per-slide switching ---- */
#taccount-s1:checked ~ .apps-md-grid .app-phone--taccount .cs-screen { display: none; }
#taccount-s1:checked ~ .apps-md-grid .app-phone--taccount .cs-screen--1 { display: block; }
#taccount-s1:checked ~ .apps-md-grid .app-phone--taccount .cs-caption-t { display: none; }
#taccount-s1:checked ~ .apps-md-grid .app-phone--taccount .cs-caption-t--1 { display: block; }
#taccount-s2:checked ~ .apps-md-grid .app-phone--taccount .cs-screen { display: none; }
#taccount-s2:checked ~ .apps-md-grid .app-phone--taccount .cs-screen--2 { display: block; }
#taccount-s2:checked ~ .apps-md-grid .app-phone--taccount .cs-caption-t { display: none; }
#taccount-s2:checked ~ .apps-md-grid .app-phone--taccount .cs-caption-t--2 { display: block; }
#taccount-s3:checked ~ .apps-md-grid .app-phone--taccount .cs-screen { display: none; }
#taccount-s3:checked ~ .apps-md-grid .app-phone--taccount .cs-screen--3 { display: block; }
#taccount-s3:checked ~ .apps-md-grid .app-phone--taccount .cs-caption-t { display: none; }
#taccount-s3:checked ~ .apps-md-grid .app-phone--taccount .cs-caption-t--3 { display: block; }
#modwire-s1:checked ~ .apps-md-grid .app-phone--modwire .cs-screen { display: none; }
#modwire-s1:checked ~ .apps-md-grid .app-phone--modwire .cs-screen--1 { display: block; }
#modwire-s1:checked ~ .apps-md-grid .app-phone--modwire .cs-caption-t { display: none; }
#modwire-s1:checked ~ .apps-md-grid .app-phone--modwire .cs-caption-t--1 { display: block; }
#modwire-s2:checked ~ .apps-md-grid .app-phone--modwire .cs-screen { display: none; }
#modwire-s2:checked ~ .apps-md-grid .app-phone--modwire .cs-screen--2 { display: block; }
#modwire-s2:checked ~ .apps-md-grid .app-phone--modwire .cs-caption-t { display: none; }
#modwire-s2:checked ~ .apps-md-grid .app-phone--modwire .cs-caption-t--2 { display: block; }
#modwire-s3:checked ~ .apps-md-grid .app-phone--modwire .cs-screen { display: none; }
#modwire-s3:checked ~ .apps-md-grid .app-phone--modwire .cs-screen--3 { display: block; }
#modwire-s3:checked ~ .apps-md-grid .app-phone--modwire .cs-caption-t { display: none; }
#modwire-s3:checked ~ .apps-md-grid .app-phone--modwire .cs-caption-t--3 { display: block; }
#threestmt-s1:checked ~ .apps-md-grid .app-phone--threestmt .cs-screen { display: none; }
#threestmt-s1:checked ~ .apps-md-grid .app-phone--threestmt .cs-screen--1 { display: block; }
#threestmt-s1:checked ~ .apps-md-grid .app-phone--threestmt .cs-caption-t { display: none; }
#threestmt-s1:checked ~ .apps-md-grid .app-phone--threestmt .cs-caption-t--1 { display: block; }
#threestmt-s2:checked ~ .apps-md-grid .app-phone--threestmt .cs-screen { display: none; }
#threestmt-s2:checked ~ .apps-md-grid .app-phone--threestmt .cs-screen--2 { display: block; }
#threestmt-s2:checked ~ .apps-md-grid .app-phone--threestmt .cs-caption-t { display: none; }
#threestmt-s2:checked ~ .apps-md-grid .app-phone--threestmt .cs-caption-t--2 { display: block; }
#threestmt-s3:checked ~ .apps-md-grid .app-phone--threestmt .cs-screen { display: none; }
#threestmt-s3:checked ~ .apps-md-grid .app-phone--threestmt .cs-screen--3 { display: block; }
#threestmt-s3:checked ~ .apps-md-grid .app-phone--threestmt .cs-caption-t { display: none; }
#threestmt-s3:checked ~ .apps-md-grid .app-phone--threestmt .cs-caption-t--3 { display: block; }
#bridge-s1:checked ~ .apps-md-grid .app-phone--bridge .cs-screen { display: none; }
#bridge-s1:checked ~ .apps-md-grid .app-phone--bridge .cs-screen--1 { display: block; }
#bridge-s1:checked ~ .apps-md-grid .app-phone--bridge .cs-caption-t { display: none; }
#bridge-s1:checked ~ .apps-md-grid .app-phone--bridge .cs-caption-t--1 { display: block; }
#bridge-s2:checked ~ .apps-md-grid .app-phone--bridge .cs-screen { display: none; }
#bridge-s2:checked ~ .apps-md-grid .app-phone--bridge .cs-screen--2 { display: block; }
#bridge-s2:checked ~ .apps-md-grid .app-phone--bridge .cs-caption-t { display: none; }
#bridge-s2:checked ~ .apps-md-grid .app-phone--bridge .cs-caption-t--2 { display: block; }
#bridge-s3:checked ~ .apps-md-grid .app-phone--bridge .cs-screen { display: none; }
#bridge-s3:checked ~ .apps-md-grid .app-phone--bridge .cs-screen--3 { display: block; }
#bridge-s3:checked ~ .apps-md-grid .app-phone--bridge .cs-caption-t { display: none; }
#bridge-s3:checked ~ .apps-md-grid .app-phone--bridge .cs-caption-t--3 { display: block; }
#bridge-s4:checked ~ .apps-md-grid .app-phone--bridge .cs-screen { display: none; }
#bridge-s4:checked ~ .apps-md-grid .app-phone--bridge .cs-screen--4 { display: block; }
#bridge-s4:checked ~ .apps-md-grid .app-phone--bridge .cs-caption-t { display: none; }
#bridge-s4:checked ~ .apps-md-grid .app-phone--bridge .cs-caption-t--4 { display: block; }

/* ---- active dot ---- */
#taccount-s1:checked ~ .apps-md-grid .app-phone--taccount .cs-dot--1,
#taccount-s2:checked ~ .apps-md-grid .app-phone--taccount .cs-dot--2,
#taccount-s3:checked ~ .apps-md-grid .app-phone--taccount .cs-dot--3 {
  background: var(--signal-blue);
  transform: scale(1.25);
}
#modwire-s1:checked ~ .apps-md-grid .app-phone--modwire .cs-dot--1,
#modwire-s2:checked ~ .apps-md-grid .app-phone--modwire .cs-dot--2,
#modwire-s3:checked ~ .apps-md-grid .app-phone--modwire .cs-dot--3 {
  background: var(--signal-blue);
  transform: scale(1.25);
}
#threestmt-s1:checked ~ .apps-md-grid .app-phone--threestmt .cs-dot--1,
#threestmt-s2:checked ~ .apps-md-grid .app-phone--threestmt .cs-dot--2,
#threestmt-s3:checked ~ .apps-md-grid .app-phone--threestmt .cs-dot--3,
  background: var(--signal-blue);
  transform: scale(1.25);
}
#bridge-s1:checked ~ .apps-md-grid .app-phone--bridge .cs-dot--1,
#bridge-s2:checked ~ .apps-md-grid .app-phone--bridge .cs-dot--2,
#bridge-s3:checked ~ .apps-md-grid .app-phone--bridge .cs-dot--3,
#bridge-s4:checked ~ .apps-md-grid .app-phone--bridge .cs-dot--4 {
  background: var(--signal-blue);
  transform: scale(1.25);
}

/* === V9.3 — Dark hero phone === */
/* The hero phone now contains a dark-mode screenshot. Strengthen the device
   shadow so the cream-on-dark contrast reads as intentional rather than abrupt. */
.hero-phone .phone__shell--photo {
  box-shadow:
    0 1px 0 rgba(255,255,255,0.12) inset,
    0 0 0 1px rgba(0,0,0,0.55),
    0 36px 70px -22px rgba(28,25,23,0.55);
}


/* ============================================================================
   V9.4 — Hero phone auto-cycle (light Free → light Pro → dark Free)
   ============================================================================ */

/* Dark background on the screen area so the transitions never flash cream */
.hero-phone .phone__screen {
  background: #1C1917;
}

/* All three hero images sit absolute, stacked. They fade in/out via animation. */
.hero-phone .phone-img--hero {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  opacity: 0;
  animation: heroPhoneCycle 12s infinite ease-in-out;
}

.hero-phone .phone-img--hero-1 { animation-delay: 0s; }
.hero-phone .phone-img--hero-2 { animation-delay: 4s; }
.hero-phone .phone-img--hero-3 { animation-delay: 8s; }

@keyframes heroPhoneCycle {
  /* Each slot is 4s of the 12s cycle.
     Within its slot: fade in 0.4s, hold ~3s, fade out 0.6s. */
  0%   { opacity: 0; }
  3%   { opacity: 1; }    /* fade in done at  0.36s */
  30%  { opacity: 1; }    /* hold visible until 3.6s */
  35%  { opacity: 0; }    /* fade out done at 4.2s */
  100% { opacity: 0; }    /* hidden through rest of cycle */
}

/* Respect users who prefer reduced motion — pin to slide 1 with no animation */
@media (prefers-reduced-motion: reduce) {
  .hero-phone .phone-img--hero {
    animation: none;
    opacity: 0;
  }
  .hero-phone .phone-img--hero-1 {
    opacity: 1;
  }
}


/* ============================================================================
   V9.5 — Mobile responsive polish
   ============================================================================ */

/* At tablet width and below: drop the number column so the body has room.
   The existing rule at line ~1773 only targets .app-item; we need to also
   override the .app-item__summary grid (which is what actually controls
   the row layout). */
@media (max-width: 900px) {
  .app-item__summary {
    grid-template-columns: 6px 44px 1fr auto !important;
    gap: 12px !important;
    padding: 14px 18px 14px 14px !important;
  }
  .app-item__n {
    display: none !important;
  }
}

/* At phone width: tighten icons, fonts, gaps, pill size further */
@media (max-width: 640px) {
  .app-item__summary {
    grid-template-columns: 6px 40px 1fr auto !important;
    gap: 10px !important;
    padding: 14px 14px 14px 10px !important;
  }
  .app-item__icon {
    width: 40px !important;
    height: 40px !important;
  }
  .app-item__icon svg {
    width: 20px !important;
    height: 20px !important;
  }
  .app-item__name {
    font-size: 16px !important;
    line-height: 1.25 !important;
  }
  .app-item__sub {
    font-size: 12.5px;
    line-height: 1.4;
  }
  .app-item__r {
    width: 28px !important;
    height: 28px !important;
    border-radius: 7px !important;
    margin-top: 6px !important;
  }
  .app-item__r--free {
    width: auto !important;
    padding-top: 6px !important;
  }
  .app-item__free {
    font-size: 9px !important;
    padding: 4px 7px !important;
    letter-spacing: 0.10em !important;
  }

  /* Hero spacing on phones */
  .hero-phone {
    margin-bottom: 18px;
  }
  .hero-cta {
    margin-top: 56px !important;
  }
  .sec {
    padding-left: 18px !important;
    padding-right: 18px !important;
  }
}

/* Very narrow phones (e.g. 360px Android) */
@media (max-width: 380px) {
  .app-item__summary {
    grid-template-columns: 4px 36px 1fr auto !important;
    gap: 8px !important;
    padding: 12px 10px !important;
  }
  .app-item__icon {
    width: 36px !important;
    height: 36px !important;
  }
  .app-item__name {
    font-size: 15px !important;
  }
  .app-item__sub {
    font-size: 12px;
  }
}


/* ============================================================================
   V9.6 — FAQ section
   ============================================================================ */

.sec--faq {
  padding-top: 88px;
  padding-bottom: 96px;
  border-top: 1px solid var(--border-subtle);
}

.faq-list {
  margin-top: 32px;
  border-top: 1px solid var(--border-subtle);
}

.faq-item {
  border-bottom: 1px solid var(--border-subtle);
}

.faq-item__q {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  outline: none;
  transition: color 160ms ease;
}
.faq-item__q::-webkit-details-marker { display: none; }
.faq-item__q::marker { content: ''; display: none; }

.faq-item__q-text {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  line-height: 1.35;
}

.faq-item__icon {
  position: relative;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  display: inline-block;
}
.faq-item__icon::before,
.faq-item__icon::after {
  content: '';
  position: absolute;
  background: var(--text-tertiary);
  top: 50%;
  left: 50%;
  transition: transform 220ms ease, background 160ms ease;
}
.faq-item__icon::before {
  width: 14px; height: 1.5px;
  transform: translate(-50%, -50%);
}
.faq-item__icon::after {
  width: 1.5px; height: 14px;
  transform: translate(-50%, -50%);
}

.faq-item[open] .faq-item__icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
  opacity: 0;
}

.faq-item:hover .faq-item__q-text {
  color: var(--signal-blue);
}
.faq-item:hover .faq-item__icon::before,
.faq-item:hover .faq-item__icon::after {
  background: var(--signal-blue);
}

.faq-item__a {
  padding: 0 0 24px;
  max-width: 720px;
}
.faq-item__a p {
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--text-secondary);
  margin: 0;
}

@media (max-width: 640px) {
  .sec--faq {
    padding-top: 56px;
    padding-bottom: 64px;
  }
  .faq-item__q {
    padding: 18px 0;
    gap: 16px;
  }
  .faq-item__q-text {
    font-size: 16.5px;
    line-height: 1.35;
  }
  .faq-item__a {
    padding-bottom: 20px;
  }
  .faq-item__a p {
    font-size: 14.5px;
  }
}


/* ============================================================================
   V9.7 — tracks compact loop line + inline All Access block
   ============================================================================ */
.trks-access {
  margin-top: 28px;
  padding: 18px 20px;
  border: 1px solid rgba(37, 99, 235, 0.22);
  border-radius: 14px;
  background: rgba(37, 99, 235, 0.045);
}
.trks-access__head { display: flex; align-items: center; gap: 9px; }
.trks-access__ic { width: 18px; height: 18px; color: var(--signal-blue); flex: none; }
.trks-access__title { font-family: var(--serif); font-size: 17px; font-weight: 600; letter-spacing: -0.01em; color: var(--text-primary); }
.trks-access__body { margin: 8px 0 0; font-size: 14px; line-height: 1.6; color: var(--text-secondary); max-width: 560px; }
@media (max-width: 640px) {
  .trks-access__line { font-size: 13px; }
}


/* ============================================================================
   V9.9 — FAQ subpage header
   ============================================================================ */
.subpage-head { border-bottom: 1px solid var(--border-subtle); padding: 22px 0; }
.subpage-head .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.subpage-back { font-size: 14px; font-weight: 500; color: var(--text-secondary); text-decoration: none; white-space: nowrap; transition: color 160ms ease; }
.subpage-back:hover { color: var(--signal-blue); }
.page-faq .sec--faq { border-top: none; padding-top: 56px; }


/* ============================================================================
   V9.10 — legal subpages (Terms, Privacy)
   ============================================================================ */
.legal { padding-top: 56px; padding-bottom: 96px; }
.legal .sec__h { margin-top: 6px; }
.legal__updated { font-size: 13px; color: var(--text-tertiary); margin: 8px 0 32px; }
.legal h3 { font-family: var(--serif); font-size: 19px; font-weight: 600; letter-spacing: -0.01em; color: var(--text-primary); margin: 40px 0 10px; }
.legal h3:first-of-type { margin-top: 8px; }
.legal p { font-size: 15.5px; line-height: 1.78; color: var(--text-secondary); max-width: 680px; margin: 0 0 16px; }
.legal a { color: var(--signal-blue); text-decoration: none; }
.legal a:hover { text-decoration: underline; }
@media (max-width: 640px) { .legal p { font-size: 14.5px; line-height: 1.72; } .legal h3 { font-size: 17px; margin-top: 34px; } }

/* v9.16 cross-link under engine list */
.apps-crosslink { margin: 22px 0 0; }
.app-item__free { white-space: nowrap; }


/* v9.26: All Access card lives in the hero */
.hero .trks-access { margin: 0; max-width: 560px; }

/* v9.27: hero rework — taglines tight under buttons, All Access card bottom-aligned to phone */
.hero-body { display: flex; flex-direction: column; }
.hero .hero-cta--b { margin-top: auto !important; margin-bottom: auto; padding-top: 16px; padding-bottom: 32px; }

/* v9.27: compact coming-soon store buttons (official-badge proportions);
   real Apple/Google badges replace these at launch when store links exist */
.badge {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 11px;
  padding: 9px 18px 9px 14px !important;
  min-width: 0 !important;
  width: auto !important;
}
.badge__text { align-items: flex-start !important; text-align: left !important; }
.badge__eb { font-size: 9px; }
.badge__store { font-size: 14px; }

/* v9.30: tracks heading on one line */
#tracks .sec__h { max-width: none; }
/* v9.31: tracks top gap matched to Practice Engines (32px lede->first row);
   the 29px moved into row breathing room so the QoE badge stays on the phone bottom */
#tracks .sec__lede { margin-bottom: 8px; }
#tracks .trk-item { padding-top: 16.64px; padding-bottom: 16.64px; }

/* ============ v9.32: mobile fixes (iOS Safari + Android Chrome) ============ */
/* Prevent mobile-browser automatic font inflation (a Safari-only widener of rows/footers) */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

/* Small screens: every section flows heading + lede -> phone -> content (matches the hero) */
@media (max-width: 900px) {
  .apps-col, .trks-col { display: contents; }
  .apps-col > .eyebrow, .apps-col > .sec__h, .apps-col > .sec__lede,
  .trks-col > .eyebrow, .trks-col > .sec__h, .trks-col > .sec__lede { order: -2; }
  .apps-md-grid > .apps-phone-stage,
  .sec--apps .apps-md-grid > .apps-phone-stage,
  .trks-md-grid > .trks-phone-stage { order: -1; margin: 10px 0 4px; }
  .apps-md-grid, .trks-md-grid,
  .sec--apps .apps-md-grid { row-gap: 0 !important; }
}

/* Phones: roomy stacked rows — title / description / badge (no squeezed text column) */
@media (max-width: 640px) {
  .trk-item { grid-template-columns: 4px 24px 36px 1fr; row-gap: 7px; column-gap: 10px; }
  .trk-item__body { display: contents; }
  .trk-item__bar  { grid-area: 1 / 1 / 2 / 2; }
  .trk-item__n    { grid-area: 1 / 2 / 2 / 3; }
  .trk-item__icon { grid-area: 1 / 3 / 2 / 4; }
  .trk-item__name { grid-area: 1 / 4 / 2 / 5; }
  .trk-item__sub  { grid-area: 2 / 4 / 3 / 5; }
  .trk-item__r    { grid-area: 3 / 4 / 4 / 5; justify-self: start; }

  .app-item__summary { grid-template-columns: 6px 40px 1fr !important; row-gap: 7px !important; column-gap: 10px !important; }
  .app-item__body { display: contents; }
  .app-item__bar  { grid-area: 1 / 1 / 2 / 2; }
  .app-item__icon { grid-area: 1 / 2 / 2 / 3; }
  .app-item__name { grid-area: 1 / 3 / 2 / 4; }
  .app-item__sub  { grid-area: 2 / 3 / 3 / 4; }
  .app-item__r    { grid-area: 3 / 3 / 4 / 4; justify-self: start; }

  /* Footer can never spill */
  .ftr__nav { flex-wrap: wrap; row-gap: 8px; }
}


/* ============================================================================
   V9.33 — Real app screenshots (6.10.48 captures), simplified cycling
   - Hero: 4-image crossfade (16s, 4s/image)
   - Practice Engines: default 5-image cycle with engine-row glow sync;
     selecting an engine shows that engine's single result screenshot
   - Tracks: default 6-image cycle (Foundations trio, then Deals trio);
     selecting a track shows that track's home screenshot
   - Old cs-radio sub-step carousel removed from markup; its rules above no-op
   ============================================================================ */

/* Cycling stack: absolutely stacked imgs crossfaded by keyframes */
.pcyc { position: relative; width: 100%; height: 100%; }
.pcyc__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: top center;
  opacity: 0;
}
.pcyc--n5 .pcyc__img { animation: pcycFade5 20s infinite ease-in-out; }
.pcyc--n6 .pcyc__img { animation: pcycFade6 24s infinite ease-in-out; }
.pcyc--n7 .pcyc__img { animation: pcycFade7 28s infinite ease-in-out; }
/* per-slot delays (4s slots) — higher specificity than the shorthand above */
.pcyc .pcyc__img:nth-child(1) { animation-delay: 0s; }
.pcyc .pcyc__img:nth-child(2) { animation-delay: 4s; }
.pcyc .pcyc__img:nth-child(3) { animation-delay: 8s; }
.pcyc .pcyc__img:nth-child(4) { animation-delay: 12s; }
.pcyc .pcyc__img:nth-child(5) { animation-delay: 16s; }
.pcyc .pcyc__img:nth-child(6) { animation-delay: 20s; }
.pcyc .pcyc__img:nth-child(7) { animation-delay: 24s; }

/* Fade shape matches the existing hero cycle: in by 0.36s, hold to 3.6s, out by 4.2s of each 4s slot */
@keyframes pcycFade5 {
  0% { opacity: 0; } 1.8% { opacity: 1; } 18% { opacity: 1; } 21% { opacity: 0; } 100% { opacity: 0; }
}
@keyframes pcycFade6 {
  0% { opacity: 0; } 1.5% { opacity: 1; } 15% { opacity: 1; } 17.5% { opacity: 0; } 100% { opacity: 0; }
}
@keyframes pcycFade7 {
  0% { opacity: 0; } 1.29% { opacity: 1; } 12.86% { opacity: 1; } 15% { opacity: 0; } 100% { opacity: 0; }
}

/* v9.38: hero reverted to the base 3-image cycle (heroPhoneCycle 12s) after the A04 slide was removed. */

/* Engine rows: subtle glow while their screenshot is up in the default cycle.
   Runs only while no engine is selected; restarts in sync with the stack when
   the open engine is closed (both animations restart on the same recalc). */
@keyframes appRowGlow {
  0%     { background: rgba(37,99,235,0);    box-shadow: inset 0 0 0 0 rgba(37,99,235,0); }
  1.29%  { background: rgba(37,99,235,0.07); box-shadow: inset 3px 0 0 0 #2563EB; }
  12.86% { background: rgba(37,99,235,0.07); box-shadow: inset 3px 0 0 0 #2563EB; }
  15%    { background: rgba(37,99,235,0);    box-shadow: inset 0 0 0 0 rgba(37,99,235,0); }
  100%   { background: rgba(37,99,235,0);    box-shadow: inset 0 0 0 0 rgba(37,99,235,0); }
}
.apps-md-grid:not(:has(details.app-item[open])) #app-taccount    .app-item__summary { animation: appRowGlow 28s infinite ease-in-out 4s; }
.apps-md-grid:not(:has(details.app-item[open])) #app-modwire     .app-item__summary { animation: appRowGlow 28s infinite ease-in-out 8s; }
.apps-md-grid:not(:has(details.app-item[open])) #app-modbuild    .app-item__summary { animation: appRowGlow 28s infinite ease-in-out 12s; }
.apps-md-grid:not(:has(details.app-item[open])) #app-analystmath .app-item__summary { animation: appRowGlow 28s infinite ease-in-out 16s; }
.apps-md-grid:not(:has(details.app-item[open])) #app-threestmt   .app-item__summary { animation: appRowGlow 28s infinite ease-in-out 20s; }
.apps-md-grid:not(:has(details.app-item[open])) #app-bridge      .app-item__summary { animation: appRowGlow 28s infinite ease-in-out 24s; }

/* Tracks: default phone shows the curated cycle until a track is chosen */
#trk-default:checked ~ .trks-md-grid .trk-phone--default { display: flex; }

/* Reduced motion: pin first slide everywhere, no glow */
@media (prefers-reduced-motion: reduce) {
  .hero-phone .phone-img--hero { animation: none !important; opacity: 0; }
  .hero-phone .phone-img--hero-1 { opacity: 1; }
  .pcyc__img { animation: none !important; opacity: 0; }
  .pcyc__img:first-child { opacity: 1; }
  .app-item__summary { animation: none !important; }
}


/* ============================================================================
   V9.35 — Tracks: native toggle (radios → checkboxes)
   Click the selected track again to deselect it and resume the default cycle,
   matching the Practice Engines rows. The #trk-default rule above is now dead
   (that input no longer exists); the chained :not() below owns default state.
   ============================================================================ */
#trk-foundations:not(:checked) ~ #trk-modeling:not(:checked) ~ #trk-deals:not(:checked) ~ #trk-filings:not(:checked) ~ #trk-opfin:not(:checked) ~ #trk-qoe:not(:checked) ~ .trks-md-grid .trk-phone--default { display: flex; }
