:root {
  --bg: #f4f7f8;
  --surface: #ffffff;
  --surface-muted: #edf3f4;
  --ink: #162126;
  --text: #24333a;
  --muted: #61727b;
  --line: #d8e2e5;
  --accent: #008f76;
  --accent-strong: #006f5d;
  --accent-soft: #dff4ef;
  --warning: #a86414;
  --danger: #c9364a;
  --shadow: 0 18px 44px rgba(22, 33, 38, .08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.page-shell {
  max-width: 1220px;
  margin: 0 auto;
  padding: 24px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 0 20px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  color: var(--ink);
  text-decoration: none;
}

.brand-logo {
  width: 78px;
  height: 38px;
  object-fit: contain;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: var(--ink);
  color: #ffffff;
  font-weight: 900;
  font-size: 22px;
}

.brand small {
  display: block;
  color: var(--muted);
  margin-top: 2px;
}

.nav nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
}

.nav-cta {
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 10px 16px;
  border-radius: 8px;
}

.hero {
  display: grid;
  grid-template-columns: 1.2fr .9fr;
  gap: 28px;
  align-items: start;
  padding: 54px 0 40px;
}

.eyebrow {
  display: inline-flex;
  color: var(--accent-strong);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: .08em;
  margin-bottom: 12px;
}

.hero h1,
.pricing-hero h1,
.service-hero h1 {
  max-width: 820px;
  color: var(--ink);
  font-size: 64px;
  line-height: 1;
  margin: 0 0 22px;
  letter-spacing: 0;
}

.hero p,
.pricing-hero p,
.service-hero p {
  font-size: 18px;
  line-height: 1.65;
  color: var(--muted);
  max-width: 760px;
}

.hero-card,
.upload-panel,
.result-card,
.doc-card,
.note-card,
.service-card,
.contact-redirect-card,
.contact-panel,
.features article,
.service-grid article,
.mini-plan,
.plan {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-card,
.upload-panel,
.result-card,
.doc-card,
.note-card,
.service-card,
.contact-redirect-card,
.contact-panel {
  padding: 30px;
}

.hero-card code {
  display: block;
  background: #f7fafb;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  color: var(--accent-strong);
  overflow: auto;
}

.hero-card li {
  margin: 12px 0;
  color: var(--text);
}

.status-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--accent);
}

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 46px;
  border-radius: 8px;
  padding: 13px 20px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 850;
  cursor: pointer;
}

.btn.primary {
  background: var(--accent);
  color: #ffffff;
}

.btn.primary:hover {
  background: var(--accent-strong);
}

.btn.ghost {
  border-color: var(--line);
  color: var(--ink);
  background: var(--surface);
}

.btn.big {
  font-size: 18px;
  padding: 16px 22px;
}

.btn.full {
  width: 100%;
}

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

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.trust-row span {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 8px;
  color: var(--muted);
  font-weight: 750;
  padding: 9px 12px;
}

.grid.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 28px 0 42px;
}

.features article,
.service-grid article,
.mini-plan,
.plan {
  padding: 24px;
}

.features span {
  color: var(--warning);
  font-weight: 900;
}

.features p,
.service-grid p,
.plan li,
.doc-card p,
.note-card p,
.service-card li {
  color: var(--muted);
  line-height: 1.65;
}

.upload-panel {
  margin: 24px 0 42px;
}

.hero-upload {
  margin: 0;
}

.hero-upload .panel-head h2 {
  font-size: 30px;
}

.hero-upload .form-grid {
  grid-template-columns: 1fr;
}

.hero-upload .file-drop {
  min-height: 150px;
  padding: 24px;
}

.panel-head h2 {
  color: var(--ink);
  font-size: 36px;
  margin: 0 0 8px;
}

.panel-head p {
  color: var(--muted);
}

.upload-form {
  display: grid;
  gap: 20px;
}

.file-drop {
  display: grid;
  place-items: center;
  gap: 8px;
  min-height: 172px;
  text-align: center;
  border: 1px dashed var(--accent);
  background: var(--accent-soft);
  padding: 34px;
  border-radius: 8px;
  cursor: pointer;
}

.file-drop input {
  margin-top: 14px;
  max-width: 100%;
}

.file-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: var(--surface);
  color: var(--accent-strong);
  font-weight: 900;
}

.form-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 14px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 750;
}

label small {
  color: var(--muted);
  font-weight: 500;
}

input,
select,
textarea {
  width: 100%;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid #c9d6da;
  border-radius: 8px;
  padding: 13px 14px;
  font: inherit;
}

input:focus,
select:focus,
textarea:focus,
.btn:focus-visible {
  outline: 3px solid rgba(0, 143, 118, .22);
  outline-offset: 2px;
}

.pricing-strip,
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.mini-plan strong,
.price {
  font-size: 30px;
  color: var(--accent-strong);
  font-weight: 900;
}

.pricing-hero {
  text-align: center;
  padding: 60px 0 26px;
}

.pricing-hero p {
  margin: auto;
}

.pricing-grid {
  grid-template-columns: repeat(5, 1fr);
  align-items: stretch;
}

.plan {
  position: relative;
}

.plan.featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(0, 143, 118, .15), var(--shadow);
}

