/* ============================================================
   INVOICE INTELLIGENCE DESIGN SYSTEM — styles.css
   Imports Aigonix base tokens, then defines Invoice Intelligence
   Cobalt palette and all component styles.
   ============================================================ */

/* Base tokens loaded via <link> in HTML — no @import needed */

/* ============================================================
   INVOICE INTELLIGENCE — COBALT COLOUR TOKENS
   ============================================================ */

:root {

  /* Cobalt palette — Invoice Intelligence brand */
  --color-cobalt-dark: #1E4CA1; /* headings, hover states */
  --color-cobalt-mid:  #2A5BBF; /* primary CTA, accent */
  --color-cobalt-mist: #E8EEF8; /* tinted surface */
  --color-alert-red:   #C0392B; /* danger */

  /* Button accent — Cobalt Mid */
  --btn-accent-bg:    var(--color-cobalt-mid);
  --btn-accent-text:  #fafafa;
  --btn-accent-hover: var(--color-cobalt-dark);

  /* Text on dark */
  --color-text-on-dark:       #fafafa;
  --color-text-on-dark-muted: #A8B4CC;

  /* Form focus */
  --shadow-focus-cobalt: 0 0 0 3px rgba(42, 91, 191, 0.28);
}

/* ============================================================
   SECTION SURFACE OVERRIDES — Cobalt-specific
   ============================================================ */

.section--cobalt {
  background-color: var(--color-cobalt-dark);
  color: var(--color-text-on-dark);
}

.section--cobalt .label,
.section--cobalt .cobalt-label {
  color: #A8B4CC;
}

.section--cobalt h2,
.section--cobalt h3 {
  color: var(--color-text-on-dark);
}

/* ============================================================
   BUTTONS — Cobalt overrides
   ============================================================ */

.btn-primary {
  background-color: var(--color-cobalt-mid);
  color: var(--color-aigonix-white);
  border: none;
  border-radius: var(--radius-md);
  padding: 0.6875rem 1.5rem;
  font-family: var(--font-body);
  font-size: var(--text-small);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-normal);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 44px;
  transition: background-color var(--transition-base), box-shadow var(--transition-base);
}

.btn-primary:hover {
  background-color: var(--color-cobalt-dark);
  text-decoration: none;
  color: var(--color-aigonix-white);
  box-shadow: 0 4px 12px rgba(30, 76, 161, 0.35);
}

.btn-primary:focus-visible {
  outline: none;
  box-shadow: var(--shadow-focus-cobalt);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-cobalt-dark);
  border: 1.5px solid rgba(30, 76, 161, 0.4);
  border-radius: var(--radius-md);
  padding: 0.6875rem 1.5rem;
  font-family: var(--font-body);
  font-size: var(--text-small);
  font-weight: var(--weight-semibold);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 44px;
  transition: border-color var(--transition-base), background-color var(--transition-base), color var(--transition-base);
}

.btn-secondary:hover {
  border-color: var(--color-cobalt-dark);
  background-color: var(--color-cobalt-mist);
  color: var(--color-cobalt-dark);
  text-decoration: none;
}

.btn--sm {
  padding: 0.4375rem 1rem;
  font-size: 0.8125rem;
  min-height: 36px;
}

/* ============================================================
   NAV — Invoice Intelligence overrides
   ============================================================ */

.nav__logo-wordmark {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: var(--weight-semibold);
  letter-spacing: 0.04em;
  color: var(--color-cobalt-dark);
  line-height: 1.2;
}

.nav__link:hover,
.nav__drawer-link:hover {
  color: var(--color-cobalt-dark);
}

.nav__hamburger-line {
  background-color: var(--color-cobalt-dark);
}

.nav__drawer-close {
  color: var(--color-cobalt-dark);
}

.nav__by-aigonix:hover {
  color: var(--color-cobalt-dark);
  text-decoration: none;
}

/* II redefines .btn-primary (incl. display) after the base sheet, which
   re-shows the nav CTA on mobile. Re-hide it below the nav breakpoint so the
   hamburger drawer is the only mobile entry point (matches C2C). */
@media (max-width: 768px) {
  .nav__inner .nav__cta { display: none; }
}

/* ============================================================
   HERO
   ============================================================ */

.section--hero {
  padding-top: calc(var(--nav-height) + var(--space-5));
  padding-bottom: var(--space-10);
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: var(--color-aigonix-white);
  position: relative;
}

.hero__deco {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.hero__deco-svg {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}

.section--hero .container {
  position: relative;
  z-index: 1;
}

.section--hero .container {
  width: 100%;
  padding-inline: var(--gutter);
  position: relative;
  z-index: 1;
}

/* Hero text — dark on light background */
.section--hero .label {
  color: var(--color-cobalt-mid);
}

.section--hero h1 {
  color: var(--color-aigonix-black);
}

.section--hero .hero__subhead {
  color: var(--color-text-secondary);
}

.section--hero .btn-secondary {
  color: var(--color-cobalt-dark);
  border-color: rgba(30, 76, 161, 0.4);
}

.section--hero .btn-secondary:hover {
  background-color: var(--color-cobalt-mist);
  border-color: var(--color-cobalt-dark);
  color: var(--color-cobalt-dark);
}

.hero__grid {
  align-items: center;
  min-height: calc(70vh - var(--nav-height));
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-12px); }
}

@media (prefers-reduced-motion: no-preference) {
  .hero__visual {
    animation: float 5s ease-in-out infinite;
  }
}

