/* ── Reset & tokens ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:          #0a0b0e;
  --surface:     #111318;
  --border:      #1e2130;
  --border-light:#2a2f45;
  --primary:     #6366f1;
  --primary-dim: #4f52c9;
  --primary-glow:rgba(99,102,241,.18);
  --success:     #22c55e;
  --danger:      #ef4444;
  --muted:       #6b7280;
  --text:        #f1f5f9;
  --text-dim:    #94a3b8;
  --radius:      10px;
  --radius-lg:   16px;
  --font:        'Inter', system-ui, -apple-system, sans-serif;
  --mono:        'JetBrains Mono', 'Fira Mono', monospace;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ── Typography ────────────────────────────────────────────────────── */
h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 700; letter-spacing: -.03em; line-height: 1.1; }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 700; letter-spacing: -.02em; line-height: 1.2; }
h3 { font-size: 1.125rem; font-weight: 600; }
p  { color: var(--text-dim); }

/* ── Layout ────────────────────────────────────────────────────────── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }
.section   { padding: 5rem 0; }

/* ── Nav ────────────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 100;
  border-bottom: 1px solid var(--border);
  background: rgba(10,11,14,.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 60px;
}
.nav__logo {
  display: flex; align-items: center; gap: .5rem;
  font-weight: 700; font-size: 1.05rem; letter-spacing: -.02em;
}
.nav__logo-icon {
  width: 28px; height: 28px; border-radius: 7px;
  background: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: .75rem; font-weight: 800; color: #fff;
}
.nav__links { display: flex; align-items: center; gap: 1.5rem; }
.nav__link {
  font-size: .875rem; color: var(--text-dim);
  transition: color .15s;
}
.nav__link:hover { color: var(--text); }

/* ── Buttons ─────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  padding: .6rem 1.25rem; border-radius: var(--radius); font-size: .875rem;
  font-weight: 500; cursor: pointer; border: none; transition: all .15s;
  font-family: var(--font); white-space: nowrap;
}
.btn--primary {
  background: var(--primary); color: #fff;
}
.btn--primary:hover { background: var(--primary-dim); transform: translateY(-1px); box-shadow: 0 4px 20px rgba(99,102,241,.35); }
.btn--outline {
  background: transparent; color: var(--text);
  border: 1px solid var(--border-light);
}
.btn--outline:hover { border-color: var(--primary); color: var(--primary); }
.btn--lg { padding: .8rem 1.75rem; font-size: 1rem; border-radius: var(--radius-lg); }
.btn--sm { padding: .4rem 1rem; font-size: .8rem; }

/* ── Badge ─────────────────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .3rem .75rem; border-radius: 999px; font-size: .78rem; font-weight: 500;
}
.badge--urgent {
  background: rgba(239,68,68,.12); color: #f87171;
  border: 1px solid rgba(239,68,68,.25);
}
.badge--info {
  background: rgba(99,102,241,.12); color: #a5b4fc;
  border: 1px solid rgba(99,102,241,.25);
}
.badge--success {
  background: rgba(34,197,94,.12); color: #4ade80;
  border: 1px solid rgba(34,197,94,.25);
}

/* ── Hero ────────────────────────────────────────────────────────────── */
.hero {
  padding: 6rem 0 5rem;
  text-align: center;
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(99,102,241,.18) 0%, transparent 70%);
  pointer-events: none;
}
.hero__eyebrow {
  margin-bottom: 1.5rem;
}
.hero__headline { margin-bottom: 1.25rem; }
.hero__headline span { color: var(--primary); }
.hero__sub {
  font-size: 1.15rem; color: var(--text-dim);
  max-width: 600px; margin: 0 auto 2.5rem;
}
.hero__ctas { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero__note {
  margin-top: 1rem; font-size: .8rem; color: var(--muted);
}

/* ── Stats strip ─────────────────────────────────────────────────────── */
.stats {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  padding: 2rem 0;
}
.stats__grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 2rem; text-align: center;
}
.stat__number {
  font-size: 2rem; font-weight: 700; color: var(--text);
  letter-spacing: -.03em;
}
.stat__label { font-size: .8rem; color: var(--muted); margin-top: .25rem; }

/* ── Problem section ─────────────────────────────────────────────────── */
.problem { padding: 5rem 0; }
.problem__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem; margin-top: 3rem;
}
.problem__card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.5rem;
  transition: border-color .2s;
}
.problem__card:hover { border-color: var(--border-light); }
.problem__icon {
  width: 40px; height: 40px; border-radius: var(--radius);
  background: var(--primary-glow); display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; margin-bottom: 1rem;
}
.problem__card h3 { margin-bottom: .5rem; }

/* ── Features ────────────────────────────────────────────────────────── */
.features { padding: 5rem 0; }
.features__header { text-align: center; margin-bottom: 3.5rem; }
.features__header p { max-width: 540px; margin: .75rem auto 0; }
.features__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}
.feature__card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.75rem;
  transition: border-color .2s, transform .2s;
}
.feature__card:hover { border-color: var(--primary); transform: translateY(-2px); }
.feature__card--highlight { border-color: var(--primary); }
.feature__tag {
  font-size: .72rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: .08em; color: var(--primary); margin-bottom: .75rem;
}
.feature__card h3 { margin-bottom: .6rem; }
.feature__card p { font-size: .9rem; }

/* ── Audience ─────────────────────────────────────────────────────────── */
.audience {
  padding: 5rem 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.audience__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem; margin-top: 2.5rem;
}
.audience__card {
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 1.5rem; background: var(--bg);
}
.audience__role {
  font-size: .75rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: .08em; color: var(--primary); margin-bottom: .5rem;
}
.audience__card h3 { margin-bottom: .5rem; font-size: 1rem; }
.audience__card p { font-size: .875rem; }

/* ── Pricing ─────────────────────────────────────────────────────────── */
.pricing { padding: 5rem 0; }
.pricing__header { text-align: center; margin-bottom: 3rem; }
.pricing__header p { max-width: 500px; margin: .75rem auto 0; }
.pricing__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem; max-width: 720px; margin: 0 auto;
}
.plan {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 2rem;
  display: flex; flex-direction: column;
}
.plan--featured { border-color: var(--primary); position: relative; }
.plan--featured::before {
  content: 'Most Popular';
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--primary); color: #fff; font-size: .7rem; font-weight: 600;
  padding: .2rem .75rem; border-radius: 999px; white-space: nowrap;
}
.plan__name { font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.plan__price {
  display: flex; align-items: baseline; gap: .25rem; margin: 1rem 0;
}
.plan__amount { font-size: 2.5rem; font-weight: 700; letter-spacing: -.04em; }
.plan__period { font-size: .875rem; color: var(--muted); }
.plan__desc { font-size: .875rem; color: var(--text-dim); margin-bottom: 1.5rem; }
.plan__features { list-style: none; flex: 1; margin-bottom: 1.75rem; display: flex; flex-direction: column; gap: .6rem; }
.plan__features li {
  font-size: .875rem; display: flex; align-items: flex-start; gap: .5rem;
}
.plan__features li::before { content: '✓'; color: var(--success); font-weight: 700; flex-shrink: 0; margin-top: .1rem; }

/* ── CTA section ─────────────────────────────────────────────────────── */
.cta-section {
  padding: 5rem 0;
  text-align: center;
}
.cta-box {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 3rem 2rem;
  max-width: 640px; margin: 0 auto;
  position: relative; overflow: hidden;
}
.cta-box::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(99,102,241,.12) 0%, transparent 70%);
  pointer-events: none;
}
.cta-box h2 { margin-bottom: .75rem; }
.cta-box p { margin-bottom: 2rem; }
.cta-form { display: flex; gap: .75rem; max-width: 440px; margin: 0 auto; flex-wrap: wrap; }
.cta-form input {
  flex: 1 1 200px; padding: .7rem 1rem; border-radius: var(--radius);
  background: var(--bg); border: 1px solid var(--border-light); color: var(--text);
  font-family: var(--font); font-size: .9rem; outline: none; min-width: 0;
  transition: border-color .15s;
}
.cta-form input:focus { border-color: var(--primary); }
.cta-form input::placeholder { color: var(--muted); }
.cta-form .btn { flex-shrink: 0; }
.cta-disclaimer { margin-top: .75rem; font-size: .76rem; color: var(--muted); }