.featured-mini {
  border-color: var(--accent);
}

.badge {
  position: absolute;
  top: -13px;
  right: 18px;
  background: var(--ink);
  color: #ffffff;
  padding: 7px 12px;
  border-radius: 8px;
  font-weight: 900;
  font-size: 12px;
}

.plan-limit {
  margin: -6px 0 14px;
  color: var(--accent-strong);
  font-weight: 850;
}

.plan ul {
  padding-left: 18px;
  min-height: 190px;
}

.proof-band,
.explain-band,
.security-band,
.faq-band,
.lead-band,
.service-hero,
.service-grid {
  display: grid;
  gap: 18px;
}

.proof-band {
  grid-template-columns: repeat(3, 1fr);
  margin: 8px 0 42px;
}

.proof-band div {
  background: var(--surface-muted);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
}

.proof-band span {
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.proof-band strong {
  display: block;
  color: var(--ink);
  font-size: 20px;
  margin: 8px 0;
}

.proof-band p {
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

.explain-band {
  grid-template-columns: .8fr 1.2fr;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px;
  margin: 8px 0 34px;
}

.security-band {
  grid-template-columns: .8fr 1.2fr;
  align-items: center;
  background: #f8fbfa;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  padding: 28px;
  margin: 8px 0 34px;
}

.explain-band h2 {
  color: var(--ink);
  font-size: 30px;
  line-height: 1.15;
  margin: 0;
  letter-spacing: 0;
}

.security-band h2 {
  color: var(--ink);
  font-size: 30px;
  line-height: 1.15;
  margin: 0;
  letter-spacing: 0;
}

.explain-band p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
  margin: 0;
}

.security-band p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
  margin: 0;
}

.faq-band {
  grid-template-columns: .8fr 1.2fr;
  align-items: start;
  margin: 8px 0 34px;
}

.faq-band h2 {
  color: var(--ink);
  font-size: 30px;
  line-height: 1.15;
  margin: 0;
  letter-spacing: 0;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-list article {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px 20px;
}

.faq-list h3 {
  color: var(--ink);
  margin: 0 0 8px;
}

.faq-list p {
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

.lead-band {
  grid-template-columns: 1fr auto;
  align-items: center;
  background: var(--ink);
  color: #ffffff;
  border-radius: 8px;
  padding: 28px;
  margin: 28px 0;
}

.lead-band h2 {
  margin: 0 0 8px;
}

.lead-band p {
  color: #cbd6d9;
  line-height: 1.65;
  margin: 0;
}

.lead-band .eyebrow {
  color: #70e3d1;
}

.service-hero {
  grid-template-columns: 1.1fr .75fr;
  align-items: start;
  padding: 54px 0 30px;
}

.service-card ul {
  padding-left: 18px;
}

.service-card li {
  margin: 10px 0;
}

.service-grid {
  grid-template-columns: repeat(4, 1fr);
  margin: 20px 0 34px;
}

.contact-panel {
  display: grid;
  grid-template-columns: .85fr 1fr;
  gap: 28px;
  align-items: start;
}

.lead-form {
  display: grid;
  gap: 14px;
}

.contact-redirect-card h3 {
  color: var(--ink);
  font-size: 28px;
  line-height: 1.2;
  margin: 0 0 10px;
}

.contact-redirect-card p {
  color: var(--muted);
  line-height: 1.65;
  margin: 0 0 20px;
}

.contact-actions {
  display: grid;
  gap: 12px;
}

.result-card {
  max-width: 780px;
  margin: 70px auto;
  text-align: center;
}

.success-icon {
  display: inline-grid;
  place-items: center;
  width: 80px;
  height: 80px;
  border-radius: 8px;
  background: var(--accent);
  color: #ffffff;
  font-size: 28px;
  font-weight: 900;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 28px 0;
}

.stats div {
  background: #f7fafb;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}

.stats span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.stats strong {
  color: var(--ink);
  font-size: 26px;
}

.audit-box {
  margin-top: 22px;
  text-align: left;
  background: #f7fafb;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}

.flash-wrap {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.flash {
  padding: 14px 18px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.flash.error {
  background: #fff1f3;
  border-color: rgba(201, 54, 74, .38);
  color: #7b1827;
}

.flash.success {
  background: var(--accent-soft);
  border-color: rgba(0, 143, 118, .35);
  color: #064c40;
}

.doc-card {
  max-width: 900px;
  margin: 50px auto;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding: 30px 0;
  margin-top: 50px;
}

@media (max-width: 950px) {
  .page-shell {
    padding: 18px;
  }

  .hero,
  .form-grid,
  .grid.features,
  .proof-band,
  .explain-band,
  .security-band,
  .faq-band,
  .lead-band,
  .service-hero,
  .service-grid,
  .contact-panel,
  .pricing-grid,
  .pricing-strip,
  .stats {
    grid-template-columns: 1fr;
  }

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

  .hero {
    padding-top: 36px;
  }

  .hero h1,
  .pricing-hero h1,
  .service-hero h1 {
    font-size: 42px;
  }

  .brand-logo {
    width: 68px;
    height: 34px;
  }

  .footer {
    flex-direction: column;
  }

  .plan ul {
    min-height: auto;
  }
}
