/* PayrollCertified — Application Design System
   Covers: landing page, dashboard, all app screens.
   _shared.css (privacy/terms) is separate and unchanged.
*/

/* ── Variables ────────────────────────────────────────────────────────────── */
:root {
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "SF Mono", "Fira Code", Consolas, monospace;

  /* Blue — primary action */
  --blue:      #1f5fbf;
  --blue-dark: #194fa3;
  --blue-dim:  #eff5ff;

  /* Semantic */
  --green:      #16a34a;
  --green-dim:  #f0fdf4;
  --red:        #dc2626;
  --red-dim:    #fef2f2;
  --amber:      #d97706;
  --amber-dim:  #fffbeb;

  /* Ink / text */
  --ink:    #0f172a;
  --body:   #334155;
  --muted:  #64748b;
  --faint:  #94a3b8;

  /* Surfaces */
  --bg:       #ffffff;
  --surface:  #f8fafc;
  --surface2: #f1f5f9;
  --border:   #e2e8f0;
  --border2:  #cbd5e1;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(15,23,42,.06), 0 1px 2px rgba(15,23,42,.04);
  --shadow-md: 0 4px 16px rgba(15,23,42,.08), 0 2px 6px rgba(15,23,42,.04);
  --shadow-lg: 0 12px 40px rgba(15,23,42,.10), 0 4px 12px rgba(15,23,42,.05);

  /* Radii */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 24px;
}

/* ── Reset ────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 2px; }
button, input, select, textarea {
  font: inherit;
  margin: 0;
}
button { cursor: pointer; border: none; background: none; }

/* ── Layout helpers ───────────────────────────────────────────────────────── */
.wrap      { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.wrap-md   { max-width: 780px;  margin: 0 auto; padding: 0 24px; }
.wrap-sm   { max-width: 560px;  margin: 0 auto; padding: 0 24px; }
.flex      { display: flex; }
.flex-col  { display: flex; flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.gap-6 { gap: 24px; }
.gap-8 { gap: 32px; }

/* ── Navigation ───────────────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  gap: 24px;
}
.nav .brand {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  white-space: nowrap;
}
.nav .brand .mark { color: var(--blue); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}
.nav-links a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: var(--r-sm);
  transition: color .15s, background .15s;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--ink); background: var(--surface); text-decoration: none; }
.nav-links a.active { color: var(--ink); background: var(--surface2); }
.nav-actions { display: flex; align-items: center; gap: 10px; }

/* App nav (dashboard) */
.app-nav .inner { max-width: 1000px; }

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--r-md);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  transition: background .15s, box-shadow .15s, transform .1s;
  white-space: nowrap;
  text-decoration: none !important;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 2px 8px rgba(31,95,191,.25);
}
.btn-primary:hover {
  background: var(--blue-dark);
  box-shadow: 0 4px 16px rgba(31,95,191,.35);
}
.btn-outline {
  background: var(--bg);
  color: var(--blue);
  border: 1.5px solid var(--blue);
}
.btn-outline:hover { background: var(--blue-dim); }

.btn-ghost {
  background: transparent;
  color: var(--muted);
  padding: 8px 14px;
}
.btn-ghost:hover { background: var(--surface); color: var(--ink); }

.btn-lg {
  padding: 14px 28px;
  font-size: 15px;
  border-radius: var(--r-lg);
}
.btn-sm {
  padding: 7px 14px;
  font-size: 13px;
  border-radius: var(--r-sm);
}
.btn-danger {
  background: var(--red);
  color: #fff;
}
.btn-danger:hover { background: #b91c1c; }

.btn-green {
  background: var(--green);
  color: #fff;
  box-shadow: 0 2px 8px rgba(22,163,74,.2);
}
.btn-green:hover { background: var(--green-700, #15803d); }

.btn-block { width: 100%; justify-content: center; }

/* ── Badges ───────────────────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .01em;
  white-space: nowrap;
}
.badge-green  { background: var(--green-dim);  color: var(--green); }
.badge-red    { background: var(--red-dim);    color: var(--red);   }
.badge-amber  { background: var(--amber-dim);  color: var(--amber); }
.badge-blue   { background: var(--blue-dim);   color: var(--blue);  }
.badge-gray   { background: var(--surface2);   color: var(--muted); }

.badge-dot::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
}

/* ── Cards ────────────────────────────────────────────────────────────────── */
.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}
.card-body { padding: 24px; }
.card-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}
.card-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  background: var(--surface);
  border-radius: 0 0 var(--r-lg) var(--r-lg);
}

