:root {
  --navy-950: #08233d;
  --navy-900: #0d355d;
  --navy-800: #184b79;
  --green-500: #9ccc3d;
  --green-600: #8ab82f;
  --cream-50: #f8f6f1;
  --mist-100: #eef3f7;
  --mist-200: #dde6ee;
  --slate-500: #62758a;
  --text-900: #15314d;
  --white: #ffffff;
  --shadow-soft: 0 18px 40px rgba(8, 35, 61, 0.08);
  --shadow-strong: 0 28px 60px rgba(8, 35, 61, 0.14);
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", sans-serif;
  color: var(--text-900);
  background:
    radial-gradient(circle at top left, rgba(156, 204, 61, 0.15), transparent 28%),
    radial-gradient(circle at top right, rgba(24, 75, 121, 0.14), transparent 34%),
    linear-gradient(180deg, #f6f9fc 0%, #edf3f7 58%, #f8f6f1 100%);
}

a {
  color: inherit;
}

.page-backdrop {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0)),
    radial-gradient(circle at 20% 20%, rgba(156, 204, 61, 0.1), transparent 24%);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(18px);
  background: rgba(248, 250, 252, 0.8);
  border-bottom: 1px solid rgba(13, 53, 93, 0.08);
}

.site-header-inner,
.page-shell {
  width: min(calc(100% - 32px), var(--max-width));
  margin: 0 auto;
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 84px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--navy-900), var(--navy-800));
  color: var(--white);
  font-weight: 800;
  letter-spacing: 0.08em;
}

.brand-name,
.brand-subtitle,
.hero-eyebrow,
.section-eyebrow,
.feature-eyebrow,
.spotlight-label {
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.brand-name {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--navy-900);
}

.brand-subtitle {
  margin-top: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--slate-500);
}

.header-link {
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(13, 53, 93, 0.1);
  text-decoration: none;
  font-weight: 800;
  color: var(--navy-900);
  box-shadow: var(--shadow-soft);
}

.page-shell {
  position: relative;
  padding: 36px 0 56px;
}

.hero-panel,
.workflow-panel,
.next-step-panel,
.review-hero,
.review-toolbar,
.review-card,
.client-hero,
.client-category-card,
.category-hero,
.category-item-card {
  box-shadow: var(--shadow-soft);
}

.hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 24px;
  padding: 28px;
  border-radius: 32px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(250, 251, 247, 0.95)),
    linear-gradient(180deg, rgba(156, 204, 61, 0.12), rgba(13, 53, 93, 0.03));
  border: 1px solid rgba(13, 53, 93, 0.08);
}

.hero-copy {
  padding: 12px 4px 12px 2px;
}

.hero-eyebrow,
.section-eyebrow,
.feature-eyebrow,
.spotlight-label {
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--navy-800);
}

.hero-panel h1,
.section-heading h2,
.next-step-panel h2,
.spotlight-card h2 {
  font-family: "Cormorant Garamond", serif;
  letter-spacing: -0.03em;
  line-height: 0.95;
  color: var(--navy-950);
}

.hero-panel h1 {
  margin: 16px 0 18px;
  font-size: clamp(3rem, 7vw, 5.6rem);
  max-width: 9ch;
}

.hero-lead,
.feature-card p,
.step-card p,
.spotlight-card p,
.next-step-panel p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--slate-500);
}

.hero-lead {
  max-width: 62ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button-link:hover {
  transform: translateY(-1px);
}

.button-link.primary {
  background: linear-gradient(135deg, var(--green-500), #b1dd55);
  color: var(--navy-950);
  box-shadow: 0 16px 28px rgba(156, 204, 61, 0.22);
}

.button-link.primary:hover {
  background: linear-gradient(135deg, var(--green-600), #a3d148);
}

.button-link.secondary {
  background: rgba(255, 255, 255, 0.88);
  color: var(--navy-900);
  border: 1px solid rgba(13, 53, 93, 0.12);
}

.compact-button {
  min-height: 40px;
  padding: 0 14px;
  margin: 2px;
  font-size: 0.86rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.stat-card,
.feature-card,
.step-card,
.spotlight-card,
.next-step-note {
  border: 1px solid rgba(13, 53, 93, 0.08);
}

.stat-card {
  padding: 18px 18px 20px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.78);
}

.stat-card strong,
.feature-card h3,
.step-card h3,
.spotlight-card h2,
.next-step-note strong {
  display: block;
  color: var(--navy-900);
}

.stat-card strong {
  margin-bottom: 8px;
  font-size: 1rem;
}

.stat-card span,
.next-step-note span {
  line-height: 1.6;
  color: var(--slate-500);
}

.hero-spotlight {
  display: flex;
}

.spotlight-card {
  width: 100%;
  padding: 26px;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(13, 53, 93, 0.98), rgba(24, 75, 121, 0.92)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0));
  color: var(--white);
  box-shadow: var(--shadow-strong);
}

.spotlight-card .spotlight-label,
.spotlight-card p,
.spotlight-card h2,
.tone-list span {
  color: var(--white);
}

.spotlight-card h2 {
  margin: 18px 0 16px;
  font-size: clamp(2rem, 4vw, 3.25rem);
}

.tone-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.tone-list span {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.85rem;
  font-weight: 700;
}

.content-section {
  padding: 46px 0 20px;
}

.section-heading {
  margin-bottom: 22px;
}

.section-heading.narrow {
  max-width: 760px;
}

.section-heading h2,
.next-step-panel h2 {
  margin: 10px 0 0;
  font-size: clamp(2.3rem, 4.8vw, 3.7rem);
}

.highlight-grid,
.steps-grid {
  display: grid;
  gap: 18px;
}

.highlight-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-card {
  padding: 24px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow-soft);
}

