/* ═══════════════════════════════════════════════════════
   INVOICING & PURCHASE ORDERS - WARM ARCHITECTURAL MINIMALISM
═══════════════════════════════════════════════════════ */

:root {
  --bg: #FAF8F5;
  --bg-alt: #F0EDE8;
  --bg-parchment: #E8E4DD;
  --surface: #FFFFFF;
  --primary: #1B3D2F;
  --primary-muted: #4A6358;
  --accent: #C67B5C;
  --accent-hover: #B36A4D;
  --text-headline: #2C2C2C;
  --text-body: #2C2C2C;
  --text-secondary: #6B6560;
  --text-muted: #9A9590;
  --border: #E8E4DD;
  --shadow-card: 0 2px 8px rgba(44,44,44,0.04), 0 8px 24px rgba(44,44,44,0.06);
  --shadow-hover: 0 4px 12px rgba(44,44,44,0.06), 0 16px 32px rgba(44,44,44,0.08);
  
  --max-width: 1200px;
  --section-padding-v: 160px;
  --card-padding: 32px;
  --card-radius: 2px;
}

/* ── Base ────────────────────────────────────────────── */
body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--text-body);
  background-color: var(--bg);
  line-height: 1.6;
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  color: var(--text-headline);
  font-weight: 400;
  margin: 0;
}

p {
  margin: 0;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

@media (min-width: 1024px) {
  .container {
    padding: 0 120px;
  }
}

/* ── Typography ──────────────────────────────────────── */
.h2 {
  font-size: 36px;
  line-height: 44px;
  letter-spacing: -0.005em;
}
@media (min-width: 768px) {
  .h2 {
    font-size: 48px;
    line-height: 56px;
  }
}

.overline {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 500;
  font-size: 11px;
  line-height: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.overline.center {
  text-align: center;
}

/* ── Buttons ─────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  border-radius: 0px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}
.btn-primary {
  background-color: var(--primary);
  color: #FAF8F5;
}
.btn-primary:hover {
  background-color: #2A4F3F;
}
.btn-secondary {
  background-color: transparent;
  border: 1px solid var(--primary);
  color: var(--primary);
}
.btn-secondary:hover {
  background-color: var(--primary);
  color: #FAF8F5;
}
.btn-accent {
  background-color: var(--accent);
  color: #FFFFFF;
  padding: 18px 36px;
}
.btn-accent:hover {
  background-color: var(--accent-hover);
}
.btn-tertiary {
  background-color: transparent;
  color: var(--primary);
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.btn-tertiary:hover {
  color: var(--primary-muted);
}

/* ── Motion ──────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── 1. Sticky Navigation ────────────────────────────── */
.feature-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  z-index: 100;
  background-color: transparent;
  transition: background-color 0.3s ease, border-bottom 0.3s ease;
}
.feature-nav.scrolled {
  background-color: var(--bg);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
@media (min-width: 1024px) {
  .nav-inner {
    padding: 0 120px;
  }
}
.wordmark {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  color: var(--primary);
  text-decoration: none;
}
.nav-center {
  display: none;
}
@media (min-width: 1024px) {
  .nav-center {
    display: flex;
    gap: 40px;
  }
}
.nav-link {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}
.nav-link:hover {
  color: var(--text-body);
}
.nav-cta-wrap {
  display: none;
  align-items: center;
}
@media (min-width: 1024px) {
  .nav-cta-wrap {
    display: flex;
  }
}
.nav-mobile-toggle {
  display: block;
  background: none;
  border: none;
  color: var(--primary);
  width: 44px;
  height: 44px;
  padding: 10px;
  cursor: pointer;
}
@media (min-width: 1024px) {
  .nav-mobile-toggle {
    display: none;
  }
}
.nav-mobile-panel {
  position: absolute;
  top: 80px;
  left: 0;
  right: 0;
  background-color: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  transform: translateY(-10px);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
}
.nav-mobile-panel.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.nav-mobile-panel a {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 16px;
  color: var(--text-body);
  text-decoration: none;
}

/* ── 2. Hero ─────────────────────────────────────────── */
.hero {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
  padding: 160px 0 128px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 64px;
  align-items: center;
}
@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 55% 45%;
    gap: 48px;
  }
}
.hero-title {
  font-weight: 300;
  font-size: 44px;
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin-bottom: 24px;
}
@media (min-width: 768px) {
  .hero-title {
    font-size: 64px;
    line-height: 72px;
  }
}
.hero-subhead {
  font-size: 19px;
  line-height: 30px;
  color: var(--text-secondary);
  max-width: 520px;
  margin-bottom: 40px;
}
.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.hero-fine-print {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 16px;
}

