:root {
  --night: #07172f;
  --night-2: #102642;
  --blue: #0b63ff;
  --sky: #26b7ff;
  --paper: #ffffff;
  --muted: #6f7c8e;
  --line: #dbe4ef;
  --soft: #f4f7fb;
  --ok: #1fbf83;
  --warn: #f5a524;
  --danger: #e64b5d;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .92);
  border-bottom: 1px solid rgba(219, 228, 239, .75);
  backdrop-filter: blur(16px);
}

.site-header .navbar {
  min-height: 72px;
  padding-block: .75rem;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  font-weight: 800;
  color: var(--night);
  text-decoration: none;
}

.brand-symbol {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--blue), var(--sky));
  color: #fff;
  font-weight: 900;
}

.nav-link {
  color: #314057;
  font-weight: 650;
}

.nav-link:hover,
.nav-link:focus {
  color: var(--blue);
}

.app-alert-wrap {
  padding-top: 1rem;
}

.app-alert {
  border: 0;
  border-radius: 8px;
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  box-shadow: 0 12px 28px rgba(16, 38, 66, .08);
}

.hero-section {
  position: relative;
  min-height: 82vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--night);
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media {
  background-image: url("/img/hero-documents.png");
  background-size: cover;
  background-position: center right;
  transform: scale(1.01);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(7, 23, 47, .88) 0%, rgba(7, 23, 47, .74) 38%, rgba(7, 23, 47, .18) 72%),
    linear-gradient(0deg, rgba(7, 23, 47, .26), rgba(7, 23, 47, .02));
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-block: clamp(5rem, 10vh, 8rem);
}

.hero-copy {
  max-width: 680px;
  color: #fff;
}