.hero__copy {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.hero__copy .label {
  margin-bottom: calc(var(--space-3) - var(--space-6));
}

.hero__subhead {
  font-size: var(--text-body);
  line-height: var(--leading-relaxed);
  color: var(--color-text-secondary);
  max-width: 500px;
}

.hero__cta-group {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.hero__visual {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.hero-visual {
  width: 100%;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: none;
  background-color: var(--color-cobalt-mist);
  box-shadow: none;
}

.hero-visual--mock {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: var(--space-6);
}

/* Hero mock overrides for Cobalt */
.hero-visual--mock .mock-answer {
  background: var(--color-cobalt-mist);
  border-color: rgba(42, 91, 191, 0.15);
}

.hero-visual--mock .mock-answer__label {
  color: var(--color-cobalt-dark);
}

.hero-visual--mock .mock-bar-row__fill {
  background: var(--color-cobalt-mid);
}

.hero-visual--mock .mock-search__btn {
  border-radius: var(--radius-sm);
}

@media (max-width: 1024px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__grid > * { grid-column: span 1; }
  .hero__copy { grid-column: span 1; }
  .hero__visual { display: flex; justify-content: center; }
  .hero__visual .hero-visual { max-width: 480px; }
  .section--hero { min-height: auto; max-height: none; }
}

@media (max-width: 640px) {
  .section--hero {
    padding-top: calc(var(--nav-height) + var(--space-4));
    padding-bottom: var(--space-8);
  }
  .hero__cta-group { flex-direction: column; align-items: stretch; }
  .hero__cta-group .btn-primary,
  .hero__cta-group .btn-secondary { width: 100%; text-align: center; }
}

/* ============================================================
   PROBLEM
   ============================================================ */

.problem__grid { align-items: start; }

.problem__main {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.problem__main .section__header { margin-bottom: 0; }

.problem__body p { color: var(--color-text-secondary); margin-bottom: var(--space-4); }
.problem__body p:last-child { margin-bottom: 0; }

.problem__quotes {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-block: var(--space-8);
}

.problem__sidebar { padding-top: var(--space-4); }

.problem__sidebar-inner {
  position: sticky;
  top: calc(var(--nav-height) + var(--space-8));
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.problem__sidebar-label {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
  font-size: 0.625rem;
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--color-text-muted);
  align-self: flex-start;
}

.problem__pullquote {
  border-left: 2px solid var(--color-cobalt-mid);
  padding-left: var(--space-4);
}

.problem__pullquote p {
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  line-height: var(--leading-relaxed);
  color: var(--color-cobalt-dark);
}

@media (max-width: 1024px) {
  .problem__spacer { display: none; }
  .problem__main { grid-column: span 8; }
  .problem__sidebar { grid-column: span 4; }
}

@media (max-width: 768px) {
  .problem__spacer,
  .problem__sidebar { display: none; }
  .problem__main { grid-column: span 12; }
}

/* Testimonial quote cards ("Finance professionals describe the experience…").
   Three columns on desktop, stacked full-width on mobile so the quotes have
   room to read instead of wrapping one word per line. */
.problem__quotes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

@media (max-width: 768px) {
  .problem__quotes { grid-template-columns: 1fr; }
}

/* ============================================================
   VALUE CHAIN / QUERY CARDS
   ============================================================ */

.value-chain__intro {
  font-size: var(--text-body);
  color: var(--color-text-secondary);
  max-width: 600px;
  margin-top: var(--space-3);
  line-height: var(--leading-relaxed);
}

.value-chain__intro-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-12);
  align-items: center;
  margin-bottom: var(--space-10);
}

.value-chain__illustration {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

@media (max-width: 900px) {
  .value-chain__intro-grid {
    grid-template-columns: 1fr;
  }
  .value-chain__illustration {
    display: none;
  }
}

/* card overrides for query cards */
.card__meta {
  font-family: var(--font-mono);
  font-weight: var(--weight-medium);
  font-size: var(--text-label);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--color-cobalt-mid);
  margin-bottom: var(--space-3);
}

.card__question {
  font-size: 1.0625rem;
  line-height: var(--leading-relaxed);
  color: var(--color-text-primary);
  margin: 0;
}

.card:hover {
  border-color: var(--color-cobalt-mid);
}

/* ============================================================
   HOW IT WORKS — scroll-driven sticky layout
   ============================================================ */

/* section--clay = light surface */
.section--clay {
  background-color: #F3F5F9;
}

/* ============================================================
   PRODUCT / INTEGRATIONS — horizontal step cards
   (used by #product "What It Does" and #integrations sections)
   ============================================================ */

.how-it-works__flow {
  display: flex;
  align-items: stretch;
  gap: var(--space-4);
}

.how-it-works__step {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: var(--space-8);
  background-color: var(--color-aigonix-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
  min-height: 200px;
}

.how-it-works__step-num {
  font-family: var(--font-mono);
  font-size: 2.5rem;
  font-weight: var(--weight-medium);
  color: var(--color-cobalt-mid);
  line-height: 1;
  letter-spacing: -0.02em;
  opacity: 0.5;
}

.how-it-works__step-title {
  font-family: var(--font-heading);
  font-size: var(--text-h4);
  font-weight: var(--weight-medium);
  line-height: var(--leading-snug);
  letter-spacing: var(--tracking-tight);
  color: var(--color-cobalt-dark);
}

.how-it-works__step-body {
  font-size: var(--text-small);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
  flex-grow: 1;
}

.how-it-works__connector {
  display: none;
}

@media (max-width: 1024px) {
  .how-it-works__flow { flex-direction: column; gap: var(--space-3); }
  .how-it-works__step { min-height: 0; padding: var(--space-6); }
}

/* ============================================================
   HOW IT WORKS — STEP DETAIL PANELS
   ============================================================ */

.step-detail {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  padding-block: var(--space-10);
  border-top: 1px solid var(--color-border);
  margin-top: var(--space-8);
}

.step-detail__number-panel {
  background: var(--color-cobalt-mist);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(42, 91, 191, 0.12);
  padding: var(--space-8);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 140px;
  flex-shrink: 0;
}

.step-detail__big-number {
  font-family: var(--font-mono);
  font-size: 5rem;
  font-weight: var(--weight-bold);
  color: var(--color-cobalt-dark);
  line-height: 1;
  letter-spacing: -0.04em;
  opacity: 0.5;
}

.step-detail__content { flex: 1; }

.step-detail__heading {
  font-family: var(--font-heading);
  font-size: var(--text-h3);
  font-weight: var(--weight-regular);
  color: var(--color-cobalt-dark);
  margin-bottom: var(--space-5);
  letter-spacing: var(--tracking-tight);
  line-height: var(--leading-snug);
}

.step-detail__body p {
  font-size: var(--text-body);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-4);
}

.step-detail__body p:last-child { margin-bottom: 0; }

@media (min-width: 768px) {
  .step-detail {
    flex-direction: row;
    align-items: center;
    gap: var(--space-12);
    padding-block: var(--space-12);
  }
  .step-detail--reversed { flex-direction: row-reverse; }
  .step-detail__number-panel { flex: 0 0 220px; min-height: 200px; }
}

/* ============================================================
   PRODUCT CAPABILITIES
   ============================================================ */

.product-features {
  margin-top: var(--space-12);
  padding-top: var(--space-12);
  border-top: 1px solid var(--color-border);
}

.product-features__heading {
  font-family: var(--font-heading);
  font-size: var(--text-h3);
  font-weight: var(--weight-regular);
  color: var(--color-cobalt-dark);
  margin-bottom: var(--space-8);
  letter-spacing: var(--tracking-tight);
  line-height: var(--leading-snug);
}

.checklist--2col {
  grid-template-columns: 1fr;
}

.checklist__marker {
  font-family: var(--font-mono);
  font-weight: var(--weight-semibold);
  color: var(--color-cobalt-mid);
  flex: 0 0 auto;
}

@media (min-width: 768px) {
  .checklist--2col {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============================================================
   INTEGRATIONS
   ============================================================ */

.integrations__note {
  text-align: center;
  margin-top: var(--space-8);
  font-size: var(--text-small);
  color: var(--color-text-secondary);
}

.integrations__note a {
  color: var(--color-cobalt-mid);
}

.integrations__how-body {
  max-width: 680px;
  margin-top: var(--space-10);
}

.integrations__how-body p {
  font-size: var(--text-body);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-4);
}

.integrations__how-body p:last-child { margin-bottom: 0; }

/* card icon wrap cobalt */
.card__icon-wrap {
  width: 40px;
  height: 40px;
  background: var(--color-cobalt-mist);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
  color: var(--color-cobalt-mid);
  flex-shrink: 0;
}

.card__icon-wrap svg {
  width: 22px;
  height: 22px;
}

/* ============================================================
   USE CASES
   ============================================================ */

.use-cases__intro {
  font-size: var(--text-body);
  color: var(--color-text-secondary);
  max-width: 640px;
  margin-top: var(--space-4);
  line-height: var(--leading-relaxed);
}

.section__header--center .use-cases__intro {
  text-align: center;
  margin-inline: auto;
}

.use-case-block__eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: var(--text-label);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--color-cobalt-mid);
  margin-bottom: var(--space-4);
}

.use-case-block__cta-link {
  color: var(--color-cobalt-mid);
  font-weight: var(--weight-semibold);
}

.use-case-block__cta-link:hover {
  color: var(--color-cobalt-dark);
}

.use-case-block__list {
  list-style: none;
  padding: 0;
  margin: var(--space-4) 0 var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.use-case-block__list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-body);
  color: var(--color-text-secondary);
  line-height: 1.6;
  padding-left: 0;
}

