:root {
  --ink: #061422;
  --navy: #0a1f38;
  --navy-deep: #041525;
  --blue: #1a7fd4;
  --blue-bright: #3a9ef0;
  --cyan: #5ec8ff;
  --fog: #e8eef5;
  --mist: #f4f7fb;
  --muted: #5a6b7d;
  --line: #cfd9e6;
  --white: #ffffff;
  --radius: 4px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "IBM Plex Sans", sans-serif;
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

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

.container {
  width: min(1120px, calc(100% - 48px));
  margin-inline: auto;
}

#invoices,
#invoice-upload,
#pricing,
#services,
#websites,
#process,
#contact {
  scroll-margin-top: 88px;
}

/* —— Header —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(4, 21, 37, 0.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(94, 200, 255, 0.12);
}

.nav-wrap {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  font-weight: 500;
}

.nav a {
  color: rgba(255, 255, 255, 0.78);
  transition: color 0.2s;
}

.nav a:hover {
  color: var(--white);
}

.nav-cta {
  background: var(--blue);
  color: var(--white) !important;
  padding: 10px 16px;
  border-radius: var(--radius);
  font-weight: 600;
}

.nav-cta:hover {
  background: var(--blue-bright);
}

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  margin-inline: auto;
  transition: transform 0.25s var(--ease), opacity 0.2s;
}

.menu-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(4.5px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-4.5px) rotate(-45deg);
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: auto;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--navy-deep);
  color: var(--white);
  padding: 112px 0 72px;
}

.hero-atmosphere {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-mesh {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 72% 40%, rgba(26, 127, 212, 0.35), transparent 60%),
    radial-gradient(ellipse 50% 40% at 18% 70%, rgba(94, 200, 255, 0.12), transparent 55%),
    linear-gradient(165deg, #041525 0%, #0a2744 48%, #061a2e 100%);
}

.hero-grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(94, 200, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(94, 200, 255, 0.06) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 70% at 65% 45%, black 20%, transparent 75%);
  animation: grid-drift 28s linear infinite;
}

.hero-glow {
  position: absolute;
  width: 55vmax;
  height: 55vmax;
  right: -12%;
  top: -18%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(58, 158, 240, 0.22), transparent 65%);
  animation: glow-pulse 8s ease-in-out infinite;
}

.hero-scan {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(94, 200, 255, 0.55), transparent);
  top: 35%;
  animation: scan 7s var(--ease) infinite;
  opacity: 0.7;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
  padding-top: 0;
}

.hero-logo {
  display: block;
  width: min(380px, 92%);
  max-width: 100%;
  height: auto;
  margin: 0 auto 28px;
  background: #fff;
  padding: 5px;
  border-radius: 6px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
  box-sizing: border-box;
  object-fit: contain;
  opacity: 0;
  animation: rise 0.9s var(--ease) 0.1s forwards;
}

.hero h1 {
  font-family: Sora, sans-serif;
  font-size: clamp(32px, 4.8vw, 52px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.035em;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.94);
  opacity: 0;
  animation: rise 0.9s var(--ease) 0.22s forwards;
}

.hero-lead {
  font-size: clamp(16px, 1.5vw, 19px);
  color: rgba(214, 226, 240, 0.88);
  max-width: 520px;
  margin: 0;
  opacity: 0;
  animation: rise 0.9s var(--ease) 0.34s forwards;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
  margin-top: 32px;
  opacity: 0;
  animation: rise 0.9s var(--ease) 0.46s forwards;
}

.hero-text-link {
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  font-weight: 600;
  padding: 8px 0;
}

.hero-text-link:hover {
  color: var(--white);
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: var(--radius);
  padding: 14px 22px;
  font: 600 14px "IBM Plex Sans", sans-serif;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s, border-color 0.2s, color 0.2s;
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--blue-bright);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.55);
}

.btn-light {
  background: var(--white);
  color: var(--navy-deep);
  margin-top: 8px;
}

.btn-light:hover {
  background: var(--fog);
}

/* —— Sections —— */
.section {
  padding: 110px 0;
}