.eyebrow {
  margin: 0 0 .65rem;
  color: var(--sky);
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.hero-copy h1,
.page-heading h1,
.case-header h1,
.result-hero h1 {
  margin: 0;
  color: inherit;
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1.02;
}

.hero-copy h1 {
  max-width: 620px;
  font-size: clamp(2.65rem, 6vw, 5.7rem);
}

.hero-subtitle {
  max-width: 610px;
  margin: 1.25rem 0 0;
  color: rgba(255, 255, 255, .86);
  font-size: 1.18rem;
  line-height: 1.65;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  max-width: 680px;
  margin-top: 1.25rem;
}

.hero-proof span {
  display: inline-flex;
  align-items: center;
  min-height: 2.25rem;
  padding: .48rem .78rem;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  color: rgba(255, 255, 255, .92);
  font-size: .9rem;
  font-weight: 800;
  line-height: 1.2;
  backdrop-filter: blur(8px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin-top: 2rem;
}

.section-band {
  padding-block: clamp(3.5rem, 8vw, 6rem);
  background: var(--paper);
}

.section-muted {
  background: #eef3f8;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 2rem;
}

.section-heading h2,
.app-panel h2,
.price-card h2 {
  margin: 0;
  color: var(--night);
  font-size: clamp(1.75rem, 3vw, 2.6rem);
  font-weight: 820;
  letter-spacing: 0;
  line-height: 1.1;
}

.section-heading p:not(.eyebrow),
.page-heading p,
.case-header p,
.price-card p,
.footer-disclaimer,
.site-footer p {
  color: var(--muted);
  line-height: 1.7;
}

.sticky-heading {
  position: sticky;
  top: 100px;
}

.workflow-grid,
.checks-grid {
  display: grid;
  gap: 1rem;
}

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

.workflow-grid article,
.checks-grid article,
.price-card,
.app-panel,
.upload-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 18px 42px rgba(16, 38, 66, .08);
}

.workflow-grid article {
  padding: 1.25rem;
  min-height: 205px;
}

.workflow-grid span {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #e7f2ff;
  color: var(--blue);
  font-weight: 900;
}

.workflow-grid h3,
.checks-grid strong,
.empty-state h3,
.app-panel h3 {
  margin: 1rem 0 .5rem;
  color: var(--night);
  font-size: 1.05rem;
  font-weight: 800;
}

.workflow-grid p,
.checks-grid span,
.empty-state p,
.document-row span,
.event-item span {
  color: var(--muted);
  line-height: 1.55;
}

.evidence-text {
  display: block;
  margin-top: .25rem;
  padding: .55rem .65rem;
  border-radius: 8px;
  background: #eef5ff;
  color: #27415f;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: .85rem;
  overflow-wrap: anywhere;
}

.generated-doc-preview {
  max-height: 260px;
  margin: .5rem 0 0;
  padding: .75rem;
  border: 1px solid #dbe8f6;
  border-radius: 8px;
  background: #fff;
  color: #243850;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: .86rem;
  line-height: 1.55;
  overflow: auto;
  white-space: pre-wrap;
}

.source-link {
  width: fit-content;
  color: var(--blue);
  font-weight: 800;
  text-decoration: none;
}

.source-link:hover,
.source-link:focus {
  text-decoration: underline;
}

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

.checks-grid article {
  padding: 1rem;
  display: grid;
  gap: .35rem;
  box-shadow: none;
}

.fine-types {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}

.fine-types span,
.hash-chip {
  border-radius: 8px;
  background: #eaf1fa;
  color: #27415f;
  font-weight: 750;
  padding: .7rem .9rem;
}

.section-pricing {
  background: linear-gradient(180deg, #fff 0%, #eef5ff 100%);
}

.price-card {
  height: 100%;
  padding: 1.4rem;
}

.price-card.featured {
  border-color: rgba(11, 99, 255, .45);
  box-shadow: 0 22px 52px rgba(11, 99, 255, .16);
}

.section-faq {
  background: #fff;
}

.faq-accordion {
  max-width: 940px;
}

.faq-accordion .accordion-item {
  margin-bottom: .7rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(16, 38, 66, .06);
}

.faq-accordion .accordion-button {
  color: var(--night);
  font-weight: 850;
  line-height: 1.35;
  letter-spacing: 0;
  background: #fff;
  box-shadow: none;
}

.faq-accordion .accordion-button:not(.collapsed) {
  color: var(--blue);
  background: #f3f8ff;
}

.faq-accordion .accordion-button:focus {
  border-color: transparent;
  box-shadow: 0 0 0 3px rgba(11, 99, 255, .14);
}

.faq-accordion .accordion-body {
  color: #314057;
  line-height: 1.7;
}

.price-card h3,
.price-card h2 {
  font-size: 1.25rem;
  margin: 0;
}

.price {
  color: var(--night);
  font-size: 2rem;
  font-weight: 850;
  margin: .7rem 0;
}

.disclaimer-band {
  padding-block: 1.5rem;
  background: var(--night);
}

.disclaimer-band p {
  margin: 0;
  color: rgba(255, 255, 255, .82);
}

.page-shell {
  padding-block: clamp(2.5rem, 6vw, 5rem);
}

.compact-shell {
  min-height: 62vh;
}

.page-heading {
  max-width: 760px;
  margin: 0 auto 2rem;
}

.page-heading h1,
.case-header h1,
.result-hero h1 {
  color: var(--night);
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.upload-guidance {
  margin: 1.25rem auto 0;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue);
  border-radius: 8px;
  background: #fff;
  text-align: left;
  box-shadow: 0 14px 32px rgba(16, 38, 66, .06);
}

.upload-guidance p {
  margin: 0;
  color: #314057;
}

.upload-case-type-summary {
  max-width: 760px;
  display: inline-grid;
  gap: .25rem;
  margin: 0 auto 1rem;
  padding: .85rem 1rem;
  border: 1px solid #dbe7f5;
  border-radius: 8px;
  background: #fff;
  text-align: left;
}

.upload-case-type-summary strong {
  color: var(--night);
}

.upload-case-type-summary span {
  color: #475569;
  line-height: 1.45;
}

.upload-guidance ul {
  display: grid;
  gap: .45rem;
  margin: .6rem 0 .85rem;
  padding-left: 1.15rem;
  color: #314057;
  line-height: 1.55;
}

.upload-guidance-note {
  line-height: 1.6;
}

.consent-checks {
  display: grid;
  gap: .75rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbff;
}

.consent-checks .form-check {
  margin: 0;
}

.consent-checks .form-check-label {
  color: #314057;
  line-height: 1.45;
}

.consent-checks .text-danger {
  display: block;
  margin-top: .25rem;
}

.saved-email-box {
  display: grid;
  gap: .2rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbff;
}

.saved-email-box span {
  color: #64748b;
  font-size: .88rem;
  font-weight: 750;
  text-transform: uppercase;
}

.saved-email-box strong {
  color: var(--night);
  overflow-wrap: anywhere;
}

.case-type-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .85rem;
}

.case-type-card {
  min-height: 116px;
  display: flex;
  gap: .8rem;
  align-items: flex-start;
  padding: 1rem;
  border: 1px solid #dbe7f5;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.case-type-card:has(input:checked) {
  border-color: #0b63ff;
  background: #f4f8ff;
  box-shadow: 0 14px 28px rgba(11, 99, 255, .12);
}

.case-type-card input {
  margin-top: .22rem;
}

.case-type-card strong {
  display: block;
  color: var(--night);
  font-weight: 850;
}

.case-type-card small {
  display: block;
  margin-top: .35rem;
  color: #475569;
  line-height: 1.45;
}

.app-panel,
.upload-panel {
  padding: clamp(1.15rem, 3vw, 1.75rem);
}

.case-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.case-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .65rem;
}