.use-case-block__list li::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-cobalt-mid);
  flex-shrink: 0;
  margin-top: 9px;
}

/* ============================================================
   SECURITY / TRUST SECTION
   ============================================================ */

.security__intro {
  font-size: var(--text-body);
  color: var(--color-text-on-dark-muted);
  max-width: 560px;
  margin-top: var(--space-3);
  line-height: var(--leading-relaxed);
}

.security__grid { align-items: stretch; }

.security__card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.security__card-icon {
  color: #A8B4CC;
  flex-shrink: 0;
}

.security__card-icon svg {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.security__card-title {
  font-family: var(--font-heading);
  font-size: var(--text-h4);
  font-weight: var(--weight-medium);
  color: var(--color-text-on-dark);
  letter-spacing: var(--tracking-tight);
  line-height: var(--leading-snug);
}

.security__card-body {
  font-size: var(--text-small);
  color: var(--color-text-on-dark-muted);
  line-height: var(--leading-relaxed);
}

.security-checklist {
  margin-top: var(--space-10);
  padding-top: var(--space-8);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

/* Security list base */
.security-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6);
  list-style: none;
  padding: 0;
  margin: 0;
}

.security-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-small);
  color: var(--color-text-on-dark-muted);
  line-height: var(--leading-normal);
}

.security-item svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  stroke: #A8B4CC;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.section--cobalt .security-list { justify-content: flex-start; gap: var(--space-8); }

.section--cobalt .security-item {
  color: var(--color-text-on-dark-muted);
  font-size: var(--text-small);
}

.section--cobalt .security-item svg {
  stroke: #A8B4CC;
}

@media (max-width: 1024px) and (min-width: 640px) {
  .security__card { grid-column: span 6; }
}

@media (max-width: 640px) {
  .security__card { grid-column: span 12; }
  .section--cobalt .security-list { flex-direction: column; gap: var(--space-4); }
}

/* ============================================================
   FAQ
   ============================================================ */

.faq {
  margin-top: var(--space-12);
  padding-top: var(--space-10);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  max-width: 680px;
}

.faq__heading {
  font-family: var(--font-heading);
  font-size: var(--text-h3);
  font-weight: var(--weight-regular);
  color: var(--color-text-on-dark);
  margin-bottom: var(--space-8);
  letter-spacing: var(--tracking-tight);
  line-height: var(--leading-snug);
}

