@import url("../tokens.css");

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--space-24); }
html,
body { margin: 0; max-width: 100%; overflow-x: clip; }
body {
  min-width: 320px;
  background: var(--color-paper);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body.nav-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: 0.55; }
:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 4px; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 {
  min-width: 0;
  overflow-wrap: anywhere;
  font-family: var(--font-display);
  font-style: normal;
  line-height: 1.02;
  letter-spacing: -0.035em;
}
h1 { max-width: 13ch; font-size: var(--text-display-s); }
h2 { max-width: 18ch; font-size: var(--text-4xl); }
h3 { font-size: var(--text-2xl); line-height: 1.15; }
p { max-width: 65ch; color: var(--color-ink-soft); }
ul, ol { margin: 0; padding: 0; }
[hidden] { display: none !important; }
.skip-link { position: fixed; left: var(--space-4); top: var(--space-4); z-index: 200; transform: translateY(-200%); }
.skip-link:focus { transform: translateY(0); }
.container { width: min(1120px, calc(100% - 2 * var(--space-6))); margin-inline: auto; min-width: 0; }
.flow-content { width: min(760px, calc(100% - 2 * var(--space-6))); margin-inline: auto; padding-block: var(--space-16); }
.flow-content section { padding-block: var(--space-6); }
.flow-content h1 { margin-bottom: var(--space-6); }
.flow-content h2 { margin-bottom: var(--space-4); font-size: var(--text-3xl); }
.flow-content p, .flow-content li { color: var(--color-ink-soft); }
.flow-content li { margin-left: var(--space-5); margin-bottom: var(--space-2); }
.site-nav {
  position: sticky;
  top: var(--space-3);
  z-index: 100;
  width: min(1180px, calc(100% - 2 * var(--space-4)));
  min-height: 64px;
  margin: var(--space-3) auto 0;
  padding: var(--space-2) var(--space-3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  background: var(--color-paper-raised);
  border: var(--rule);
  border-radius: var(--radius-md);
}
.brand { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 750; text-decoration: none; white-space: nowrap; }
.brand-mark { color: var(--color-accent); }
.nav-links { display: flex; align-items: center; gap: var(--space-5); list-style: none; }
.nav-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--color-ink-soft); font-size: var(--text-sm); text-decoration: none; white-space: nowrap; }
.nav-links a:hover { color: var(--color-ink); }
.nav-toggle { display: none; width: 44px; height: 44px; border: var(--rule); border-radius: var(--radius-sm); background: transparent; color: var(--color-ink); }
.button {
  min-height: 44px;
  padding: var(--space-3) var(--space-5);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  transition: transform var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out);
}
.button:hover { transform: translateY(-1px); }
.button:active { transform: translateY(0); }
.button-primary { background: var(--color-accent); color: var(--color-accent-ink); }
.button-secondary { border-color: var(--color-rule-strong); background: transparent; color: var(--color-ink); }
.button-small { padding: var(--space-2) var(--space-4); font-size: var(--text-sm); }
.hero { padding-block: var(--space-24) var(--space-20); }
.split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: var(--space-16); align-items: center; }
.hero-copy { display: grid; gap: var(--space-6); min-width: 0; }
.hero-copy > p { font-size: var(--text-lg); }
.actions { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }
.contact-line { display: flex; flex-wrap: wrap; gap: var(--space-4); font-size: var(--text-sm); }
.contact-line a { min-height: 44px; display: inline-flex; align-items: center; }
.hero-proof { padding: var(--space-6); background: var(--color-paper-raised); border: var(--rule); border-radius: var(--radius-lg); }
.hero-proof strong { display: block; margin-bottom: var(--space-3); font-family: var(--font-display); font-size: var(--text-2xl); }
.hero-proof p + p { margin-top: var(--space-3); }
.section { padding-block: var(--space-20); border-top: var(--rule); }
.section-heading { display: grid; gap: var(--space-4); margin-bottom: var(--space-10); }
.problem-list, .automation-list, .process-list, .pack-list { list-style: none; }
.problem-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-6); }
.problem-list li { padding-top: var(--space-4); border-top: 2px solid var(--color-accent); }
.automation-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-8) var(--space-12); }
.automation-list h3 { margin-bottom: var(--space-2); font-size: var(--text-xl); }
.automation-list a { display: inline-flex; align-items: center; min-height: 44px; margin-top: var(--space-2); color: var(--color-accent); }
.proof-grid { display: grid; gap: var(--space-12); }
.proof-pair { display: grid; gap: var(--space-6); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.proof-figure { min-width: 0; }
.proof-figure img { width: 100%; border: var(--rule); border-radius: var(--radius-sm); }
.proof-figure figcaption { display: grid; gap: var(--space-3); padding-top: var(--space-4); }
.proof-figure figcaption p { font-size: var(--text-sm); }
.process-list { counter-reset: process; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-6); }
.process-list li { counter-increment: process; }
.process-list li::before { content: counter(process); display: block; margin-bottom: var(--space-4); color: var(--color-accent); font-family: var(--font-display); font-size: var(--text-3xl); }
.process-list h3 { margin-bottom: var(--space-3); font-size: var(--text-xl); }
.pack-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-5); }
.pack-list li { min-width: 0; padding: var(--space-6); display: flex; flex-direction: column; gap: var(--space-4); background: var(--color-paper-raised); border: var(--rule); border-radius: var(--radius-md); }
.pack-list .button { margin-top: auto; align-self: flex-start; }
.pack-note { margin-bottom: var(--space-6); }
.faq-list { border-top: var(--rule); }
.faq-list details { border-bottom: var(--rule); }
.faq-list summary { min-height: 56px; padding-block: var(--space-4); display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); cursor: pointer; font-weight: 700; }
.faq-list details p { padding: 0 0 var(--space-5); }
.final-cta { padding-block: var(--space-20); display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-6); }
.statement-footer { padding-block: var(--space-12); border-top: var(--rule); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-8); align-items: end; }
.footer-statement { font-family: var(--font-display); font-size: var(--text-4xl); line-height: 1; }
.footer-links { display: flex; flex-wrap: wrap; gap: var(--space-4); list-style: none; }
.footer-links a { min-height: 44px; display: inline-flex; align-items: center; color: var(--color-ink-soft); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav-links { position: fixed; inset: 80px var(--space-4) auto; padding: var(--space-5); display: none; flex-direction: column; align-items: stretch; gap: var(--space-2); background: var(--color-paper-raised); border: var(--rule); border-radius: var(--radius-md); }
  .nav-links[data-open="true"] { display: flex; }
  .nav-links a { width: 100%; white-space: normal; }
  .split { grid-template-columns: minmax(0, 1fr); gap: var(--space-10); }
  .problem-list, .process-list, .pack-list { grid-template-columns: minmax(0, 1fr); }
  .proof-pair { grid-template-columns: minmax(0, 1fr); }
  .hero { padding-block: var(--space-16); }
}