.eyebrow {
  font-family: Sora, sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue);
  margin: 0 0 18px;
}

.eyebrow.light {
  color: var(--cyan);
}

h2 {
  font-family: Sora, sans-serif;
  font-size: clamp(32px, 4.2vw, 48px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.035em;
  margin: 0 0 18px;
}

h3 {
  font-family: Sora, sans-serif;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}

.section-heading {
  max-width: 640px;
  margin-bottom: 56px;
}

.section-heading > p:last-child {
  color: var(--muted);
  font-size: 17px;
  margin: 0;
}

.section-lead {
  font-size: 17px;
  color: var(--muted);
  max-width: 520px;
  margin: 0 0 28px;
}

.centered {
  margin-inline: auto;
  text-align: center;
}

/* —— Services (list, not cards) —— */
.intro {
  background: var(--white);
}

.service-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.service-row {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 28px;
  align-items: start;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
  transition: background 0.25s, padding 0.25s var(--ease);
}

.service-list > div.service-row {
  grid-template-columns: 64px 1fr;
}

.service-row:hover {
  padding-left: 12px;
}

.service-row:hover .service-link {
  color: var(--blue);
  transform: translateX(4px);
}

.service-num {
  font-family: Sora, sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: 0.06em;
  padding-top: 4px;
}

.service-row h3 {
  font-size: 22px;
}

.service-row p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  max-width: 560px;
}

.service-link {
  font-size: 22px;
  color: var(--line);
  padding-top: 2px;
  transition: color 0.2s, transform 0.25s var(--ease);
}

/* —— Websites —— */
.websites {
  background: var(--mist);
}

.websites .two-col {
  margin-top: 12px;
  align-items: start;
}

.website-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.website-list li {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.website-list li:first-child {
  border-top: 1px solid var(--line);
}

.website-list span {
  font-family: Sora, sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: var(--blue);
  padding-top: 3px;
}

.website-list strong {
  display: block;
  font-family: Sora, sans-serif;
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 4px;
}

.website-list p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

.access-panel {
  margin-top: 28px;
  padding: 22px 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 3px solid var(--blue);
}

.access-panel h3 {
  font-size: 16px;
  margin: 0 0 8px;
}

.access-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.related-heading {
  font-size: 22px;
  margin: 0 0 8px;
}

.websites .btn {
  margin-top: 24px;
}

/* —— Migration —— */
.dark-section {
  background:
    radial-gradient(ellipse 60% 50% at 90% 10%, rgba(26, 127, 212, 0.22), transparent 55%),
    var(--navy-deep);
  color: var(--white);
  padding: 110px 0;
  position: relative;
  overflow: hidden;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.dark-section .section-lead {
  color: rgba(184, 200, 220, 0.9);
}

.migration-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.migration-list li {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.migration-list li:first-child {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.migration-list span {
  font-family: Sora, sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: var(--cyan);
  padding-top: 3px;
}

.migration-list strong {
  display: block;
  font-family: Sora, sans-serif;
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 4px;
}

.migration-list p {
  margin: 0;
  font-size: 14px;
  color: rgba(184, 200, 220, 0.88);
}

/* —— Automation —— */
.automation {
  background: var(--white);
}

.automation-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  gap: 8px;
  align-items: stretch;
  margin-bottom: 64px;
}

.flow-step {
  padding: 8px 4px 8px 0;
  border-top: 2px solid var(--line);
}

.flow-step.highlight {
  border-top-color: var(--blue);
}

.flow-step span {
  display: block;
  font-family: Sora, sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}

.flow-step strong {
  display: block;
  font-family: Sora, sans-serif;
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 4px;
}

.flow-step small {
  color: var(--muted);
  font-size: 13px;
}

.flow-connector {
  width: 28px;
  height: 2px;
  background: var(--line);
  align-self: start;
  margin-top: 42px;
  position: relative;
}

.flow-connector::after {
  content: "";
  position: absolute;
  right: 0;
  top: -3px;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--line);
  border-top: 2px solid var(--line);
  transform: rotate(45deg);
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.capability-grid > div {
  border-top: 2px solid var(--fog);
  padding-top: 20px;
}

.capability-grid h3 {
  font-size: 16px;
}

.capability-grid p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

/* —— Extraction —— */
.extraction {
  background: var(--navy-deep);
  color: var(--white);
}

.extraction .section-heading > p:last-child {
  color: rgba(184, 200, 220, 0.92);
}

.extraction-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.extraction-visual {
  margin: 0;
}

.extraction-visual img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid rgba(94, 200, 255, 0.18);
  border-radius: 4px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.extraction-visual figcaption {
  margin-top: 14px;
  font-family: Sora, sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cyan);
}

.extraction-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.extraction-list li {
  padding: 14px 0 14px 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  font-size: 15px;
  color: rgba(214, 226, 240, 0.92);
}

.extraction-list li:first-child {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.extraction-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 8px;
  height: 8px;
  border: 2px solid var(--cyan);
  border-radius: 50%;
  transform: translateY(-50%);
}

.extraction-cta {
  margin-top: 40px;
}

/* —— Invoice extractor + plans —— */
.product {
  background: var(--mist);
}

.extractor-promo {
  margin: 0 0 40px;
  padding: 32px 36px 28px;
  background: var(--navy-deep);
  color: var(--white);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.extractor-promo-copy {
  max-width: 640px;
}

.extractor-promo-kicker {
  margin: 0 0 10px;
  font-family: Sora, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
}

.extractor-promo h2 {
  margin: 0 0 10px;
  font-family: Sora, sans-serif;
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--white);
}

.extractor-promo p {
  margin: 0 0 20px;
  color: #c5d4e4;
}

.extractor-promo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.extractor-promo .btn-ghost {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.35);
}

.extractor-promo .btn-ghost:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.invoice-flow {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.invoice-flow li {
  padding-top: 14px;
  border-top: 2px solid rgba(94, 200, 255, 0.28);
}

.invoice-flow li.highlight {
  border-top-color: var(--cyan);
}

.invoice-flow span {
  display: block;
  font-family: Sora, sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: var(--cyan);
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}

.invoice-flow strong {
  display: block;
  font-family: Sora, sans-serif;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--white);
}

.invoice-flow small {
  color: #9fb3c8;
  font-size: 12px;
}

.invoice-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 28px;
  align-items: stretch;
}