/* Hero Mockup */
.hero-mockup-card {
  background: var(--surface);
  border-radius: var(--card-radius);
  shadow: var(--shadow-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px;
}
.mockup-po-header {
  padding: 24px;
  border-bottom: 1px solid var(--border);
  border-left: 3px solid var(--primary);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.mockup-po-title-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mockup-po-title {
  font-weight: 500;
  color: var(--text-headline);
  font-size: 16px;
}
.mockup-po-vendor {
  color: var(--text-secondary);
}
.mockup-status-tag {
  background: var(--bg-alt);
  color: var(--text-secondary);
  padding: 4px 12px;
  border-radius: 2px;
  font-size: 12px;
  font-weight: 500;
}
.mockup-po-table-wrap {
  padding: 0;
  overflow-x: auto;
}
.mockup-po-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
.mockup-po-table th {
  padding: 16px 24px;
  font-weight: 500;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.mockup-po-table td {
  padding: 16px 24px;
  color: var(--text-body);
  border-bottom: 1px solid var(--border);
}
.mockup-po-table tr.alt td {
  background-color: var(--bg);
}
.mockup-po-footer {
  padding: 24px;
  background: var(--bg);
}
.mockup-po-details {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}
.mockup-po-details .sep {
  color: var(--border);
}
.mockup-po-link {
  font-size: 13px;
  color: var(--primary);
}

/* ── 3. Key Benefits Bar ─────────────────────────────── */
.benefits {
  background-color: var(--bg-alt);
  padding: 96px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.benefits-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}
@media (min-width: 768px) {
  .benefits-grid {
    grid-template-columns: 1fr auto 1fr auto 1fr;
    align-items: center;
    gap: 0;
  }
}
.benefit-divider {
  display: none;
}
@media (min-width: 768px) {
  .benefit-divider {
    display: block;
    width: 1px;
    height: 60px;
    background-color: var(--border);
    margin: 0 auto;
  }
}
.benefit-number {
  font-family: 'Playfair Display', serif;
  font-weight: 300;
  font-size: 56px;
  color: var(--primary);
  line-height: 1;
}
.benefit-label {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 8px;
}

/* ── 4. The Problem ──────────────────────────────────── */
.problem {
  background-color: var(--bg);
  padding: 96px 0;
}
@media (min-width: 768px) {
  .problem {
    padding: 160px 0;
  }
}
.problem-intro {
  text-align: center;
  margin-bottom: 24px;
}
.problem-body {
  font-size: 18px;
  line-height: 28px;
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto 80px;
  text-align: center;
}
.pillar-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  max-width: 1100px;
  margin: 0 auto;
}
@media (min-width: 1024px) {
  .pillar-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.pillar-card {
  background: var(--surface);
  padding: 32px;
  border-radius: var(--card-radius);
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.4s ease;
}
.pillar-card:hover {
  box-shadow: var(--shadow-hover);
}
.pillar-num {
  font-family: 'Playfair Display', serif;
  font-weight: 300;
  font-size: 48px;
  color: var(--primary-muted);
  opacity: 0.3;
  margin-bottom: 20px;
  line-height: 1;
}
.pillar-title {
  font-weight: 500;
  font-size: 20px;
  color: var(--text-headline);
  margin-bottom: 12px;
}
.pillar-body {
  font-size: 16px;
  line-height: 26px;
  color: var(--text-secondary);
}

/* ── 5. How It Works ─────────────────────────────────── */
.how-it-works {
  background-color: var(--bg-alt);
  padding: 96px 0;
}
@media (min-width: 768px) {
  .how-it-works {
    padding: 160px 0;
  }
}
.how-intro {
  text-align: center;
  margin-bottom: 16px;
}
.how-subhead {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 64px;
  text-align: center;
}
.step-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}
@media (min-width: 1024px) {
  .step-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
.step-card {
  background: var(--surface);
  padding: 32px;
  border-radius: var(--card-radius);
  box-shadow: var(--shadow-card);
  border-top: 3px solid var(--primary);
  transition: box-shadow 0.4s ease;
}
.step-card:hover {
  box-shadow: var(--shadow-hover);
}
.step-num {
  font-family: 'Playfair Display', serif;
  font-weight: 300;
  font-size: 36px;
  color: var(--primary);
  opacity: 0.4;
  margin-bottom: 16px;
  line-height: 1;
}
.step-title {
  font-weight: 500;
  font-size: 20px;
  color: var(--text-headline);
  margin-bottom: 10px;
}
.step-body {
  font-size: 15px;
  line-height: 24px;
  color: var(--text-secondary);
}

/* ── 6. Feature Deep Dive ────────────────────────────── */
.deep-dive {
  background-color: var(--bg);
  padding: 96px 0;
}
@media (min-width: 768px) {
  .deep-dive {
    padding: 160px 0;
  }
}
.deep-block {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 96px;
}
.deep-block:last-child {
  margin-bottom: 0;
}
@media (min-width: 1024px) {
  .deep-block {
    grid-template-columns: 55% 45%;
    gap: 80px;
  }
  .deep-block.reverse {
    grid-template-columns: 45% 55%;
  }
  .deep-block.reverse .deep-text {
    order: 2;
  }
  .deep-block.reverse .deep-mockup {
    order: 1;
  }
}
.deep-title {
  font-weight: 500;
  font-size: 26px;
  color: var(--text-headline);
  margin-bottom: 16px;
}
.deep-body {
  font-size: 17px;
  line-height: 26px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}
.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 16px;
  color: var(--text-body);
}
.check-list svg {
  width: 20px;
  height: 20px;
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 2px;
}

/* Deep Dive Mockups */
.mockup-card {
  background: var(--surface);
  border-radius: var(--card-radius);
  box-shadow: var(--shadow-card);
  padding: 32px;
  font-size: 14px;
}
.mockup-doc-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 24px;
}
.doc-logo {
  width: 40px;
  height: 40px;
  background: var(--bg-alt);
  border-radius: 2px;
}
.doc-meta {
  text-align: right;
}
.doc-title {
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-headline);
}
.doc-num {
  color: var(--text-muted);
  font-size: 13px;
}
.doc-to {
  margin-bottom: 24px;
  color: var(--text-secondary);
  line-height: 1.5;
}
.doc-to strong {
  color: var(--text-headline);
  font-weight: 500;
}
.doc-lines {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}
.doc-line {
  display: flex;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid var(--bg-alt);
}
.doc-line:last-child {
  border-bottom: none;
}
.doc-line-desc {
  color: var(--text-body);
}
.doc-line-qty, .doc-line-price {
  color: var(--text-secondary);
}
.doc-ship, .doc-terms {
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.5;
}
.doc-total {
  display: flex;
  justify-content: space-between;
  font-weight: 500;
  font-size: 16px;
  color: var(--text-headline);
  margin-bottom: 24px;
}

