* {
  box-sizing: border-box;
}

:root {
  --bg: #eef3fb;
  --surface: #ffffff;
  --soft: #f8fbff;
  --text: #203761;
  --muted: #667796;
  --line: #dbe6f6;
  --blue: #17459c;
  --blue-dark: #17459c;
  --blue-2: #5d91e6;
  --blue-soft: #e8f0fd;
  --green: #258344;
  --green-soft: #e8f6ee;
  --amber: #9a6700;
  --amber-soft: #fff5dc;
  --red: #b42318;
  --red-soft: #fef0f0;
  --purple: #5b5fc7;
  --purple-soft: #eef0ff;
  --shadow: 0 24px 70px rgba(35, 61, 112, 0.14);
  --shadow-soft: 0 12px 34px rgba(78, 110, 167, 0.09);
  --container: 1180px;
  --radius: 30px;
  --radius-sm: 18px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background:
    radial-gradient(circle at top left, #dce9ff 0%, transparent 38%),
    linear-gradient(180deg, #eef3fb 0%, #f7faff 100%);
  color: var(--text);
}

a {
  color: inherit;
  text-decoration: none;
}

code {
  font-family: Consolas, Monaco, monospace;
  font-size: 0.95em;
}

.container {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
}

/* HEADER */

.site-header,
header {
  padding: 22px 0 10px;
}

.header-shell,
.nav-shell {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 14px 18px;
  box-shadow: 0 12px 34px rgba(78, 110, 167, 0.10);
  backdrop-filter: blur(10px);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  width: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 22px;
  font-weight: 900;
  color: #3b6db4;
  letter-spacing: -0.03em;
}

.brand-icon {
  width: 28px;
  height: 34px;
  border: 2px solid #22345f;
  border-radius: 4px;
  background: #ffffff;
  position: relative;
  flex: 0 0 auto;
}

.brand-icon::before {
  content: "";
  position: absolute;
  left: 5px;
  right: 5px;
  top: 9px;
  height: 2px;
  background: #97a4bb;
  box-shadow: 0 6px 0 #97a4bb, 0 12px 0 #97a4bb;
}

.nav,
.main-nav,
.nav-links {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 15px;
  font-weight: 800;
}

.nav a,
.main-nav a,
.nav-links a {
  padding: 10px 12px;
  border-radius: 14px;
  color: var(--text);
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.nav a:hover,
.main-nav a:hover,
.nav-links a:hover {
  background: var(--blue-soft);
  color: var(--blue);
  transform: translateY(-1px);
}

.nav-cta,
.nav-btn,
.nav-btn-light {
  background: var(--blue-soft);
  color: var(--blue);
  font-weight: 900;
}

.nav-btn-ghost {
  background: #ffffff;
  border: 1px solid var(--line);
}

/* BUTTONS */

.btn,
.hero-cta-btn,
.bottom-cta-btn,
.nav-button,
.packet-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  text-decoration: none;
  font-weight: 900;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease, opacity 0.15s ease;
}

.btn:hover,
.hero-cta-btn:hover,
.bottom-cta-btn:hover,
.nav-button:hover,
.packet-btn:hover {
  transform: translateY(-1px);
}

.btn {
  min-height: 54px;
  padding: 15px 22px;
  border-radius: 16px;
  background: var(--blue);
  color: #fff;
  box-shadow: 0 14px 30px rgba(23, 69, 156, 0.20);
  font-size: 16px;
}

.btn-primary,
.nav-button-primary,
.hero-cta-btn,
.bottom-cta-btn {
  background: var(--blue);
  color: #ffffff;
  box-shadow: 0 14px 30px rgba(23, 69, 156, 0.20);
}

.btn-secondary,
.nav-button-secondary,
.btn.secondary {
  background: #ffffff;
  color: var(--blue);
  border: 1px solid var(--line);
  box-shadow: none;
}

.hero-cta-btn,
.bottom-cta-btn {
  min-height: 62px;
  padding: 18px 28px;
  border-radius: 18px;
  font-size: 18px;
}

.nav-button {
  min-height: 58px;
  padding: 16px 24px;
  border-radius: 18px;
  font-size: 17px;
}

.packet-btn {
  min-height: 76px;
  padding: 18px 26px;
  border-radius: 20px;
  font-size: clamp(20px, 2.2vw, 26px);
  text-align: center;
}

.packet-btn:disabled {
  cursor: not-allowed;
  opacity: 0.75;
}

.packet-btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 14px 30px rgba(23, 69, 156, 0.20);
}

.packet-btn-secondary {
  background: #e8edf6;
  color: #22314d;
}

.packet-btn-muted {
  background: #eef2f7;
  color: #7f8ba0;
}

/* HERO */

.hero,
.page-hero,
.hero-section {
  padding: 56px 0 38px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  align-items: center;
  gap: 34px;
}

.hero-copy,
.hero-card {
  padding: 50px;
  border-radius: 36px;
  background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(248,251,255,.90));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.eyebrow {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 9px 13px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

h1,
.page-title,
.packet-title,
.application-header h1,
.page-header h1,
.page-hero h1,
.hero-copy h1 {
  margin: 0 0 20px;
  font-size: clamp(46px, 6vw, 76px);
  line-height: 0.94;
  letter-spacing: -0.06em;
  color: #1f3768;
  font-weight: 900;
}

.page-subtitle,
.packet-subtitle,
.application-header p,
.page-header p,
.page-hero p,
.hero-subtext,
.hero-copy p {
  margin: 0;
  max-width: 760px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.62;
}

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

.trust-line,
.hero-note {
  margin-top: 22px;
  color: #60708d;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.5;
}

.hero-visual {
  width: 100%;
  display: flex;
  justify-content: center;
}

/* DASHBOARD HERO VISUAL */

.dashboard-card {
  width: 100%;
  background: linear-gradient(180deg, #fff 0%, #f8fbff 100%);
  border: 1px solid #dbe6f6;
  border-radius: 32px;
  box-shadow: 0 34px 90px rgba(35,61,112,.17);
  padding: 20px;
  position: relative;
  overflow: hidden;
}

.dashboard-card::before {
  content: "";
  position: absolute;
  inset: -80px -80px auto auto;
  width: 220px;
  height: 220px;
  background: rgba(93,145,230,.18);
  border-radius: 50%;
}

.window-bar {
  display: flex;
  gap: 7px;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.window-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #c8d5ea;
}

.visual-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}

.eyebrow-mini {
  margin: 0 0 6px;
  color: #6d7fa3;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.visual-header h3 {
  margin: 0;
  color: #203761;
  font-size: 28px;
  letter-spacing: -0.04em;
}

.status-chip {
  background: var(--green-soft);
  color: var(--green);
  border: 1px solid #ccebd7;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
}

.progress-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #eef4ff;
  border: 1px solid #dce7f6;
  border-radius: 22px;
  padding: 16px;
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
}

.progress-step {
  display: grid;
  justify-items: center;
  gap: 7px;
  min-width: 86px;
  padding: 0;
  border-radius: 0;
  background: transparent;
}

.progress-step span {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #cddbf2;
  color: #60708d;
  font-weight: 900;
}

.progress-step.active span {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}

.progress-step p {
  margin: 0;
  color: #40577e;
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

.progress-line {
  height: 2px;
  flex: 1;
  background: #c5d4ee;
}

.data-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
}

.data-panel {
  background: #fff;
  border: 1px solid #dce7f6;
  border-radius: 18px;
  padding: 15px;
}

.data-panel.wide {
  grid-column: 1 / -1;
}

.data-panel label {
  display: block;
  margin-bottom: 7px;
  color: #7a8ba8;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.data-panel strong {
  color: #253858;
  font-size: 15px;
}

.document-preview {
  position: relative;
  background: linear-gradient(135deg, #dfeaff 0%, #f7fbff 100%);
  border: 1px solid #dce7f6;
  border-radius: 26px;
  padding: 28px;
  min-height: 244px;
  overflow: hidden;
}

.doc-page {
  width: 220px;
  min-height: 258px;
  background: #fff;
  border: 1px solid #d7e2f1;
  border-radius: 15px;
  box-shadow: 0 22px 52px rgba(35,61,112,.15);
  padding: 22px;
}

.doc-line {
  height: 8px;
  background: #dce6f6;
  border-radius: 999px;
  margin-bottom: 12px;
}

.doc-line.short {
  width: 45%;
}

.doc-line.medium {
  width: 70%;
}

.doc-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin: 24px 0;
}

.doc-box {
  height: 30px;
  border: 1px solid #dce6f6;
  border-radius: 8px;
  background: #f8fbff;
}

.signature-line {
  height: 2px;
  background: #aebbd0;
  width: 75%;
  margin-top: 34px;
}

.floating-card {
  position: absolute;
  right: 24px;
  bottom: 34px;
  width: 220px;
  background: #fff;
  border: 1px solid #dce7f6;
  border-radius: 22px;
  box-shadow: 0 22px 62px rgba(35,61,112,.19);
  padding: 18px;
}

.floating-card strong {
  display: block;
  color: var(--blue);
  font-size: 19px;
  margin-bottom: 6px;
}

.floating-card p {
  margin: 0;
  color: #60708d;
  font-size: 14px;
  line-height: 1.4;
}

/* SECTIONS */

section,
.page-section,
.application-section,
.form-section-wrap,
.steps-section,
.benefits-section,
.testimonial-section,
.bottom-cta-section,
.how-section,
.how-workflow {
  padding: 34px 0;
}

.section-card,
.page-card,
.form-card,
.packet-card,
.testimonial-card,
.how-card,
.step-card {
  background: rgba(255,255,255,.9);
  border: 1px solid var(--line);
  border-radius: 30px;
  box-shadow: var(--shadow-soft);
}

.section-card,
.page-card,
.form-card,
.packet-card {
  padding: 36px;
}

.section-title,
.section-title-left,
h2 {
  margin: 0 0 20px;
  font-size: clamp(32px, 4vw, 50px);
  line-height: 1.05;
  letter-spacing: -0.05em;
  color: #213b6f;
  font-weight: 900;
}

.section-copy {
  max-width: 760px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
  margin: 0 0 20px;
}

.split,
.grid-3,
.grid-2,
.form-grid,
.record-grid,
.summary-grid,
.date-grid,
.benefits-grid,
.steps-grid,
.how-grid {
  display: grid;
  gap: 20px;
}

.split,
.form-grid,
.record-grid,
.summary-grid,
.grid-2 {
  grid-template-columns: 1fr 1fr;
}

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

.benefits-grid {
  grid-template-columns: repeat(4, 1fr);
}

.mini-card,
.benefit-item,
.step-card,
.how-card {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 24px;
}

h3 {
  margin: 0 0 10px;
  color: #26457a;
  font-size: 22px;
  font-weight: 900;
}

p,
li {
  color: var(--muted);
  line-height: 1.6;
  font-size: 16px;
}

ul {
  margin: 12px 0 0;
  padding-left: 20px;
}

.cta,
.cta-center {
  text-align: center;
}

.cta-center {
  display: flex;
  justify-content: center;
}

/* FOOTER */

.site-footer,
footer {
  padding: 28px 0 42px;
  color: var(--muted);
  text-align: center;
  font-weight: 800;
}

.footer-shell {
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  border-radius: 24px;
  padding: 20px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-brand {
  font-weight: 900;
  color: #3b6db4;
}

.footer-copy {
  color: var(--muted);
  font-size: 14px;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.footer-links a {
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 800;
}

.footer-links a:hover {
  background: var(--blue-soft);
  color: var(--blue);
}

/* FORMS */

.form-field,
.field {
  display: block;
}

.form-field-full,
.field-full {
  grid-column: 1 / -1;
}

.form-field label,
.field label {
  display: block;
  margin-bottom: 8px;
  font-weight: 800;
  color: #3f5a87;
  font-size: 15px;
  line-height: 1.2;
}

.form-field input,
.form-field select,
.form-field textarea,
.field input,
.field select,
.field textarea,
.sig-input {
  width: 100%;
  min-height: 56px;
  padding: 14px 16px;
  border: 1px solid #d5e0ef;
  border-radius: 14px;
  background: #ffffff;
  color: #243755;
  font: inherit;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-field textarea,
.field textarea {
  min-height: 110px;
  resize: vertical;
  line-height: 1.5;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus,
.field input:focus,
.field select:focus,
.field textarea:focus,
.sig-input:focus {
  border-color: #7eaef3;
  box-shadow: 0 0 0 4px rgba(126,174,243,0.15);
}

.form-actions,
.button-row,
.actions,
.bottom-actions,
.sig-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.form-note,
.helper,
.field-helper,
.autosave-note,
.note,
.meta-note,
.status-text {
  font-size: 14px;
  color: #60708d;
  line-height: 1.6;
}

/* STATUS / CALLOUTS */

.callout {
  background: #eef4ff;
  border: 1px solid #d8e3f4;
  border-left: 8px solid var(--blue);
  border-radius: 22px;
  padding: 24px;
  color: #23344f;
  font-size: 17px;
  line-height: 1.7;
  margin: 0 0 22px;
}

.callout.warning {
  background: #fff8e8;
  border-left-color: #d97706;
  border-color: #f1ddac;
}

.callout.success {
  background: var(--green-soft);
  border-left-color: var(--green);
  border-color: #cfe8d6;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 900;
  margin-bottom: 14px;
}

.status-pill.eligible {
  background: var(--green-soft);
  color: var(--green);
}

.status-pill.pending {
  background: var(--amber-soft);
  color: var(--amber);
}

.status-pill.error {
  background: var(--red-soft);
  color: var(--red);
}

.status-pill.review {
  background: var(--purple-soft);
  color: var(--purple);
}

/* SIGNATURE */

.sig-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
}

.sig-small-btn {
  min-height: 48px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid #d5e0ef;
  background: #fff;
  color: #3c557d;
  font-weight: 800;
  cursor: pointer;
}

.sig-pad-wrap {
  background: #fbfdff;
  border: 1px solid #dbe3f0;
  border-radius: 18px;
  padding: 14px;
}

.sig-pad-label {
  margin: 0 0 10px;
  font-size: 14px;
  color: #60708d;
  font-weight: 800;
}

#signaturePad {
  width: 100%;
  height: 180px;
  border: 1px solid #cfd9ea;
  border-radius: 12px;
  background: #fff;
  touch-action: none;
  display: block;
}

/* RESPONSIVE */

@media (max-width: 980px) {
  .hero-grid,
  .split,
  .grid-3,
  .grid-2,
  .steps-grid,
  .benefits-grid,
  .how-grid,
  .summary-grid,
  .record-grid,
  .date-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy,
  .hero-card {
    padding: 34px 24px;
  }

  .hero-visual {
    order: -1;
  }

  .floating-card {
    position: relative;
    right: auto;
    bottom: auto;
    margin-top: 16px;
    width: 100%;
  }

  .doc-page {
    width: 100%;
  }

  .sig-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .site-header,
  header {
    padding-top: 14px;
  }

  .header-shell,
  .nav-shell,
  .header-inner,
  .nav-wrap,
  .topbar-inner {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .nav,
  .main-nav,
  .nav-links {
    width: 100%;
    flex-direction: column;
  }

  .nav a,
  .main-nav a,
  .nav-links a,
  .btn,
  .nav-button,
  .packet-btn,
  .footer-links,
  .footer-links a {
    width: 100%;
    text-align: center;
  }

  h1,
  .page-title,
  .packet-title,
  .application-header h1,
  .page-header h1,
  .page-hero h1,
  .hero-copy h1 {
    font-size: 42px;
  }

  .page-subtitle,
  .packet-subtitle,
  .application-header p,
  .page-header p,
  .page-hero p,
  .hero-subtext,
  .hero-copy p,
  .callout {
    font-size: 16px;
  }

  .section-card,
  .hero-copy,
  .hero-card,
  .packet-card,
  .page-card,
  .form-card {
    padding: 24px 18px;
  }

  .progress-row {
    flex-direction: column;
    align-items: stretch;
  }

  .progress-line {
    display: none;
  }

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

  .document-preview {
    padding: 18px;
  }

  .form-actions,
  .button-row,
  .actions,
  .bottom-actions,
  .footer-shell {
    flex-direction: column;
    align-items: stretch;
  }
}
