:root {
  --white: #FFFFFF;
  --ink: #16140F;
  --ink-soft: #5C5850;
  --accent: #E8A33D;
  --accent-deep: #C7842A;
  --accent-soft: #FBEBD1;
  --paper: #F8F6F1;
  --line: #EAE7E0;
  --radius: 14px;
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Hanken Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;
  --space-1: 8px;  --space-2: 12px; --space-3: 16px; --space-4: 24px;
  --space-5: 32px; --space-6: 48px; --space-7: 64px; --space-8: 96px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 32px; position: relative; }
a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0 0 var(--space-3);
}
h1 { font-size: clamp(2.5rem, 4.6vw, 3.8rem); font-weight: 700; }
h2 { font-size: clamp(1.75rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.35rem, 2.2vw, 1.75rem); }

p { line-height: 1.65; color: var(--ink-soft); margin: 0 0 var(--space-3); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent-deep);
  margin: 0 0 var(--space-2);
  font-weight: 500;
}

.step-marker {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-soft);
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 3px 9px;
  border-radius: 999px;
  margin-bottom: var(--space-2);
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 999px; font-weight: 600; font-size: 0.95rem;
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--ink); color: var(--white); }
.btn-primary:hover { background: var(--accent-deep); box-shadow: 0 8px 20px rgba(199,132,42,0.28); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink-soft); padding: 11px 14px; }
.btn-ghost:hover { color: var(--ink); }
.btn-lg { padding: 14px 26px; font-size: 1rem; }
.btn-primary svg { flex-shrink: 0; }

/* Header-specific CTAs: demo pill + divider + icon button */
.btn-demo {
  background: var(--ink); color: var(--white);
  padding: 10px 10px 10px 18px; font-size: 0.9rem;
}
.btn-demo:hover { background: var(--accent-deep); }
.btn-demo svg { flex-shrink: 0; }

.header-divider { width: 1px; height: 24px; background: var(--line); flex-shrink: 0; }

.btn-icon {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--paper); color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s ease, transform 0.15s ease;
  flex-shrink: 0;
}
.btn-icon:hover { background: var(--accent-soft); color: var(--accent-deep); transform: translateY(-1px); }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  width: 40px; height: 40px; flex-shrink: 0;
  background: none; border: none; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 4px;
}
.nav-toggle span {
  width: 18px; height: 1.6px; background: var(--ink); border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5.6px) rotate(-45deg); }

.mobile-nav {
  display: none;
  flex-direction: column;
  max-width: 1160px; margin: 8px auto 0;
  background: var(--white); border: 1px solid var(--line); border-radius: 18px;
  box-shadow: 0 16px 40px rgba(22,20,15,0.1);
  padding: 8px;
  max-height: 0; overflow: hidden; opacity: 0;
  transition: max-height 0.25s ease, opacity 0.2s ease;
}
.mobile-nav.open { max-height: 900px; opacity: 1; padding: 12px; overflow-y: auto; }
.mobile-nav-link {
  padding: 13px 14px; font-size: 1rem; font-weight: 500; color: var(--ink);
  border-radius: 10px;
}
.mobile-nav-link:hover { background: var(--paper); }

/* Mobile accordion for Product / Use cases / Resources */
.mobile-accordion { border-radius: 10px; }
.mobile-accordion summary.mobile-nav-link {
  display: flex; align-items: center; justify-content: space-between;
  cursor: pointer; list-style: none;
}
.mobile-accordion summary::-webkit-details-marker { display: none; }
.mobile-accordion summary::after {
  content: ''; width: 7px; height: 7px;
  border-right: 1.5px solid var(--ink-soft); border-bottom: 1.5px solid var(--ink-soft);
  transform: rotate(45deg); transition: transform 0.18s ease; flex-shrink: 0;
}
.mobile-accordion[open] summary::after { transform: rotate(225deg); }
.mobile-submenu { display: flex; flex-direction: column; padding: 2px 4px 10px 14px; }
.mobile-submenu-heading {
  font-family: var(--font-mono); font-size: 0.72rem; color: var(--ink-soft);
  margin: 10px 0 4px; padding: 0 10px;
}
.mobile-submenu-heading:first-child { margin-top: 4px; }
.mobile-submenu-link {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 10px; border-radius: 9px; font-size: 0.92rem; color: var(--ink-soft);
}
.mobile-submenu-link:hover { background: var(--paper); color: var(--ink); }
.mobile-submenu-link-badged { color: var(--ink); }

.mobile-nav-ctas { display: flex; flex-direction: column; gap: 10px; padding: 10px 8px 4px; }
.mobile-nav-ctas .btn { width: 100%; }
.mobile-nav-ctas .btn-demo { justify-content: center; padding: 12px 18px; }

/* Header - floating bar */
.site-header {
  position: sticky; top: 16px; z-index: 50;
  padding: 0 24px;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between; height: 68px;
  max-width: 1160px; margin: 0 auto;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 10px 0 22px;
  box-shadow: 0 12px 32px rgba(22,20,15,0.08), 0 2px 8px rgba(22,20,15,0.04);
}
.logo { display: flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; letter-spacing: -0.01em; }
.logo-mark { color: var(--accent-deep); display: flex; }
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav > a {
  color: var(--ink-soft); font-size: 0.87rem; font-weight: 500;
  padding: 8px 10px; border-radius: 8px; transition: background 0.15s, color 0.15s;
}
.main-nav > a:hover { color: var(--ink); background: var(--paper); }
.header-ctas { display: flex; align-items: center; gap: 10px; }

/* Mega menu */
.nav-item { position: relative; }
.nav-trigger {
  font-family: var(--font-body);
  background: none; border: none; cursor: pointer;
  color: var(--ink-soft); font-size: 0.87rem; font-weight: 500;
  padding: 8px 10px; border-radius: 8px;
  display: flex; align-items: center; gap: 5px;
  transition: background 0.15s, color 0.15s;
}
.nav-trigger::after {
  content: ''; width: 6px; height: 6px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg); margin-top: -3px; transition: transform 0.18s ease;
}
.nav-trigger:hover { color: var(--ink); background: var(--paper); }
.has-mega:hover .nav-trigger::after,
.has-mega:focus-within .nav-trigger::after { transform: rotate(225deg); margin-top: 3px; }

.mega-menu {
  position: absolute; top: calc(100% + 14px); left: 50%;
  transform: translateX(-50%) translateY(4px);
  width: 500px; background: var(--white); border: 1px solid var(--line);
  border-radius: 18px; box-shadow: 0 20px 48px rgba(22,20,15,0.12), 0 4px 12px rgba(22,20,15,0.06);
  padding: 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  opacity: 0; visibility: hidden;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}
.mega-menu-single { width: 220px; grid-template-columns: 1fr; }
.has-mega:hover .mega-menu, .has-mega:focus-within .mega-menu {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}
.mega-heading { font-family: var(--font-mono); font-size: 0.74rem; color: var(--ink-soft); margin: 4px 0 10px; padding: 0 10px; }
.mega-link { display: flex; align-items: flex-start; gap: 11px; padding: 10px; border-radius: 12px; transition: background 0.15s; }
.mega-link:hover { background: var(--paper); }
.mega-icon {
  flex-shrink: 0; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
  background: var(--accent-soft); color: var(--accent-deep); border-radius: 9px;
}
.mega-link strong { display: block; font-size: 0.9rem; font-weight: 600; color: var(--ink); }
.mega-link small { display: block; font-size: 0.79rem; color: var(--ink-soft); margin-top: 2px; line-height: 1.4; }

.mega-link-sm {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 9px 10px; border-radius: 9px; font-size: 0.89rem; font-weight: 500; color: var(--ink);
  transition: background 0.15s;
}
.mega-link-sm:hover { background: var(--paper); }
.badge-soon {
  font-family: var(--font-mono); font-size: 0.63rem; font-weight: 500;
  background: var(--accent-soft); color: var(--accent-deep);
  padding: 2px 7px; border-radius: 999px; white-space: nowrap;
}