.progress-timeline {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: .7rem;
  padding: 0;
  margin: 0 0 1.25rem;
  list-style: none;
}

.progress-step {
  min-height: 94px;
  padding: .9rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  display: flex;
  align-items: flex-start;
  gap: .75rem;
}

.progress-dot {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  margin-top: .25rem;
  border-radius: 50%;
  border: 2px solid #a8b7c8;
}

.progress-step-complete .progress-dot {
  background: var(--ok);
  border-color: var(--ok);
}

.progress-step-active {
  border-color: rgba(11, 99, 255, .4);
  background: #f3f8ff;
}

.progress-step-active .progress-dot {
  background: var(--blue);
  border-color: var(--blue);
  box-shadow: 0 0 0 5px rgba(11, 99, 255, .12);
}

.progress-copy {
  display: grid;
  gap: .25rem;
  min-width: 0;
}

.progress-copy strong {
  color: var(--night);
}

.progress-copy small {
  color: var(--muted);
  line-height: 1.35;
}

.panel-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.document-list,
.event-list {
  display: grid;
  gap: .75rem;
}

.document-row,
.event-item {
  border: 1px solid #e3ebf4;
  border-radius: 8px;
  padding: .9rem;
  background: #fbfdff;
}

.document-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.document-row > div:first-child {
  min-width: 0;
  display: grid;
  gap: .2rem;
}

.document-row strong {
  overflow-wrap: anywhere;
}

.hash-chip {
  flex: 0 0 auto;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: .82rem;
}

.event-item {
  display: grid;
  gap: .25rem;
}

.event-item time {
  color: var(--blue);
  font-size: .82rem;
  font-weight: 800;
}

.empty-state {
  min-height: 220px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 2rem;
  border: 1px dashed #b8c7d8;
  border-radius: 8px;
  background: #f7fbff;
}

.result-panel {
  text-align: center;
}

.score-ring {
  width: 132px;
  height: 132px;
  margin: .5rem auto 1rem;
  border-radius: 50%;
  background: conic-gradient(var(--ok) var(--score), #e5edf6 0);
  display: grid;
  place-items: center;
  position: relative;
}

.score-ring::before {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  background: #fff;
}

.score-ring span,
.score-ring small {
  position: relative;
  z-index: 1;
}

.score-ring span {
  color: var(--night);
  font-size: 2.1rem;
  font-weight: 900;
}

.score-ring small {
  align-self: start;
  margin-top: 4.2rem;
  margin-left: -2.4rem;
  color: var(--muted);
}

.clean-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: .55rem;
}