.faq__item {
  padding-block: var(--space-6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

.faq__item:last-child { border-bottom: none; }

.faq__question {
  font-family: var(--font-heading);
  font-size: var(--text-h4);
  font-weight: var(--weight-medium);
  color: var(--color-text-on-dark);
  margin-bottom: var(--space-3);
  letter-spacing: var(--tracking-tight);
  line-height: var(--leading-normal);
}

.faq__answer {
  font-size: var(--text-body);
  color: var(--color-text-on-dark-muted);
  line-height: var(--leading-relaxed);
  margin: 0;
}

/* ============================================================
   CTA SECTION
   ============================================================ */

.section--cta {
  background-color: #162E66;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.cta__centered {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-6);
  max-width: 600px;
  margin: 0 auto;
}

.cta__btn {
  margin-top: var(--space-2);
}

.cta__overline {
  font-family: var(--font-mono);
  font-size: var(--text-label);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: #A8B4CC;
}

.section--cta h2 {
  color: var(--color-text-on-dark);
}

.cta__body {
  font-size: var(--text-body);
  color: rgba(250, 250, 250, 0.7);
  line-height: var(--leading-relaxed);
}

/* Dark form variant — used inside the CTA section */
.form--dark .form__label {
  color: rgba(255, 255, 255, 0.85);
}

.form--dark .form__optional,
.form--dark .form__required {
  color: rgba(255, 255, 255, 0.45);
}

.form--dark .form__input,
.form--dark .form__select,
.form--dark .form__textarea {
  background-color: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.form--dark .form__select option {
  background-color: #162E66;
  color: #fff;
}

.form--dark .form__input::placeholder,
.form--dark .form__textarea::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.form--dark .form__input:focus,
.form--dark .form__select:focus,
.form--dark .form__textarea:focus {
  border-color: rgba(168, 180, 204, 0.6);
  box-shadow: 0 0 0 3px rgba(168, 180, 204, 0.15);
}

.form--dark .form__select-wrap::after {
  border-color: rgba(255, 255, 255, 0.5) transparent transparent transparent;
}

.form--dark .form__error-msg {
  color: #FF9999;
}

.form--dark .form__success {
  color: rgba(255, 255, 255, 0.85);
}

.form--dark .form__error-submit {
  color: #FF9999;
}

.form--dark .form__error-submit a {
  color: #FF9999;
}

/* ============================================================
   DEMO FORM SECTION
   ============================================================ */

.section--demo-form {
  background-color: #F3F5F9;
}

.demo-intro {
  font-size: var(--text-body);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
  max-width: 640px;
  margin-bottom: var(--space-4);
}

.demo-layout {
  display: flex;
  flex-direction: column;
  gap: var(--space-12);
  margin-top: var(--space-10);
}

.demo-info { flex: 1; }

.demo-info p {
  font-size: var(--text-body);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-4);
}

.demo-info p:last-child { margin-bottom: 0; }

.demo-form-wrap {
  flex: 1;
  background: var(--color-aigonix-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-10);
  box-shadow: 0 4px 24px rgba(30, 76, 161, 0.06);
}

/* Form input base styles */
.form__input,
.form__select,
.form__textarea {
  display: block;
  width: 100%;
  padding: 0.6875rem 0.875rem;
  font-family: var(--font-body);
  font-size: var(--text-body);
  color: var(--color-aigonix-black);
  background-color: var(--color-aigonix-white);
  border: 1px solid #C0CCE0;
  border-radius: var(--radius-md);
  outline: none;
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
  min-height: 44px;
  appearance: none;
  -webkit-appearance: none;
}

.form__select {
  padding-right: 2.5rem; /* room for chevron */
  cursor: pointer;
}

.form__textarea {
  min-height: 120px;
  resize: vertical;
  line-height: var(--leading-relaxed);
}

.form__input::placeholder,
.form__textarea::placeholder {
  color: #9AAAC0;
}

/* Form — cobalt focus override */
.form__input:focus,
.form__select:focus,
.form__textarea:focus {
  border-color: var(--color-cobalt-mid);
  box-shadow: var(--shadow-focus-cobalt);
}

.form__optional {
  font-size: var(--text-label);
  color: var(--color-text-muted);
  margin-left: var(--space-1);
}

@media (min-width: 1024px) {
  .demo-layout {
    flex-direction: row;
    align-items: flex-start;
  }
  .demo-info { flex: 0 0 45%; }
  .demo-form-wrap { flex: 0 0 50%; }
}

/* ============================================================
   FOOTER — Invoice Intelligence dark Cobalt
   ============================================================ */

.ii-footer {
  background-color: var(--color-cobalt-dark);
  color: var(--color-text-on-dark);
  padding-bottom: var(--space-8);
}

.ii-footer .footer__grid {
  display: grid;
  grid-template-columns: 3fr 2fr 2fr 2fr;
  gap: var(--space-8);
  padding-block: var(--space-16) var(--space-8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
  margin-block-end: var(--space-6);
}

.footer__logo-wordmark {
  font-family: var(--font-mono);
  font-size: var(--text-small);
  font-weight: var(--weight-semibold);
  letter-spacing: 0.04em;
  color: var(--color-text-on-dark);
  text-decoration: none;
  display: block;
  margin-bottom: var(--space-4);
}

.footer__logo-wordmark:hover {
  color: rgba(250, 250, 250, 0.8);
  text-decoration: none;
}

.footer__tagline {
  font-size: 0.8125rem;
  color: rgba(250, 250, 250, 0.55);
  line-height: var(--leading-relaxed);
  max-width: 240px;
  margin-bottom: var(--space-3);
}

.footer__by-aigonix {
  color: rgba(250, 250, 250, 0.45);
  border-left-color: rgba(255, 255, 255, 0.15);
  display: inline-block;
  margin-bottom: var(--space-4);
}

.footer__socials {
  display: flex;
  gap: var(--space-4);
  margin-top: var(--space-2);
}

.footer__social-link {
  color: rgba(250, 250, 250, 0.55);
  opacity: 1;
  transition: color var(--transition-base);
  display: flex;
  align-items: center;
  text-decoration: none;
}

.footer__social-link:hover {
  color: #fff;
}

.footer__social-link:focus-visible {
  outline: 2px solid rgba(168, 180, 204, 0.5);
  outline-offset: 3px;
  border-radius: 2px;
}

.ii-footer .footer__heading {
  font-family: var(--font-body);
  font-size: var(--text-label);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: rgba(250, 250, 250, 0.45);
  margin-bottom: var(--space-4);
  display: block;
}

.ii-footer .footer__col nav {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.ii-footer .footer__link {
  font-size: var(--text-small);
  color: rgba(250, 250, 250, 0.65);
  text-decoration: none;
  transition: color var(--transition-base);
  display: block;
}

.ii-footer .footer__link:hover {
  color: #fff;
  text-decoration: none;
}

.ii-footer .footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--text-label);
  color: rgba(250, 250, 250, 0.35);
  flex-wrap: wrap;
  gap: var(--space-3);
}

.ii-footer .footer__legal-link {
  font-size: var(--text-label);
  color: rgba(250, 250, 250, 0.35);
  text-decoration: none;
  transition: color var(--transition-base);
}

.ii-footer .footer__legal-link:hover {
  color: rgba(250, 250, 250, 0.7);
}

@media (max-width: 1024px) {
  .ii-footer .footer__grid { grid-template-columns: 1fr 1fr; gap: var(--space-8) var(--space-6); }
}

@media (max-width: 640px) {
  .ii-footer .footer__grid { grid-template-columns: 1fr; gap: var(--space-6); padding-block: var(--space-10) var(--space-6); }
  .footer__tagline { max-width: none; }
  .ii-footer .footer__bottom { flex-direction: column; text-align: center; gap: var(--space-2); }
}

/* ============================================================
   MOCK COMPONENTS — Cobalt accent overrides
   ============================================================ */

.mock-answer__label {
  color: var(--color-cobalt-dark);
}

.mock-bar-row__fill {
  background: var(--color-cobalt-mid);
}

.mock-list__open {
  color: var(--color-cobalt-mid);
}

.mock-list__open:hover {
  color: var(--color-cobalt-dark);
}

/* ============================================================
   PULL QUOTES — Cobalt accent
   ============================================================ */

.pull-quote {
  background: var(--color-cobalt-mist);
  border-left: 4px solid var(--color-cobalt-mid);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 0;
  padding: var(--space-5) var(--space-6) var(--space-4) var(--space-6);
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-style: italic;
  font-weight: var(--weight-regular);
  color: var(--color-aigonix-black);
  line-height: 1.65;
}

/* ============================================================
   CODE BLOCK (query examples) — Cobalt accent
   ============================================================ */

.code-block {
  list-style: none;
  padding: var(--space-6);
  background: var(--color-cobalt-mist);
  border-left: 3px solid var(--color-cobalt-mid);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin-block: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.code-block li {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  line-height: var(--leading-relaxed);
  color: var(--color-cobalt-dark);
}

.code-block li::before {
  content: '"';
  color: var(--color-cobalt-mid);
  margin-right: var(--space-1);
}

/* ============================================================
   STEPS (horizontal) — Cobalt accent
   ============================================================ */

.step__number {
  font-family: var(--font-mono);
  font-size: 3rem;
  font-weight: var(--weight-bold);
  color: var(--color-cobalt-dark);
  line-height: 1;
  letter-spacing: -0.04em;
  opacity: 0.35;
  flex-shrink: 0;
}

/* ============================================================
   SECTION HEADER UTILITIES
   ============================================================ */

.section__header {
  margin-bottom: var(--space-10);
}

.section__header--center {
  text-align: center;
}

.section__header--center h2,
.section__header--center .label {
  margin-inline: auto;
}

/* ============================================================
   STAGGER DELAYS
   ============================================================ */

.card-grid .card:nth-child(1) { transition-delay: 0ms; }
.card-grid .card:nth-child(2) { transition-delay: 80ms; }
.card-grid .card:nth-child(3) { transition-delay: 160ms; }

.security__card:nth-child(1) { transition-delay: 0ms; }
.security__card:nth-child(2) { transition-delay: 80ms; }
.security__card:nth-child(3) { transition-delay: 160ms; }
.security__card:nth-child(4) { transition-delay: 240ms; }

/* ============================================================
   MOCK COMPONENTS — hero search/answer demonstration
   ============================================================ */

@keyframes blink {
  0%, 50%      { opacity: 1; }
  50.01%, 100% { opacity: 0; }
}

.hero-visual--mock {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.mock-search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid #D0D5E0;
  border-radius: var(--radius-md);
  padding: 10px 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.mock-search__icon {
  color: #8899BB;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}

.mock-search__input {
  flex: 1 1 auto;
  padding: 2px 4px;
  font-family: var(--font-body);
  font-size: 13.5px;
  color: var(--color-aigonix-black);
  line-height: 1.4;
}

.mock-search__caret {
  display: inline-block;
  width: 1px;
  height: 16px;
  background: var(--color-aigonix-black);
  margin-left: 2px;
  vertical-align: -3px;
  animation: blink 1.1s steps(1) infinite;
}

@media (prefers-reduced-motion: reduce) {
  .mock-search__caret {
    animation: none;
    opacity: 1;
  }
}

.mock-search__btn {
  flex: 0 0 auto;
}

/* Answer card */
.mock-answer {
  margin-top: var(--space-3);
  background: #EEF3FB;
  border: 1px solid rgba(42, 91, 191, 0.18);
  border-radius: var(--radius-md);
  padding: 16px 20px;
}

.mock-answer__label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-heading);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-cobalt-dark);
  margin-bottom: 8px;
}

.mock-answer__text {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.6;
  color: #2A2E3A;
  margin: 0;
}

.mock-answer__text strong {
  font-weight: 600;
  color: var(--color-aigonix-black);
}

/* Stat tiles */
.mock-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-2);
  margin-top: var(--space-3);
}