.feature-card h3,
.step-card h3 {
  margin: 14px 0 10px;
  font-size: 1.25rem;
}

.workflow-panel {
  margin-top: 18px;
  padding: 28px;
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(245, 248, 242, 0.92));
}

.steps-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.step-card {
  position: relative;
  padding: 26px 22px 22px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.92);
}

.step-number {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(156, 204, 61, 0.2), rgba(156, 204, 61, 0.42));
  color: var(--navy-900);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.next-step-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 22px;
  align-items: start;
  margin-top: 22px;
  padding: 28px;
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(13, 53, 93, 0.98), rgba(10, 39, 68, 0.95));
}

.next-step-panel .section-eyebrow,
.next-step-panel h2,
.next-step-panel p {
  color: var(--white);
}

.next-step-note {
  padding: 22px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.review-hero,
.review-toolbar {
  display: grid;
  gap: 20px;
  padding: 28px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(13, 53, 93, 0.08);
}

.review-hero {
  grid-template-columns: minmax(0, 1.1fr) 360px;
}

.review-hero h1,
.review-toolbar h2 {
  margin: 10px 0 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.4rem, 5vw, 4.3rem);
  line-height: 0.95;
  color: var(--navy-950);
}

.review-summary,
.review-grid,
.review-actions {
  display: grid;
  gap: 14px;
}

.summary-pane,
.review-card {
  border: 1px solid rgba(13, 53, 93, 0.08);
}

.summary-pane {
  padding: 18px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(13, 53, 93, 0.03), rgba(156, 204, 61, 0.06));
}

.summary-pane span,
.review-field span {
  display: block;
  margin-bottom: 8px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--slate-500);
}

.summary-pane strong {
  display: block;
  color: var(--navy-900);
  font-size: 1rem;
}

.review-toolbar {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  margin-top: 18px;
}

.review-actions {
  grid-auto-flow: column;
}

.review-list {
  display: grid;
  gap: 18px;
  margin-top: 20px;
}

.review-card {
  padding: 22px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
}

.review-card-head,
.review-badges,
.inline-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.review-card-head {
  justify-content: space-between;
  margin-bottom: 16px;
}

.request-pill,
.confidence-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
}

.request-pill {
  padding: 8px 12px;
  background: rgba(13, 53, 93, 0.08);
  color: var(--navy-900);
}

.request-pill.subtle {
  background: rgba(156, 204, 61, 0.15);
}

.confidence-chip {
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(13, 53, 93, 0.1);
  color: var(--slate-500);
}

.review-field {
  display: block;
}

.review-grid {
  grid-template-columns: 180px minmax(0, 1fr);
  margin-top: 16px;
}

.review-field input,
.review-field select,
.review-field textarea {
  width: 100%;
  border: 1px solid rgba(13, 53, 93, 0.12);
  border-radius: 16px;
  background: rgba(248, 250, 252, 0.95);
  color: var(--text-900);
  padding: 14px 16px;
  font: inherit;
}

.review-field textarea {
  resize: vertical;
  min-height: 132px;
}

.inline-actions {
  margin-top: 16px;
}

.text-action {
  text-decoration: none;
  font-weight: 800;
  color: var(--navy-800);
}

.text-action.danger {
  color: #a33b2c;
}

.client-hero,
.category-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 22px;
  padding: 28px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(13, 53, 93, 0.08);
}

.client-hero h1,
.category-hero h1,
.client-category-card h2,
.category-item-card h2 {
  margin: 10px 0 0;
  font-family: "Cormorant Garamond", serif;
  color: var(--navy-950);
  letter-spacing: -0.03em;
}

.client-hero h1,
.category-hero h1 {
  font-size: clamp(2.7rem, 5vw, 4.6rem);
  line-height: 0.95;
}

.client-alert,
.category-status-card {
  padding: 22px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(13, 53, 93, 0.94), rgba(24, 75, 121, 0.9));
  color: var(--white);
}

.client-alert strong,
.category-status-card strong,
.category-status-card span {
  display: block;
  color: var(--white);
}