/* ── Forms ────────────────────────────────────────────────────────────────── */
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
  letter-spacing: .01em;
}
.form-group .hint {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}
input[type=text], input[type=email], input[type=number],
input[type=date], input[type=tel], select, textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border2);
  border-radius: var(--r-md);
  font-size: 14px;
  color: var(--ink);
  background: var(--bg);
  transition: border-color .15s, box-shadow .15s;
  appearance: none;
  -webkit-appearance: none;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(31,95,191,.12);
}
input::placeholder, textarea::placeholder { color: var(--faint); }
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2364748b' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.input-prefix {
  display: flex;
  align-items: stretch;
  border: 1.5px solid var(--border2);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color .15s, box-shadow .15s;
}
.input-prefix:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(31,95,191,.12);
}
.input-prefix span {
  display: flex;
  align-items: center;
  padding: 0 12px;
  background: var(--surface);
  border-right: 1px solid var(--border2);
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
  white-space: nowrap;
}
.input-prefix input {
  border: none;
  border-radius: 0;
  box-shadow: none;
}
.input-prefix input:focus { box-shadow: none; }

/* ── Trust items (used inside .trust-strip-inner) ────────────────────────── */
.trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
}
.trust-item svg { flex-shrink: 0; }

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(160deg, #f0f5ff 0%, #f8faff 40%, #fff 100%);
  padding: 80px 0 72px;
  overflow: hidden;
  position: relative;
}
.hero::before {
  content: '';
  position: absolute;
  top: -120px; right: -80px;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(31,95,191,.06) 0%, transparent 70%);
  pointer-events: none;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--blue-dim);
  color: var(--blue);
  font-size: 13px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 20px;
  letter-spacing: .02em;
}
.hero h1 {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.035em;
  color: var(--ink);
  margin: 0 0 20px;
  max-width: 680px;
}
.hero h1 em {
  font-style: normal;
  color: var(--blue);
}
.hero p.lead {
  font-size: 18px;
  color: var(--body);
  line-height: 1.65;
  max-width: 600px;
  margin: 0 0 36px;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}
.hero-screen {
  margin-top: 64px;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(15,23,42,.06);
  background: var(--bg);
}
.hero-screen-bar {
  background: var(--surface2);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--border);
}
.hero-screen-bar span {
  width: 10px; height: 10px;
  border-radius: 50%;
}
.dot-red { background: #fe5f57; }
.dot-yellow { background: #febc2e; }
.dot-green { background: #28c840; }
.screen-title {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
  margin-left: 8px;
}
.hero-screen-body { padding: 24px; }

/* ── Section headers ──────────────────────────────────────────────────────── */
.section-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(26px, 3.5vw, 38px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--ink);
  margin: 0 0 16px;
}
.section-body {
  font-size: 17px;
  color: var(--body);
  line-height: 1.65;
  max-width: 600px;
}

/* ── Feature cards ────────────────────────────────────────────────────────── */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px;
  transition: box-shadow .2s, transform .2s;
}
.feature-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.feature-icon {
  width: 44px; height: 44px;
  border-radius: var(--r-md);
  background: var(--blue-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--blue);
}
.feature-card h3 {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
}
.feature-card p {
  font-size: 14px;
  color: var(--body);
  line-height: 1.6;
  margin: 0;
}

/* ── Steps ────────────────────────────────────────────────────────────────── */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}
.steps::before {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(12.5% + 20px);
  right: calc(12.5% + 20px);
  height: 2px;
  background: var(--border);
}
.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 16px;
  position: relative;
}
.step-num {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
  color: var(--blue);
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
  transition: border-color .2s, background .2s;
}
.step:hover .step-num {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}
.step h3 {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 6px;
}
.step p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}