.invoice-grid-single {
  grid-template-columns: 1fr;
  max-width: 640px;
}

.invoice-uploader {
  border: 1px solid var(--line);
  background: var(--white);
  padding: 24px;
  border-radius: 8px;
  height: 100%;
}

.invoice-drop {
  border: 1px dashed #9ab0c6;
  background: var(--white);
  padding: 36px 24px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.invoice-drop:hover,
.invoice-drop:focus,
.invoice-drop.dragover {
  border-color: var(--blue);
  background: #f3f9ff;
  outline: none;
}

.invoice-drop strong {
  display: block;
  font-family: Sora, sans-serif;
  font-size: 18px;
  margin-bottom: 6px;
}

.invoice-drop p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 14px;
}

.invoice-browse {
  display: inline-block;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
}

.invoice-file-list {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.invoice-file-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  background: var(--white);
  border: 1px solid var(--line);
  font-size: 13px;
}

.invoice-file-list small {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.invoice-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.btn-quiet {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line);
}

.btn-quiet:hover {
  color: var(--ink);
  border-color: #9ab0c6;
}

.btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.invoice-status {
  min-height: 1.4em;
  margin: 14px 0 0;
  font-size: 14px;
  color: var(--muted);
}

.invoice-status.ok {
  color: #15955a;
}

.invoice-status.bad {
  color: #c53d3d;
}

.classify-progress {
  margin: 16px 0 0;
}

.classify-progress-label {
  margin: 0 0 8px;
  font-size: 14px;
  color: var(--muted);
}

.classify-progress-track {
  height: 8px;
  background: var(--fog);
  border-radius: 999px;
  overflow: hidden;
}

.classify-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--blue);
  transition: width 0.25s var(--ease);
}