.clean-list li {
  position: relative;
  padding-left: 1.15rem;
  color: #3c4f66;
}

.clean-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .58rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sky);
}

.upload-panel {
  max-width: 920px;
  margin-inline: auto;
}

.dropzone {
  min-height: 310px;
  border: 2px dashed #9db5d1;
  border-radius: 8px;
  background: linear-gradient(180deg, #f8fbff, #eef6ff);
  display: grid;
  place-items: center;
  align-content: center;
  gap: .55rem;
  padding: 2rem;
  cursor: pointer;
  text-align: center;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.dropzone:hover,
.dropzone.is-dragover {
  border-color: var(--blue);
  background: #eaf4ff;
  transform: translateY(-1px);
}

.dropzone input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.dropzone-icon {
  width: 58px;
  height: 58px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--blue);
  color: #fff;
  font-size: 2rem;
  font-weight: 700;
}

.dropzone strong {
  color: var(--night);
  font-size: 1.35rem;
}

.dropzone small,
.upload-meta,
.selected-files {
  color: var(--muted);
}

.upload-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-top: 1rem;
}

.upload-meta span {
  border-radius: 8px;
  background: #edf3fa;
  padding: .45rem .65rem;
  font-size: .9rem;
  font-weight: 700;
}

.selected-files {
  display: grid;
  gap: .5rem;
  margin-top: 1rem;
}

.selected-file {
  border: 1px solid #dce6f1;
  border-radius: 8px;
  padding: .65rem .75rem;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
}

.selected-file span:first-child {
  overflow-wrap: anywhere;
}

.selected-file-actions {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  flex-shrink: 0;
}

.selected-file-remove {
  border: 0;
  border-radius: 8px;
  background: #ffe8ec;
  color: #b42335;
  padding: .35rem .6rem;
  font-size: .85rem;
  font-weight: 800;
}

.selected-file-remove:hover,
.selected-file-remove:focus {
  background: #ffd7df;
  color: #8f1d2b;
}

.selected-file-remove:disabled {
  opacity: .55;
  cursor: not-allowed;
}

.result-hero {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  text-align: center;
  box-shadow: 0 18px 42px rgba(16, 38, 66, .08);
}

.analysis-progress-track {
  height: .65rem;
  border-radius: 999px;
  background: #e5edf6;
  overflow: hidden;
}