/* Hero */
.hero { position: relative; padding: var(--space-8) 0 var(--space-8); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-blob-1 { position: absolute; top: -200px; right: -220px; width: 680px; height: 680px; fill: var(--accent-soft); opacity: 0.55; }
.hero-blob-2 { position: absolute; top: 120px; right: 40px; width: 180px; height: 180px; fill: var(--paper); opacity: 0.9; }
.dot-grid {
  position: absolute; left: -30px; bottom: -10px; width: 280px; height: 280px;
  background-image: radial-gradient(var(--line) 1.6px, transparent 1.6px);
  background-size: 22px 22px; opacity: 0.9;
}

/* Reusable soft corner accents for section-transition polish */
.section-accent {
  position: absolute; z-index: 0; pointer-events: none;
  width: 220px; height: 220px;
  background-image: radial-gradient(var(--line) 1.5px, transparent 1.5px);
  background-size: 20px 20px;
  opacity: 0.7;
}
.section-accent-tl { top: -40px; left: -40px; mask-image: radial-gradient(circle at top left, black 40%, transparent 75%); -webkit-mask-image: radial-gradient(circle at top left, black 40%, transparent 75%); }
.section-accent-bl { bottom: -40px; left: -40px; mask-image: radial-gradient(circle at bottom left, black 40%, transparent 75%); -webkit-mask-image: radial-gradient(circle at bottom left, black 40%, transparent 75%); }

/* Pricing page */
.pricing-hero { position: relative; padding: var(--space-8) 0 var(--space-6); overflow: hidden; }
.pricing-hero-inner { position: relative; z-index: 1; max-width: 640px; }
.pricing-hero-inner h1 { font-size: clamp(2.2rem, 4vw, 3rem); }

.calculator-section { padding: var(--space-6) 0 var(--space-7); }
.calculator-layout { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 20px; align-items: start; }
.calculator-card {
  background: var(--white); border: 1px solid var(--line); border-radius: 20px;
  box-shadow: 0 24px 56px rgba(22,20,15,0.08), 0 4px 14px rgba(22,20,15,0.04);
  padding: var(--space-5) var(--space-6) var(--space-6);
}
.calculator-top { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap; margin-bottom: var(--space-5); }
.calculator-top h2 { margin: 0; font-size: 1.35rem; }
.calc-note { font-size: 0.84rem; color: var(--ink-soft); margin: var(--space-3) 0 0; line-height: 1.5; }

.billing-toggle { display: flex; align-items: center; gap: 10px; }
.billing-label { font-size: 0.9rem; font-weight: 500; color: var(--ink-soft); display: flex; align-items: center; gap: 6px; }
.billing-label.active { color: var(--ink); }
.toggle-switch {
  width: 44px; height: 26px; border-radius: 999px; background: var(--line);
  border: none; cursor: pointer; position: relative; flex-shrink: 0; transition: background 0.2s ease;
}
.toggle-switch[aria-checked="true"] { background: var(--accent-deep); }
.toggle-knob {
  position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--white); transition: transform 0.2s ease;
}
.toggle-switch[aria-checked="true"] .toggle-knob { transform: translateX(18px); }

.calc-result {
  display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  background: var(--paper); border-radius: 14px; padding: 18px 22px; margin-bottom: 18px;
}
.calc-plan-name { display: block; font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; }
.calc-plan-sub { display: block; font-size: 0.88rem; color: var(--ink-soft); margin-top: 3px; }
.calc-price { display: flex; align-items: baseline; gap: 4px; }
.calc-price-num { font-family: var(--font-mono); font-size: 2rem; font-weight: 500; color: var(--accent-deep); }
.calc-price-period { font-size: 0.9rem; color: var(--ink-soft); }

.sku-slider,
.po-slider,
.loc-slider {
  width: 100%; margin: 8px 0 6px; -webkit-appearance: none; appearance: none;
  height: 6px; border-radius: 999px; background: var(--line); outline: none;
}
.sku-slider::-webkit-slider-thumb,
.po-slider::-webkit-slider-thumb,
.loc-slider::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 22px; height: 22px; border-radius: 50%;
  background: var(--ink); border: 3px solid var(--white); box-shadow: 0 2px 8px rgba(22,20,15,0.25); cursor: pointer;
}
.sku-slider::-moz-range-thumb,
.po-slider::-moz-range-thumb,
.loc-slider::-moz-range-thumb {
  width: 22px; height: 22px; border-radius: 50%; background: var(--ink); border: 3px solid var(--white);
  box-shadow: 0 2px 8px rgba(22,20,15,0.25); cursor: pointer;
}
.slider-ticks { display: flex; justify-content: space-between; font-size: 0.78rem; color: var(--ink-soft); font-family: var(--font-mono); margin-bottom: 0; }
.calc-slider-group { margin-bottom: var(--space-4); }
.calc-slider-label { font-size: 0.9rem; font-weight: 600; color: var(--ink); margin: 0 0 10px; display: flex; align-items: baseline; gap: 6px; }
.calc-slider-value { font-family: var(--font-mono); font-weight: 500; color: var(--accent-deep); font-size: 0.85rem; }
.calc-cta { width: 100%; }

/* Sliding recommendation panel */
.calc-plans-panel {
  position: relative;
  background: var(--paper); border: 1px solid var(--line); border-radius: 20px;
  padding: 10px; display: flex; flex-direction: column; gap: 8px;
}
.calc-highlight {
  position: absolute; left: 10px; right: 10px; top: 10px; height: 0;
  background: var(--ink); border-radius: 14px; z-index: 0;
  transition: top 0.32s cubic-bezier(0.4, 0, 0.2, 1), height 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 12px 28px rgba(22,20,15,0.22);
}
.calc-plan-tile {
  position: relative; z-index: 1;
  padding: 13px 16px; border-radius: 14px;
  transition: color 0.25s ease;
}
.cpt-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cpt-name { font-family: var(--font-display); font-weight: 600; font-size: 1rem; }
.cpt-price-wrap { display: flex; align-items: center; gap: 6px; }
.cpt-price { font-family: var(--font-mono); font-size: 0.92rem; color: var(--ink-soft); transition: color 0.25s ease; }
.cpt-savings {
  font-family: var(--font-mono); font-size: 0.64rem; font-weight: 500;
  background: var(--accent-soft); color: var(--accent-deep);
  padding: 2px 7px; border-radius: 999px; white-space: nowrap;
}
.cpt-savings:empty { display: none; }
.calc-plan-tile.is-current .cpt-savings { background: rgba(255,255,255,0.18); color: var(--white); }
.cpt-sub { display: block; font-size: 0.8rem; color: var(--ink-soft); margin-top: 3px; line-height: 1.4; transition: color 0.25s ease; }
.calc-plan-tile.is-current { color: var(--white); }
.calc-plan-tile.is-current .cpt-price,
.calc-plan-tile.is-current .cpt-sub { color: rgba(255,255,255,0.75); }
.calc-plans-panel .calc-cta { margin-top: 6px; }
.calc-trial-note { font-size: 0.78rem; color: var(--ink-soft); text-align: center; margin: 10px 4px 2px; line-height: 1.45; }

.plans-section-heading {
  text-align: center; font-family: var(--font-mono); font-size: 0.82rem;
  color: var(--ink-soft); margin: 0 0 var(--space-4);
}

@media (max-width: 900px) {
  .calculator-layout { grid-template-columns: 1fr; }
}

