@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap");

:root {
  --bg: #f6f1e8;
  --bg-soft: #fbf8f3;
  --surface: #ffffff;
  --surface-2: #fcfaf6;
  --ink: #161311;
  --muted: #4a4339;
  --line: #d7ccbc;
  --accent: #6f1f1f;
  --accent-strong: #531515;
  --accent-soft: rgba(111, 31, 31, 0.08);
  --ok: #0f6b4a;
  --warn: #9a6400;
  --bad: #a32034;
  --shadow: 0 22px 52px -22px rgba(28, 20, 10, 0.22);
  --shadow-soft: 0 12px 28px -18px rgba(28, 20, 10, 0.18);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Manrope", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(111, 31, 31, 0.08), transparent 32%),
    radial-gradient(circle at top right, rgba(20, 27, 36, 0.05), transparent 30%),
    linear-gradient(180deg, #fcfaf6 0%, var(--bg) 100%);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0)),
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.12), transparent 18%);
  opacity: 0.28;
}

* {
  box-sizing: border-box;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

a, button, input, select, textarea {
  -webkit-tap-highlight-color: transparent;
}

button,
.btn,
.hero-btn,
.wizard-opt,
.pay-method,
.caseBtn,
.actionBtn,
.accordion-header {
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease,
    opacity 180ms ease;
}

button:active,
.btn:active,
.hero-btn:active,
.wizard-opt:active,
.pay-method:active,
.caseBtn:active,
.actionBtn:active {
  transform: translateY(1px) scale(0.99);
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.btn:focus-visible,
.hero-btn:focus-visible,
.accordion-header:focus-visible {
  outline: 3px solid rgba(111, 31, 31, 0.22);
  outline-offset: 2px;
}

h1,
h2,
h3,
h4 {
  font-family: "Manrope", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink);
  letter-spacing: -0.035em;
}

h1 {
  font-size: clamp(2.3rem, 5vw, 4rem);
  line-height: 0.98;
  margin: 0.45rem 0 0.35rem;
}

h2 {
  font-size: clamp(1.45rem, 3vw, 2rem);
  line-height: 1.08;
  margin: 0 0 0.6rem;
}

h3 {
  font-size: 1.15rem;
  line-height: 1.14;
  margin: 0 0 0.55rem;
}

h4 {
  font-size: 1rem;
  line-height: 1.2;
  margin: 0 0 0.35rem;
}

p {
  color: #2c241c;
  line-height: 1.56;
}

.small,
.fine,
.status,
.lead,
.legalStatus,
.footerNote,
.mutedBox,
.notice,
.note,
.summaryBox,
.actionNotice,
.caseBtn span,
.metric span,
.pill,
.boxTitle .small {
  color: var(--muted);
}

header,
main,
.wrap {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding-left: 0;
  padding-right: 0;
}

header {
  padding-top: 28px;
}

main {
  padding-bottom: 56px;
}

.card,
.notice,
.note,
.mutedBox,
.summaryBox,
.legalGate,
.checkoutGate,
.info-shell,
.metric,
.caseBtn,
.actionBtn,
.actionNotice,
.alert,
.wizard-card,
.cargos-card,
.accordion,
.accordion-body .doc-item,
.pay-summary,
.pay-method,
.field input,
.field textarea,
.field select {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
}

.card,
.notice,
.note,
.mutedBox,
.summaryBox,
.legalGate,
.checkoutGate,
.info-shell,
.actionNotice,
.alert,
.wizard-card,
.cargos-card,
.accordion-body .doc-item,
.pay-summary {
  padding: 16px;
}

.btn,
.hero-btn,
.btn.primary,
.btn.dark,
.wizard-nav .btn-next,
.wizard-nav .btn-back {
  border-radius: 999px;
  border: 1px solid var(--line);
  font-weight: 800;
  letter-spacing: -0.01em;
}

.btn,
.hero-btn,
.wizard-nav .btn-next,
.wizard-nav .btn-back,
.actionBtn,
.pay-method,
.wizard-opt {
  background: var(--surface);
  color: var(--ink);
}

.btn,
.hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 46px;
  padding: 0.8rem 1rem;
}

