/* ============================================================
   Doc Scanner – Premium Landing Page Styles
   Mobile-first, accessible, lightweight
   ============================================================ */

:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #dbeafe;
  --accent: #0ea5e9;
  --ink: #0f172a;
  --ink-soft: #475569;
  --muted: #64748b;
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --border: #e2e8f0;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 10px 30px rgba(15, 23, 42, 0.10);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.14);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --maxw: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  text-align: center;
}
.btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.30);
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 12px 26px rgba(37, 99, 235, 0.38); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); }

.btn-lg { padding: 17px 34px; font-size: 1.08rem; }

/* Google Play badge-style button */
.btn-play {
  background: #0f172a;
  color: #fff;
  border-radius: 14px;
  padding: 12px 22px;
  gap: 12px;
  box-shadow: var(--shadow-md);
}
.btn-play:hover { background: #1e293b; transform: translateY(-2px); }
.btn-play .play-icon { font-size: 1.6rem; line-height: 1; }
.btn-play .play-label { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.15; }
.btn-play .play-label small { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.06em; opacity: 0.75; }
.btn-play .play-label strong { font-size: 1.02rem; }

/* ---------- Navbar ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--ink);
}
.brand .logo {
  width: 34px; height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: grid; place-items: center;
  color: #fff; font-size: 1.05rem;
}
.nav-links { display: none; align-items: center; gap: 26px; }
.nav-links a { color: var(--ink-soft); font-weight: 500; font-size: 0.95rem; }
.nav-links a:hover { color: var(--primary); }
.nav-cta { display: none; }
.nav-toggle {
  background: none; border: none; cursor: pointer;
  width: 42px; height: 42px; border-radius: 10px;
  display: grid; place-items: center;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--ink); margin: 4px auto;
  border-radius: 2px; transition: 0.3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 10px 20px 20px;
  background: #fff;
  border-bottom: 1px solid var(--border);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  padding: 12px 10px;
  border-radius: 10px;
  color: var(--ink-soft);
  font-weight: 500;
}
.mobile-menu a:hover { background: var(--bg-soft); color: var(--primary); }
.mobile-menu .btn { margin-top: 10px; }

@media (min-width: 960px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .nav-toggle { display: none; }
  .mobile-menu { display: none !important; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 64px 0 80px;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(14, 165, 233, 0.12), transparent 60%),
    radial-gradient(700px 420px at 0% 20%, rgba(37, 99, 235, 0.10), transparent 55%),
    linear-gradient(180deg, #fbfdff 0%, #ffffff 100%);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  gap: 48px;
  align-items: center;
}
.hero-copy h1 {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.hero-copy h1 .grad {
  background: linear-gradient(120deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-copy p.lead {
  font-size: 1.12rem;
  color: var(--ink-soft);
  max-width: 540px;
  margin-bottom: 30px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 34px; }

.hero-visual { position: relative; display: grid; place-items: center; }
.phone {
  width: 260px;
  border-radius: 38px;
  background: #0f172a;
  padding: 12px;
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 2;
  animation: float 6s ease-in-out infinite;
}
.phone-screen {
  border-radius: 28px;
  background: #fff;
  overflow: hidden;
  aspect-ratio: 9 / 19;
  display: flex;
  flex-direction: column;
}
.phone-screen .mock-top {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  padding: 22px 16px 16px;
}
.phone-screen .mock-top h4 { font-size: 0.9rem; margin-bottom: 4px; }
.phone-screen .mock-top p { font-size: 0.72rem; opacity: 0.85; }
.phone-screen .mock-body { padding: 14px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.mock-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  background: #fff;
}
.mock-card .doc-line { height: 8px; border-radius: 4px; background: var(--border); margin-bottom: 8px; }
.mock-card .doc-line.short { width: 60%; }
.mock-card .doc-line.accent { background: var(--primary-light); width: 80%; }
.mock-card .doc-thumb {
  height: 70px; border-radius: 8px;
  background: linear-gradient(135deg, #eef2ff, #e0f2fe);
  margin-bottom: 10px;
  display: grid; place-items: center;
  font-size: 1.6rem;
}
.mock-btn {
  background: var(--primary); color: #fff;
  border-radius: 8px; padding: 9px; text-align: center;
  font-size: 0.72rem; font-weight: 600;
}

.float-doc {
  position: absolute;
  z-index: 1;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-md);
  padding: 12px 14px;
  font-size: 0.8rem;
  color: var(--ink-soft);
  display: flex; align-items: center; gap: 8px;
  animation: float 5s ease-in-out infinite;
}
.float-doc .ico { font-size: 1.2rem; }
.float-doc.f1 { top: 6%; left: -6%; animation-delay: 0.5s; }
.float-doc.f2 { bottom: 12%; right: -8%; animation-delay: 1.2s; }
.float-doc.f3 { top: 40%; right: -14%; animation-delay: 2s; }

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

@media (min-width: 960px) {
  .hero { padding: 90px 0 110px; }
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; gap: 40px; }
}

/* ---------- Trust bar ---------- */
.trust {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-soft);
  padding: 26px 0;
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.trust-item { display: flex; align-items: center; gap: 12px; }
.trust-item .t-ico {
  width: 42px; height: 42px; flex-shrink: 0;
  border-radius: 12px;
  background: var(--primary-light);
  color: var(--primary);
  display: grid; place-items: center;
  font-size: 1.2rem;
}
.trust-item strong { display: block; font-size: 0.98rem; }
.trust-item span { font-size: 0.85rem; color: var(--muted); }
@media (min-width: 760px) { .trust-grid { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section-alt { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 48px; }
.section-head .eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-light);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.section-head h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); letter-spacing: -0.02em; margin-bottom: 14px; }
.section-head p { color: var(--ink-soft); font-size: 1.05rem; }