/* ── Trades table ─────────────────────────────────────────────────────────── */
.trades-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}
.trade-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
}
.trade-item .trade-icon {
  width: 32px; height: 32px;
  border-radius: var(--r-sm);
  background: var(--blue-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  flex-shrink: 0;
}
.trade-item .trade-info { min-width: 0; }
.trade-item .trade-name { font-size: 13px; font-weight: 600; }
.trade-item .trade-count { font-size: 12px; color: var(--muted); }

/* ── Pricing ──────────────────────────────────────────────────────────────── */
.pricing-card {
  background: var(--bg);
  border: 2px solid var(--blue);
  border-radius: var(--r-xl);
  padding: 40px;
  max-width: 440px;
  margin: 0 auto;
  text-align: center;
  box-shadow: var(--shadow-md);
  position: relative;
}
.price-amount {
  font-size: 52px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--ink);
  line-height: 1;
  margin: 16px 0 4px;
}
.price-amount span { font-size: 24px; font-weight: 600; color: var(--muted); }
.price-period { font-size: 15px; color: var(--muted); margin-bottom: 28px; }
.price-features {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  text-align: left;
}
.price-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  font-size: 14px;
  color: var(--body);
  border-bottom: 1px solid var(--border);
}
.price-features li:last-child { border-bottom: none; }
.price-features li svg { color: var(--green); flex-shrink: 0; margin-top: 2px; }
.price-trial {
  font-size: 13px;
  color: var(--muted);
  margin-top: 16px;
}

/* ── Progress bar (filing flow) ───────────────────────────────────────────── */
.progress-steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin-bottom: 40px;
}
.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  text-align: center;
}
.progress-step-icon {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
  border: 2px solid var(--border);
  background: var(--bg);
  color: var(--muted);
  transition: all .2s;
}
.progress-step.done .progress-step-icon {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}
.progress-step.active .progress-step-icon {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}
.progress-step-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  white-space: normal;
  line-height: 1.2;
  max-width: 100px;
  text-align: center;
}
.progress-step.active .progress-step-label { color: var(--ink); }
.progress-step.done .progress-step-label { color: var(--green); }
.progress-connector {
  flex: 1;
  height: 2px;
  background: var(--border);
  margin: 16px 8px 0;
  align-self: flex-start;
  min-width: 24px;
}
.progress-connector.done { background: var(--green); }

/* ── Dashboard ────────────────────────────────────────────────────────────── */
.app-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 100vh;
}
.sidebar {
  background: var(--surface);
  border-right: 1px solid var(--border);
  padding: 24px 0;
}
.sidebar-section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--faint);
  padding: 16px 20px 6px;
}
.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--body);
  border-radius: 0;
  transition: background .12s, color .12s;
  text-decoration: none;
}
.sidebar-nav a:hover { background: var(--surface2); color: var(--ink); }
.sidebar-nav a.active {
  color: var(--blue);
  background: var(--blue-dim);
  font-weight: 600;
}
.sidebar-nav a svg { color: inherit; flex-shrink: 0; }

/* ── Sidebar source badge (Sprint UX-1.5) ──────────────────────────────────
   Renders below the logo, above the first section label. JS in _app.js
   populates the #nav-source-badge element on every authenticated page. */
.source-badge {
  padding: 4px 12px 12px;
}
.source-badge-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: background .12s, color .12s;
}
.source-badge-green { background: var(--green-dim); color: var(--green); }
.source-badge-red   { background: var(--red-dim);   color: var(--red);   }
.source-badge-gray  { background: var(--surface2);  color: var(--muted); }
.source-badge-link:hover { filter: brightness(0.97); }
.source-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  flex-shrink: 0;
}
.source-badge-dot-green { background: var(--green); }
.source-badge-dot-red   { background: var(--red);   }
.source-badge-dot-gray  { background: var(--muted); }
.source-badge-text { line-height: 1; }

.app-main { padding: 40px 48px; min-width: 0; }
.page-title {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 4px;
}
.page-subtitle { font-size: 14px; color: var(--muted); margin: 0 0 32px; }