/* Workflow Diagram */
.workflow-diagram {
  background: var(--surface);
  border-radius: var(--card-radius);
  box-shadow: var(--shadow-card);
  padding: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.wf-node {
  background: var(--bg-alt);
  padding: 12px 24px;
  border-radius: 2px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  width: 100%;
  text-align: center;
  border: 1px solid var(--border);
}
.wf-node.active {
  background: var(--primary);
  color: #FAF8F5;
  border-color: var(--primary);
}
.wf-line {
  width: 2px;
  height: 24px;
  background: var(--border);
}
.wf-split {
  display: flex;
  gap: 16px;
  width: 100%;
}

/* ── 7. Use Case Spotlight ───────────────────────────── */
.spotlight {
  background-color: var(--primary);
  padding: 96px 0;
  position: relative;
  overflow: hidden;
}
@media (min-width: 768px) {
  .spotlight {
    padding: 128px 0;
  }
}
.spotlight-noise {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.03;
  pointer-events: none;
}
.spotlight-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 64px;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
@media (min-width: 1024px) {
  .spotlight-grid {
    grid-template-columns: 45% 55%;
    gap: 80px;
    align-items: center;
  }
}
.overline-light {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(250,248,245,0.5);
  margin-bottom: 20px;
}
.spotlight-h2 {
  font-size: 32px;
  line-height: 40px;
  color: #FAF8F5;
  margin-bottom: 20px;
}
@media (min-width: 768px) {
  .spotlight-h2 {
    font-size: 40px;
    line-height: 48px;
  }
}
.spotlight-body {
  font-size: 17px;
  line-height: 28px;
  color: rgba(250,248,245,0.75);
  margin-bottom: 24px;
}
.spotlight-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.result-card {
  background: rgba(250,248,245,0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(250,248,245,0.12);
  padding: 24px 28px;
  border-radius: var(--card-radius);
}
.result-num {
  font-family: 'Playfair Display', serif;
  font-weight: 300;
  font-size: 36px;
  color: #FAF8F5;
  line-height: 1;
  margin-bottom: 8px;
}
.result-label {
  font-size: 14px;
  color: rgba(250,248,245,0.7);
}

/* ── 8. Related Features ─────────────────────────────── */
.related {
  background-color: var(--bg-alt);
  padding: 96px 0;
}
@media (min-width: 768px) {
  .related {
    padding: 160px 0;
  }
}
.related-intro {
  text-align: center;
  margin-bottom: 16px;
}
.related-subhead {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 64px;
  text-align: center;
}
.related-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  max-width: 1100px;
  margin: 0 auto;
}
@media (min-width: 1024px) {
  .related-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.related-card {
  background: var(--surface);
  padding: 32px;
  border-radius: var(--card-radius);
  box-shadow: var(--shadow-card);
  border-top: 3px solid var(--primary);
  transition: box-shadow 0.4s ease;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.related-card:hover {
  box-shadow: var(--shadow-hover);
}
.related-badge {
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
}
.related-title {
  font-weight: 500;
  font-size: 20px;
  color: var(--text-headline);
  margin-bottom: 10px;
}
.related-body {
  font-size: 15px;
  line-height: 24px;
  color: var(--text-secondary);
  margin-bottom: 20px;
  flex-grow: 1;
}

/* ── 9. CTA Section ──────────────────────────────────── */
.cta-section {
  background-color: var(--bg);
  padding: 96px 0;
}
@media (min-width: 768px) {
  .cta-section {
    padding: 128px 0;
  }
}
.cta-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}
.cta-body {
  font-size: 18px;
  line-height: 28px;
  color: var(--text-secondary);
  max-width: 620px;
  margin: 0 auto 48px;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}
.cta-fine {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 16px;
}

/* ── 10. Footer ──────────────────────────────────────── */
.feature-footer {
  background-color: var(--primary);
  padding: 80px 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}
@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}
.footer-wordmark {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  color: #FAF8F5;
  text-decoration: none;
  display: block;
  margin-bottom: 12px;
}
.footer-tagline {
  font-size: 14px;
  line-height: 22px;
  color: rgba(250,248,245,0.6);
  max-width: 240px;
}
.footer-heading {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #FAF8F5;
  margin-bottom: 16px;
}
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links li {
  margin-bottom: 12px;
}
.footer-links a {
  font-size: 14px;
  color: rgba(250,248,245,0.65);
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer-links a:hover {
  color: #FAF8F5;
}
.footer-bottom {
  border-top: 1px solid rgba(250,248,245,0.12);
  margin-top: 48px;
  padding-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}
.footer-bottom-copy, .footer-bottom-links {
  font-size: 13px;
  color: rgba(250,248,245,0.4);
}
.footer-bottom-links a {
  color: rgba(250,248,245,0.4);
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer-bottom-links a:hover {
  color: #FAF8F5;
}