.btn.primary,
.hero-btn,
.wizard-nav .btn-next {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 16px 30px -18px rgba(111, 31, 31, 0.8);
}

.btn.primary:hover,
.hero-btn:hover,
.wizard-nav .btn-next:hover {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
}

.btn.dark {
  background: #1c2230;
  border-color: #1c2230;
  color: #fff;
}

.btn.dark:hover {
  background: #141926;
  border-color: #141926;
}

label {
  display: block;
  font-weight: 800;
  color: var(--ink);
  margin: 0.85rem 0 0.35rem;
}

input,
select,
textarea {
  width: 100%;
  padding: 0.85rem 0.95rem;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--ink);
  font: inherit;
}

textarea {
  min-height: 92px;
  resize: vertical;
}

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

th,
td {
  border-bottom: 1px solid rgba(226, 217, 204, 0.72);
}

th {
  background: rgba(250, 247, 242, 0.92);
  color: #574d43;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

td,
th {
  padding: 0.72rem 0.7rem;
  text-align: left;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0.38rem 0.75rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
}

.pill.ok,
.notice.ok,
.legalStatus.ok {
  color: var(--ok);
  border-color: rgba(15, 107, 74, 0.22);
  background: rgba(15, 107, 74, 0.08);
}

.pill.warn,
.notice.warn,
.legalStatus.warn {
  color: var(--warn);
  border-color: rgba(154, 100, 0, 0.24);
  background: rgba(154, 100, 0, 0.08);
}

.pill.bad,
.notice.bad,
.legalStatus.bad {
  color: var(--bad);
  border-color: rgba(163, 32, 52, 0.24);
  background: rgba(163, 32, 52, 0.08);
}

.notice strong,
.note strong,
.mutedBox strong,
.summaryBox strong,
.legalGate strong {
  color: var(--ink);
}

.row,
.btns,
.legalControls,
.hero-actions,
.nav,
.topLinks,
.actions {
  gap: 0.75rem;
}

.row,
.btns,
.legalControls,
.hero-actions,
.topLinks,
.actions,
.nav,
.caseMeta,
.info-callout,
.detailTop,
.top,
.boxTitle,
.summaryMeta,
.legalControls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.metrics,
.info-grid,
.layout,
.grid,
.summaryMeta,
.caseList,
.amountSelector,
.wizard-options,
.pay-methods,
.accordion-body .doc-grid {
  display: grid;
  gap: 0.9rem;
}

.metrics {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.metric {
  padding: 1rem;
  box-shadow: var(--shadow-soft);
}

.metric strong {
  display: block;
  font-size: 1.25rem;
  line-height: 1.15;
  margin-top: 0.15rem;
}

.layout {
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 1rem;
  align-items: start;
}

.layout > *,
.info-card,
.card {
  min-width: 0;
}

.caseBtn,
.actionBtn,
.pay-method,
.wizard-opt,
.accordion-header {
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.caseBtn {
  padding: 0.95rem;
  text-align: left;
  box-shadow: none;
}

.caseBtn.active,
.pay-method.selected,
.wizard-opt.selected {
  border-color: rgba(111, 31, 31, 0.36);
  background: rgba(111, 31, 31, 0.05);
}

.actionBtn {
  padding: 0.9rem 1rem;
  box-shadow: none;
}

.actionNotice {
  box-shadow: none;
}

.actionNotice.success {
  display: block;
}

.actionNotice.warning,
.actionNotice.error {
  display: block;
}

.legalGate,
.checkoutGate,
.summaryBox,
.mutedBox,
.info-shell,
.wizard-card,
.cargos-card,
.card,
.notice,
.note {
  backdrop-filter: none;
}

.legalGate,
.checkoutGate {
  padding: 1rem;
}

.legalScroll {
  max-height: 320px;
  overflow-y: auto;
  padding: 1rem;
  border-radius: 20px;
  border: 1px solid rgba(226, 217, 204, 0.9);
  background: linear-gradient(180deg, #fffdf9 0%, #fffaf4 100%);
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

.legalScroll h3 {
  margin-top: 0.4rem;
}

.legalStatus {
  margin: 0.65rem 0 0;
  font-size: 0.9rem;
}

.amountSelector {
  gap: 0.6rem;
  margin-top: 0.95rem;
}

.amountSelect {
  max-width: 540px;
}

.hero {
  padding: 3.25rem 0 1.5rem;
  min-height: auto;
  text-align: left;
}

.hero-inner {
  max-width: 1120px;
  margin: 0 auto;
}

.hero h1 {
  font-size: clamp(2.8rem, 7vw, 5.3rem);
  line-height: 0.94;
  letter-spacing: -0.06em;
}

.hero-price {
  font-size: clamp(2.4rem, 6.5vw, 4.8rem);
  line-height: 0.95;
  font-weight: 800;
  color: var(--accent);
}

.hero-asterisk-block {
  margin-left: 0;
  max-width: 62ch;
  color: var(--muted);
}

.hero-actions {
  justify-content: flex-start;
}

.hero-btn.secondary {
  background: rgba(255, 255, 255, 0.85);
  color: var(--ink);
  border-color: var(--line);
}

.hero-btn.secondary:hover {
  background: #fff;
  border-color: rgba(111, 31, 31, 0.22);
}

/* Landing + client/lawyer contrast guard.
   These selectors neutralize the older dark page-specific CSS so the shared
   system remains readable and consistent. */
.hero,
.hero-inner,
.hero h1,
.hero-price,
.hero-asterisk-block,
.info-band,
.info-shell,
.info-top,
.info-top p,
.info-kicker,
.info-grid,
.info-card,
.info-card h3,
.info-card p,
.info-card li,
.info-card .price-row,
.info-card .price-row strong,
.info-card .price-row span:last-child,
.info-callout,
.info-callout strong,
.info-callout p,
.cargos-card,
.cargos-card h3,
.cargos-card p,
.cargos-note,
.wizard-card,
.wizard-card h3,
.wizard-card > p,
.wizard-result h4,
.wizard-result p,
.info-section,
.info-section > p,
.accordion-header,
.accordion-body,
.accordion-body p,
.accordion-body li,
.footer-page p,
.lead,
.badge,
.topLinks,
.nav-links {
  color: var(--ink);
}

.hero-asterisk-block,
.info-top p,
.info-card p,
.info-card li,
.info-callout p,
.cargos-card p,
.cargos-note,
.wizard-card > p,
.wizard-result p,
.info-section > p,
.accordion-body p,
.accordion-body li,
.footer-page p,
.lead,
.small,
.fine,
.status,
.summaryBox,
.actionNotice,
.metric span,
.pill,
.boxTitle .small {
  color: var(--muted);
}

.info-card,
.info-callout,
.cargos-card,
.wizard-card {
  background: linear-gradient(180deg, #fff 0%, #fcf9f4 100%);
}

.info-card.highlight,
.info-callout {
  border-color: rgba(111, 31, 31, 0.14);
}

.hero h1,
.hero-price {
  color: var(--ink);
}

.hero-price,
.info-card .price-row span:last-child {
  color: var(--accent);
}

.hero-btn.secondary,
.accordion-header,
.btn.dark,
.badge {
  color: var(--ink);
}

.accordion-body {
  color: var(--muted);
}

.cargos-card p,
.wizard-card > p,
.wizard-result p {
  line-height: 1.65;
}

.info-band {
  padding-top: 1.4rem;
}

.info-shell {
  padding: 1.25rem;
}

.info-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  align-items: start;
  margin-bottom: 1rem;
}

.info-kicker {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  font-weight: 800;
}

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

.info-card {
  background: linear-gradient(180deg, #fff 0%, #fbf8f3 100%);
  border-radius: 24px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  padding: 1.1rem;
}

.info-card.highlight {
  background: linear-gradient(180deg, rgba(111, 31, 31, 0.05) 0%, #fff 100%);
}

.span-12 { grid-column: span 12; }
.span-8 { grid-column: span 8; }
.span-6 { grid-column: span 6; }
.span-4 { grid-column: span 4; }

.info-callout {
  justify-content: space-between;
  margin-top: 1rem;
  padding: 1rem 1.1rem;
  border-radius: 24px;
  border: 1px solid rgba(111, 31, 31, 0.14);
  background: linear-gradient(180deg, rgba(111, 31, 31, 0.05), rgba(255, 255, 255, 0.92));
}

.info-callout strong {
  font-size: 1rem;
}

.info-callout p {
  margin: 0.35rem 0 0;
  max-width: 58ch;
}

.wizard-overlay,
.cargos-overlay {
  background: rgba(14, 16, 20, 0.62);
}

.wizard-card,
.cargos-card {
  border-radius: 28px;
  border-color: rgba(226, 217, 204, 0.92);
  color: var(--ink);
}

.wizard-progress,
.wizard-nav,
.upload-zone,
.pay-summary,
.accordion {
  border-color: var(--line);
}

.wizard-progress {
  border-radius: 999px;
  overflow: hidden;
  background: rgba(226, 217, 204, 0.75);
}

.wizard-progress-fill {
  background: linear-gradient(90deg, var(--accent) 0%, #9f5959 100%);
}

.accordion {
  border-radius: 24px;
  overflow: hidden;
}

.accordion-header {
  width: 100%;
  padding: 1rem 1.15rem;
  border: 0;
  border-bottom: 1px solid rgba(226, 217, 204, 0.78);
  background: #fff;
}

.accordion-header:hover {
  background: #fbf8f3;
}

.accordion-body {
  background: #fffdf9;
  color: var(--muted);
}

.accordion-body.open {
  padding-bottom: 1rem;
}

.actionNotice {
  margin-top: 0.75rem;
}

.top {
  justify-content: space-between;
  gap: 1rem;
}

.badge {
  background: rgba(255, 255, 255, 0.9);
  border-color: var(--line);
  color: var(--muted);
  box-shadow: var(--shadow-soft);
}

.lead {
  max-width: 72ch;
}

.topLinks,
.nav {
  color: var(--muted);
}

.topLinks a,
.nav a {
  text-decoration: none;
}

.topLinks a:hover,
.nav a:hover {
  color: var(--accent);
}

.footer-page {
  padding-bottom: 48px;
}

.footer-page p {
  color: rgba(106, 98, 88, 0.62);
}

@media (min-width: 720px) {
  .info-top {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: end;
  }

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

@media (max-width: 960px) {
  .layout,
  .info-grid,
  .metrics {
    grid-template-columns: 1fr;
  }

  .span-12,
  .span-8,
  .span-6,
  .span-4 {
    grid-column: span 1;
  }
}

@media (max-width: 720px) {
  header,
  main,
  .wrap {
    width: min(100%, calc(100% - 24px));
  }

  .hero {
    padding-top: 2.4rem;
  }

  .hero h1 {
    font-size: clamp(2.2rem, 10vw, 3.6rem);
  }

  .hero-price {
    font-size: clamp(2rem, 9vw, 3rem);
  }

  .btn,
  .hero-btn,
  .actionBtn,
  .btn.primary,
  .btn.dark {
    width: 100%;
  }

  .row .btn,
  .row .hero-btn,
  .btns .btn,
  .btns .hero-btn,
  .hero-actions .btn,
  .hero-actions .hero-btn,
  .topLinks .btn,
  .topLinks .hero-btn {
    width: auto;
  }

  .info-callout {
    flex-direction: column;
    align-items: flex-start;
  }

  .legalScroll {
    max-height: 240px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