.mock-stat {
  background: #ffffff;
  border: 1px solid #D0D5E0;
  border-radius: var(--radius-md);
  padding: 10px 12px;
}

.mock-stat__label {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8899BB;
  margin: 0 0 4px;
}

.mock-stat__value {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 18px;
  color: var(--color-aigonix-black);
  margin: 0;
}

.mock-stat__sub {
  font-size: 11px;
  color: #8899BB;
  margin: 3px 0 0;
}

/* Bar chart rows */
.mock-bars {
  margin-top: var(--space-3);
  background: #ffffff;
  border: 1px solid #D0D5E0;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.mock-bar-row {
  display: grid;
  grid-template-columns: 48px 1fr 72px;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
}

.mock-bar-row + .mock-bar-row {
  border-top: 1px solid #D0D5E0;
}

.mock-bar-row__month {
  font-family: var(--font-heading);
  font-size: 11px;
  color: #8899BB;
  font-weight: 600;
  text-transform: uppercase;
}

.mock-bar-row__track {
  height: 7px;
  background: #E8EEF8;
  border-radius: var(--radius-full);
  overflow: hidden;
}

.mock-bar-row__fill {
  display: block;
  height: 100%;
  background: var(--color-cobalt-mid);
  border-radius: var(--radius-full);
}