@media (max-width: 600px) {
  .container { width: min(100% - 2 * var(--space-4), 1120px); }
  .flow-content { width: min(100% - 2 * var(--space-4), 760px); }
  .site-nav > .button { display: none; }
  .automation-list { grid-template-columns: minmax(0, 1fr); }
  .section { padding-block: var(--space-16); }
  .actions { align-items: stretch; flex-direction: column; }
  .actions .button { width: 100%; white-space: normal; }
  .actions .button-primary, .final-cta .button-primary { padding-inline: var(--space-3); font-size: var(--text-sm); white-space: nowrap; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); align-items: start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 150ms !important; }
  .button:hover, .button:active { transform: none; }
}

.ocr-flow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(160px, 0.32fr) minmax(0, 1fr); gap: var(--space-6); align-items: center; margin-bottom: var(--space-6); }
.ocr-figure { min-width: 0; margin: 0; }
.ocr-figure img { display: block; width: 100%; height: auto; aspect-ratio: 8 / 5; object-fit: cover; border: var(--rule); border-radius: var(--radius-sm); }
.ocr-figure figcaption { padding-top: var(--space-3); color: var(--color-ink-soft); font-size: var(--text-sm); }
.ocr-review { min-width: 0; text-align: center; }
.ocr-review > span { display: block; color: var(--color-accent); font-size: var(--text-3xl); }
.ocr-review strong { display: block; margin-block: var(--space-3); font-family: var(--font-display); font-size: var(--text-xl); }
.ocr-review p { color: var(--color-ink-soft); font-size: var(--text-sm); }
.text-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--color-accent); }
@media (max-width: 1023px) {
  .ocr-flow { grid-template-columns: minmax(0, 1fr); gap: var(--space-5); }
  .ocr-review { text-align: left; }
  .ocr-review > span { transform: rotate(90deg); transform-origin: left center; width: var(--space-8); }
}