.classify-progress-fill.is-indeterminate {
  width: 32%;
  animation: classify-progress-slide 1.2s ease-in-out infinite;
}

.classify-table .classify-checking {
  color: var(--muted);
  font-weight: 600;
  white-space: nowrap;
}

.classify-spin {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 6px;
  vertical-align: -2px;
  border: 2px solid var(--fog);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
  .classify-progress-fill {
    transition: none;
  }

  .classify-progress-fill.is-indeterminate,
  .classify-spin {
    animation: none;
  }

  .classify-progress-fill.is-indeterminate {
    width: 40%;
  }
}

@keyframes classify-progress-slide {
  0% {
    transform: translateX(-120%);
  }
  100% {
    transform: translateX(360%);
  }
}

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

.invoice-output {
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 8px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
}

.invoice-output h3 {
  font-size: 22px;
  margin-bottom: 4px;
}

.invoice-fields {
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: "IBM Plex Sans", monospace;
  font-size: 13px;
}

.invoice-fields li {
  padding: 8px 0;
  border-bottom: 1px solid var(--fog);
  color: #3d4f63;
}

.invoice-rule {
  margin: 14px 0 0;
  font-size: 14px;
  color: var(--muted);
}

.invoice-output .btn-quiet {
  margin-top: 22px;
  align-self: flex-start;
}

.invoice-rule a {
  color: var(--blue);
  font-weight: 600;
}

.invoice-rule a:hover {
  text-decoration: underline;
}

.product-plans {
  margin-top: 56px;
  padding-top: 48px;
  border-top: 1px solid var(--line);
}

.product-plans .section-heading {
  margin-bottom: 36px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.pricing-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 28px 24px 24px;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 8px;
  min-height: 100%;
}

.pricing-card.featured {
  border-color: var(--blue);
  box-shadow: 0 16px 40px rgba(26, 127, 212, 0.12);
  background: linear-gradient(180deg, #f4f9fe 0%, var(--white) 42%);
}

.pricing-badge {
  margin: 0 0 4px;
  font-family: Sora, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
}

.pricing-card h3 {
  margin: 0;
  font-size: 18px;
}

.pricing-price {
  margin: 8px 0 0;
  font-family: Sora, sans-serif;
  font-size: 40px;
  font-weight: 700;
  line-height: 1;
  color: var(--navy-deep);
}

.pricing-period {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.pricing-tokens {
  margin: 8px 0 4px;
  font-weight: 700;
  color: var(--navy);
}

.pricing-card ul {
  margin: 8px 0 20px;
  padding: 0;
  list-style: none;
  flex: 1;
}

.pricing-card li {
  padding: 8px 0;
  border-top: 1px solid var(--fog);
  font-size: 14px;
  color: #3d4f63;
}

.pricing-card .btn {
  width: 100%;
  text-align: center;
}

.pricing-card .btn-quiet {
  color: var(--navy);
  border-color: var(--line);
}

.pricing-notice {
  margin: 20px 0 0;
  padding: 14px 16px;
  border: 1px solid #e3c27a;
  background: #fff8e8;
  color: var(--navy);
  font-weight: 600;
}

.pricing-footnote {
  margin: 28px 0 0;
  font-size: 14px;
  color: var(--muted);
  max-width: 720px;
}

.doc-results {
  margin-top: 40px;
  overflow-x: auto;
}

.classify-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border: 1px solid var(--line);
}

.classify-table th,
.classify-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  vertical-align: top;
}

.classify-table th {
  font-family: Sora, sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--mist);
}

.classify-table tr:last-child td {
  border-bottom: none;
}

.classify-table .classify-missing {
  color: #c53d3d;
  font-weight: 700;
}

.doc-card {
  border: 1px solid var(--line);
  background: var(--white);
  padding: 22px 24px;
}

.doc-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin-bottom: 14px;
}

.doc-card-head h3 {
  margin: 0;
  font-size: 16px;
  flex: 1;
}

.doc-type {
  font-family: Sora, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: var(--radius);
}

.doc-type.invoice {
  background: #e7f2fc;
  color: #1a7fd4;
}

