/* ScanDocument.app — shared + landing styles.
   Design language: paper & ink. Serious, precise, document-native.
   Blue is reserved for action buttons and links only. */

:root {
  --blue: #1c4fd8;
  --blue-dark: #15399e;
  --ink: #14161c;
  --ink-soft: #5a5e68;
  --paper: #f7f6f2;
  --paper-deep: #efede6;
  --line: #dfddd4;
  --line-strong: #c9c6ba;
  --white: #fffefb;
  --radius: 8px;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, svg, canvas { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
a { color: inherit; text-decoration: none; }

::selection { background: var(--ink); color: var(--paper); }

/* ---------- type helpers ---------- */
.mono-label {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: var(--radius);
  font-weight: 600; font-size: 15px; letter-spacing: .01em;
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--blue); color: #fff; }
.btn.primary:hover { background: var(--blue-dark); }
.btn.secondary {
  background: transparent; color: var(--ink);
  border: 1px solid var(--line-strong);
}
.btn.secondary:hover { border-color: var(--ink); }
.btn.ghost { color: var(--ink-soft); }
.btn.ghost:hover { color: var(--ink); }
.btn.inverse { background: var(--paper); color: var(--ink); }
.btn.inverse:hover { background: #fff; }
.btn.big { padding: 15px 28px; font-size: 16px; }
.btn.wide { flex: 1; }

/* ---------- logo ---------- */
.logo {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--mono);
  font-weight: 700; font-size: 14px; letter-spacing: .08em;
  color: var(--ink); text-transform: uppercase;
}
.logo em { font-style: normal; color: var(--ink-soft); }
.logo svg { color: var(--ink); }
.logo.small { font-size: 12px; }

/* ---------- header ---------- */
.site-header {
  display: flex; align-items: center; gap: 20px;
  padding: 16px clamp(16px, 4vw, 48px);
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 246, 242, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-nav {
  display: none; gap: 26px; margin-left: 14px;
  font-family: var(--mono); font-size: 12px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-soft);
}
.site-nav a:hover { color: var(--ink); }
.nav-cta { margin-left: auto; padding: 9px 18px; font-size: 13.5px; }
@media (min-width: 720px) { .site-nav { display: flex; } }

/* ---------- hero ---------- */
.hero {
  display: grid; gap: 48px;
  padding: clamp(48px, 9vw, 110px) clamp(16px, 4vw, 48px) clamp(48px, 7vw, 90px);
  max-width: 1160px; margin: 0 auto;
  align-items: center;
}
@media (min-width: 900px) { .hero { grid-template-columns: 1.1fr .9fr; } }

.eyebrow {
  display: inline-block;
  font-family: var(--mono); font-size: 12px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--ink-soft);
  border: 1px solid var(--line-strong); border-radius: 3px;
  padding: 7px 12px; margin-bottom: 26px;
  background: var(--white);
}
.hero h1 {
  font-size: clamp(38px, 6.2vw, 64px);
  line-height: 1.02; letter-spacing: -.035em; font-weight: 750;
}
.hero h1 span { display: block; color: var(--ink-soft); font-weight: 400; font-style: italic; font-family: Georgia, "Times New Roman", serif; letter-spacing: -.02em; }
.hero .sub {
  margin: 24px 0 30px; font-size: clamp(16px, 2vw, 18px);
  color: var(--ink-soft); max-width: 520px;
}
.trust-row {
  list-style: none; margin-top: 40px;
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line-strong);
}
.trust-row li {
  padding: 14px 14px 0 0;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--ink-soft); line-height: 1.6;
}
.trust-row li + li { padding-left: 14px; border-left: 1px solid var(--line); }