/* ── Footer ───────────────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border); padding: 2.5rem 0;
}
.footer__inner {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
}
.footer__copy { font-size: .8rem; color: var(--muted); }
.footer__links { display: flex; gap: 1.25rem; }
.footer__links a { font-size: .8rem; color: var(--muted); transition: color .15s; }
.footer__links a:hover { color: var(--text); }

/* ── Dashboard placeholder (legacy) ──────────────────────────────────── */
.dash-placeholder {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 2rem;
}
.dash-placeholder h2 { margin-bottom: .5rem; }

/* ── App nav ──────────────────────────────────────────────────────────── */
.app-nav {
  position: sticky; top: 0; z-index: 100;
  border-bottom: 1px solid var(--border);
  background: rgba(10,11,14,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.app-nav__inner {
  max-width: 1100px; margin: 0 auto; padding: 0 1.5rem;
  display: flex; align-items: center; height: 60px; gap: 1.5rem;
}
.app-nav__links {
  display: flex; align-items: center; gap: .5rem; flex: 1;
}
.app-nav__link {
  font-size: .875rem; color: var(--text-dim); padding: .25rem .5rem;
  border-radius: 6px; transition: color .15s;
}
.app-nav__link:hover { color: var(--text); }
.app-nav__link--active { color: var(--text); font-weight: 500; }
.app-nav__right { margin-left: auto; display: flex; align-items: center; gap: 1rem; }

/* ── App page layout ──────────────────────────────────────────────────── */
.app-page {
  min-height: calc(100vh - 60px);
  padding: 2.5rem 0 5rem;
}
.app-container {
  max-width: 860px; margin: 0 auto; padding: 0 1.5rem;
}

/* ── Page / section headers ───────────────────────────────────────────── */
.page-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 2rem; gap: 1rem;
}
.page-header__left { display: flex; align-items: baseline; gap: .75rem; }
.page-header__title { font-size: 1.5rem; font-weight: 700; letter-spacing: -.02em; }
.page-header__count {
  font-size: .8rem; color: var(--muted); background: var(--surface);
  border: 1px solid var(--border); border-radius: 999px; padding: .15rem .6rem;
}
.section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1.25rem; gap: 1rem;
}
.section-header__left { display: flex; align-items: baseline; gap: .75rem; }
.section-header__title { font-size: 1.1rem; font-weight: 600; }
.section-header__count {
  font-size: .78rem; color: var(--muted); background: var(--surface);
  border: 1px solid var(--border); border-radius: 999px; padding: .12rem .55rem;
}

/* ── Flash messages ───────────────────────────────────────────────────── */
.flash-stack {
  display: flex; flex-direction: column; gap: .5rem; margin-bottom: 1.5rem;
}
.flash {
  display: flex; align-items: center; justify-content: space-between;
  padding: .75rem 1rem; border-radius: var(--radius); font-size: .875rem;
}
.flash--success {
  background: rgba(34,197,94,.1); border: 1px solid rgba(34,197,94,.25); color: #4ade80;
}
.flash--error {
  background: rgba(239,68,68,.1); border: 1px solid rgba(239,68,68,.25); color: #f87171;
}
.flash__close {
  background: none; border: none; cursor: pointer; color: inherit; opacity: .7;
  font-size: .8rem; padding: .2rem; line-height: 1;
  transition: opacity .15s;
}
.flash__close:hover { opacity: 1; }