/* ---------- Features ---------- */
.features-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: 1fr;
}
.feature-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.feature-card .f-ico {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  display: grid; place-items: center;
  font-size: 1.5rem;
  margin-bottom: 18px;
}
.feature-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.feature-card p { color: var(--ink-soft); font-size: 0.95rem; }
@media (min-width: 640px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .features-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- How it works ---------- */
.steps-grid { display: grid; gap: 22px; grid-template-columns: 1fr; }
.step-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow-sm);
}
.step-num {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 1.2rem;
  display: grid; place-items: center;
  margin-bottom: 18px;
}
.step-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.step-card p { color: var(--ink-soft); font-size: 0.95rem; }
.step-ill {
  margin-top: 18px;
  height: 90px;
  border-radius: 12px;
  background: linear-gradient(135deg, #eef2ff, #e0f2fe);
  display: grid; place-items: center;
  font-size: 2rem;
  color: var(--primary);
}
@media (min-width: 760px) { .steps-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Screenshots ---------- */
.shots-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}
.shot-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.shot-frame {
  background: linear-gradient(160deg, #eef2ff, #f0f9ff);
  aspect-ratio: 9 / 16;
  display: grid; place-items: center;
  font-size: 3rem;
  color: var(--primary);
}
.shot-card figcaption { padding: 14px 18px; font-size: 0.9rem; color: var(--ink-soft); }
@media (min-width: 640px) { .shots-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .shots-grid { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Benefits ---------- */
.benefits-grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
.benefit-item {
  display: flex; gap: 14px; align-items: flex-start;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px;
}
.benefit-item .b-ico {
  width: 40px; height: 40px; flex-shrink: 0;
  border-radius: 10px;
  background: var(--primary-light);
  color: var(--primary);
  display: grid; place-items: center;
  font-size: 1.1rem;
}
.benefit-item h4 { font-size: 1.02rem; margin-bottom: 4px; }
.benefit-item p { font-size: 0.9rem; color: var(--muted); }
@media (min-width: 640px) { .benefits-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Showcase ---------- */
.showcase {
  background:
    radial-gradient(800px 400px at 10% 0%, rgba(37, 99, 235, 0.10), transparent 55%),
    linear-gradient(180deg, #ffffff, #f8fafc);
  overflow: hidden;
}
.showcase-grid { display: grid; gap: 44px; align-items: center; }
.showcase-copy h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); letter-spacing: -0.02em; margin-bottom: 16px; }
.showcase-copy p { color: var(--ink-soft); margin-bottom: 24px; max-width: 520px; }
.showcase-copy .btn { margin-top: 8px; }
.showcase-visual { display: grid; place-items: center; }
@media (min-width: 960px) { .showcase-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- FAQ ---------- */
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.faq-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.faq-q {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  font: inherit;
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink);
  padding: 20px 22px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}
.faq-q .chev { transition: transform 0.3s ease; color: var(--primary); }
.faq-item.open .chev { transform: rotate(180deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.faq-a-inner { padding: 0 22px 20px; color: var(--ink-soft); font-size: 0.95rem; }
.faq-item.open .faq-a { max-height: 400px; }

/* ---------- Final CTA ---------- */
.final-cta {
  padding: 90px 0;
  background:
    radial-gradient(700px 400px at 50% 120%, rgba(14, 165, 233, 0.18), transparent 60%),
    linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  text-align: center;
}
.final-cta h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); letter-spacing: -0.02em; margin-bottom: 14px; }
.final-cta p { font-size: 1.1rem; opacity: 0.92; max-width: 560px; margin: 0 auto 32px; }
.final-cta .btn-play { background: #fff; color: var(--ink); }
.final-cta .btn-play:hover { background: #f1f5f9; }

/* ---------- Footer ---------- */
.footer { background: #0f172a; color: #cbd5e1; padding: 56px 0 28px; }
.footer-grid { display: grid; gap: 36px; grid-template-columns: 1fr; margin-bottom: 36px; }
.footer .brand { color: #fff; margin-bottom: 14px; }
.footer p.desc { font-size: 0.92rem; max-width: 320px; margin-bottom: 18px; }
.footer h5 { color: #fff; font-size: 0.95rem; margin-bottom: 14px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: #cbd5e1; font-size: 0.92rem; }
.footer-links a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 22px;
  text-align: center;
  font-size: 0.85rem;
  color: #94a3b8;
}
@media (min-width: 760px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Privacy page ---------- */
.page-hero {
  padding: 56px 0 40px;
  background: linear-gradient(180deg, #fbfdff, #ffffff);
  border-bottom: 1px solid var(--border);
}
.page-hero h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); letter-spacing: -0.02em; margin-bottom: 8px; }
.page-hero .updated { color: var(--muted); font-size: 0.95rem; }
.legal { padding: 56px 0 80px; }
.legal-wrap { max-width: 780px; margin: 0 auto; }
.legal-wrap .intro { font-size: 1.05rem; color: var(--ink-soft); margin-bottom: 36px; }
.legal-block { margin-bottom: 34px; }
.legal-block h2 { font-size: 1.35rem; margin-bottom: 12px; letter-spacing: -0.01em; }
.legal-block h3 { font-size: 1.05rem; margin: 18px 0 8px; color: var(--ink); }
.legal-block p, .legal-block li { color: var(--ink-soft); font-size: 0.98rem; margin-bottom: 10px; }
.legal-block ul { padding-left: 20px; list-style: disc; }
.legal-block .placeholder {
  background: #fffbeb;
  border: 1px dashed #f59e0b;
  color: #92400e;
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 0.92rem;
  margin: 12px 0;
}
.legal-block .placeholder strong { display: block; margin-bottom: 4px; }

/* ---------- 404 ---------- */
.error-page {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 60px 20px;
}
.error-page .code { font-size: clamp(4rem, 12vw, 7rem); font-weight: 800; color: var(--primary); line-height: 1; }
.error-page h1 { font-size: 1.6rem; margin: 12px 0 10px; }
.error-page p { color: var(--ink-soft); margin-bottom: 26px; }

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-1 { margin-top: 12px; }
.mt-2 { margin-top: 24px; }
.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;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .phone, .float-doc { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .feature-card { transition: none; }
}