/* Plan cards */
.plans-section { padding-top: 0; }
.plans-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.plan-card {
  background: var(--white); border: 1px solid var(--line); border-radius: 18px;
  padding: 26px 22px; display: flex; flex-direction: column; transition: border-color 0.2s ease, transform 0.2s ease;
}
.plan-card.is-recommended { border-color: var(--accent-deep); box-shadow: 0 12px 32px rgba(199,132,42,0.14); transform: translateY(-3px); }
.plan-card-featured { border-color: var(--ink); }
.plan-badge {
  align-self: flex-start; font-family: var(--font-mono); font-size: 0.7rem; font-weight: 500;
  background: var(--ink); color: var(--white); padding: 3px 10px; border-radius: 999px; margin-bottom: 10px;
}
.plan-name { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; margin: 0 0 8px; }
.plan-price { display: flex; align-items: baseline; gap: 4px; margin-bottom: 2px; }
.plan-price-num { font-family: var(--font-mono); font-size: 1.7rem; font-weight: 500; }
.plan-price-period { font-size: 0.85rem; color: var(--ink-soft); }
.plan-savings {
  display: inline-block; font-family: var(--font-mono); font-size: 0.7rem; font-weight: 500;
  color: var(--accent-deep); background: var(--accent-soft);
  padding: 2px 8px; border-radius: 999px; min-height: 1.2em; margin: 0 0 8px;
}
.plan-savings:empty { padding: 0; background: none; margin: 0 0 8px; }
.plan-trial { font-size: 0.82rem; color: var(--ink-soft); margin: 0 0 16px; }
.plan-features { list-style: none; padding: 0; margin: 0 0 20px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.plan-features li { font-size: 0.88rem; color: var(--ink-soft); padding-left: 20px; position: relative; line-height: 1.4; }
.plan-features li::before {
  content: ''; position: absolute; left: 0; top: 6px; width: 12px; height: 8px;
  border-left: 1.6px solid var(--accent-deep); border-bottom: 1.6px solid var(--accent-deep);
  transform: rotate(-45deg);
}
.plan-card .btn { width: 100%; }
.plans-footnote { text-align: center; font-size: 0.82rem; color: var(--ink-soft); margin-top: var(--space-4); }

/* FAQ */
.faq-section { position: relative; padding: var(--space-8) 0; background: var(--paper); border-top: 1px solid var(--line); overflow: hidden; }
.faq-wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 0.8fr 1.2fr; gap: var(--space-6); }
.faq-intro h2 { margin-bottom: 10px; }
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item {
  background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 4px 20px;
}
.faq-item summary {
  padding: 16px 0; cursor: pointer; list-style: none; font-weight: 600; font-size: 1rem;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ''; width: 9px; height: 9px; flex-shrink: 0;
  border-right: 1.6px solid var(--ink-soft); border-bottom: 1.6px solid var(--ink-soft);
  transform: rotate(45deg); transition: transform 0.18s ease;
}
.faq-item[open] summary::after { transform: rotate(225deg); }
.faq-answer { padding: 0 0 18px; }
.faq-answer p { margin: 0; font-size: 0.94rem; }

@media (max-width: 900px) {
  .plans-grid { grid-template-columns: 1fr 1fr; }
  .faq-wrap { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .plans-grid { grid-template-columns: 1fr; }
  .calculator-top { flex-direction: column; }
}

/* Feature page: cost-adjustment methods */
.methods-row { overflow: hidden; }
.methods-heading { text-align: center; max-width: 640px; margin: 0 auto var(--space-6); }
.methods-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.method-card { display: flex; flex-direction: column; }
.method-mockup { margin-bottom: var(--space-3); }
.method-mockup-body { min-height: 170px; display: flex; flex-direction: column; justify-content: center; gap: 10px; padding: 22px; }
.method-card h3 { margin-bottom: 8px; }
.method-card p { font-size: 0.92rem; margin-bottom: 0; }

/* Weighted average mockup */
.wa-row { display: flex; align-items: center; justify-content: space-between; background: var(--paper); border-radius: 8px; padding: 8px 12px; font-size: 0.85rem; }
.wa-label { font-family: var(--font-mono); font-size: 0.7rem; color: var(--ink-soft); }
.wa-val { font-weight: 600; }
.wa-plus { text-align: center; font-size: 0.85rem; color: var(--ink-soft); }
.wa-divider { height: 1px; background: var(--line); margin: 2px 0; }
.wa-result { display: flex; align-items: baseline; justify-content: space-between; padding: 2px 4px; }
.wa-result span { font-size: 0.82rem; color: var(--ink-soft); }
.wa-result strong { font-family: var(--font-mono); font-size: 1.15rem; color: var(--accent-deep); }

/* FIFO mockup */
.fifo-layer { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-radius: 10px; font-size: 0.85rem; background: var(--white); border: 1px dashed var(--line); }
.fifo-layer span { color: var(--ink-soft); font-size: 0.78rem; }
.fifo-layer strong { font-weight: 600; }
.fifo-layer-selling { background: var(--accent-soft); border: 1px solid var(--accent); }

/* Immediate replacement mockup */
.repl-swap { display: flex; align-items: center; justify-content: center; gap: 16px; }
.repl-old { font-family: var(--font-mono); font-size: 1.1rem; color: var(--ink-soft); text-decoration: line-through; text-decoration-color: var(--line); }
.repl-arrow { color: var(--ink-soft); font-size: 1.2rem; }
.repl-new { font-family: var(--font-mono); font-size: 1.4rem; font-weight: 500; color: var(--accent-deep); }

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

/* Feature page: currency conversion mockups */
.supplier-currency-card { background: var(--paper); border-radius: 12px; padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.scc-row { display: flex; align-items: center; justify-content: space-between; font-size: 0.88rem; }
.scc-label { color: var(--ink-soft); }
.scc-val { font-weight: 600; }
.scc-currency { font-family: var(--font-mono); background: var(--white); border: 1px solid var(--line); padding: 2px 10px; border-radius: 999px; }
.scc-toggle-row { display: flex; align-items: center; justify-content: space-between; font-size: 0.85rem; color: var(--ink-soft); padding-top: 8px; border-top: 1px solid var(--line); }
.scc-toggle-pill { font-family: var(--font-mono); font-size: 0.72rem; background: var(--ink); color: var(--white); padding: 3px 10px; border-radius: 999px; }

.rate-mockup { display: flex; flex-direction: column; gap: 10px; }
.rate-option { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--white); }
.rate-option-active { border-color: var(--accent-deep); background: var(--accent-soft); }
.rate-radio { width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--line); flex-shrink: 0; position: relative; }
.rate-option-active .rate-radio { border-color: var(--accent-deep); }
.rate-option-active .rate-radio::after { content: ''; position: absolute; inset: 3px; border-radius: 50%; background: var(--accent-deep); }
.rate-option div { flex: 1; display: flex; flex-direction: column; }
.rate-title { font-weight: 600; font-size: 0.88rem; }
.rate-sub { font-size: 0.76rem; color: var(--ink-soft); }
.rate-value { font-family: var(--font-mono); font-weight: 500; }
.rate-value-muted { color: var(--ink-soft); }

.flow-mini { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; }
.flow-mini-step { display: flex; flex-direction: column; align-items: center; background: var(--paper); border-radius: 10px; padding: 12px 14px; min-width: 100px; }
.flow-mini-step span { font-family: var(--font-mono); font-weight: 500; font-size: 0.95rem; }
.flow-mini-step small { font-size: 0.7rem; color: var(--ink-soft); margin-top: 4px; text-align: center; }
.flow-mini-step-final { background: var(--accent-soft); }
.flow-mini-step-final span { color: var(--accent-deep); }
.flow-mini-arrow { color: var(--ink-soft); font-size: 1rem; }

/* Feature page: supplier management mockups */
.supplier-profile-mockup { display: flex; flex-direction: column; }
.spm-field { display: flex; align-items: center; justify-content: space-between; padding: 11px 4px; border-bottom: 1px solid var(--line); font-size: 0.86rem; }
.spm-field-last { border-bottom: none; }
.spm-field span { color: var(--ink-soft); }
.spm-field strong { font-weight: 600; }

.supplier-dropdown-mockup { display: flex; flex-direction: column; gap: 6px; }
.sdm-label { font-family: var(--font-mono); font-size: 0.72rem; color: var(--ink-soft); margin-bottom: 2px; }
.sdm-select { display: flex; align-items: center; justify-content: space-between; background: var(--white); border: 1.5px solid var(--ink); border-radius: 8px; padding: 10px 12px; font-weight: 600; font-size: 0.88rem; margin-bottom: 6px; }
.sdm-chevron { color: var(--ink-soft); }
.sdm-option { padding: 9px 12px; border-radius: 8px; font-size: 0.86rem; color: var(--ink-soft); }
.sdm-option-selected { background: var(--paper); color: var(--ink); font-weight: 600; }
.sdm-option-new { color: var(--accent-deep); font-weight: 600; border-top: 1px dashed var(--line); margin-top: 4px; padding-top: 12px; }