/* ── Project cards ────────────────────────────────────────────────────────── */
.project-list { display: flex; flex-direction: column; gap: 12px; }
.project-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: box-shadow .15s, border-color .15s;
  text-decoration: none;
}
.project-card:hover {
  border-color: var(--border2);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
}
.project-card.urgent { border-left: 3px solid var(--red); }
.project-card.due-soon { border-left: 3px solid var(--amber); }
.project-card.filed { border-left: 3px solid var(--green); }
.project-info { flex: 1; min-width: 0; }
.project-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.project-meta { font-size: 13px; color: var(--muted); }
.project-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

/* ── Connected sources ────────────────────────────────────────────────────── */
.source-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}
.source-logo {
  width: 44px; height: 44px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
  flex-shrink: 0;
}
.source-qb   { background: #e5f2ea; color: #1a7c3e; }
.source-gusto { background: #fce8e4; color: #c53b2c; }
.source-info { flex: 1; min-width: 0; }
.source-name { font-size: 14px; font-weight: 700; }
.source-detail { font-size: 13px; color: var(--muted); }

/* ── Payroll review table ─────────────────────────────────────────────────── */
.review-table {
  width: 100%;
  border-collapse: collapse;
}
.review-table th {
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 10px 16px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.review-table td {
  padding: 16px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  vertical-align: middle;
}
.review-table tr:last-child td { border-bottom: none; }
.review-table tr:hover td { background: var(--surface); }
.review-table .name-cell { font-weight: 600; }
.review-table .hours-cell { font-variant-numeric: tabular-nums; }
.review-table .money-cell {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}
.review-table .violation-note {
  font-size: 12px;
  color: var(--red);
  margin-top: 3px;
  display: flex;
  align-items: flex-start;
  gap: 4px;
}

/* Day-hours grid (Gusto distribution input) */
.day-hours-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  margin-top: 12px;
}
.day-hours-col { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.day-hours-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.day-hours-col input {
  width: 100%;
  text-align: center;
  padding: 8px 4px;
  font-size: 15px;
  font-weight: 600;
}

/* ── Alert/banner ─────────────────────────────────────────────────────────── */
.alert {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px;
  border-radius: var(--r-md);
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 20px;
}
.alert svg { flex-shrink: 0; margin-top: 1px; }
.alert-red    { background: var(--red-dim);   color: #7f1d1d; border: 1px solid #fecaca; }
.alert-amber  { background: var(--amber-dim); color: #78350f; border: 1px solid #fde68a; }
.alert-green  { background: var(--green-dim); color: #14532d; border: 1px solid #bbf7d0; }
.alert-blue   { background: var(--blue-dim);  color: #1e3a8a; border: 1px solid #bfdbfe; }

/* ── Empty states ─────────────────────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 64px 24px;
}
.empty-icon {
  width: 56px; height: 56px;
  border-radius: var(--r-lg);
  background: var(--surface2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--faint);
}
.empty-state h3 { font-size: 18px; font-weight: 700; margin: 0 0 8px; }
.empty-state p  { font-size: 14px; color: var(--muted); margin: 0 0 24px; max-width: 340px; margin-left: auto; margin-right: auto; }

/* ── Week date strip ──────────────────────────────────────────────────────── */
.week-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  margin-bottom: 24px;
}
.week-label { font-size: 14px; font-weight: 600; }
.week-dates { font-size: 13px; color: var(--muted); }

/* ── Loading / skeleton ───────────────────────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, var(--surface) 25%, var(--surface2) 50%, var(--surface) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--r-sm);
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ── Toast ────────────────────────────────────────────────────────────────── */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: var(--ink);
  color: #fff;
  border-radius: var(--r-md);
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  pointer-events: auto;
  animation: slideUp .25s ease;
  max-width: 360px;
}
.toast.success { background: var(--green); }
.toast.error   { background: var(--red); }
@keyframes slideUp { from { transform: translateY(16px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ── Modal ────────────────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(15,23,42,.5);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal {
  background: var(--bg);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
}
.modal-header {
  padding: 24px 28px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-header h2 { font-size: 18px; font-weight: 700; margin: 0; }
.modal-close {
  width: 32px; height: 32px;
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--muted);
  transition: background .15s;
}
.modal-close:hover { background: var(--surface2); color: var(--ink); }
.modal-body { padding: 24px 28px; }
.modal-footer {
  padding: 16px 28px 24px;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

/* ── Divider ──────────────────────────────────────────────────────────────── */
.divider { height: 1px; background: var(--border); margin: 32px 0; }
.or-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--faint);
  font-size: 13px;
  margin: 24px 0;
}
.or-divider::before, .or-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}

/* ── Footer ───────────────────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  color: var(--muted);
  font-size: 13px;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--ink); }
.footer-brand { font-weight: 600; color: var(--ink); }

/* ── Misc utilities ───────────────────────────────────────────────────────── */
.text-muted   { color: var(--muted); }
.text-faint   { color: var(--faint); }
.text-green   { color: var(--green); }
.text-red     { color: var(--red);   }
.text-amber   { color: var(--amber); }
.text-blue    { color: var(--blue);  }
.text-sm      { font-size: 13px; }
.text-xs      { font-size: 12px; }
.font-mono    { font-family: var(--font-mono); }
.font-bold    { font-weight: 700; }
.mt-0  { margin-top: 0; }
.mb-0  { margin-bottom: 0; }
.mb-2  { margin-bottom: 8px; }
.mb-4  { margin-bottom: 16px; }
.mb-6  { margin-bottom: 24px; }
.mb-8  { margin-bottom: 32px; }
.mb-12 { margin-bottom: 48px; }
.p-0   { padding: 0; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ── Form class aliases ──────────────────────────────────────────────────── */
.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
  letter-spacing: .01em;
}
.form-input {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border2);
  border-radius: var(--r-md);
  font-size: 14px;
  color: var(--ink);
  background: var(--bg);
  transition: border-color .15s, box-shadow .15s;
  appearance: none;
  -webkit-appearance: none;
}
.form-input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(31,95,191,.12);
}
.form-input::placeholder { color: var(--faint); }
.form-select {
  width: 100%;
  padding: 10px 36px 10px 14px;
  border: 1.5px solid var(--border2);
  border-radius: var(--r-md);
  font-size: 14px;
  color: var(--ink);
  background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2364748b' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 12px center;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color .15s, box-shadow .15s;
}
.form-select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(31,95,191,.12);
}
.form-hint {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}

/* ── Empty state aliases ─────────────────────────────────────────────────── */
.empty-state { flex-direction: column; align-items: center; }
.empty-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 8px;
}
.empty-body {
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 24px;
  max-width: 340px;
  text-align: center;
}

/* ── Modal: full-screen overlay variant ──────────────────────────────────── */
/* Used as: <div class="modal"> containing .modal-backdrop + .modal-panel */
.modal[role="dialog"] {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15,23,42,.5);
  backdrop-filter: blur(4px);
}
.modal-panel {
  position: relative;
  z-index: 1;
  background: var(--bg);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
}
.modal-title {
  font-size: 18px;
  font-weight: 700;
  margin: 0;
}

/* ── Nav aliases ─────────────────────────────────────────────────────────── */
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  gap: 24px;
}
.nav-logo {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  white-space: nowrap;
  text-decoration: none;
}
.nav-logo:hover { text-decoration: none; color: var(--ink); }