.client-alert p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.84);
}

.client-category-grid,
.category-item-list {
  display: grid;
  gap: 18px;
  margin-top: 20px;
}

.client-category-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.client-category-card,
.category-item-card {
  padding: 24px;
  border-radius: 24px;
  border: 1px solid rgba(13, 53, 93, 0.08);
  background: rgba(255, 255, 255, 0.92);
}

.client-category-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
}

.progress-orb {
  min-width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(156, 204, 61, 0.22), rgba(156, 204, 61, 0.44));
  color: var(--navy-900);
  font-weight: 800;
}

.upload-dropzone {
  display: grid;
  gap: 6px;
  padding: 22px;
  border: 2px dashed rgba(13, 53, 93, 0.18);
  border-radius: 20px;
  background: rgba(248, 250, 252, 0.95);
}

.upload-dropzone strong {
  color: var(--navy-900);
}

.upload-dropzone span {
  color: var(--slate-500);
}

.choice-row,
.category-item-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.choice-tile {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(248, 250, 252, 0.95);
  border: 1px solid rgba(13, 53, 93, 0.1);
  font-weight: 700;
  color: var(--navy-900);
}

.checkbox-choice {
  min-height: 54px;
}

.checkbox-choice input {
  width: 18px;
  height: 18px;
}

.category-item-actions {
  margin-top: 18px;
}

.intake-form-card,
.notice-banner,
.case-table-card,
.share-link-card {
  margin-top: 18px;
  padding: 22px;
  border-radius: 24px;
  border: 1px solid rgba(13, 53, 93, 0.08);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
}

.case-table-card h2,
.form-section-header h2,
.share-link-card h2 {
  margin: 8px 0 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  line-height: 1;
  color: var(--navy-950);
}

.responsive-table {
  margin-top: 16px;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 16px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(13, 53, 93, 0.08);
}

th {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--slate-500);
}

td strong,
td span {
  display: block;
}

td span,
.soft-copy,
.form-section-header p,
.share-link-card p {
  color: var(--slate-500);
}

.form-section-header,
.share-link-card {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
}

.guided-form .form-section-header:not(:first-child) {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(13, 53, 93, 0.08);
}

.share-link-card input {
  width: min(100%, 520px);
  border: 1px solid rgba(13, 53, 93, 0.12);
  border-radius: 16px;
  background: rgba(248, 250, 252, 0.95);
  color: var(--navy-900);
  padding: 14px 16px;
  font: inherit;
  font-weight: 700;
}

.notice-banner {
  font-weight: 700;
}

.success-banner {
  color: #225f2f;
  background: rgba(233, 247, 234, 0.95);
}

.error-banner {
  color: #8b2e24;
  background: rgba(253, 239, 236, 0.95);
}

.button-reset {
  border: 0;
}

.verification-card h2 {
  margin-top: 10px;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--navy-950);
}

.staff-queue-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 20px;
}

.queue-column,
.queue-card {
  border-radius: 24px;
}

.queue-column {
  padding: 20px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(13, 53, 93, 0.08);
  box-shadow: var(--shadow-soft);
}

.queue-heading h2 {
  margin: 8px 0 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--navy-950);
}

.queue-card {
  margin-top: 14px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(13, 53, 93, 0.08);
}

.queue-card strong,
.queue-card span {
  display: block;
}

.queue-card strong {
  color: var(--navy-900);
}

.queue-card span,
.queue-card p {
  color: var(--slate-500);
}

.empty-card {
  min-height: 120px;
  display: grid;
  place-items: center;
}

@media (max-width: 980px) {
  .hero-panel,
  .highlight-grid,
  .steps-grid,
  .next-step-panel,
  .hero-stats,
  .review-hero,
  .review-toolbar,
  .client-hero,
  .client-category-grid,
  .category-hero,
  .staff-queue-grid {
    grid-template-columns: 1fr;
  }

  .hero-panel h1 {
    max-width: none;
  }
}

@media (max-width: 720px) {
  .site-header-inner {
    min-height: 72px;
  }

  .site-header-inner,
  .page-shell {
    width: min(calc(100% - 24px), var(--max-width));
  }

  .header-link {
    display: none;
  }

  .page-shell {
    padding: 20px 0 36px;
  }

  .hero-panel,
  .workflow-panel,
  .next-step-panel,
  .review-hero,
  .review-toolbar,
  .client-hero,
  .category-hero,
  .share-link-card,
  .form-section-header,
  .feature-card,
  .step-card,
  .spotlight-card,
  .review-card,
  .client-category-card,
  .category-item-card {
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero-panel {
    border-radius: 26px;
  }

  .hero-actions {
    display: grid;
  }

  .review-actions {
    grid-auto-flow: row;
  }

  .review-grid {
    grid-template-columns: 1fr;
  }

  .choice-row,
  .category-item-actions {
    display: grid;
  }

  .button-link {
    width: 100%;
  }
}