.analysis-progress-fill {
  height: 100%;
  width: 0;
  border-radius: inherit;
  background:
    linear-gradient(90deg, rgba(255,255,255,.26) 25%, transparent 25%, transparent 50%, rgba(255,255,255,.26) 50%, rgba(255,255,255,.26) 75%, transparent 75%, transparent),
    linear-gradient(90deg, #1487ff, #22c58b);
  background-size: 34px 34px, 100% 100%;
  transition: width .75s ease;
}

.analysis-progress-panel.is-running .analysis-progress-fill {
  animation: progress-stripes 1s linear infinite;
}

.analysis-status-heading {
  display: flex;
  align-items: center;
  gap: .7rem;
}

.analysis-spinner {
  width: 1.1rem;
  height: 1.1rem;
  flex: 0 0 1.1rem;
  border: 3px solid #d4e4f6;
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}

.analysis-progress-panel.is-complete .analysis-spinner,
.analysis-progress-panel.is-failed .analysis-spinner {
  display: none;
}

.analysis-progress-detail,
.evidence-meta {
  color: var(--muted);
  font-size: .92rem;
}

.analysis-progress-detail {
  margin: .85rem 0 0;
}

.upload-submit-status {
  margin-top: 1rem;
  padding: .8rem .9rem;
  display: flex;
  align-items: center;
  gap: .75rem;
  border: 1px solid #dbe8f6;
  border-radius: 8px;
  background: #f4f9ff;
  color: #27415f;
}

.upload-submit-status strong {
  display: block;
  color: var(--night);
}

.upload-submit-status small {
  color: var(--muted);
  line-height: 1.45;
}

.upload-panel.is-submitting .dropzone,
.upload-panel.is-submitting .upload-meta,
.upload-panel.is-submitting .selected-files {
  display: none;
}

.evidence-meta {
  display: block;
  font-weight: 700;
}

.document-downloads {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin: .35rem 0 .65rem;
}

.analysis-result-layout {
  max-width: 960px;
  margin-inline: auto;
  display: grid;
  gap: 1rem;
}

.appeal-score-hero {
  background: linear-gradient(135deg, #ffffff 0%, #eef7ff 100%);
}

.appeal-score-copy h2 {
  margin: 0;
  color: var(--night);
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1.08;
}

.appeal-score-copy p:not(.eyebrow) {
  max-width: 640px;
  margin: 1rem 0;
  color: #314057;
  font-size: 1.08rem;
  line-height: 1.7;
}

.ai-analysis-card,
.appeal-requirements-card {
  box-shadow: 0 18px 42px rgba(16, 38, 66, .08);
}

.ai-analysis-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: .85rem;
}

.ai-analysis-heading h2 {
  max-width: 760px;
}

.ai-analysis-card p:not(.eyebrow),
.appeal-requirements-card p {
  color: #314057;
  line-height: 1.7;
}

.appeal-requirement-list {
  display: grid;
  gap: .75rem;
}

.appeal-requirements-action {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .75rem;
  margin: 1rem 0 1.1rem;
}

.appeal-requirements-action .payment-status-box {
  width: 100%;
  margin-top: 0;
}

.appeal-requirements-action .appeal-generate-button {
  margin-top: 0;
}

.appeal-requirement-item {
  padding: 1rem;
  border: 1px solid #dbe8f6;
  border-radius: 8px;
  background: #fbfdff;
}

.appeal-requirement-item strong {
  display: block;
  color: var(--night);
  font-size: 1rem;
  font-weight: 850;
  overflow-wrap: anywhere;
}

.appeal-requirement-item p {
  margin: .35rem 0 0;
}

.legal-precedents-panel {
  margin-top: 1rem;
}

.legal-precedent-list {
  display: grid;
  gap: .85rem;
}

.legal-precedent-item {
  display: grid;
  gap: .8rem;
  padding: 1rem;
  border: 1px solid #dbe8f6;
  border-radius: 8px;
  background: #fbfdff;
  transition: border-color .18s ease, background-color .18s ease;
}

.legal-precedent-item.is-review-error {
  border-color: #ef4444;
  background: #fff5f5;
}

.legal-precedent-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.legal-precedent-heading strong,
.legal-precedent-heading span {
  display: block;
}

.legal-precedent-heading strong {
  color: var(--night);
  font-weight: 850;
}

.legal-precedent-heading span {
  color: #526174;
  line-height: 1.45;
}

.legal-precedent-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .7rem 1rem;
  margin: 0;
}

.legal-precedent-meta div {
  min-width: 0;
}

.legal-precedent-meta dt {
  color: #64748b;
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.legal-precedent-meta dd {
  margin: .1rem 0 0;
  color: var(--night);
  overflow-wrap: anywhere;
}

.legal-precedent-item p {
  margin: 0;
  color: #314057;
  line-height: 1.55;
}

.legal-precedent-link {
  width: fit-content;
  font-weight: 800;
}

.legal-precedent-review-controls {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem 1rem;
  padding-top: .2rem;
}

.legal-precedent-review-controls label {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  color: #253247;
  font-weight: 700;
}

.appeal-generate-button {
  margin-top: 1.15rem;
}

.payment-status-box {
  display: grid;
  gap: .25rem;
  margin-top: 1rem;
  padding: .9rem 1rem;
  border: 1px solid #dbe7f5;
  border-left: 4px solid #2563eb;
  border-radius: 8px;
  background: #f8fbff;
}

.payment-status-box strong {
  color: var(--night);
}

.payment-status-box span {
  color: #475569;
  line-height: 1.5;
}

.payment-status-box.is-paid {
  border-left-color: var(--ok);
  background: #f1fbf7;
}

.payment-status-box.is-partial {
  border-left-color: var(--warn);
  background: #fff8ed;
}

.appeal-payment-modal .modal-content {
  border: 0;
  border-radius: 8px;
  box-shadow: 0 22px 60px rgba(15, 23, 42, .18);
}

.appeal-payment-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .9rem 1rem;
  margin-bottom: 1rem;
  border: 1px solid #dbe7f5;
  border-radius: 8px;
  background: #f8fbff;
}