/* ── Hero expanded classes ────────────────────────────────────────────────── */
.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}
.hero-badge {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}
.hero-headline {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.035em;
  color: var(--ink);
  margin: 0 0 20px;
  max-width: 680px;
}
.hero-subhead {
  font-size: 18px;
  color: var(--body);
  line-height: 1.65;
  max-width: 600px;
  margin: 0 0 36px;
}
.hero-trust {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}

/* Hero preview card */
.hero-preview {
  margin-top: 56px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  max-width: 680px;
}
.hero-preview-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
.hero-preview-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.hero-preview-dot.green { background: var(--green); }
.hero-preview-label { flex: 1; min-width: 0; }
.hero-preview-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-bottom: 1px solid var(--border);
}
.hero-preview-cell {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 20px;
  border-right: 1px solid var(--border);
}
.hero-preview-cell:last-child { border-right: none; }
.hero-preview-key {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero-preview-val {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.hero-preview-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  font-size: 12px;
  color: var(--muted);
}
.hero-preview-file { font-family: var(--font-mono); }

/* ── Trust strip (full-width variant) ────────────────────────────────────── */
.trust-strip {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}
.trust-strip-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: center;
}
.trust-sep {
  color: var(--border2);
  font-size: 16px;
  line-height: 1;
}