.mock-bar-row__value {
  font-family: var(--font-heading);
  font-size: 12px;
  color: var(--color-aigonix-black);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* Mock invoice list */
.mock-list {
  background: #ffffff;
  border: 1px solid #D0D5E0;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.mock-list__head,
.mock-list__row {
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.8fr 0.8fr 70px;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
}

.mock-list__head {
  background: #F0F4FB;
  border-bottom: 1px solid #D0D5E0;
}

.mock-list__head span {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8899BB;
}

.mock-list__head span:nth-child(3),
.mock-list__head span:nth-child(4),
.mock-list__head span:nth-child(5) {
  text-align: right;
}

.mock-list__row + .mock-list__row {
  border-top: 1px solid #D0D5E0;
}

.mock-list__doc {
  font-family: var(--font-heading);
  font-size: 12px;
  color: var(--color-aigonix-black);
}

.mock-list__sub {
  font-size: 11px;
  color: #8899BB;
  margin-top: 2px;
}

.mock-list__supplier {
  font-size: 13px;
  color: var(--color-aigonix-black);
}

.mock-list__num {
  font-family: var(--font-heading);
  font-size: 12px;
  color: var(--color-aigonix-black);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* ============================================================
   USE CASES TEASER
   ============================================================ */

.uc-teaser-grid {
  display: grid;
  gap: var(--space-6);
  margin-top: var(--space-10);
}

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

.uc-teaser-card {
  background: var(--color-base-light);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: background var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base);
}

.uc-teaser-card:hover {
  background: #2A5BBF;
  border-color: #2A5BBF;
  box-shadow: 0 8px 28px rgba(0,0,0,0.15);
}

.uc-teaser-card__title {
  font-family: var(--font-heading);
  font-size: var(--text-h3);
  font-weight: var(--weight-regular);
  color: var(--color-text-primary);
  line-height: var(--leading-snug);
  letter-spacing: var(--tracking-tight);
  transition: color var(--transition-base);
}

.uc-teaser-card__body {
  font-size: var(--text-small);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
  flex-grow: 1;
  transition: color var(--transition-base);
}

.uc-teaser-card:hover .uc-teaser-card__title,
.uc-teaser-card:hover .uc-teaser-card__body,
.uc-teaser-card:hover .label {
  color: #ffffff;
}

.uc-teaser__cta { margin-top: var(--space-8); }

@media (max-width: 1024px) {
  .uc-teaser-grid--3 { grid-template-columns: 1fr; }
  .uc-teaser-grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .uc-teaser-grid--4 { grid-template-columns: 1fr; }
}

.mock-list__open {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 12px;
  color: var(--color-cobalt-mid);
  text-decoration: none;
  text-align: right;
  display: block;
}

.mock-list__open:hover {
  text-decoration: underline;
}

@media (max-width: 640px) {
  .mock-list__head,
  .mock-list__row {
    grid-template-columns: 1.2fr 0.8fr 60px;
  }

  .mock-list__head span:nth-child(3),
  .mock-list__head span:nth-child(4),
  .mock-list__row .mock-list__date,
  .mock-list__row .mock-list__gl {
    display: none;
  }
}

/* Caption */
.mock-caption {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 500;
  color: #8899BB;
  text-align: center;
  margin-top: var(--space-3);
  letter-spacing: 0.02em;
}

/* ============================================================
   PORTED CLASSES — 44 missing definitions
   Sourced from: Invoice Intelligence/webpages/assets/css/style.css
   Token mapping applied per porting rules (08-06-2026).
   ============================================================ */

/* ---- BUTTONS ---- */

/* .btn — base button (alias: original .btn) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: var(--weight-semibold);
  text-decoration: none;
  transition: background-color 150ms ease, box-shadow 150ms ease, border-color 150ms ease, color 150ms ease;
  white-space: nowrap;
  min-height: 44px;
}

.btn:focus-visible {
  outline: none;
  box-shadow: var(--shadow-focus-cobalt);
}

/* .btn--full */
.btn--full {
  width: 100%;
}

/* .btn--primary — alias to .btn-primary styles with BEM naming */
.btn--primary {
  background: var(--color-cobalt-mid);
  color: #fafafa;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  padding: 12px 24px;
  font-size: 15px;
}

.btn--primary:hover {
  background: var(--color-cobalt-dark);
  box-shadow: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.05);
  text-decoration: none;
  color: #fafafa;
}

.btn--primary:active {
  background: #163a82;
  transform: scale(0.98);
}

.btn--primary:disabled {
  background: #D0D5E0;
  color: #8899BB;
  cursor: not-allowed;
  box-shadow: none;
}

/* ---- CARD GRID ---- */

/* .card-grid--3 — 3-column grid variant */
/* Base .card-grid is 1fr; --3 activates at 1024px */
@media (min-width: 1024px) {
  .card-grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---- CHECKLIST ---- */

.checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6) var(--space-10);
}