.appeal-payment-summary span {
  color: #64748b;
  font-weight: 700;
}

.appeal-payment-summary strong {
  font-size: 1.35rem;
  color: #0f172a;
}

.appeal-payment-methods {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .75rem;
  margin-bottom: 1rem;
}

.appeal-payment-method {
  min-height: 44px;
  border: 1px solid #dbe7f5;
  border-radius: 8px;
  background: #fff;
  color: #0f172a;
  font-weight: 800;
}

.appeal-payment-method.is-active {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .13);
}

.appeal-payment-method[aria-disabled="true"] {
  color: #64748b;
  background: #f8fafc;
}

.appeal-payment-form {
  display: grid;
  gap: 1rem;
}

.appeal-payment-element {
  min-height: 116px;
}

.appeal-payment-message {
  min-height: 1.25rem;
  font-size: .92rem;
  font-weight: 700;
}

.appeal-payment-message[data-type="danger"] {
  color: #b42318;
}

.appeal-payment-message[data-type="warning"] {
  color: #9a5b00;
}

.appeal-payment-message[data-type="info"] {
  color: #315b85;
}

.appeal-payment-paypal,
.appeal-payment-bank {
  padding: 1rem;
  border: 1px solid #dbe7f5;
  border-radius: 8px;
  background: #f8fafc;
  color: #475569;
  font-weight: 700;
}

.bank-transfer-page {
  max-width: 820px;
  margin-inline: auto;
}

.bank-transfer-instructions h1 {
  margin: 0 0 .8rem;
  color: var(--night);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 850;
  line-height: 1.08;
}

.bank-transfer-instructions p:not(.eyebrow) {
  color: #314057;
  line-height: 1.7;
}

.payment-status-banner {
  margin: 1rem 0;
  padding: .85rem 1rem;
  border: 1px solid #dbe7f5;
  border-left: 4px solid #2563eb;
  border-radius: 8px;
  background: #f8fbff;
  color: #27415f;
  font-weight: 800;
}

.payment-status-banner.warning {
  border-left-color: var(--warn);
  background: #fff8ed;
  color: #7a4b00;
}

.payment-status-banner.success {
  border-left-color: var(--ok);
  background: #f1fbf7;
  color: #0f6b48;
}

.bank-transfer-details {
  display: grid;
  gap: .7rem;
  margin: 1rem 0;
}

.bank-transfer-details div {
  display: grid;
  grid-template-columns: minmax(150px, .55fr) 1fr;
  gap: .75rem;
  padding: .8rem;
  border: 1px solid #dbe7f5;
  border-radius: 8px;
  background: #fbfdff;
}

.bank-transfer-details dt {
  color: #64748b;
  font-weight: 800;
}

.bank-transfer-details dd {
  margin: 0;
  color: var(--night);
  font-weight: 850;
  overflow-wrap: anywhere;
}

.bank-transfer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  margin-top: 1rem;
}

.site-footer {
  padding-block: 2rem;
  background: #07172f;
  color: rgba(255, 255, 255, .76);
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes progress-stripes {
  from {
    background-position: 0 0, 0 0;
  }
  to {
    background-position: 34px 0, 0 0;
  }
}

.site-footer .brand-mark,
.site-footer .footer-title {
  color: #fff;
}

.footer-title {
  font-size: .95rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0;
}

.footer-policy-links {
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, .16);
}