/* ── Generic section structure ───────────────────────────────────────────── */
.section { padding: 80px 0; }
.section-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}
.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-header h2 {
  font-size: clamp(26px, 3.5vw, 38px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin: 0 0 12px;
}
.section-header p {
  font-size: 17px;
  color: var(--body);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.65;
}

/* Alternating section backgrounds */
.features-section { background: var(--bg); }
.steps-section    { background: var(--surface); }
.trades-section   { background: var(--bg); }
.pricing-section  { background: var(--surface); }

/* ── Features grid alias ─────────────────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ── Steps: step-body wrapper + connector ────────────────────────────────── */
.step-body { text-align: center; }
.step-connector { display: none; } /* connector is handled by .steps::before */

/* ── Trade cards (card variant) ──────────────────────────────────────────── */
.trade-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 24px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  text-align: center;
  transition: box-shadow .15s, transform .15s;
}
.trade-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.trade-card .trade-icon { font-size: 28px; line-height: 1; }
.trade-card .trade-name { font-size: 14px; font-weight: 700; color: var(--ink); }
.trade-card .trade-detail { font-size: 12px; color: var(--muted); }
.trades-note {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  margin-top: 32px;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Pricing expanded classes ────────────────────────────────────────────── */
.pricing-card-wrap {
  display: flex;
  justify-content: center;
}
.pricing-plan {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 8px;
}
.pricing-amount {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 4px;
  margin: 12px 0 4px;
  line-height: 1;
}
.pricing-dollar {
  font-size: 26px;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 6px;
}
.pricing-num {
  font-size: 64px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--ink);
}
.pricing-per {
  font-size: 18px;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 8px;
}
.pricing-desc {
  font-size: 15px;
  color: var(--body);
  margin: 8px 0 28px;
}
.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  text-align: left;
}
.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  font-size: 14px;
  color: var(--body);
  border-bottom: 1px solid var(--border);
}
.pricing-features li:last-child { border-bottom: none; }
.pricing-features li svg { flex-shrink: 0; margin-top: 1px; }
.pricing-ctas {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}
.pricing-footnote {
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  margin: 0;
}

/* ── Final CTA block ─────────────────────────────────────────────────────── */
.final-cta-section { background: var(--blue); padding: 80px 0; }
.final-cta-card {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}
.final-cta-section h2 {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #fff;
  margin: 0 0 12px;
}
.final-cta-section p {
  font-size: 17px;
  color: rgba(255,255,255,.8);
  margin: 0 0 36px;
  line-height: 1.6;
}

/* ── Footer expanded ─────────────────────────────────────────────────────── */
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: start;
}
.footer-logo {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 8px;
}
.footer-tagline {
  font-size: 13px;
  color: var(--muted);
  max-width: 280px;
}
.footer-links {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--faint);
}
.footer-col a {
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
}
.footer-col a:hover { color: var(--ink); }
.footer-bottom {
  max-width: 1100px;
  margin: 32px auto 0;
  padding: 16px 24px 0;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--faint);
}

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .features { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .steps::before { display: none; }
  .app-layout { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .app-main { padding: 24px 20px; }
  .hero-preview-row { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 640px) {
  .hero { padding: 48px 0 48px; }
  .hero h1 { font-size: 32px; }
  .hero-headline { font-size: 32px; }
  .hero p.lead { font-size: 16px; }
  .hero-subhead { font-size: 16px; }
  .hero-ctas { flex-direction: column; }
  .btn-lg { padding: 13px 22px; font-size: 14px; }
  .steps { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .form-row, .form-row-3 { grid-template-columns: 1fr; }
  .review-table { display: block; overflow-x: auto; }
  .day-hours-grid { grid-template-columns: repeat(7, 1fr); }
  .day-hours-col input { font-size: 13px; }
  .footer-inner { grid-template-columns: 1fr; text-align: left; gap: 24px; }
  .footer-links { gap: 24px; }
  .progress-steps { display: none; }
  .hero-preview-row { grid-template-columns: 1fr 1fr; }
  .hero-preview-cell { padding: 12px 14px; }
  .section { padding: 56px 0; }
  .trust-sep { display: none; }
}