/* scan-frame visual: a document being scanned */
.hero-visual { display: flex; justify-content: center; }
.scan-frame {
  position: relative; width: min(320px, 80vw); aspect-ratio: 3 / 4;
  display: flex; align-items: center; justify-content: center;
}
.scan-frame .corner {
  position: absolute; width: 26px; height: 26px;
  border: 2.5px solid var(--ink);
}
.scan-frame .corner.c1 { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.scan-frame .corner.c2 { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.scan-frame .corner.c3 { bottom: 0; right: 0; border-left: 0; border-top: 0; }
.scan-frame .corner.c4 { bottom: 0; left: 0; border-right: 0; border-top: 0; }
.scan-doc {
  width: 86%; height: 90%;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 24px 48px rgba(20, 22, 28, .10);
  padding: 30px 26px; position: relative; overflow: hidden;
}
.scan-doc .doc-head {
  font-family: var(--mono); font-size: 11px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink);
  padding-bottom: 12px; margin-bottom: 18px;
  border-bottom: 1px solid var(--ink);
  display: flex; justify-content: space-between;
}
.scan-doc .doc-line { height: 6px; background: var(--paper-deep); margin-bottom: 12px; }
.scan-doc .doc-line.w95 { width: 95%; } .scan-doc .doc-line.w88 { width: 88%; }
.scan-doc .doc-line.w76 { width: 76%; } .scan-doc .doc-line.w92 { width: 92%; }
.scan-doc .doc-line.w60 { width: 60%; } .scan-doc .doc-line.w84 { width: 84%; }
.scan-doc .doc-sig {
  margin-top: 26px;
  font-family: Georgia, serif; font-style: italic; font-size: 26px;
  color: var(--ink); transform: rotate(-4deg); display: inline-block;
}
.scan-doc .doc-stamp {
  position: absolute; right: 22px; bottom: 22px;
  font-family: var(--mono); font-size: 10px; letter-spacing: .12em;
  color: var(--blue); border: 1.5px solid var(--blue); border-radius: 3px;
  padding: 5px 8px; transform: rotate(3deg); opacity: .9;
}
.scanline {
  position: absolute; left: -4%; right: -4%; height: 2px;
  background: var(--blue);
  box-shadow: 0 0 14px 3px rgba(28, 79, 216, .35);
  animation: scanmove 3.4s ease-in-out infinite;
}
@keyframes scanmove {
  0%, 8%   { top: 4%; opacity: 0; }
  12%      { opacity: 1; }
  48%      { top: 94%; opacity: 1; }
  54%      { opacity: 0; }
  60%      { top: 94%; opacity: 0; }
  64%      { opacity: 1; }
  92%      { top: 4%; opacity: 1; }
  100%     { top: 4%; opacity: 0; }
}

/* ---------- section scaffolding ---------- */
section h2 {
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -.03em; line-height: 1.1; font-weight: 750;
}
.section-head {
  display: flex; flex-direction: column; gap: 12px;
  margin-bottom: 40px;
}
.section-num {
  font-family: var(--mono); font-size: 12px; letter-spacing: .16em;
  color: var(--ink-soft);
}
.section-sub { color: var(--ink-soft); max-width: 560px; }

/* ---------- features ---------- */
.features {
  max-width: 1160px; margin: 0 auto;
  padding: clamp(48px, 7vw, 90px) clamp(16px, 4vw, 48px);
  border-top: 1px solid var(--line-strong);
}
.feature-grid {
  display: grid; grid-template-columns: 1fr;
  border-top: 1px solid var(--line-strong);
  border-left: 1px solid var(--line-strong);
}
@media (min-width: 640px) { .feature-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .feature-grid { grid-template-columns: repeat(3, 1fr); } }
.feature {
  padding: 26px 24px 30px;
  border-right: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  background: var(--white);
}
.f-num {
  font-family: var(--mono); font-size: 12px; letter-spacing: .12em;
  color: var(--ink-soft); display: block; margin-bottom: 18px;
}
.feature h3 { font-size: 17px; margin-bottom: 8px; letter-spacing: -.01em; }
.feature p { color: var(--ink-soft); font-size: 14.5px; }

/* ---------- how it works ---------- */
.how {
  max-width: 1160px; margin: 0 auto;
  padding: clamp(48px, 7vw, 90px) clamp(16px, 4vw, 48px);
  border-top: 1px solid var(--line-strong);
}
.steps {
  list-style: none;
  display: grid; gap: 0; grid-template-columns: 1fr;
  border-top: 1px solid var(--line-strong);
  margin-bottom: 44px;
}
@media (min-width: 720px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li {
  padding: 26px 26px 30px 0;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 720px) {
  .steps li { border-bottom: 0; }
  .steps li + li { padding-left: 26px; border-left: 1px solid var(--line); }
}
.step-num {
  font-family: Georgia, "Times New Roman", serif; font-style: italic;
  font-size: 44px; color: var(--ink); line-height: 1;
  display: block; margin-bottom: 14px;
}
.steps h3 { font-size: 17px; margin-bottom: 6px; }
.steps p { color: var(--ink-soft); font-size: 14.5px; }
.center { text-align: left; }

/* ---------- privacy band ---------- */
.privacy-band {
  background: var(--ink); color: var(--paper);
  padding: clamp(56px, 8vw, 100px) clamp(16px, 4vw, 48px);
}
.privacy-inner { max-width: 820px; margin: 0 auto; }
.privacy-band .mono-label { color: rgba(247, 246, 242, .55); margin-bottom: 18px; display: block; }
.privacy-band h2 { color: var(--paper); margin-bottom: 20px; }
.privacy-band p { color: rgba(247, 246, 242, .78); font-size: 17px; max-width: 680px; }
.privacy-band strong { color: var(--paper); }

/* ---------- FAQ ---------- */
.faq {
  max-width: 820px; margin: 0 auto;
  padding: clamp(48px, 7vw, 90px) clamp(16px, 4vw, 48px);
}
.faq h2 { margin-bottom: 32px; }
.faq details { border-top: 1px solid var(--line-strong); }
.faq details:last-of-type { border-bottom: 1px solid var(--line-strong); }
.faq summary {
  font-weight: 600; cursor: pointer; list-style: none;
  position: relative; padding: 18px 40px 18px 0; font-size: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; position: absolute; right: 4px; top: 14px;
  font-family: var(--mono); font-weight: 400;
  color: var(--ink-soft); font-size: 20px;
}
.faq details[open] summary::after { content: '−'; }
.faq details p { padding: 0 0 20px; color: var(--ink-soft); font-size: 15px; max-width: 640px; }

/* ---------- final CTA ---------- */
.final-cta {
  max-width: 1160px; margin: 0 auto;
  padding: clamp(56px, 8vw, 110px) clamp(16px, 4vw, 48px);
  border-top: 1px solid var(--line-strong);
}
.final-cta h2 { margin-bottom: 14px; }
.final-cta p { color: var(--ink-soft); margin-bottom: 30px; }

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--line-strong);
  padding: 26px clamp(16px, 4vw, 48px) calc(26px + env(safe-area-inset-bottom));
}
.footer-inner {
  max-width: 1160px; margin: 0 auto;
  display: flex; flex-wrap: wrap; gap: 12px;
  align-items: center; justify-content: space-between;
}
.site-footer p {
  color: var(--ink-soft); font-size: 12px;
  font-family: var(--mono); letter-spacing: .04em;
}