.footer-policy-links button {
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: .2rem;
}

.footer-policy-links button:hover,
.footer-policy-links button:focus {
  color: var(--sky);
}

.policy-modal .modal-title {
  color: var(--night);
  font-size: 1.35rem;
  font-weight: 850;
}

.policy-modal h3 {
  margin: 1.25rem 0 .35rem;
  color: var(--night);
  font-size: 1rem;
  font-weight: 820;
}

.policy-modal p {
  color: #314057;
  line-height: 1.65;
}

@media (max-width: 991.98px) {
  .hero-section {
    min-height: 78vh;
  }

  .hero-overlay {
    background: linear-gradient(90deg, rgba(7, 23, 47, .9), rgba(7, 23, 47, .56));
  }

  .workflow-grid,
  .progress-timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sticky-heading {
    position: static;
  }

  .case-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .case-actions {
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 767.98px) {
  .hero-section {
    min-height: auto;
  }

  .hero-content {
    padding-block: 5rem;
  }

  .hero-media {
    background-position: 64% center;
  }

  .hero-overlay {
    background: rgba(7, 23, 47, .78);
  }

  .hero-actions,
  .hero-proof,
  .case-actions {
    flex-direction: column;
  }

  .hero-actions .btn,
  .hero-proof span,
  .case-actions .btn,
  .case-actions form,
  .case-actions button {
    width: 100%;
  }

  .workflow-grid,
  .checks-grid,
  .case-type-grid,
  .progress-timeline {
    grid-template-columns: 1fr;
  }

  .document-row,
  .selected-file {
    align-items: flex-start;
    flex-direction: column;
  }

  .ai-analysis-heading {
    flex-direction: column;
  }

  .appeal-generate-button {
    width: 100%;
  }

  .appeal-payment-methods {
    grid-template-columns: 1fr;
  }

  .bank-transfer-details div {
    grid-template-columns: 1fr;
  }

  .bank-transfer-actions .btn {
    width: 100%;
  }

  .dropzone {
    min-height: 250px;
  }
}

.customer-chat-widget {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 1040;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: .75rem;
  pointer-events: none;
}

.customer-chat-toggle,
.customer-chat-panel {
  pointer-events: auto;
}

.customer-chat-toggle {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  min-height: 48px;
  padding: .7rem 1rem;
  border: 0;
  border-radius: 8px;
  background: var(--blue);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 16px 36px rgba(11, 99, 255, .28);
}

.customer-chat-toggle:hover,
.customer-chat-toggle:focus {
  background: #084fd0;
}

.customer-chat-toggle-icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .18);
  font-weight: 900;
}

.customer-chat-panel {
  width: min(380px, calc(100vw - 32px));
  max-height: min(620px, calc(100vh - 110px));
  display: grid;
  grid-template-rows: auto minmax(180px, 1fr) auto auto auto;
  overflow: hidden;
  border: 1px solid rgba(219, 228, 239, .95);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 22px 55px rgba(16, 38, 66, .2);
}

.customer-chat-panel[hidden] {
  display: none;
}

.customer-chat-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  background: var(--night);
  color: #fff;
}

.customer-chat-header strong {
  display: block;
  font-size: .98rem;
}

.customer-chat-header span {
  display: block;
  margin-top: .18rem;
  color: rgba(255, 255, 255, .72);
  font-size: .82rem;
  line-height: 1.35;
}

.customer-chat-close {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 8px;
  background: rgba(255, 255, 255, .08);
  color: #fff;
  font-weight: 800;
}

.customer-chat-messages {
  min-height: 0;
  padding: 1rem;
  overflow-y: auto;
  background: #f6f9fc;
}

.customer-chat-message {
  display: flex;
  margin-bottom: .75rem;
}

.customer-chat-message p {
  max-width: 88%;
  margin: 0;
  padding: .7rem .85rem;
  border-radius: 8px;
  color: #22324a;
  line-height: 1.45;
  font-size: .92rem;
}

.customer-chat-message.is-assistant {
  justify-content: flex-start;
}