.supplier-history-mockup { display: flex; flex-direction: column; gap: 4px; }
.shm-header { display: flex; align-items: center; justify-content: space-between; font-weight: 600; font-size: 0.92rem; padding: 4px 4px 10px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.shm-count { font-family: var(--font-mono); font-size: 0.72rem; color: var(--ink-soft); font-weight: 400; }
.shm-row { display: flex; align-items: center; justify-content: space-between; padding: 9px 4px; font-size: 0.85rem; }
.shm-trend { font-family: var(--font-mono); color: var(--accent-deep); font-size: 0.8rem; }
.shm-trend-down { color: #2E7D46; }

/* Feature page: unique profile identity card (variant treatment) */
.profile-identity-card {
  background: var(--white); border: 1px solid var(--line); border-radius: 20px;
  padding: 26px; box-shadow: 0 20px 48px rgba(22,20,15,0.08), 0 4px 14px rgba(22,20,15,0.04);
}
.pic-header { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.pic-avatar {
  width: 48px; height: 48px; border-radius: 50%; background: var(--ink); color: var(--white);
  display: flex; align-items: center; justify-content: center; font-family: var(--font-display);
  font-weight: 600; font-size: 0.95rem; flex-shrink: 0;
}
.pic-header div { display: flex; flex-direction: column; }
.pic-name { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; }
.pic-sub { font-size: 0.8rem; color: var(--ink-soft); margin-top: 2px; }
.pic-badge-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pic-badge { background: var(--paper); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 3px; }
.pic-badge-label { font-family: var(--font-mono); font-size: 0.68rem; color: var(--ink-soft); }
.pic-badge-val { font-weight: 600; font-size: 0.88rem; }
.pic-badge-accent { background: var(--accent-soft); }
.pic-badge-accent .pic-badge-val { color: var(--accent-deep); }

@media (max-width: 480px) {
  .pic-badge-grid { grid-template-columns: 1fr; }
}

/* Feature page: interactive cost-comparison chart */
.cost-compare-section { position: relative; padding: var(--space-8) 0; background: var(--paper); border-top: 1px solid var(--line); overflow: hidden; }
.cost-compare-intro { position: relative; z-index: 1; max-width: 600px; margin: 0 auto var(--space-6); text-align: center; }
.cost-compare-card {
  position: relative; z-index: 1; max-width: 780px; margin: 0 auto;
  background: var(--white); border: 1px solid var(--line); border-radius: 22px;
  padding: var(--space-5) var(--space-5) var(--space-4);
  box-shadow: 0 24px 56px rgba(22,20,15,0.1), 0 4px 14px rgba(22,20,15,0.04);
}
.cc-tabs { display: flex; gap: 6px; background: var(--paper); border-radius: 999px; padding: 4px; width: fit-content; margin: 0 auto var(--space-4); }
.cc-tab {
  font-family: var(--font-body); font-size: 0.88rem; font-weight: 600; color: var(--ink-soft);
  background: none; border: none; cursor: pointer; padding: 8px 20px; border-radius: 999px;
  transition: background 0.18s ease, color 0.18s ease;
}
.cc-tab-active { background: var(--ink); color: var(--white); }
.cc-chart-wrap { width: 100%; }
.cc-chart { width: 100%; height: auto; display: block; }
.cc-line { stroke-dasharray: 900; stroke-dashoffset: 900; animation: cc-draw 1.1s ease-out forwards; }
.cc-line-b { animation-delay: 0.1s; }
.cc-line-a { animation-delay: 0.25s; }
@keyframes cc-draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) {
  .cc-line { animation: none; stroke-dashoffset: 0; }
}
.cc-legend { display: flex; justify-content: center; gap: 24px; margin: 6px 0 16px; }
.cc-legend-item { display: flex; align-items: center; gap: 7px; font-size: 0.85rem; color: var(--ink-soft); font-weight: 500; }
.cc-swatch { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.cc-swatch-a { background: #C7842A; }
.cc-swatch-b { background: #16140F; }
.cc-insight { text-align: center; font-size: 0.92rem; color: var(--ink-soft); max-width: 52ch; margin: 0 auto; padding-top: 12px; border-top: 1px solid var(--line); }

/* Feature page: landed cost checklist + allocation table */
.cost-checklist-section { position: relative; padding: var(--space-8) 0; background: var(--paper); border-top: 1px solid var(--line); overflow: hidden; }
.cost-checklist-card {
  position: relative; z-index: 1; max-width: 640px; margin: 0 auto;
  background: var(--white); border: 1px solid var(--line); border-radius: 20px;
  padding: 10px 24px; box-shadow: 0 20px 48px rgba(22,20,15,0.08), 0 4px 14px rgba(22,20,15,0.04);
}
.clc-row { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; border-bottom: 1px solid var(--line); gap: 16px; }
.clc-row:last-child { border-bottom: none; }
.clc-row div { display: flex; flex-direction: column; }
.clc-name { font-weight: 600; font-size: 0.95rem; }
.clc-sub { font-size: 0.8rem; color: var(--ink-soft); margin-top: 2px; }

.split-calc-mockup { display: flex; flex-direction: column; gap: 14px; }
.scm-formula { text-align: center; font-size: 0.88rem; color: var(--ink-soft); background: var(--paper); border-radius: 10px; padding: 12px; }
.scm-formula strong { color: var(--accent-deep); font-family: var(--font-mono); }
.scm-table { display: flex; flex-direction: column; }
.scm-row { display: grid; grid-template-columns: 1.6fr 0.8fr 0.9fr 0.9fr; gap: 6px; padding: 9px 4px; font-size: 0.82rem; align-items: center; }
.scm-row-head { font-family: var(--font-mono); font-size: 0.68rem; color: var(--ink-soft); border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.scm-landed { font-weight: 600; color: var(--accent-deep); }

/* Dark hero variant */
.hero-dark { background: var(--ink); }
.hero-dark .eyebrow { color: var(--accent); }
.hero-dark h1 { color: var(--white); }
.hero-dark .hero-sub { color: rgba(255,255,255,0.7); }
.hero-dark .proof-text { color: rgba(255,255,255,0.65); }
.hero-dark .proof-text strong { color: var(--white); }
.hero-dark .stars { color: var(--accent); }
.hero-dark .badge-soon { background: rgba(232,163,61,0.14); color: var(--accent); border: 1px solid rgba(232,163,61,0.3); vertical-align: middle; }
.hero-dark .btn-outline { color: var(--white); border-color: rgba(255,255,255,0.22); }
.hero-dark .btn-outline:hover { border-color: var(--white); }
.hero-dark .btn-primary { background: var(--accent); color: var(--ink); }
.hero-dark .btn-primary:hover { background: var(--white); }
.hero-dark .dot-grid { background-image: radial-gradient(rgba(255,255,255,0.12) 1.6px, transparent 1.6px); opacity: 1; }
.hero-dark-glow {
  position: absolute; top: 10%; right: 5%; width: 420px; height: 420px;
  background: var(--accent); opacity: 0.16; border-radius: 50%; filter: blur(80px);
}
.hero-dark .strip-wave-bottom { z-index: 1; }

.hero-dark-chart-card {
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1); border-radius: 20px;
  padding: 24px; backdrop-filter: blur(6px);
}
.hdc-label { font-family: var(--font-mono); font-size: 0.76rem; color: rgba(255,255,255,0.6); margin: 0 0 14px; }
.hdc-svg { width: 100%; height: auto; display: block; }
.hdc-sub { font-size: 0.82rem; color: rgba(255,255,255,0.55); margin: 12px 0 0; }

/* Interactive analytics chart */
.analytics-section { position: relative; padding: var(--space-8) 0; background: var(--white); overflow: hidden; }
.analytics-card {
  position: relative; z-index: 1; max-width: 800px; margin: 0 auto;
  background: var(--paper); border: 1px solid var(--line); border-radius: 22px;
  padding: var(--space-5); box-shadow: 0 24px 56px rgba(22,20,15,0.08), 0 4px 14px rgba(22,20,15,0.04);
}
.analytics-controls { display: flex; flex-wrap: wrap; gap: 18px; margin-bottom: var(--space-4); }
.ac-group { display: flex; flex-direction: column; gap: 8px; }
.ac-group-label { font-family: var(--font-mono); font-size: 0.7rem; color: var(--ink-soft); }
.ac-pills { display: flex; gap: 6px; background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 4px; width: fit-content; }
.ac-pill {
  font-family: var(--font-body); font-size: 0.82rem; font-weight: 600; color: var(--ink-soft);
  background: none; border: none; cursor: pointer; padding: 7px 14px; border-radius: 999px;
  transition: background 0.18s ease, color 0.18s ease; white-space: nowrap;
}
.ac-pill-active { background: var(--ink); color: var(--white); }
.analytics-card .cc-chart-wrap { background: var(--white); border-radius: 14px; padding: 14px; }

@media (max-width: 700px) {
  .analytics-controls { flex-direction: column; }
}

/* Feature page: inventory value snapshots + tier comparison */
.snapshot-section { position: relative; padding: var(--space-8) 0; background: var(--paper); border-top: 1px solid var(--line); overflow: hidden; }
.bar-chart-card {
  position: relative; z-index: 1; max-width: 640px; margin: 0 auto;
  background: var(--white); border: 1px solid var(--line); border-radius: 20px;
  padding: var(--space-5); box-shadow: 0 20px 48px rgba(22,20,15,0.08), 0 4px 14px rgba(22,20,15,0.04);
}
.bar-chart { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; height: 180px; padding: 0 6px; }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; height: 100%; justify-content: flex-end; gap: 8px; }
.bar-fill {
  width: 100%; max-width: 44px; background: var(--paper); border: 1px solid var(--line); border-radius: 8px 8px 3px 3px;
  height: 0; animation: bar-grow 0.8s cubic-bezier(0.34, 1.2, 0.64, 1) forwards; position: relative;
  display: flex; align-items: flex-start; justify-content: center;
}
.bar-fill-current { background: var(--accent-soft); border-color: var(--accent); }
@keyframes bar-grow { to { height: var(--bar-h); } }
.bar-value {
  position: absolute; top: -22px; font-family: var(--font-mono); font-size: 0.68rem; color: var(--ink-soft);
  white-space: nowrap;
}
.bar-fill-current .bar-value { color: var(--accent-deep); font-weight: 600; }
.bar-label { font-size: 0.78rem; color: var(--ink-soft); font-family: var(--font-mono); }
.bar-label-current { color: var(--accent-deep); font-weight: 600; }
.bar-chart-note { text-align: center; font-size: 0.82rem; color: var(--ink-soft); margin: var(--space-3) 0 0; }

@media (prefers-reduced-motion: reduce) {
  .bar-fill { animation: none; height: var(--bar-h); }
}

.tier-compare-section { padding: var(--space-8) 0; }
.tier-compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; max-width: 900px; margin: 0 auto; }
.tier-card {
  background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: 26px;
  display: flex; flex-direction: column;
}
.tier-card-featured { border-color: var(--ink); box-shadow: 0 20px 48px rgba(22,20,15,0.08); }
.tier-name { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; margin: 0 0 8px; }
.tier-desc { font-size: 0.9rem; margin-bottom: var(--space-4); }
.tier-mockup { background: var(--paper); border-radius: 14px; padding: 18px; margin-top: auto; }
.tier-mockup-label { display: block; font-family: var(--font-mono); font-size: 0.72rem; color: var(--ink-soft); margin-bottom: 6px; }
.tier-mockup-value { display: block; font-family: var(--font-mono); font-size: 1.7rem; font-weight: 500; color: var(--ink); }
.tier-mockup-sub { display: block; font-size: 0.8rem; color: var(--ink-soft); margin-top: 4px; }
.tier-filter-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.tier-chip { font-family: var(--font-mono); font-size: 0.7rem; background: var(--white); border: 1px solid var(--line); padding: 4px 10px; border-radius: 999px; color: var(--ink-soft); }
.tier-loc-rows { display: flex; flex-direction: column; gap: 6px; }
.tier-loc-row { display: flex; align-items: center; justify-content: space-between; background: var(--white); border-radius: 8px; padding: 8px 12px; font-size: 0.85rem; }
.tier-loc-row span:last-child { font-family: var(--font-mono); font-weight: 600; }

@media (max-width: 700px) {
  .tier-compare-grid { grid-template-columns: 1fr; }
}

/* PO creation page: workflow stepper */
.workflow-section { position: relative; padding: var(--space-8) 0; overflow: hidden; }
.workflow-stepper { max-width: 640px; margin: var(--space-6) auto 0; }
.wf-step { display: flex; gap: 20px; }
.wf-step-marker { display: flex; flex-direction: column; align-items: center; flex-shrink: 0; }
.wf-step-num {
  width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: var(--white);
  display: flex; align-items: center; justify-content: center; font-family: var(--font-display);
  font-weight: 600; font-size: 0.95rem; flex-shrink: 0;
}
.wf-step-line { width: 2px; flex: 1; background: var(--line); margin: 6px 0; min-height: 30px; }
.wf-step-content { padding-bottom: var(--space-5); }
.wf-step-last .wf-step-content { padding-bottom: 0; }
.wf-step-content h3 { margin-bottom: 6px; font-size: 1.1rem; }
.wf-step-content p { margin-bottom: 0; font-size: 0.92rem; }

/* PO creation page: connects-to link cards */
.connects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.connect-card {
  display: flex; flex-direction: column; gap: 8px;
  background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 22px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.connect-card:hover { border-color: var(--accent-deep); transform: translateY(-2px); }
.connect-icon {
  width: 36px; height: 36px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-deep);
  display: flex; align-items: center; justify-content: center; font-family: var(--font-display);
  font-weight: 700; font-size: 1.1rem; margin-bottom: 4px;
}
.connect-title { font-weight: 600; font-size: 1rem; color: var(--ink); }
.connect-desc { font-size: 0.85rem; color: var(--ink-soft); line-height: 1.5; }
.connect-link { font-size: 0.85rem; font-weight: 600; color: var(--accent-deep); margin-top: 4px; }

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

/* Legal / editorial article pages */
.legal-hero { padding: var(--space-7) 0 var(--space-4); }
.legal-header { max-width: 720px; }
.legal-header h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 10px; }
.legal-updated { font-family: var(--font-mono); font-size: 0.85rem; color: var(--ink-soft); }

.legal-body { padding: var(--space-4) 0 var(--space-8); border-top: 1px solid var(--line); }
.legal-layout { display: grid; grid-template-columns: 200px 1fr; gap: var(--space-6); max-width: 920px; margin: var(--space-6) auto 0; align-items: start; }

.legal-toc { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 9px; }
.legal-toc-heading { font-family: var(--font-mono); font-size: 0.72rem; color: var(--ink-soft); margin: 0 0 6px; }
.legal-toc a { font-size: 0.86rem; color: var(--ink-soft); line-height: 1.5; }
.legal-toc a:hover { color: var(--accent-deep); }

.legal-article { max-width: 680px; }
.legal-lede { font-family: var(--font-display); font-size: 1.2rem; font-weight: 500; line-height: 1.5; color: var(--ink); margin-bottom: var(--space-5); }
.legal-article h2 {
  font-size: 1.35rem; margin: 2.4em 0 0.8em; padding-top: 1.6em; border-top: 1px solid var(--line);
  scroll-margin-top: 100px;
}
.legal-article h2:first-of-type { margin-top: 0; padding-top: 0; border-top: none; }
.legal-article p { font-size: 1rem; line-height: 1.75; color: var(--ink-soft); margin-bottom: 1.1em; }
.legal-article p strong { color: var(--ink); font-weight: 600; }
.legal-article ul { padding-left: 1.3em; margin: 0 0 1.4em; display: flex; flex-direction: column; gap: 0.5em; }
.legal-article li { font-size: 1rem; line-height: 1.7; color: var(--ink-soft); }
.legal-contact-email a { color: var(--accent-deep); font-weight: 600; }
.legal-closing { font-style: italic; padding-top: 1.4em; border-top: 1px solid var(--line); margin-top: 2em; }

@media (max-width: 780px) {
  .legal-layout { grid-template-columns: 1fr; }
  .legal-toc { position: static; flex-direction: row; flex-wrap: wrap; gap: 6px 16px; }
}

/* Book a demo page */
.demo-hero { padding-bottom: var(--space-5); }
.demo-hero-inner { max-width: 640px; margin: 0 auto; position: relative; z-index: 1; }
.demo-trust-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
.demo-trust-item { display: flex; align-items: center; gap: 7px; font-size: 0.9rem; color: var(--ink-soft); font-weight: 500; }
.demo-trust-icon { color: var(--accent-deep); font-weight: 700; }

.calendly-section { padding-top: 0; }
.calendly-wrap { max-width: 760px; }
.calendly-card {
  background: var(--white); border: 1px solid var(--line); border-radius: 20px;
  padding: 12px; box-shadow: 0 24px 56px rgba(22,20,15,0.08), 0 4px 14px rgba(22,20,15,0.04);
  overflow: hidden;
}

/* Help docs page */
.help-hero { padding-bottom: var(--space-5); }
.help-hero-inner { max-width: 620px; margin: 0 auto; position: relative; z-index: 1; }

.help-search-wrap { max-width: 520px; margin: 0 auto; }
.help-search-label { display: block; text-align: center; font-family: var(--font-mono); font-size: 0.78rem; color: var(--ink-soft); margin-bottom: 10px; }
.help-search-box {
  display: flex; align-items: center; gap: 10px;
  background: var(--white); border: 1.5px solid var(--line); border-radius: 999px;
  padding: 13px 20px; box-shadow: 0 12px 32px rgba(22,20,15,0.06);
  transition: border-color 0.18s ease;
}
.help-search-box:focus-within { border-color: var(--accent-deep); }
.help-search-icon { color: var(--ink-soft); flex-shrink: 0; }
.help-search-box input {
  border: none; outline: none; background: none; flex: 1;
  font-family: var(--font-body); font-size: 0.95rem; color: var(--ink);
}
.help-search-box input::placeholder { color: #A8A5A0; }

.help-topics-section { padding: var(--space-6) 0 var(--space-8); }
.help-topics-head { text-align: center; margin-bottom: var(--space-6); }
.help-topics-head h2 { margin-bottom: 8px; }
.help-results-count { font-family: var(--font-mono); font-size: 0.85rem; color: var(--ink-soft); }
.help-show-all-btn {
  margin-top: 10px; font-family: var(--font-body); font-size: 0.85rem; font-weight: 600;
  color: var(--accent-deep); background: none; border: none; cursor: pointer; text-decoration: underline;
}

.help-empty-state { text-align: center; max-width: 420px; margin: 0 auto; padding: var(--space-6) 0; }
.help-empty-title { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; color: var(--ink); margin-bottom: 6px; }
.help-empty-sub { font-size: 0.92rem; margin-bottom: 18px; }
.help-clear-btn {
  font-family: var(--font-body); font-size: 0.88rem; font-weight: 600; color: var(--white);
  background: var(--ink); border: none; padding: 10px 22px; border-radius: 999px; cursor: pointer;
}

.help-section { margin-bottom: var(--space-6); }
.help-section:last-child { margin-bottom: 0; }
.help-cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

.help-card {
  background: var(--white); border: 1px solid var(--line); border-radius: 16px;
  transition: border-color 0.18s ease;
}
.help-card[open] { border-color: var(--accent-deep); }
.help-card-summary { list-style: none; cursor: pointer; padding: 20px; }
.help-card-summary::-webkit-details-marker { display: none; }
.help-card-summary-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.help-card-category {
  font-family: var(--font-mono); font-size: 0.66rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.03em;
  background: var(--paper); color: var(--ink-soft); padding: 3px 9px; border-radius: 999px;
}
.help-card-title { display: block; font-weight: 600; font-size: 0.98rem; color: var(--ink); line-height: 1.35; margin-bottom: 6px; }
.help-card-badge {
  flex-shrink: 0; font-family: var(--font-mono); font-size: 0.65rem; font-weight: 500;
  background: var(--accent-soft); color: var(--accent-deep); padding: 3px 8px; border-radius: 999px;
}
.help-card-desc { font-size: 0.85rem; color: var(--ink-soft); line-height: 1.5; margin: 0; }
.help-card-body { padding: 0 20px 20px; }
.help-card-subheading { font-family: var(--font-mono); font-size: 0.7rem; color: var(--ink-soft); margin: 14px 0 8px; }
.help-card-subheading:first-child { margin-top: 4px; }
.help-card-steps { padding-left: 1.2em; display: flex; flex-direction: column; gap: 6px; margin: 0; }
.help-card-steps li { font-size: 0.86rem; color: var(--ink-soft); line-height: 1.5; }
.help-card-tips { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 6px; margin: 0; }
.help-card-tips li { font-size: 0.86rem; color: var(--ink-soft); line-height: 1.5; padding-left: 1.1em; position: relative; }
.help-card-tips li::before { content: '•'; position: absolute; left: 0; color: var(--accent-deep); }
.help-card-related { display: flex; flex-wrap: wrap; gap: 6px; }
.help-card-related-tag {
  font-family: var(--font-mono); font-size: 0.7rem; background: var(--paper); border: 1px solid var(--line);
  padding: 4px 10px; border-radius: 999px; color: var(--ink-soft);
}

@media (max-width: 900px) {
  .help-cards-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .help-cards-grid { grid-template-columns: 1fr; }
}

/* PO creation page: CSV matching review table */
.matching-section { position: relative; padding: var(--space-8) 0; background: var(--paper); border-top: 1px solid var(--line); overflow: hidden; }
.match-table-card {
  position: relative; z-index: 1; max-width: 720px; margin: var(--space-6) auto 0;
  background: var(--white); border: 1px solid var(--line); border-radius: 18px;
  padding: 6px 20px; box-shadow: 0 20px 48px rgba(22,20,15,0.08), 0 4px 14px rgba(22,20,15,0.04);
}
.match-table-head, .match-row {
  display: grid; grid-template-columns: 1.1fr 1.4fr 1.2fr 0.5fr; gap: 10px; align-items: center; padding: 13px 4px;
}
.match-table-head { font-family: var(--font-mono); font-size: 0.7rem; color: var(--ink-soft); border-bottom: 1px solid var(--line); }
.match-row { border-bottom: 1px solid var(--line); font-size: 0.88rem; }
.match-row:last-child { border-bottom: none; }
.match-ref { font-family: var(--font-mono); font-size: 0.8rem; color: var(--ink-soft); }
.match-product { font-weight: 600; }
.match-product-missing { color: var(--ink-soft); font-weight: 500; font-style: italic; }
.match-status { font-size: 0.82rem; font-weight: 600; }
.match-status-ok { color: #2E7D46; }
.match-status-warn { color: var(--accent-deep); }
.match-row-flagged { background: var(--accent-soft); border-radius: 10px; }
.match-action {
  font-family: var(--font-mono); font-size: 0.72rem; font-weight: 600; color: var(--white);
  background: var(--ink); padding: 5px 12px; border-radius: 999px; text-align: center; cursor: pointer;
  justify-self: end;
}

@media (max-width: 640px) {
  .match-table-head, .match-row { grid-template-columns: 1fr 1fr; row-gap: 4px; }
  .match-table-head span:nth-child(3), .match-table-head span:nth-child(4) { display: none; }
  .match-row .match-status { grid-column: 1 / -1; }
  .match-row .match-action { grid-column: 1 / -1; justify-self: start; }
}

/* PO creation page: Procuro AI extraction hero scanner scene */
.hero-dark-glow-2 { top: 55%; right: 55%; width: 320px; height: 320px; opacity: 0.1; }
.ai-hero .hero-visual { display: flex; align-items: center; justify-content: center; }

.ai-scanner-scene {
  position: relative;
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  padding-top: 24px;
}

.ai-badge-float {
  position: absolute; top: -14px; left: 0;
  display: flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 0.74rem; font-weight: 500;
  color: var(--accent); background: rgba(232,163,61,0.1); border: 1px solid rgba(232,163,61,0.32);
  padding: 6px 12px; border-radius: 999px;
  animation: ai-badge-pulse 2.4s ease-in-out infinite;
}
@keyframes ai-badge-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(232,163,61,0.32); }
  50% { box-shadow: 0 0 0 7px rgba(232,163,61,0); }
}
.ai-badge-sparkle { display: inline-block; animation: ai-sparkle-spin 3s linear infinite; }
@keyframes ai-sparkle-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.ai-doc-card {
  position: relative; overflow: hidden; width: 190px; flex-shrink: 0;
  background: #FFFFFF; border-radius: 14px;
  box-shadow: 0 24px 56px rgba(0,0,0,0.45);
}
.ai-doc-header { display: flex; align-items: center; gap: 5px; padding: 10px 12px; border-bottom: 1px solid #EAE7E0; }
.ai-doc-dot { width: 6px; height: 6px; border-radius: 50%; background: #EAE7E0; }
.ai-doc-name { margin-left: auto; font-family: var(--font-mono); font-size: 0.6rem; color: #9C9891; }
.ai-doc-body { padding: 14px 12px; display: flex; flex-direction: column; gap: 11px; }
.ai-doc-row { display: flex; gap: 6px; align-items: center; }
.ai-doc-line { height: 7px; border-radius: 3px; background: #EAE7E0; flex: 1; animation: ai-row-flash 3s ease-in-out infinite; animation-delay: calc(var(--d) * 0.5s); }
.ai-doc-line-num { flex: 0 0 24px; }
@keyframes ai-row-flash {
  0%, 82%, 100% { background: #EAE7E0; }
  88%, 92% { background: #E8A33D; }
}
.ai-scan-beam {
  position: absolute; left: 0; right: 0; top: 40px; height: 30px;
  background: linear-gradient(180deg, rgba(232,163,61,0) 0%, rgba(232,163,61,0.4) 50%, rgba(232,163,61,0) 100%);
  filter: blur(1px); opacity: 0;
  animation: ai-scan-move 3s ease-in-out infinite;
}
@keyframes ai-scan-move {
  0% { top: 40px; opacity: 0; }
  8% { opacity: 1; }
  92% { opacity: 1; }
  100% { top: 175px; opacity: 0; }
}

.ai-particles { position: relative; width: 42px; height: 20px; flex-shrink: 0; }
.ai-particle {
  position: absolute; top: 50%; left: 0; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); opacity: 0; transform: translateY(-50%);
  box-shadow: 0 0 8px 2px rgba(232,163,61,0.6);
  animation: ai-particle-fly 2.4s ease-in-out infinite;
  animation-delay: calc(var(--pd) * 0.5s);
}
@keyframes ai-particle-fly {
  0% { left: 0; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}

.ai-output-card {
  background: rgba(255,255,255,0.045); border: 1px solid rgba(255,255,255,0.1); border-radius: 14px;
  padding: 16px 18px; min-width: 200px; backdrop-filter: blur(6px);
}
.ai-output-label { font-family: var(--font-mono); font-size: 0.68rem; color: rgba(255,255,255,0.5); margin: 0 0 10px; }
.ai-output-row {
  display: flex; align-items: center; gap: 8px; font-size: 0.82rem; color: rgba(255,255,255,0.85);
  padding: 6px 0; opacity: 0; transform: translateY(6px);
  animation: ai-output-appear 4s ease-in-out infinite;
  animation-delay: calc(var(--rd) * 0.5s + 0.6s);
}
.ai-output-check { color: var(--accent); font-weight: 700; flex-shrink: 0; }
@keyframes ai-output-appear {
  0% { opacity: 0; transform: translateY(6px); }
  8%, 78% { opacity: 1; transform: translateY(0); }
  92%, 100% { opacity: 0; transform: translateY(6px); }
}

@media (max-width: 900px) {
  .ai-scanner-scene { justify-content: center; }
}
@media (max-width: 480px) {
  .ai-particles { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .ai-badge-float, .ai-badge-sparkle, .ai-doc-line, .ai-scan-beam, .ai-particle, .ai-output-row {
    animation: none !important;
  }
  .ai-scan-beam, .ai-particles { display: none; }
  .ai-output-row { opacity: 1; transform: none; }
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: var(--space-7); align-items: center; }
.hero-sub { font-size: 1.12rem; max-width: 46ch; }
.hero-ctas { display: flex; gap: var(--space-2); margin: var(--space-4) 0 var(--space-3); flex-wrap: wrap; }
.hero-proof { display: flex; align-items: center; gap: 10px; font-size: 0.92rem; color: var(--ink-soft); }
.stars { color: var(--accent); letter-spacing: 2px; font-size: 0.95rem; }
.proof-text strong { color: var(--ink); }

/* Hero illustration */
.hero-illustration { position: relative; width: 100%; }
.hi-svg { width: 100%; height: auto; overflow: visible; }
.hi-crate { transform-origin: 115px 255px; animation: hi-sway 5s ease-in-out infinite; }
.hi-doc { transform-origin: 215px 154px; animation: hi-float 4.5s ease-in-out infinite; }
.hi-check { transform-origin: 300px 230px; animation: hi-pop 4.5s ease-in-out infinite; }
.hi-float-1 { transform-origin: 66px 103px; animation: hi-float 5.5s ease-in-out infinite; animation-delay: 0.4s; }
.hi-float-2 { transform-origin: 342px 122px; animation: hi-float 5s ease-in-out infinite reverse; animation-delay: 0.2s; }

@keyframes hi-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes hi-sway { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(-1.2deg); } }
@keyframes hi-pop { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }

@media (prefers-reduced-motion: reduce) {
  .hi-crate, .hi-doc, .hi-check, .hi-float-1, .hi-float-2 { animation: none; }
}

/* Scrolling stats ticker */
.stats-ticker {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: var(--paper);
  padding: 20px 0;
  overflow: hidden;
  position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, black 64px, black calc(100% - 64px), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, black 64px, black calc(100% - 64px), transparent 100%);
}
.ticker-track {
  display: flex; align-items: center; gap: 28px;
  width: max-content;
  animation: ticker-scroll 28s linear infinite;
}
.ticker-item { display: flex; align-items: baseline; gap: 8px; white-space: nowrap; }
.ticker-num { font-family: var(--font-mono); font-size: 1.1rem; font-weight: 500; color: var(--accent-deep); }
.ticker-label { font-size: 0.92rem; color: var(--ink-soft); font-weight: 500; }
.ticker-dot { color: var(--line); font-size: 0.5rem; flex-shrink: 0; }

@keyframes ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.stats-ticker:hover .ticker-track { animation-play-state: paused; }

@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
}

.screenshot-frame {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.screenshot-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.screenshot-placeholder { font-family: var(--font-mono); font-size: 0.82rem; color: #A8A5A0; text-align: center; padding: var(--space-4); }

/* Feature mockups */
.mockup-frame {
  background: var(--white); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 20px 44px rgba(22,20,15,0.08), 0 4px 12px rgba(22,20,15,0.04);
  overflow: hidden;
}
.mockup-chrome {
  display: flex; gap: 6px; padding: 12px 14px; background: var(--paper); border-bottom: 1px solid var(--line);
}
.mockup-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.mockup-body { padding: 28px; min-height: 220px; }

/* Invoice extraction mockup */
.mockup-invoice { display: flex; align-items: center; gap: 18px; }
.mi-source {
  flex: 0 0 110px; background: var(--paper); border: 1px solid var(--line); border-radius: 10px;
  padding: 14px; display: flex; flex-direction: column; gap: 8px;
}
.mi-doc-icon { color: var(--accent-deep); font-size: 1.1rem; }
.mi-doc-lines { display: flex; flex-direction: column; gap: 6px; }
.mi-doc-lines span { height: 5px; background: var(--line); border-radius: 3px; }
.mi-doc-lines span.short { width: 60%; }
.mi-arrow { color: var(--ink-soft); font-size: 1.2rem; flex-shrink: 0; }
.mi-table { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.mi-row { display: flex; align-items: center; gap: 8px; background: var(--paper); border-radius: 8px; padding: 8px 10px; }
.mi-cell { height: 6px; background: var(--line); border-radius: 3px; flex: 1; }
.mi-cell.short { flex: 0 0 30px; }
.mi-badge { font-family: var(--font-mono); font-size: 0.66rem; background: #DCEEDC; color: #2E7D46; padding: 3px 8px; border-radius: 999px; white-space: nowrap; }
.mi-badge-flag { background: var(--accent-soft); color: var(--accent-deep); }
.mi-row-flag { outline: 1.5px solid var(--accent); outline-offset: -1.5px; }

/* PO review mockup */
.mockup-review { display: flex; gap: 20px; }
.mr-stepper { flex: 0 0 90px; display: flex; flex-direction: column; gap: 20px; position: relative; }
.mr-stepper::before { content: ''; position: absolute; left: 11px; top: 12px; bottom: 12px; width: 1.5px; background: var(--line); }
.mr-step { display: flex; align-items: center; gap: 10px; position: relative; }
.mr-dot {
  width: 24px; height: 24px; border-radius: 50%; background: var(--white); border: 1.5px solid var(--line);
  display: flex; align-items: center; justify-content: center; font-size: 0.7rem; color: var(--ink-soft); flex-shrink: 0;
}
.mr-step-done .mr-dot { background: var(--ink); border-color: var(--ink); color: var(--white); }
.mr-step-active .mr-dot { border-color: var(--accent-deep); color: var(--accent-deep); }
.mr-step-label { height: 6px; width: 40px; background: var(--line); border-radius: 3px; }
.mr-table { flex: 1; }
.mr-table-head { display: grid; grid-template-columns: 1fr 46px 46px; gap: 8px; font-family: var(--font-mono); font-size: 0.66rem; color: var(--ink-soft); padding: 0 10px 8px; }
.mr-table-row { display: grid; grid-template-columns: 1fr 46px 46px; gap: 8px; align-items: center; padding: 9px 10px; border-radius: 8px; }
.mr-table-row-active { background: var(--accent-soft); }
.mr-line { height: 6px; background: var(--line); border-radius: 3px; }
.mr-num { height: 6px; background: var(--line); border-radius: 3px; }

/* Receiving mockup */
.mockup-receiving { display: flex; align-items: center; justify-content: center; }
.mrc-card { width: 100%; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 18px; }
.mrc-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.mrc-icon { width: 32px; height: 32px; background: var(--accent-soft); color: var(--accent-deep); border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.mrc-head div { display: flex; flex-direction: column; gap: 6px; }
.mrc-line-strong { height: 8px; width: 120px; background: var(--ink); opacity: 0.75; border-radius: 3px; }
.mrc-line { height: 6px; width: 80px; background: var(--line); border-radius: 3px; }
.mrc-progress { height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; margin-bottom: 16px; }
.mrc-progress-fill { height: 100%; width: 78%; background: #2E7D46; border-radius: 3px; }
.mrc-stats { display: flex; gap: 28px; }
.mrc-stats > div { display: flex; flex-direction: column; }
.mrc-stat-num { font-family: var(--font-mono); font-size: 1.3rem; font-weight: 500; color: var(--ink); }
.mrc-stat-label { font-size: 0.78rem; color: var(--ink-soft); }

/* Sections */
.section { padding: var(--space-7) 0; }
.section-tight .wrap { max-width: 780px; }
.section-lede { font-size: 1.1rem; }

/* Feature rows */
.feature-row { position: relative; padding: var(--space-8) 0; border-top: 1px solid var(--line); }
.feature-row-alt { background: var(--paper); overflow: hidden; }
.feature-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-7); align-items: center; }
.feature-grid-reverse .feature-copy { order: 2; }
.feature-grid-reverse .feature-visual { order: 1; }
.feature-copy p:last-child { margin-bottom: 0; }

/* Stats strip */
.stats-strip { position: relative; background: var(--ink); color: var(--white); padding: var(--space-6) 0; overflow: hidden; }
.strip-wave { position: absolute; left: 0; width: 100%; height: 44px; display: block; }
.strip-wave-top { top: 0; }
.strip-wave-bottom { bottom: 0; }
.stats-glow {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 480px; height: 240px; background: var(--accent); opacity: 0.14;
  border-radius: 50%; filter: blur(60px); pointer-events: none;
}
.stats-grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); text-align: center; }
.stat-value { display: block; font-family: var(--font-mono); font-size: 2.3rem; font-weight: 500; color: var(--accent); margin-bottom: 6px; }
.stat-label { color: #C9C6C0; font-size: 0.95rem; }

/* CTA band */
.cta-band { position: relative; padding: var(--space-8) 0; background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; }
.cta-bg { position: absolute; z-index: 0; right: -120px; top: -160px; width: 440px; height: 440px; border-radius: 50%; background: var(--accent-soft); opacity: 0.55; }
.cta-band-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.3fr 1fr; gap: var(--space-5); align-items: center; }
.cta-band-inner h2 { margin-bottom: 10px; }
.cta-band-inner p { margin: 0; max-width: 48ch; }
.cta-band-actions { display: flex; gap: var(--space-2); justify-content: flex-end; flex-wrap: wrap; }

/* Demo section */
.demo-wrap { text-align: center; max-width: 640px; }
.demo-wrap .btn { margin-top: 8px; }

/* Footer */
.site-footer { padding: var(--space-6) 0 28px; border-top: 1px solid var(--line); }
.footer-inner { display: flex; justify-content: space-between; gap: var(--space-6); flex-wrap: wrap; margin-bottom: var(--space-5); }
.footer-brand { max-width: 220px; }
.footer-brand p { max-width: 32ch; margin-top: 8px; margin-bottom: 18px; }
.footer-badge-link { display: inline-block; line-height: 0; }
.footer-badge-link img { display: block; height: 40px; width: auto; }
.footer-links { display: flex; gap: var(--space-6); flex-wrap: wrap; flex: 1; justify-content: flex-end; }
.footer-col { display: flex; flex-direction: column; gap: 10px; min-width: 150px; }
.footer-heading { font-weight: 600; color: var(--ink); margin-bottom: 2px; font-size: 0.92rem; }
.footer-heading-spaced { margin-top: 14px; }
.footer-col a { color: var(--ink-soft); font-size: 0.9rem; }
.footer-col a:hover { color: var(--ink); }

@media (max-width: 700px) {
  .footer-links { justify-content: flex-start; }
  .footer-col { min-width: 130px; }
}
.footer-bottom { border-top: 1px solid var(--line); padding-top: var(--space-3); }
.footer-bottom p { margin: 0; font-size: 0.85rem; }

/* Responsive */
@media (max-width: 860px) {
  .hero-grid, .feature-grid, .cta-band-inner { grid-template-columns: 1fr; }
  .feature-grid-reverse .feature-copy, .feature-grid-reverse .feature-visual { order: initial; }
  .cta-band-actions { justify-content: flex-start; }
  .stats-grid { grid-template-columns: 1fr; gap: var(--space-4); }
  .main-nav { display: none; }
  .header-ctas .btn-demo { display: none; }
  .header-ctas .header-divider { display: none; }
  .nav-toggle { display: flex; }
  .mobile-nav { display: flex; }
}

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