.checklist__item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: 15px;
  color: var(--color-aigonix-black);
  line-height: 1.6;
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--color-border);
}

.checklist__marker svg {
  display: block;
  margin-top: 6px;
}

@media (min-width: 640px) {
  .checklist {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---- CONTAINER NARROW ---- */

.container--narrow {
  max-width: 1100px;
}

/* ---- EXPECT LIST ---- */

.expect-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

.expect-list li {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  font-size: var(--text-body);
  color: #3A3F4A;
  line-height: 1.65;
}

.expect-list li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-cobalt-mid);
  flex-shrink: 0;
  margin-top: 8px;
}

/* ---- FORM ---- */

.form {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.form__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

@media (min-width: 640px) {
  .form__row--2col {
    grid-template-columns: 1fr 1fr;
  }
}

.form__field {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.form__label {
  font-size: var(--text-small);
  font-weight: var(--weight-medium);
  color: #3A3F4A;
}

.form__required {
  color: var(--color-alert-red);
  margin-left: var(--space-1);
}

.form__error-msg {
  font-size: var(--text-small);
  color: var(--color-alert-red);
  display: none;
}

.form__error-msg.visible {
  display: block;
}

.form__error-submit {
  display: none;
  font-size: var(--text-small);
  color: var(--color-alert-red);
}

.form__select-wrap {
  position: relative;
}

.form__select-wrap::after {
  content: '';
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid #8899BB;
  pointer-events: none;
}

.form__success {
  display: none;
  font-size: var(--text-body);
  color: var(--color-cobalt-mid);
  font-weight: var(--weight-medium);
}

/* ---- INTEGRATION TAGS ---- */

.integration-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
  margin-top: var(--space-6);
}

.integration-tag {
  font-family: var(--font-body);
  font-size: var(--text-label);
  font-weight: var(--weight-medium);
  color: var(--color-cobalt-dark);
  letter-spacing: 0.03em;
  padding: var(--space-1) var(--space-3);
  border: 1px solid rgba(30, 76, 161, 0.2);
  border-radius: var(--radius-full, 999px);
  background: var(--color-cobalt-mist);
}

/* ---- MOCK FIGURE ---- */

.mock-figure {
  margin-top: var(--space-8);
  background: var(--color-aigonix-white);
  border: 1px solid #D0D5E0;
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  box-shadow: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.05);
}

/* ---- PROBLEM CLOSE ---- */

.problem-close-wrap {
  background: var(--color-cobalt-dark);
  border-radius: var(--radius-md);
  padding: var(--space-10) var(--space-8);
  margin-top: var(--space-10);
  text-align: center;
}

.problem-close {
  font-family: var(--font-mono);
  font-size: clamp(1.1rem, 2vw, 1.375rem);
  font-weight: var(--weight-semibold);
  color: rgba(245, 243, 239, 0.92);
  margin: 0;
  line-height: 1.55;
  letter-spacing: 0.01em;
}

/* ---- PULL QUOTE SOURCE ---- */

.pull-quote__source {
  display: block;
  font-size: var(--text-label);
  font-style: normal;
  font-weight: var(--weight-medium);
  color: var(--color-cobalt-dark);
  margin-top: var(--space-4);
  padding-top: var(--space-3);
  border-top: 1px solid rgba(42, 91, 191, 0.2);
  letter-spacing: 0.01em;
  opacity: 0.75;
}

.pull-quote__source::before {
  content: '— ';
  opacity: 0.5;
}

/* ---- CARD GRID ---- */

.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--grid-gap);
  width: 100%;
}

@media (min-width: 640px) {
  .card-grid--2 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .card-grid--3 { grid-template-columns: repeat(3, 1fr); }
  .card-grid--4 { grid-template-columns: repeat(4, 1fr); }
}

/* ---- SECTION PROBLEM / VALUE CHAIN ---- */

/* .section--problem */
.section--problem {
  background-color: var(--color-aigonix-white);
}

@media (max-width: 1024px) {
  .section--problem .grid .col-7,
  .section--problem .grid .col-5,
  .section--problem .grid .hero__visual {
    grid-column: 1 / -1;
  }
  .section--problem .grid .hero__visual {
    order: 2;
    margin-top: var(--space-8);
  }
  .section--problem .grid .col-7 {
    order: 1;
  }
  .section--problem .grid .hero__visual .hero-visual {
    max-width: 480px;
    margin: 0 auto;
  }
}

/* .section--value-chain — cobalt mist surface for visual alternation */
.section--value-chain {
  background-color: var(--color-cobalt-mist);
}

/* ---- SECTION BODY ---- */

/* .section__body — layout container, full width */
.section__body {
  width: 100%;
  margin-top: var(--space-10);
}

/* ---- STEPS ---- */

.steps {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  position: relative;
}

.steps::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 32px;
  bottom: 0;
  width: 2px;
  background: #D0D5E0;
}

.step {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
  position: relative;
}

.step__content {
  padding-top: var(--space-1);
}

.step__title {
  font-size: var(--text-h4);
  font-weight: var(--weight-semibold);
  color: var(--color-aigonix-black);
  margin-bottom: var(--space-2);
}

.step__body {
  font-size: var(--text-small);
  color: #3A3F4A;
  max-width: 240px;
}

/* section__body is now full-width — no override list needed */