.doc-type.credit_note {
  background: #fff4da;
  color: #b27600;
}

.doc-type.unknown {
  background: var(--fog);
  color: var(--muted);
}

.doc-confidence {
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  color: var(--muted);
}

.doc-original {
  margin: 0 0 12px;
  font-size: 14px;
}

.doc-original strong {
  font-family: Sora, sans-serif;
  font-size: 13px;
  font-weight: 600;
}

.doc-evidence {
  margin: 0 0 14px;
  padding: 0 0 0 18px;
  color: #3d4f63;
  font-size: 14px;
}

.doc-text {
  margin: 0;
  max-height: 220px;
  overflow: auto;
  padding: 12px 14px;
  background: var(--mist);
  border: 1px solid var(--fog);
  font-size: 12px;
  white-space: pre-wrap;
  color: #3d4f63;
}

/* —— Quality —— */
.quality {
  background: var(--mist);
}

.quality-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.quality-panel {
  border: 1px solid var(--line);
  background: var(--white);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(6, 20, 34, 0.08);
}

.quality-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 22px;
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.7);
  font-family: Sora, sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.quality-header b {
  color: #3dd68c;
  font-weight: 700;
  position: relative;
  padding-left: 14px;
}

.quality-header b::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3dd68c;
  transform: translateY(-50%);
  animation: live-dot 1.6s ease-in-out infinite;
}

.quality-row {
  display: grid;
  grid-template-columns: 1fr auto 36px;
  gap: 16px;
  padding: 18px 22px;
  border-top: 1px solid var(--fog);
  align-items: center;
  font-size: 14px;
}

.quality-row strong {
  font-family: Sora, sans-serif;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}

.quality-row em {
  font-style: normal;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 13px;
}

.ok {
  background: #e5f7ee;
  color: #15955a;
}

.warn {
  background: #fff4da;
  color: #b27600;
}

.bad {
  background: #ffe9e9;
  color: #c53d3d;
}

.quality-footer {
  padding: 14px 22px;
  background: var(--fog);
  color: var(--muted);
  font-size: 12px;
}

.check-list {
  padding: 0;
  margin: 8px 0 0;
  list-style: none;
}

.check-list li {
  margin: 12px 0;
  padding-left: 28px;
  position: relative;
  color: #3d4f63;
  font-size: 15px;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 14px;
  height: 7px;
  border-left: 2px solid var(--blue);
  border-bottom: 2px solid var(--blue);
  transform: rotate(-45deg);
}

/* —— Process —— */
.process {
  background: var(--white);
}

.process-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  counter-reset: none;
}

.process-list li {
  padding: 0 20px 0 0;
  border-top: 2px solid var(--line);
  padding-top: 22px;
  position: relative;
}

.process-list li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: -1px;
  right: 8px;
  width: 12px;
  height: 2px;
  background: var(--blue);
  opacity: 0.35;
}

.process-list span {
  font-family: Sora, sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: 0.06em;
}

.process-list h3 {
  font-size: 18px;
  margin: 14px 0 8px;
}

.process-list p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

/* —— CTA / Contact —— */
.cta-section {
  background:
    radial-gradient(ellipse 50% 60% at 0% 100%, rgba(26, 127, 212, 0.28), transparent 50%),
    linear-gradient(145deg, #041525, #0b2a4a);
  color: var(--white);
  padding: 100px 0;
}

.cta-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
}

.cta-section h2 {
  font-size: clamp(34px, 4vw, 48px);
}

.cta-section .col-copy > p:not(.eyebrow) {
  color: rgba(184, 200, 220, 0.92);
  max-width: 440px;
  margin: 0;
  font-size: 17px;
}

.contact-form {
  position: relative;
  background: var(--white);
  color: var(--ink);
  padding: 28px;
  display: grid;
  gap: 14px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.28);
}

.contact-form .hp-field {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-form label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #4e6075;
  display: grid;
  gap: 6px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 13px;
  font: 400 15px "IBM Plex Sans", sans-serif;
  color: var(--ink);
  background: var(--mist);
  transition: border-color 0.2s, outline 0.2s;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: 2px solid rgba(26, 127, 212, 0.25);
  border-color: var(--blue-bright);
}