.customer-chat-message.is-assistant p {
  background: #fff;
  border: 1px solid #e2e9f2;
}

.customer-chat-message.is-user {
  justify-content: flex-end;
}

.customer-chat-message.is-user p {
  background: #e7f2ff;
  border: 1px solid #c9ddfb;
  color: #102642;
}

.customer-chat-support-request {
  justify-content: flex-start;
}

.customer-chat-support-card {
  width: min(100%, 330px);
  max-width: 88%;
  padding: .85rem;
  border: 1px solid #dbe6f3;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(19, 39, 68, .08);
}

.customer-chat-support-card strong {
  display: block;
  color: var(--night);
  font-size: .95rem;
}

.customer-chat-message.is-assistant .customer-chat-support-card p {
  max-width: none;
  margin: .25rem 0 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: .84rem;
}

.customer-chat-support-form {
  display: grid;
  gap: .55rem;
  margin-top: .75rem;
}

.customer-chat-support-form input,
.customer-chat-support-form textarea {
  width: 100%;
  border: 1px solid #cfdbea;
  border-radius: 8px;
  padding: .62rem .7rem;
  color: var(--night);
  font: inherit;
}

.customer-chat-support-form textarea {
  min-height: 88px;
  resize: vertical;
}

.customer-chat-support-form button {
  justify-self: start;
  min-width: 88px;
  border: 0;
  border-radius: 8px;
  background: var(--blue);
  color: #fff;
  font-weight: 800;
  padding: .62rem .9rem;
}

.customer-chat-support-form button:disabled,
.customer-chat-support-form input:disabled,
.customer-chat-support-form textarea:disabled {
  opacity: .65;
}

.customer-chat-message.is-assistant .customer-chat-support-status {
  margin-top: .5rem;
  color: var(--muted);
  font-size: .83rem;
}

.customer-chat-message.is-assistant .customer-chat-support-status.is-error {
  color: var(--danger);
}

.customer-chat-typing {
  display: flex;
  align-items: center;
  gap: .32rem;
  padding: .55rem 1rem;
  border-top: 1px solid #e6edf5;
  color: var(--muted);
  font-size: .84rem;
}

.customer-chat-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
  animation: customerChatPulse 1s infinite ease-in-out;
}

.customer-chat-dot:nth-child(2) {
  animation-delay: .15s;
}

.customer-chat-dot:nth-child(3) {
  animation-delay: .3s;
}

.customer-chat-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: .6rem;
  padding: .8rem;
  border-top: 1px solid #e6edf5;
  background: #fff;
}

.customer-chat-form textarea {
  min-height: 44px;
  max-height: 110px;
  resize: vertical;
  border: 1px solid #cfdbea;
  border-radius: 8px;
  padding: .65rem .75rem;
  color: var(--night);
  font: inherit;
}

.customer-chat-form button {
  min-width: 72px;
  border: 0;
  border-radius: 8px;
  background: var(--blue);
  color: #fff;
  font-weight: 800;
}

.customer-chat-form button:disabled,
.customer-chat-form textarea:disabled {
  opacity: .65;
}

.customer-chat-error {
  margin: 0;
  padding: 0 .9rem .8rem;
  color: var(--danger);
  font-size: .84rem;
}

@keyframes customerChatPulse {
  0%,
  80%,
  100% {
    opacity: .35;
    transform: translateY(0);
  }
  40% {
    opacity: 1;
    transform: translateY(-2px);
  }
}

@media (max-width: 575.98px) {
  .customer-chat-widget {
    right: max(12px, env(safe-area-inset-right));
    bottom: max(12px, env(safe-area-inset-bottom));
  }

  .customer-chat-panel {
    width: calc(100vw - 24px);
    max-height: calc(100vh - 96px);
  }

  .customer-chat-toggle {
    min-height: 46px;
    padding: .65rem .85rem;
  }
}

@media (max-width: 767.98px) {
  .home-page .customer-chat-widget {
    top: 86px;
    bottom: auto;
  }
}