@media (min-width: 1024px) {
  .steps--horizontal {
    flex-direction: row;
    gap: var(--space-6);
    position: relative;
  }

  /* Remove the connector line that clips through step circles */
  .steps--horizontal::before {
    display: none;
  }

  .steps--horizontal .step {
    flex-direction: column;
    align-items: flex-start;
    flex: 1;
    padding: var(--space-6);
    background: var(--color-aigonix-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
  }

  .steps--horizontal .step__number {
    margin-bottom: var(--space-4);
  }

  .steps--horizontal .step__body {
    max-width: none;
  }
}

/* Vertical steps: hide the connector line too (only useful at mobile) */
@media (max-width: 1023px) {
  .steps::before {
    display: none;
  }
}

/* ---- STEPS POSTSCRIPT ---- */

.steps-postscript {
  font-size: var(--text-body);
  font-weight: var(--weight-semibold);
  color: var(--color-aigonix-black);
  margin-top: var(--space-8);
  margin-bottom: 0;
}

/* ---- SUBSECTION HEADING ---- */

.subsection-heading {
  font-size: var(--text-h4);
  font-weight: var(--weight-semibold);
  color: var(--color-aigonix-black);
  margin-bottom: var(--space-3);
  margin-top: var(--space-8);
}

/* ---- USE CASE BLOCKS ---- */

.use-case-block {
  padding-block: var(--space-16);
  border-bottom: 1px solid var(--color-border);
}

.use-case-block:last-child {
  border-bottom: none;
}

.use-case-block--alt {
  background: var(--color-cobalt-mist);
}

.use-case-block--reversed .use-case-block__inner {
  /* reversed handled below in responsive rules */
}

.use-case-block__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.use-case-block__text {
  flex: 1;
}

.use-case-block__visual {
  display: none; /* Hidden on mobile */
}

.use-case-block__heading {
  margin-bottom: var(--space-4);
}

.use-case-block--alt .use-case-block__placeholder {
  background: var(--color-aigonix-white);
  border-color: rgba(42, 91, 191, 0.2);
}

.use-case-block__heading {
  font-size: var(--text-h3);
  color: var(--color-cobalt-dark);
  letter-spacing: var(--tracking-tight);
}

.use-case-block__problem-heading {
  font-size: var(--text-h4);
  font-weight: var(--weight-semibold);
  color: var(--color-cobalt-dark);
  margin-top: var(--space-8);
  margin-bottom: var(--space-3);
}

.use-case-block__body {
  font-size: var(--text-body);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-4);
  line-height: var(--leading-relaxed);
}

.use-case-block__placeholder {
  background: var(--color-aigonix-white);
  border: 1px dashed #C0CCE0;
  border-radius: var(--radius-xl);
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-label);
  font-family: var(--font-mono);
  color: #8899BB;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  width: 100%;
}

@media (min-width: 768px) {
  .use-case-block__inner {
    flex-direction: row;
    align-items: center;
  }

  .use-case-block--reversed .use-case-block__inner {
    flex-direction: row-reverse;
  }

  .use-case-block__text {
    flex: 0 0 60%;
  }

  .use-case-block__visual {
    display: flex;
    flex: 0 0 40%;
  }
}

@media (min-width: 1024px) {
  .use-case-block {
    padding-block: var(--space-20);
  }
}

/* ============================================================
   INVOICE INTELLIGENCE POLISH PASS — additional refinements
   ============================================================ */

/* Hero label is redundant (product name = h1) — style it as a category label */
.hero__copy .label {
  margin-bottom: 0;
  color: var(--color-cobalt-mid);
}

/* Hero subhead */
.hero__subhead {
  font-size: 1.125rem;
  color: var(--color-text-secondary);
}

/* Section rhythm summary for II:
   Hero (white) → Problem (white) → What You Can Ask (mist, set above) →
   How It Works (clay/F3F5F9) → Product (white) → Integrations (clay) →
   Use Cases (white/mist alternating) → Security (cobalt dark) →
   CTA (cobalt dark) → Demo form (F3F5F9)
*/

/* Problem section: label for section header */
.section--problem .section__header--left {
  gap: var(--space-4);
}

/* Section headers: consistent spacing */
.section__header--left h2 {
  max-width: 720px;
}

/* Problem quotes: spacing */
.problem__quotes {
  gap: var(--space-6);
}

/* How it works step numbers — Cobalt accent */
.how-it-works__step-num {
  font-size: 2.75rem;
}


/* Product features heading */
.product-features__heading {
  font-size: var(--text-h3);
  color: var(--color-cobalt-dark);
}

/* Integrations how-body: wider */
.integrations__how-body {
  max-width: 800px;
}

/* Use case section — header max-width */
#use-cases .section__header--center h2 {
  max-width: 640px;
}

/* Security cards grid — explicit row gap */
.security__grid {
  row-gap: var(--space-6);
}

/* Demo form: tighten */
.demo-form-wrap {
  padding: var(--space-8);
}

@media (min-width: 1024px) {
  .demo-form-wrap {
    padding: var(--space-10);
  }
}

/* Footer wordmark: slightly larger */
.footer__logo-wordmark {
  font-size: var(--text-body);
  letter-spacing: 0.02em;
}

/* Nav link hover cobalt */
.nav__link:hover {
  color: var(--color-cobalt-dark);
}

/* Checklist items */
.checklist__item {
  font-size: var(--text-body);
  line-height: var(--leading-relaxed);
}

/* card hover state on query cards */
.card-grid .card {
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.card-grid .card:hover {
  border-color: var(--color-cobalt-mid);
  box-shadow: 0 4px 16px rgba(42, 91, 191, 0.1);
}

/* Integrations section: add top separator from how-it-works */
#integrations {
  border-top: none;
}

/* Use cases intro paragraph */
.use-cases__intro {
  max-width: 680px;
}

/* Security section: ensure cards are visually distinct */
.security__card {
  transition: background-color var(--transition-base);
}

/* FAQ: questions are h3 but shouldn't have heading font */
.faq__question {
  font-family: var(--font-body);
}

/* Pull quote: larger quote text */
.pull-quote {
  font-size: 1.0625rem;
}

/* Demo layout: info section top padding */
.demo-info {
  padding-top: var(--space-2);
}

/* Expect list: slightly larger */
.expect-list li {
  font-size: 1.0625rem;
}