.contact-form .btn {
  justify-self: start;
  margin-top: 4px;
}

.form-note {
  font-size: 11px;
  color: #7a899b;
}

/* —— Footer —— */
footer {
  background: #020d18;
  color: #9aadc2;
  padding: 64px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}

.footer-logo {
  width: 200px;
  height: auto;
  margin-bottom: 16px;
  background: #fff;
  padding: 5px;
  border-radius: 4px;
}

.footer-grid p {
  max-width: 300px;
  font-size: 14px;
  margin: 0;
}

.footer-grid strong {
  display: block;
  color: var(--white);
  font-family: Sora, sans-serif;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 14px;
}

.footer-grid a {
  display: block;
  font-size: 14px;
  margin: 8px 0;
  color: #9aadc2;
  transition: color 0.2s;
}

.footer-grid a:hover {
  color: var(--white);
}

.copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 20px;
  font-size: 12px;
  color: #6a7f96;
}

/* —— Motion —— */
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes grid-drift {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 64px 64px;
  }
}

@keyframes glow-pulse {
  0%,
  100% {
    opacity: 0.85;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.06);
  }
}

@keyframes scan {
  0% {
    top: 18%;
    opacity: 0;
  }
  12% {
    opacity: 0.7;
  }
  88% {
    opacity: 0.7;
  }
  100% {
    top: 78%;
    opacity: 0;
  }
}

@keyframes live-dot {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

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

  .hero-logo,
  .hero h1,
  .hero-lead,
  .hero-actions,
  .hero-grid-lines,
  .hero-glow,
  .hero-scan,
  .quality-header b::before {
    animation: none !important;
  }

  .hero-logo,
  .hero h1,
  .hero-lead,
  .hero-actions {
    opacity: 1;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* —— Responsive —— */
@media (max-width: 1000px) {
  .process-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px 20px;
  }

  .process-list li:nth-child(2)::after {
    display: none;
  }

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

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

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

  .two-col,
  .quality-grid,
  .extraction-grid,
  .invoice-grid,
  .cta-inner {
    gap: 48px;
  }

  .automation-flow {
    grid-template-columns: 1fr 1fr;
    gap: 28px 24px;
  }

  .flow-connector {
    display: none;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(100% - 32px, 600px);
  }

  .nav-wrap {
    height: 64px;
    justify-content: flex-end;
  }

  .menu-toggle {
    display: flex;
  }

  .hero-logo {
    width: min(280px, 88%);
    padding: 5px;
    margin: 0 auto 24px;
  }

  .nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--navy-deep);
    padding: 12px 20px 24px;
    border-bottom: 1px solid rgba(94, 200, 255, 0.12);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    padding: 14px 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .nav-cta {
    text-align: center;
    margin-top: 12px;
    border-bottom: 0 !important;
  }

  .hero {
    min-height: auto;
    padding: 88px 0 56px;
    align-items: center;
  }

  .hero-content {
    padding-top: 0;
  }

  .section,
  .dark-section {
    padding: 80px 0;
  }

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

  .service-row {
    grid-template-columns: 40px 1fr;
    gap: 16px;
    padding: 26px 0;
  }

  .service-link {
    display: none;
  }

  .two-col,
  .quality-grid,
  .extraction-grid,
  .invoice-grid,
  .cta-inner,
  .footer-grid,
  .capability-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .automation-flow {
    grid-template-columns: 1fr 1fr;
  }

  .process-list {
    grid-template-columns: 1fr 1fr;
  }

  .invoice-flow {
    grid-template-columns: 1fr 1fr;
  }

  .process-list li::after {
    display: none;
  }

  .cta-section {
    padding: 72px 0;
  }

  .footer-grid {
    gap: 32px;
  }
}

@media (max-width: 430px) {
  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .automation-flow,
  .process-list,
  .invoice-flow {
    grid-template-columns: 1fr;
  }

  .quality-row {
    grid-template-columns: 1fr auto 28px;
  }

  .footer-logo {
    width: 148px;
  }
}