/* ── Client list ──────────────────────────────────────────────────────── */
.client-list {
  display: flex; flex-direction: column; gap: .75rem;
}
.client-card {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.25rem 1.5rem;
  gap: 1rem; transition: border-color .15s;
}
.client-card:hover { border-color: var(--border-light); }
.client-card__main { flex: 1; min-width: 0; }
.client-card__info {
  display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; margin-bottom: .5rem;
}
.client-card__name {
  font-size: 1rem; font-weight: 600; color: var(--text); white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
.client-card__meta {
  display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap;
}
.client-meta-item {
  display: flex; align-items: center; gap: .35rem;
  font-size: .8rem; color: var(--text-dim);
}
.client-meta-item svg { flex-shrink: 0; }
.client-meta-item--muted { color: var(--muted); }
.client-card__actions { display: flex; align-items: center; gap: .5rem; flex-shrink: 0; }

/* ── Provider badge ───────────────────────────────────────────────────── */
.provider-badge {
  display: inline-flex; align-items: center;
  padding: .2rem .6rem; border-radius: 999px; font-size: .73rem; font-weight: 500;
  white-space: nowrap; border: 1px solid transparent;
}
.provider-badge--gusto       { background: rgba(34,197,94,.1);  color: #4ade80;  border-color: rgba(34,197,94,.2); }
.provider-badge--rippling     { background: rgba(99,102,241,.1); color: #a5b4fc; border-color: rgba(99,102,241,.2); }
.provider-badge--deel         { background: rgba(6,182,212,.1);  color: #67e8f9;  border-color: rgba(6,182,212,.2); }
.provider-badge--adp          { background: rgba(239,68,68,.1);  color: #f87171;  border-color: rgba(239,68,68,.2); }
.provider-badge--paychex      { background: rgba(234,179,8,.1);  color: #fde047;  border-color: rgba(234,179,8,.2); }
.provider-badge--quickbooks-payroll { background: rgba(16,185,129,.1); color: #6ee7b7; border-color: rgba(16,185,129,.2); }
.provider-badge--square-payroll     { background: rgba(148,163,184,.1); color: #cbd5e1; border-color: rgba(148,163,184,.2); }
.provider-badge--patriot-payroll    { background: rgba(249,115,22,.1); color: #fdba74; border-color: rgba(249,115,22,.2); }
.provider-badge--other---none { background: rgba(107,114,128,.1); color: var(--muted); border-color: rgba(107,114,128,.2); }
.provider-badge--none         { background: rgba(107,114,128,.08); color: var(--muted); border-color: rgba(107,114,128,.15); font-style: italic; }

/* ── Client header (detail page) ─────────────────────────────────────── */
.client-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  margin-bottom: 2.5rem; gap: 1rem;
}
.client-header__left { display: flex; flex-direction: column; gap: .75rem; }
.back-link {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: .8rem; color: var(--muted); transition: color .15s;
}
.back-link:hover { color: var(--text); }
.client-header__title-row {
  display: flex; align-items: center; gap: .75rem; flex-wrap: wrap;
}
.client-header__name {
  font-size: 1.75rem; font-weight: 700; letter-spacing: -.03em;
}

/* ── Data table ───────────────────────────────────────────────────────── */
.table-wrapper {
  overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-lg);
  background: var(--surface); margin-bottom: 1.25rem;
}
.data-table {
  width: 100%; border-collapse: collapse; font-size: .875rem;
}
.data-table th {
  padding: .75rem 1.25rem; text-align: left;
  font-size: .72rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: .07em; color: var(--muted);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.data-table td {
  padding: 1rem 1.25rem; border-bottom: 1px solid var(--border);
  vertical-align: middle; color: var(--text-dim);
}
.data-table__row:last-child td { border-bottom: none; }
.data-table__row:hover td { background: rgba(255,255,255,.02); }
.data-table__name { font-weight: 500; color: var(--text) !important; }
.data-table__date { font-variant-numeric: tabular-nums; white-space: nowrap; }
.data-table__actions { width: 1%; white-space: nowrap; }

.state-cell { display: flex; align-items: center; gap: .5rem; }
.state-abbr {
  font-size: .72rem; font-weight: 700; background: var(--bg);
  border: 1px solid var(--border-light); border-radius: 5px;
  padding: .15rem .4rem; color: var(--text); font-family: var(--mono);
}
.state-name { font-size: .875rem; }

/* ── Compliance badges ────────────────────────────────────────────────── */
.compliance-badge {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .75rem; font-weight: 500; white-space: nowrap;
}
.compliance-dot {
  width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0;
}
.compliance-badge--pending .compliance-dot  { background: #fbbf24; box-shadow: 0 0 0 2px rgba(251,191,36,.2); }
.compliance-badge--done .compliance-dot     { background: var(--success); }
.compliance-badge--overdue .compliance-dot  { background: var(--danger); box-shadow: 0 0 0 2px rgba(239,68,68,.2); }

/* ── Icon button ──────────────────────────────────────────────────────── */
.btn-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 8px;
  background: transparent; border: 1px solid var(--border); cursor: pointer;
  color: var(--muted); transition: all .15s;
}
.btn-icon:hover { border-color: var(--border-light); color: var(--text); }
.btn-icon--danger:hover { border-color: rgba(239,68,68,.4); color: var(--danger); background: rgba(239,68,68,.08); }

/* ── Gap callout ──────────────────────────────────────────────────────── */
.gap-callout {
  display: flex; gap: .75rem;
  background: rgba(234,179,8,.07); border: 1px solid rgba(234,179,8,.2);
  border-radius: var(--radius); padding: 1rem 1.25rem;
}
.gap-callout__icon { font-size: 1.1rem; flex-shrink: 0; margin-top: .05rem; }
.gap-callout__body { font-size: .875rem; }
.gap-callout__title { color: #fde047; display: block; margin-bottom: .25rem; }
.gap-callout__desc { color: var(--text-dim); margin: 0; }
.gap-callout__desc strong { color: var(--text); font-weight: 600; }

/* ── Empty state ──────────────────────────────────────────────────────── */
.empty-state {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 5rem 2rem;
  border: 1px dashed var(--border-light); border-radius: var(--radius-lg);
}
.empty-state--sm { padding: 3.5rem 2rem; }
.empty-state__icon {
  width: 64px; height: 64px; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); margin-bottom: 1.25rem;
}
.empty-state__title {
  font-size: 1rem; font-weight: 600; margin-bottom: .5rem; color: var(--text);
}
.empty-state__desc {
  font-size: .875rem; max-width: 380px; margin: 0 auto 1.5rem;
}

/* ── Modal ────────────────────────────────────────────────────────────── */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,.65);
  display: flex; align-items: center; justify-content: center; padding: 1rem;
  opacity: 0; pointer-events: none;
  transition: opacity .15s;
}
.modal-backdrop.open {
  opacity: 1; pointer-events: all;
}
.modal {
  background: var(--surface); border: 1px solid var(--border-light);
  border-radius: var(--radius-lg); padding: 1.75rem;
  width: 100%; max-width: 460px;
  transform: translateY(10px);
  transition: transform .15s;
}
.modal-backdrop.open .modal { transform: translateY(0); }
.modal__header {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem;
}
.modal__title { font-size: 1.1rem; font-weight: 600; }
.modal__close {
  background: none; border: none; cursor: pointer; color: var(--muted);
  display: flex; align-items: center; padding: .25rem; border-radius: 6px;
  transition: color .15s, background .15s;
}
.modal__close:hover { color: var(--text); background: rgba(255,255,255,.06); }
.modal__form { display: flex; flex-direction: column; gap: 1.25rem; }
.modal__footer {
  display: flex; justify-content: flex-end; gap: .75rem;
  padding-top: .75rem; border-top: 1px solid var(--border);
}

/* ── Form controls ────────────────────────────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: .4rem; }
.form-label {
  font-size: .8rem; font-weight: 500; color: var(--text-dim);
}
.form-required { color: var(--danger); }
.form-input, .form-select {
  padding: .65rem 1rem; border-radius: var(--radius);
  background: var(--bg); border: 1px solid var(--border-light);
  color: var(--text); font-family: var(--font); font-size: .9rem; outline: none;
  transition: border-color .15s, box-shadow .15s;
  width: 100%;
}
.form-input::placeholder { color: var(--muted); }
.form-input:focus, .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}
.form-select {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .75rem center;
  padding-right: 2.5rem;
}
.form-select option { background: var(--surface); }
input[type="date"].form-input::-webkit-calendar-picker-indicator {
  filter: invert(.5);
}
.form-hint { font-size: .78rem; color: var(--muted); margin: 0; }

/* ── Employee link in table ───────────────────────────────────────────── */
.employee-link {
  color: var(--text);
  font-weight: 500;
  transition: color .15s;
  text-decoration: none;
}
.employee-link:hover { color: var(--primary); }

/* ── Employee info strip ──────────────────────────────────────────────── */
.emp-info-strip {
  display: flex; align-items: center; flex-wrap: wrap; gap: 0;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1rem 1.5rem;
  margin-bottom: 2rem;
}
.emp-info-item {
  display: flex; flex-direction: column; gap: .25rem;
  padding: .25rem 1.25rem;
}
.emp-info-item:first-child { padding-left: 0; }
.emp-info-label {
  font-size: .7rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: .08em; color: var(--muted);
}
.emp-info-value {
  font-size: .9rem; color: var(--text); font-weight: 500;
}
.emp-info-divider {
  width: 1px; height: 32px; background: var(--border); flex-shrink: 0;
}

/* ── Obligation section headers ───────────────────────────────────────── */
.ob-section-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 1rem; margin-bottom: 1rem;
}
.ob-section-header__left { display: flex; align-items: flex-start; gap: .75rem; }
.ob-section-icon {
  width: 34px; height: 34px; border-radius: var(--radius); flex-shrink: 0;
  background: rgba(99,102,241,.12); color: var(--primary);
  display: flex; align-items: center; justify-content: center; margin-top: .1rem;
}
.ob-section-icon--gap {
  background: rgba(251,191,36,.1); color: #fbbf24;
}
.ob-section-title { font-size: 1rem; font-weight: 600; }
.ob-section-desc { font-size: .825rem; margin: .2rem 0 0; }
.ob-section-count {
  flex-shrink: 0; font-size: .78rem; color: var(--muted);
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 999px; padding: .15rem .65rem; white-space: nowrap; margin-top: .2rem;
}

/* ── Obligation cards ─────────────────────────────────────────────────── */
.ob-cards {
  display: flex; flex-direction: column; gap: .75rem; margin-bottom: .5rem;
}
.ob-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: border-color .15s;
}
.ob-card:hover { border-color: var(--border-light); }
.ob-card--gap {
  border-color: rgba(251,191,36,.25);
  background: linear-gradient(to bottom, rgba(251,191,36,.03), var(--surface));
}
.ob-card--gap:hover { border-color: rgba(251,191,36,.4); }

.ob-card__top {
  padding: 1rem 1.25rem .75rem;
  border-bottom: 1px solid var(--border);
}
.ob-card__title-row {
  display: flex; align-items: flex-start; gap: .6rem; flex-wrap: wrap; margin-bottom: .4rem;
}
.ob-card__title {
  font-size: .9rem; font-weight: 600; color: var(--text); flex: 1;
}
.ob-gap-tag {
  flex-shrink: 0; font-size: .7rem; font-weight: 600; padding: .2rem .55rem;
  border-radius: 999px; background: rgba(251,191,36,.12);
  color: #fbbf24; border: 1px solid rgba(251,191,36,.25); white-space: nowrap;
  text-transform: uppercase; letter-spacing: .05em;
}
.ob-payroll-tag {
  flex-shrink: 0; font-size: .7rem; font-weight: 600; padding: .2rem .55rem;
  border-radius: 999px; background: rgba(34,197,94,.1);
  color: #4ade80; border: 1px solid rgba(34,197,94,.2); white-space: nowrap;
  text-transform: uppercase; letter-spacing: .05em;
}
.ob-exempt-tag {
  flex-shrink: 0; font-size: .7rem; font-weight: 600; padding: .2rem .55rem;
  border-radius: 999px; background: rgba(107,114,128,.1);
  color: var(--muted); border: 1px solid rgba(107,114,128,.2); white-space: nowrap;
  text-transform: uppercase; letter-spacing: .05em;
}

.ob-card__deadline {
  display: flex; align-items: center; gap: .35rem;
  font-size: .78rem; color: var(--text-dim);
}
.ob-deadline-date { font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }
.ob-deadline-note { color: var(--muted); }

.ob-card__body {
  padding: .85rem 1.25rem;
  display: flex; flex-wrap: wrap; align-items: flex-start; gap: .75rem 2rem;
}
.ob-card__field { display: flex; flex-direction: column; gap: .2rem; min-width: 200px; flex: 1; }
.ob-field-label {
  font-size: .68rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: .07em; color: var(--muted);
}
.ob-field-value { font-size: .825rem; color: var(--text-dim); line-height: 1.5; }
.ob-card__link-btn {
  flex-shrink: 0;
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .45rem .9rem; border-radius: var(--radius); font-size: .78rem; font-weight: 500;
  background: var(--primary); color: #fff; transition: all .15s; border: none; cursor: pointer;
  align-self: flex-end;
}
.ob-card__link-btn:hover { background: var(--primary-dim); transform: translateY(-1px); }
.ob-card__link-btn--muted {
  background: transparent; color: var(--text-dim);
  border: 1px solid var(--border-light);
}
.ob-card__link-btn--muted:hover { border-color: var(--primary); color: var(--primary); transform: none; }

.ob-card__note {
  display: flex; align-items: flex-start; gap: .5rem;
  padding: .65rem 1.25rem; border-top: 1px solid var(--border);
  font-size: .78rem; color: var(--text-dim); line-height: 1.55;
  background: rgba(255,255,255,.015);
}
.ob-card__note svg { flex-shrink: 0; margin-top: .15rem; color: var(--muted); }
.ob-card__note--gap { background: rgba(251,191,36,.04); border-top-color: rgba(251,191,36,.12); }
.ob-card__note--gap svg { color: #fbbf24; }

/* ── Legal disclaimer ─────────────────────────────────────────────────── */
.legal-disclaimer {
  display: flex; align-items: flex-start; gap: .6rem;
  margin-top: 2.5rem; padding: 1rem 1.25rem;
  background: rgba(107,114,128,.06); border: 1px solid var(--border);
  border-radius: var(--radius); font-size: .78rem; color: var(--muted); line-height: 1.6;
}
.legal-disclaimer svg { flex-shrink: 0; margin-top: .15rem; }
.legal-disclaimer strong { color: var(--text-dim); }

/* ── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .nav__links .nav__link:not(:last-child) { display: none; }
  .stats__grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .hero { padding: 4rem 0 3rem; }
  .section { padding: 3.5rem 0; }
  .cta-box { padding: 2rem 1.25rem; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
  .client-card { flex-direction: column; align-items: flex-start; }
  .client-card__actions { width: 100%; justify-content: flex-end; }
  .page-header { flex-wrap: wrap; }
  .section-header { flex-wrap: wrap; }
  .app-nav__right .btn { display: none; }
}

@media (max-width: 375px) {
  h1 { font-size: 1.75rem; }
  .client-header__name { font-size: 1.4rem; }
}

@media (max-width: 640px) {
  .emp-info-strip { flex-direction: column; gap: .75rem; }
  .emp-info-divider { display: none; }
  .emp-info-item { padding-left: 0; }
  .ob-card__body { flex-direction: column; }
  .ob-card__link-btn { align-self: flex-start; }
  .ob-section-header { flex-wrap: wrap; }
}

/* ── Client header right-side actions ────────────────────────────────── */
.client-header__right { display: flex; align-items: flex-start; flex-shrink: 0; }

/* ── Checklist: progress stats strip ─────────────────────────────────── */
.cl-stats {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1rem 1.5rem;
  margin-bottom: 1rem;
  display: flex; flex-direction: column; gap: .875rem;
}
.cl-stats__progress {
  display: flex; align-items: center; gap: .875rem;
}
.cl-progress-bar {
  flex: 1; height: 6px; background: var(--border-light);
  border-radius: 999px; overflow: hidden;
}
.cl-progress-bar__fill {
  height: 100%; background: var(--success);
  border-radius: 999px;
  transition: width .35s ease;
}
.cl-progress-text {
  font-size: .78rem; font-weight: 600; color: var(--text-dim);
  white-space: nowrap; font-variant-numeric: tabular-nums;
}
.cl-stats__pills {
  display: flex; flex-wrap: wrap; gap: .5rem;
}
.cl-stat {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: .76rem; font-weight: 500; padding: .25rem .65rem;
  border-radius: 999px; white-space: nowrap;
}
.cl-stat--done      { background: rgba(34,197,94,.1); color: #4ade80; border: 1px solid rgba(34,197,94,.2); }
.cl-stat--in-progress { background: rgba(99,102,241,.1); color: #a5b4fc; border: 1px solid rgba(99,102,241,.2); }
.cl-stat--not-started { background: rgba(107,114,128,.08); color: var(--muted); border: 1px solid rgba(107,114,128,.15); }
.cl-stat--gap       { background: rgba(251,191,36,.1); color: #fbbf24; border: 1px solid rgba(251,191,36,.2); }

/* ── Checklist: filter tabs ──────────────────────────────────────────── */
.cl-tabs {
  display: flex; align-items: center; gap: .25rem; flex-wrap: wrap;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0;
}
.cl-tab {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .55rem .9rem; border-radius: var(--radius) var(--radius) 0 0;
  font-size: .8rem; font-weight: 500; color: var(--muted);
  background: none; border: none; cursor: pointer;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
  transition: color .15s, border-color .15s;
}
.cl-tab:hover { color: var(--text); }
.cl-tab--active { color: var(--text); border-bottom-color: var(--primary); }
.cl-tab-count {
  background: var(--border); border-radius: 999px;
  padding: .05rem .45rem; font-size: .7rem; font-weight: 600;
  color: var(--muted);
}
.cl-tab--active .cl-tab-count {
  background: var(--primary-glow); color: var(--primary);
}

/* ── Checklist: group / section ──────────────────────────────────────── */
.checklist-group {
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; margin-bottom: .5rem;
}
.checklist-group--gap { border-color: rgba(251,191,36,.25); }

.cl-group-header {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,.02);
}
.cl-group-header--gap {
  background: rgba(251,191,36,.04);
  border-bottom-color: rgba(251,191,36,.15);
}
.cl-group-header__left { display: flex; align-items: flex-start; gap: .75rem; }
.cl-group-icon {
  width: 30px; height: 30px; border-radius: 8px; flex-shrink: 0;
  background: rgba(99,102,241,.12); color: var(--primary);
  display: flex; align-items: center; justify-content: center; margin-top: .1rem;
}
.cl-group-icon--gap { background: rgba(251,191,36,.1); color: #fbbf24; }
.cl-group-title { font-size: .9rem; font-weight: 600; }
.cl-group-desc { font-size: .78rem; color: var(--text-dim); margin: .15rem 0 0; }

/* ── Checklist: item rows ────────────────────────────────────────────── */
.checklist-list { display: flex; flex-direction: column; }

.checklist-item {
  display: flex; align-items: center; gap: .875rem;
  padding: .875rem 1.25rem;
  border-bottom: 1px solid var(--border);
  transition: background .12s;
}
.checklist-item:last-child { border-bottom: none; }
.checklist-item:hover { background: rgba(255,255,255,.02); }
.checklist-item--gap { border-left: 3px solid rgba(251,191,36,.4); padding-left: 1.05rem; }
.checklist-item--done { opacity: .65; }
.checklist-item--done:hover { opacity: .85; }

/* Status toggle button */
.status-btn {
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: none; border: none; cursor: pointer; padding: 0; flex-shrink: 0;
  transition: transform .12s, opacity .12s;
}
.status-btn:hover { transform: scale(1.12); }
.status-btn:active { transform: scale(.95); }
.status-btn:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.status-btn--not-started { color: var(--muted); }
.status-btn--not-started:hover { color: var(--primary); }
.status-btn--in-progress { color: var(--primary); }
.status-btn--done { color: var(--success); }

/* Item content layout */
.checklist-item__main {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column; gap: .2rem;
}
.checklist-item__label {
  font-size: .875rem; font-weight: 500; color: var(--text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  transition: color .15s;
}
.checklist-item--done .checklist-item__label {
  text-decoration: line-through; color: var(--muted);
}
.checklist-item__agency {
  font-size: .75rem; color: var(--muted);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.cl-gap-tag {
  display: inline-block;
  font-size: .67rem; font-weight: 600; padding: .1rem .45rem;
  border-radius: 999px; background: rgba(251,191,36,.12);
  color: #fbbf24; border: 1px solid rgba(251,191,36,.2);
  text-transform: uppercase; letter-spacing: .05em;
  width: fit-content;
}

.checklist-item__meta {
  display: flex; align-items: center; gap: .4rem; flex-shrink: 0;
}
.emp-chip {
  font-size: .73rem; font-weight: 500; color: var(--text-dim);
  background: var(--bg); border: 1px solid var(--border-light);
  border-radius: 999px; padding: .15rem .5rem;
  white-space: nowrap; max-width: 120px;
  overflow: hidden; text-overflow: ellipsis;
}

.checklist-item__due {
  display: flex; align-items: center; gap: .3rem; flex-shrink: 0;
  font-size: .75rem; color: var(--text-dim);
}
.checklist-item__due-date {
  font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.checklist-item__portal {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .35rem .7rem; border-radius: 7px; font-size: .75rem; font-weight: 500;
  background: var(--primary); color: #fff; transition: all .12s;
  border: none; white-space: nowrap; flex-shrink: 0; cursor: pointer;
  text-decoration: none;
}
.checklist-item__portal:hover { background: var(--primary-dim); transform: translateY(-1px); }
.cl-portal--muted {
  background: transparent; color: var(--text-dim);
  border: 1px solid var(--border-light);
}
.cl-portal--muted:hover { border-color: var(--primary); color: var(--primary); transform: none; }

/* ── All-done banner ─────────────────────────────────────────────────── */
.cl-done-banner {
  display: flex; align-items: center; gap: .65rem;
  margin-top: 1.5rem; padding: 1rem 1.25rem;
  background: rgba(34,197,94,.08); border: 1px solid rgba(34,197,94,.25);
  border-radius: var(--radius); font-size: .875rem; font-weight: 500; color: #4ade80;
}

/* ── Checklist responsive ────────────────────────────────────────────── */
@media (max-width: 640px) {
  .cl-tabs { gap: 0; }
  .cl-tab { padding: .5rem .7rem; font-size: .75rem; }
  .checklist-item {
    flex-wrap: wrap; gap: .6rem;
  }
  .checklist-item__main { flex-basis: calc(100% - 44px); }
  .checklist-item__meta { order: 3; }
  .checklist-item__due { order: 4; }
  .checklist-item__portal { order: 5; }
  .emp-chip { max-width: 90px; }
}

@media (max-width: 375px) {
  .cl-stats { padding: .875rem 1rem; }
  .cl-group-header { flex-wrap: wrap; }
}

/* ── App tabs (nav-level) ─────────────────────────────────────────────────── */
.app-tabs {
  display: flex; align-items: center; gap: .25rem; flex: 1;
}
.app-tab {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .35rem .85rem; border-radius: 8px;
  font-size: .85rem; font-weight: 500; color: var(--muted);
  background: none; border: none; cursor: pointer;
  transition: color .15s, background .15s; font-family: var(--font);
}
.app-tab:hover { color: var(--text); background: rgba(255,255,255,.05); }
.app-tab--active { color: var(--text); background: rgba(255,255,255,.07); }
.app-tab-count {
  font-size: .7rem; background: var(--border-light); color: var(--muted);
  border-radius: 999px; padding: .05rem .45rem; font-weight: 600;
}
.app-tab--active .app-tab-count {
  background: var(--primary-glow); color: var(--primary);
}
.app-tab-count--urgent {
  background: rgba(239,68,68,.15); color: #f87171;
}

/* ── Command center: onboarding empty state ─────────────────────────────── */
.cmd-onboarding {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; padding: 5rem 2rem;
  border: 1px dashed var(--border-light); border-radius: var(--radius-lg);
}
.cmd-onboarding__icon {
  width: 68px; height: 68px; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); margin-bottom: 1.5rem;
}
.cmd-onboarding__title {
  font-size: 1.25rem; font-weight: 700; letter-spacing: -.02em;
  margin-bottom: .6rem; color: var(--text);
}
.cmd-onboarding__desc {
  font-size: .9rem; max-width: 440px; margin: 0 auto 2rem;
}
.cmd-onboarding__note {
  margin-top: 1rem; font-size: .78rem; color: var(--muted);
}

/* ── Command center: stats strip ─────────────────────────────────────────── */
.cmd-stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: .75rem; margin-bottom: 1.75rem;
}
.cmd-stat {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.25rem;
  display: flex; flex-direction: column; gap: .25rem;
  transition: border-color .15s;
}
.cmd-stat--danger  { border-color: rgba(239,68,68,.35); background: rgba(239,68,68,.04); }
.cmd-stat--warning { border-color: rgba(251,191,36,.3); background: rgba(251,191,36,.03); }
.cmd-stat--info    { border-color: rgba(99,102,241,.25); background: rgba(99,102,241,.03); }

.cmd-stat__number {
  font-size: 2rem; font-weight: 700; letter-spacing: -.04em; line-height: 1;
  color: var(--text);
}
.cmd-stat--danger  .cmd-stat__number { color: #f87171; }
.cmd-stat--warning .cmd-stat__number { color: #fbbf24; }
.cmd-stat--info    .cmd-stat__number { color: #a5b4fc; }

.cmd-stat__label {
  font-size: .72rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: .07em; color: var(--muted); margin-top: .15rem;
}
.cmd-stat__hint {
  font-size: .73rem; color: var(--muted); margin-top: .1rem;
}
.cmd-stat__hint--ok { color: var(--success); }

/* ── Triage sections ─────────────────────────────────────────────────────── */
.triage-section {
  border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden;
}
.triage-section--overdue  { border-color: rgba(239,68,68,.3); }
.triage-section--due-soon { border-color: rgba(251,191,36,.25); }

.triage-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: .875rem 1.25rem;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,.02);
}
.triage-section--overdue  .triage-header {
  background: rgba(239,68,68,.05); border-bottom-color: rgba(239,68,68,.15);
}
.triage-section--due-soon .triage-header {
  background: rgba(251,191,36,.04); border-bottom-color: rgba(251,191,36,.12);
}

.triage-header__left {
  display: flex; align-items: center; gap: .65rem;
}
.triage-icon {
  width: 28px; height: 28px; border-radius: 7px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.triage-icon--overdue  { background: rgba(239,68,68,.12); color: #f87171; }
.triage-icon--due-soon { background: rgba(251,191,36,.1);  color: #fbbf24; }
.triage-icon--upcoming { background: rgba(99,102,241,.1);  color: #a5b4fc; }

.triage-title {
  font-size: .875rem; font-weight: 600; color: var(--text);
}
.triage-count {
  font-size: .72rem; color: var(--muted);
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 999px; padding: .12rem .6rem; white-space: nowrap;
}

/* ── Triage item rows ────────────────────────────────────────────────────── */
.triage-list { display: flex; flex-direction: column; }

.triage-item {
  display: flex; align-items: center; gap: .875rem;
  padding: .875rem 1.25rem;
  border-bottom: 1px solid var(--border);
  transition: background .12s;
}
.triage-item:last-child { border-bottom: none; }
.triage-item:hover { background: rgba(255,255,255,.02); }
.triage-item--gap { border-left: 3px solid rgba(251,191,36,.4); padding-left: 1.05rem; }

.triage-item__main {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column; gap: .25rem;
}
.triage-item__label {
  font-size: .875rem; font-weight: 500; color: var(--text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.triage-item__ctx {
  display: flex; align-items: center; gap: .35rem; flex-wrap: wrap;
}
.triage-ctx-client {
  font-size: .73rem; font-weight: 600; color: var(--primary);
  background: var(--primary-glow); border: 1px solid rgba(99,102,241,.2);
  border-radius: 999px; padding: .1rem .5rem;
  white-space: nowrap; max-width: 180px;
  overflow: hidden; text-overflow: ellipsis;
}
.triage-ctx-sep {
  color: var(--border-light); font-size: .75rem;
}

.triage-item__due {
  display: flex; align-items: center; gap: .3rem;
  flex-shrink: 0; font-size: .78rem; font-weight: 600;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.triage-item__due--overdue  { color: #f87171; }
.triage-item__due--due-soon { color: #fbbf24; }
.triage-item__due--upcoming { color: #a5b4fc; }

/* ── All-clear banner ───────────────────────────────────────────────────── */
.all-clear {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; padding: 3rem 2rem;
  border: 1px solid rgba(34,197,94,.2); border-radius: var(--radius-lg);
  background: rgba(34,197,94,.04); margin-bottom: 1.5rem;
}
.all-clear__icon {
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(34,197,94,.12); color: #4ade80;
  display: flex; align-items: center; justify-content: center; margin-bottom: 1rem;
}
.all-clear__title {
  font-size: 1rem; font-weight: 600; color: #4ade80; margin-bottom: .4rem;
}
.all-clear__desc { font-size: .875rem; color: var(--text-dim); margin: 0; }

/* ── Client roll-up ─────────────────────────────────────────────────────── */
.client-rollup { margin-top: 2rem; }

.client-rollup__header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1rem;
}
.client-rollup__title {
  font-size: 1rem; font-weight: 600; color: var(--text);
}

.rollup-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: .75rem;
}
.rollup-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.25rem;
  display: flex; flex-direction: column; gap: .75rem;
  transition: border-color .15s, transform .15s; text-decoration: none;
  cursor: pointer;
}
.rollup-card:hover { border-color: var(--border-light); transform: translateY(-1px); }
.rollup-card--urgent { border-color: rgba(239,68,68,.3); }
.rollup-card--urgent:hover { border-color: rgba(239,68,68,.5); }

.rollup-card__header {
  display: flex; align-items: flex-start; justify-content: space-between; gap: .5rem;
}
.rollup-card__name {
  font-size: .875rem; font-weight: 600; color: var(--text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1;
}
.rollup-card__counts {
  display: flex; align-items: center; gap: .35rem; flex-wrap: wrap;
}
.rollup-count {
  display: inline-flex; align-items: center; gap: .3rem;
  font-size: .71rem; font-weight: 600; padding: .15rem .5rem;
  border-radius: 999px; white-space: nowrap;
}
.rollup-count--overdue  { background: rgba(239,68,68,.12); color: #f87171; border: 1px solid rgba(239,68,68,.2); }
.rollup-count--due-soon { background: rgba(251,191,36,.1); color: #fbbf24; border: 1px solid rgba(251,191,36,.2); }
.rollup-count--clear    { background: rgba(34,197,94,.1); color: #4ade80; border: 1px solid rgba(34,197,94,.2); }

.rollup-card__footer {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: .625rem; border-top: 1px solid var(--border);
}
.rollup-meta {
  font-size: .75rem; color: var(--muted);
}
.rollup-link {
  display: inline-flex; align-items: center; gap: .25rem;
  font-size: .75rem; font-weight: 500; color: var(--text-dim);
  transition: color .15s;
}
.rollup-card:hover .rollup-link { color: var(--primary); }

/* ── Client urgency badge (in clients list) ─────────────────────────────── */
.client-urgency-badge {
  display: inline-flex; align-items: center; gap: .3rem;
  font-size: .72rem; font-weight: 600; padding: .15rem .5rem;
  border-radius: 999px; background: rgba(239,68,68,.12); color: #f87171;
  border: 1px solid rgba(239,68,68,.2); white-space: nowrap;
}

/* ── Responsive: command center ─────────────────────────────────────────── */
@media (max-width: 700px) {
  .cmd-stats { grid-template-columns: repeat(2, 1fr); }
  .app-tabs { gap: 0; }
  .app-tab { padding: .3rem .6rem; font-size: .8rem; }
}
@media (max-width: 500px) {
  .triage-item { flex-wrap: wrap; gap: .6rem; }
  .triage-item__main { flex-basis: calc(100% - 44px); }
  .triage-item__due  { order: 3; }
  .triage-item__portal,
  .checklist-item__portal { order: 4; }
  .rollup-grid { grid-template-columns: 1fr; }
}
@media (max-width: 375px) {
  .cmd-stats { grid-template-columns: 1fr; }
}

/* ── Renewal calendar ──────────────────────────────────────────────────────── */

/* Month group header */
.ren-month-group { display: flex; flex-direction: column; gap: 0; }
.ren-month-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: .55rem .25rem .45rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0;
}
.ren-month-label {
  font-size: .72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; color: var(--muted);
}

/* Cadence pill */
.ren-cadence {
  display: inline-flex; align-items: center; flex-shrink: 0;
  padding: .18rem .55rem; border-radius: 999px;
  font-size: .67rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
  white-space: nowrap;
}
.ren-cadence--monthly     { background: rgba(6,182,212,.1);   color: #67e8f9;  border: 1px solid rgba(6,182,212,.2); }
.ren-cadence--quarterly   { background: rgba(99,102,241,.1);  color: #a5b4fc;  border: 1px solid rgba(99,102,241,.2); }
.ren-cadence--semi_annual { background: rgba(168,85,247,.1);  color: #d8b4fe;  border: 1px solid rgba(168,85,247,.2); }
.ren-cadence--annual      { background: rgba(34,197,94,.1);   color: #4ade80;  border: 1px solid rgba(34,197,94,.2); }
.ren-cadence--biennial    { background: rgba(251,191,36,.1);  color: #fbbf24;  border: 1px solid rgba(251,191,36,.2); }

/* Complete button */
.ren-complete-btn {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .3rem .65rem; border-radius: 7px; font-size: .75rem; font-weight: 500;
  background: rgba(34,197,94,.1); color: #4ade80;
  border: 1px solid rgba(34,197,94,.2); cursor: pointer;
  transition: all .15s; flex-shrink: 0; font-family: var(--font);
}
.ren-complete-btn:hover {
  background: rgba(34,197,94,.18); border-color: rgba(34,197,94,.35);
  transform: translateY(-1px);
}
.ren-complete-btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }

/* Due date text span */
.ren-due-text { font-variant-numeric: tabular-nums; }

/* Responsive renewal rows */
@media (max-width: 640px) {
  .ren-row { flex-wrap: wrap; gap: .6rem; }
  .ren-cadence { order: -1; }
  .ren-complete-btn { order: 5; }
  .triage-item__due { order: 4; }
}

/* ── Auth pages ──────────────────────────────────────────────────────────── */
.auth-page {
  min-height: calc(100vh - 60px);
  display: flex; align-items: center; justify-content: center;
  padding: 3rem 1.5rem;
}
.auth-card {
  width: 100%; max-width: 420px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
}
.auth-card__header { text-align: center; margin-bottom: 1.75rem; }
.auth-plan-pill {
  display: inline-block; margin-bottom: .75rem;
  background: rgba(99,102,241,.12); color: var(--primary);
  border: 1px solid rgba(99,102,241,.25);
  padding: .25rem .75rem; border-radius: 999px;
  font-size: .75rem; font-weight: 600; letter-spacing: .02em;
}
.auth-card__title {
  font-size: 1.625rem; font-weight: 700;
  letter-spacing: -.02em; margin-bottom: .35rem;
}
.auth-card__subtitle { font-size: .875rem; color: var(--text-dim); }
.auth-error {
  display: flex; align-items: flex-start; gap: .5rem;
  background: rgba(239,68,68,.1); border: 1px solid rgba(239,68,68,.25);
  color: #fca5a5; border-radius: var(--radius);
  padding: .75rem 1rem; font-size: .875rem;
  margin-bottom: 1.25rem; line-height: 1.5;
}
.auth-form { display: flex; flex-direction: column; gap: 1rem; }
.auth-submit {
  width: 100%; justify-content: center;
  padding: .75rem 1.25rem; font-size: .9375rem;
  margin-top: .25rem;
}
.auth-card__switch {
  text-align: center; margin-top: 1.25rem;
  font-size: .875rem; color: var(--text-dim);
}
.auth-card__switch a { color: var(--primary); font-weight: 500; }
.auth-card__switch a:hover { text-decoration: underline; }
.auth-legal {
  text-align: center; margin-top: 1.25rem;
  font-size: .72rem; color: var(--muted); line-height: 1.6;
}

/* ── Nav user email + plan badge ─────────────────────────────────────────── */
.nav-user-email {
  font-size: .8rem; color: var(--text-dim);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  max-width: 180px;
}
.nav-plan-badge {
  display: inline-flex; align-items: center;
  font-size: .75rem; font-weight: 600; padding: .25rem .625rem;
  border-radius: 999px; white-space: nowrap;
  border: 1px solid var(--border-light); color: var(--text-dim);
  transition: border-color .15s;
}
.nav-plan-badge:hover { border-color: var(--primary); color: var(--primary); }
.nav-plan-badge--pro   { border-color: rgba(99,102,241,.4); color: #a5b4fc; }
.nav-plan-badge--agency { border-color: rgba(245,158,11,.4); color: #fcd34d; }

/* ── Trial banner ────────────────────────────────────────────────────────── */
.trial-banner {
  background: rgba(99,102,241,.07);
  border: 1px solid rgba(99,102,241,.2);
  border-radius: var(--radius); margin-bottom: 1.5rem;
}
.trial-banner__inner {
  display: flex; align-items: center; gap: .75rem;
  padding: .6rem 1rem; flex-wrap: wrap;
}
.trial-banner__inner > span { font-size: .875rem; color: var(--text-dim); flex: 1 1 auto; }

/* ── Billing page ────────────────────────────────────────────────────────── */
.billing-usage-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.5rem;
  margin-bottom: 2rem;
}
.billing-usage__header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1rem;
}
.billing-usage__label {
  font-size: .8rem; font-weight: 600; color: var(--muted);
  text-transform: uppercase; letter-spacing: .06em;
}
.billing-current-plan-badge {
  font-size: .75rem; font-weight: 700; padding: .25rem .625rem;
  border-radius: 999px; text-transform: uppercase; letter-spacing: .05em;
}
.billing-current-plan-badge--free   { background: rgba(107,114,128,.15); color: var(--text-dim); }
.billing-current-plan-badge--pro    { background: rgba(99,102,241,.15); color: #a5b4fc; }
.billing-current-plan-badge--agency { background: rgba(245,158,11,.15); color: #fcd34d; }
.billing-usage__row { display: flex; flex-direction: column; gap: .75rem; }
.billing-usage__stat {
  font-size: 1.05rem; display: flex; align-items: center; gap: .4rem;
}
.billing-usage__of { color: var(--muted); font-size: .875rem; }
.billing-usage-bar {
  height: 6px; background: var(--border); border-radius: 999px; overflow: hidden;
}
.billing-usage-bar__fill {
  height: 100%; background: var(--primary); border-radius: 999px; transition: width .3s;
}
.billing-usage-bar__fill--full { background: var(--danger); }
.billing-usage__over { font-size: .8rem; color: var(--danger); }
.billing-usage__unlimited { font-size: .875rem; color: var(--success); }
.billing-plans-heading {
  font-size: 1.125rem; font-weight: 600; margin-bottom: 1rem;
}
.billing-plans {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
}
@media (max-width: 768px) {
  .billing-plans { grid-template-columns: 1fr; }
}
.billing-plan {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.5rem;
  display: flex; flex-direction: column; gap: 1rem;
  transition: border-color .15s;
}
.billing-plan--active { border-color: var(--primary); }
.billing-plan--pro.billing-plan--active { border-color: #6366f1; }
.billing-plan--agency.billing-plan--active { border-color: #f59e0b; }
.billing-plan__top {
  display: flex; flex-direction: column; gap: .35rem; position: relative;
}
.billing-plan__name { font-size: .8rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.billing-plan__price { font-size: 1.75rem; font-weight: 700; letter-spacing: -.02em; }
.billing-plan__period { font-size: .9rem; font-weight: 400; color: var(--muted); }
.billing-plan__current {
  position: absolute; top: 0; right: 0;
  font-size: .7rem; font-weight: 700; color: var(--primary);
  background: rgba(99,102,241,.12); border: 1px solid rgba(99,102,241,.2);
  padding: .2rem .5rem; border-radius: 999px; text-transform: uppercase; letter-spacing: .05em;
}
.billing-plan__features {
  list-style: none; display: flex; flex-direction: column; gap: .6rem;
  font-size: .875rem; color: var(--text-dim); flex: 1;
}
.billing-plan__features li { display: flex; align-items: center; gap: .5rem; }
.billing-plan__features li svg { color: var(--success); flex-shrink: 0; }
.billing-plan__features strong { color: var(--text); }
.billing-plan__cta {
  width: 100%; justify-content: center;
}
.billing-plan__cta--current { opacity: .45; cursor: not-allowed; pointer-events: none; }
.billing-demo-note {
  text-align: center; font-size: .78rem; color: var(--muted);
  margin-top: 1.5rem; line-height: 1.6;
}

/* ── CSV import modal ────────────────────────────────────────────────────── */
.import-format-box {
  background: rgba(255,255,255,.03); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1rem 1.125rem;
}
.import-format-box__label {
  font-size: .72rem; font-weight: 600; color: var(--muted);
  text-transform: uppercase; letter-spacing: .06em; margin-bottom: .625rem;
}
.import-format-cols {
  display: flex; flex-wrap: wrap; gap: .375rem;
}
.import-col {
  font-family: var(--mono); font-size: .75rem;
  background: rgba(99,102,241,.1); color: #c7d2fe;
  border: 1px solid rgba(99,102,241,.2);
  padding: .175rem .5rem; border-radius: 4px;
}
.import-col--optional {
  background: rgba(107,114,128,.1); color: var(--muted); border-color: var(--border);
}
.import-code {
  font-family: var(--mono); font-size: .72rem; color: var(--text-dim);
  line-height: 1.65; white-space: pre; overflow-x: auto;
  background: rgba(0,0,0,.25); border: 1px solid var(--border);
  border-radius: var(--radius); padding: .75rem 1rem;
  margin: 0;
}
.form-file-input {
  display: block; width: 100%;
  font-size: .875rem; font-family: var(--font);
  color: var(--text);
  background: var(--surface); border: 1px solid var(--border-light);
  border-radius: var(--radius); padding: .6rem .875rem;
  cursor: pointer; transition: border-color .15s;
}
.form-file-input:hover { border-color: var(--primary); }
.form-file-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-glow); }
.form-file-input::file-selector-button {
  font-family: var(--font); font-size: .8rem; font-weight: 500;
  background: rgba(99,102,241,.15); color: #a5b4fc;
  border: 1px solid rgba(99,102,241,.25); border-radius: 5px;
  padding: .3rem .75rem; margin-right: .75rem; cursor: pointer; transition: background .15s;
}
.form-file-input::file-selector-button:hover { background: rgba(99,102,241,.25); }
.import-paywall-note {
  display: flex; align-items: flex-start; gap: .5rem;
  font-size: .8rem; color: var(--text-dim);
  background: rgba(245,158,11,.07); border: 1px solid rgba(245,158,11,.2);
  border-radius: var(--radius); padding: .625rem .875rem;
  margin-top: .5rem; line-height: 1.5;
}
.import-paywall-note a { color: var(--primary); font-weight: 500; }
.import-paywall-note a:hover { text-decoration: underline; }

@media (max-width: 640px) {
  .nav-user-email { display: none; }
  .nav-plan-badge  { display: none; }
  .trial-banner__inner { gap: .5rem; }
}

/* ── Footer disclaimer banner ────────────────────────────────────────────── */
.footer__disclaimer {
  display: flex; align-items: flex-start; gap: .6rem;
  padding: .875rem 0; margin-bottom: .5rem;
  border-bottom: 1px solid var(--border);
  font-size: .76rem; color: var(--muted); line-height: 1.6;
}
.footer__disclaimer svg { flex-shrink: 0; margin-top: .15rem; color: var(--border-light); }
.footer__disclaimer strong { color: var(--text-dim); }

/* ── Comparison page ──────────────────────────────────────────────────────── */
.hero--compare { padding-top: 5rem; }

.compare-explainer { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.compare-explainer__inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2rem;
}
@media (max-width: 768px) { .compare-explainer__inner { grid-template-columns: 1fr; } }
.compare-explainer__card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.75rem;
}
.compare-explainer__card--us { border-color: rgba(99,102,241,.3); }
.compare-explainer__label {
  font-size: .72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; color: var(--muted); margin-bottom: .6rem;
}
.compare-explainer__card--mosey .compare-explainer__label { color: var(--danger); }
.compare-explainer__card--us    .compare-explainer__label { color: var(--primary); }
.compare-explainer__card h3 { font-size: 1.05rem; margin-bottom: .6rem; }
.compare-explainer__card p { font-size: .875rem; line-height: 1.65; margin-bottom: .75rem; }
.compare-explainer__quote {
  font-size: .82rem; color: var(--text-dim); font-style: italic;
  border-left: 3px solid var(--border-light); padding-left: .875rem; margin-top: .75rem;
}
.compare-explainer__list {
  list-style: none; display: flex; flex-direction: column; gap: .5rem;
  font-size: .875rem; color: var(--text-dim);
}
.compare-explainer__list li { display: flex; align-items: flex-start; gap: .5rem; line-height: 1.5; }
.compare-explainer__list li::before { content: '✓'; color: var(--success); font-weight: 700; flex-shrink: 0; margin-top: .1rem; }

/* ── Comparison table ─────────────────────────────────────────────────────── */
.compare-table-section__header { text-align: center; margin-bottom: 2.5rem; }
.compare-table-section__header p { max-width: 520px; margin: .6rem auto 0; }

.compare-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  background: var(--surface); margin-bottom: 1rem;
}
.compare-table {
  width: 100%; border-collapse: collapse; font-size: .875rem; min-width: 680px;
}
.compare-table th {
  padding: 1rem 1.25rem; text-align: left; border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,.02);
  font-size: .8rem; font-weight: 600; color: var(--text-dim);
  white-space: nowrap;
}
.compare-table__feature-col { width: 32%; }
.compare-table__us-col { background: rgba(99,102,241,.04); border-left: 2px solid rgba(99,102,241,.25); }

.compare-table__brand {
  display: flex; align-items: center; gap: .4rem; font-weight: 600; color: var(--text);
}
.compare-table__brand--us { color: var(--primary); }
.compare-table__tagline {
  font-size: .7rem; color: var(--muted); margin-top: .2rem; font-weight: 400;
}
.compare-table__tagline--warn { color: #f87171; }

.compare-table__row td {
  padding: .7rem 1.25rem; border-bottom: 1px solid var(--border);
  color: var(--text-dim); vertical-align: middle;
}
.compare-table__row:last-child td { border-bottom: none; }
.compare-table__row:hover td { background: rgba(255,255,255,.015); }
.compare-table__row--price td { background: rgba(255,255,255,.025); }

.compare-table__label { color: var(--text); font-weight: 500; font-size: .85rem; }
.compare-table__cell { text-align: center; }
.compare-table__cell--us {
  background: rgba(99,102,241,.04); border-left: 2px solid rgba(99,102,241,.15);
}

.cmp-yes {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 50%;
  background: rgba(34,197,94,.1); color: #4ade80;
}
.cmp-no {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 50%;
  background: rgba(239,68,68,.08); color: #f87171;
}
.cmp-partial {
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .82rem; color: var(--muted);
}

.compare-price { font-size: .82rem; font-weight: 500; color: var(--text-dim); }
.compare-price--warn { color: #f87171; }

.compare-table__note {
  font-size: .76rem; color: var(--muted); text-align: center;
}

/* ── Why not Gusto section ───────────────────────────────────────────────── */
.compare-why { padding: 5rem 0; }
.compare-why__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 1.25rem;
}
.compare-why__card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.5rem; transition: border-color .2s;
}
.compare-why__card:hover { border-color: var(--border-light); }
.compare-why__icon {
  width: 44px; height: 44px; border-radius: var(--radius);
  background: var(--primary-glow); color: var(--primary);
  display: flex; align-items: center; justify-content: center; margin-bottom: 1rem;
}
.compare-why__card h3 { font-size: 1rem; margin-bottom: .5rem; }
.compare-why__card p { font-size: .875rem; line-height: 1.6; }

/* ── CTA section buttons variant ────────────────────────────────────────── */
.cta-btns {
  display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

@media (max-width: 640px) {
  .compare-explainer__inner { gap: 1.25rem; }
  .compare-table__feature-col { width: 40%; }
  .compare-why__grid { gap: 1rem; }
  .footer__links { flex-wrap: wrap; gap: .75rem; }
  .nav__links .nav__link:nth-child(3) { display: none; }
}

/* ════════════════════════════════════════════════════════════════════════
   Accessibility & motion polish (feature #9)
   Additive layer — keyboard focus rings, selection, scrollbars, entrance
   motion, and a reduced-motion escape hatch.
   ════════════════════════════════════════════════════════════════════════ */

/* ── Keyboard focus rings ──────────────────────────────────────────────────
   Every interactive element gets a visible ring on keyboard focus; mouse
   clicks stay clean via :focus:not(:focus-visible). */
.btn:focus-visible,
.btn-icon:focus-visible,
.app-tab:focus-visible,
.cl-tab:focus-visible,
.nav__link:focus-visible,
.nav__logo:focus-visible,
.app-nav__link:focus-visible,
.footer__links a:focus-visible,
.nav-plan-badge:focus-visible,
.ob-card__link-btn:focus-visible,
.checklist-item__portal:focus-visible,
.ren-complete-btn:focus-visible,
.modal__close:focus-visible,
.flash__close:focus-visible,
.rollup-card:focus-visible,
.client-card:focus-visible,
.employee-link:focus-visible,
.back-link:focus-visible,
.auth-card__switch a:focus-visible,
.import-paywall-note a:focus-visible,
.cl-portal--muted:focus-visible,
a.nav__logo:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: var(--radius-sm, 6px);
}
/* Form controls already have a glow ring — add the outline only for keyboard. */
.form-input:focus-visible,
.form-select:focus-visible,
.cta-form input:focus-visible {
  outline: 2px solid transparent;        /* glow handles it; keep ring off the field */
}
/* Suppress the legacy mouse-focus ring where focus-visible now governs. */
:focus:not(:focus-visible) { outline: none; }

/* ── Text selection ───────────────────────────────────────────────────────── */
::selection      { background: rgba(99,102,241,.32); color: var(--text); }
::-moz-selection { background: rgba(99,102,241,.32); color: var(--text); }

/* ── Custom scrollbars ────────────────────────────────────────────────────── */
* { scrollbar-width: thin; scrollbar-color: var(--border-light) transparent; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: var(--border-light); border-radius: 999px;
  border: 2px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover { background: #3a4257; }
::-webkit-scrollbar-corner { background: transparent; }

/* ── Entrance motion ──────────────────────────────────────────────────────── */
@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.app-page,
.auth-card,
.hero__headline,
.hero__sub,
.hero__ctas { animation: fade-in-up .28s ease both; }
.auth-card  { animation-duration: .22s; }
.flash      { animation: fade-in-up .2s ease both; }
/* Light stagger so the hero doesn't move as one rigid block. */
.hero__sub  { animation-delay: .05s; }
.hero__ctas { animation-delay: .1s; }

/* ── Reduced-motion escape hatch ──────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .btn--primary:hover,
  .feature__card:hover,
  .rollup-card:hover,
  .ob-card__link-btn:hover,
  .checklist-item__portal:hover,
  .ren-complete-btn:hover { transform: none; }
}
