/* ===========================================================================
   PDF to Scan — landing site
   Dark theme matching the app: #0A0A0D bg, #1B7CFF accent. Zero-JS, mobile-first.
   =========================================================================== */

:root {
  --bg:        #0A0A0D;
  --bg-soft:   #101015;
  --surface:   #16161B;
  --surface-2: #1E1E25;
  --border:    rgba(255, 255, 255, 0.08);
  --border-2:  rgba(255, 255, 255, 0.14);
  --text:      #F5F5F7;
  --text-dim:  rgba(255, 255, 255, 0.62);
  --text-faint:rgba(255, 255, 255, 0.40);
  --accent:    #1B7CFF;
  --accent-2:  #5AA0FF;
  --accent-soft: rgba(27, 124, 255, 0.14);
  --radius:    20px;
  --radius-sm: 14px;
  --maxw:      1080px;
  --ease:      cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

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

/* ---- focus visibility (a11y) ---- */
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 6px; }

/* ===========================  Header  ============================= */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  background: rgba(10, 10, 13, 0.72);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 62px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--text); font-size: 17px; }
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { color: var(--text-dim); font-size: 15px; font-weight: 500; }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-links a.is-active { color: var(--text); }
.nav-links .nav-cta { color: #fff; }
.nav-links .nav-cta:hover { color: #fff; }

/* hamburger (mobile only) */
.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: 0; cursor: pointer; padding: 8px; margin: -8px -8px -8px 0;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: .22s var(--ease); }
.site-header.open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header.open .nav-toggle span:nth-child(2) { opacity: 0; }
.site-header.open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute; top: 62px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 24px 40px -20px rgba(0, 0, 0, 0.9);
    max-height: 0; overflow: hidden; transition: max-height .26s var(--ease);
  }
  .site-header.open .nav-links { max-height: 420px; }
  .nav-links a { padding: 15px 22px; font-size: 16px; border-top: 1px solid var(--border); }
  .nav-links a:first-child { border-top: 0; }
  .nav-links .nav-cta { margin: 14px 22px 18px; padding: 14px; border-top: 0; }
}

/* ===========================  Buttons  =========================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-weight: 600; font-size: 16px; line-height: 1;
  padding: 14px 22px; border-radius: var(--radius-sm);
  border: 1px solid transparent; cursor: pointer;
  transition: transform .18s var(--ease), background .18s var(--ease), border-color .18s var(--ease);
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #2f8aff; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border-2); }
.btn-ghost:hover { background: var(--surface); }

/* App Store badge ----------------------------------------------------------- */
.appstore-badge {
  display: inline-flex; align-items: center; gap: 12px;
  background: #000; border: 1px solid var(--border-2);
  border-radius: var(--radius-sm); padding: 11px 20px; color: #fff;
  transition: transform .18s var(--ease), border-color .18s var(--ease);
}
.appstore-badge:hover { text-decoration: none; transform: translateY(-2px); border-color: var(--accent); }
.appstore-badge svg { width: 26px; height: 26px; flex: none; }
.appstore-badge .ab-text { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.appstore-badge .ab-small { font-size: 11px; color: var(--text-dim); letter-spacing: .02em; }
.appstore-badge .ab-big { font-size: 19px; font-weight: 600; }
.appstore-badge.is-soon { cursor: default; }
.appstore-badge.is-soon:hover { transform: none; border-color: var(--border-2); }

/* ===========================  Hero  ============================== */
.hero { position: relative; text-align: center; padding: 78px 0 36px; }
.hero::before {
  content: ""; position: absolute; inset: -10% 0 auto 0; height: 520px; z-index: -1;
  background:
    radial-gradient(60% 70% at 50% 0%, rgba(27,124,255,0.22), transparent 70%);
  pointer-events: none;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent-soft); color: var(--accent-2);
  border: 1px solid rgba(27,124,255,0.30);
  font-size: 13px; font-weight: 600; letter-spacing: .01em;
  padding: 7px 14px; border-radius: 999px; margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(38px, 7vw, 66px); line-height: 1.04; font-weight: 800;
  letter-spacing: -0.03em; margin: 0 auto 18px; max-width: 14ch;
}
.hero h1 .grad {
  background: linear-gradient(120deg, var(--accent-2), var(--accent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.sub {
  font-size: clamp(17px, 2.4vw, 21px); color: var(--text-dim);
  max-width: 34ch; margin: 0 auto 30px;
}
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; align-items: center; }
.trust {
  display: flex; gap: 8px 22px; justify-content: center; flex-wrap: wrap;
  margin-top: 28px; color: var(--text-dim); font-size: 14px; font-weight: 500;
}
.trust span { display: inline-flex; align-items: center; gap: 7px; }
.trust svg { width: 16px; height: 16px; color: var(--accent-2); }

/* ===========================  Screenshot rail  =================== */
.showcase { padding: 30px 0 20px; }
.rail {
  display: flex; gap: 18px; overflow-x: auto; padding: 14px 22px 26px;
  scroll-snap-type: x mandatory; scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.rail::-webkit-scrollbar { display: none; }
.rail .shot {
  flex: 0 0 auto; width: 232px; scroll-snap-align: center;
  border-radius: 22px; overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 24px 60px -28px rgba(0,0,0,0.85);
  transition: transform .25s var(--ease);
}
.rail .shot:hover { transform: translateY(-6px); }
.rail .shot img { width: 100%; height: auto; }
@media (min-width: 1040px) {
  .rail { justify-content: center; overflow-x: visible; flex-wrap: nowrap; }
}

/* ===========================  Sections  ========================= */
section { padding: 64px 0; }
.section-head { text-align: center; max-width: 40ch; margin: 0 auto 44px; }
.section-head .kicker {
  text-transform: uppercase; letter-spacing: .14em; font-size: 12.5px; font-weight: 700;
  color: var(--accent-2); margin-bottom: 12px;
}
.section-head h2 {
  font-size: clamp(28px, 4.4vw, 42px); line-height: 1.1; letter-spacing: -0.02em; font-weight: 800;
}
.section-head p { color: var(--text-dim); margin-top: 14px; font-size: 18px; }

/* Features grid ------------------------------------------------------------ */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 880px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px 24px;
  transition: border-color .2s var(--ease), transform .2s var(--ease), background .2s var(--ease);
}
.card:hover { border-color: var(--border-2); transform: translateY(-4px); background: var(--surface-2); }
.card .icon {
  width: 50px; height: 50px; border-radius: 14px;
  display: grid; place-items: center; margin-bottom: 18px;
  background: var(--accent-soft); color: var(--accent-2);
}
.card .icon svg { width: 26px; height: 26px; }
.card h3 { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 8px; }
.card p { color: var(--text-dim); font-size: 15.5px; }

/* Privacy band ------------------------------------------------------------- */
.band {
  background:
    linear-gradient(180deg, rgba(27,124,255,0.10), rgba(27,124,255,0.02)),
    var(--surface);
  border: 1px solid rgba(27,124,255,0.22);
  border-radius: 26px; padding: 52px 40px; text-align: center;
}
.band h2 { font-size: clamp(26px, 4vw, 38px); font-weight: 800; letter-spacing: -0.02em; max-width: 22ch; margin: 0 auto 14px; }
.band p { color: var(--text-dim); max-width: 52ch; margin: 0 auto; font-size: 18px; }
.band .pills { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }
.band .pill {
  background: rgba(255,255,255,0.04); border: 1px solid var(--border);
  border-radius: 999px; padding: 10px 18px; font-size: 14.5px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 8px;
}
.band .pill svg { width: 17px; height: 17px; color: var(--accent-2); }

/* FAQ ---------------------------------------------------------------------- */
.faq { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq details {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); overflow: hidden;
}
.faq details[open] { border-color: var(--border-2); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 22px;
  font-weight: 600; font-size: 17px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-size: 24px; font-weight: 400; color: var(--accent-2);
  transition: transform .2s var(--ease); line-height: 1;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 22px 22px; color: var(--text-dim); font-size: 16px; }

/* Final CTA ---------------------------------------------------------------- */
.cta-final { text-align: center; }
.cta-final .band h2 { margin-bottom: 22px; }

/* ===========================  Footer  =========================== */
.site-footer {
  border-top: 1px solid var(--border); padding: 46px 0 56px; margin-top: 30px;
  color: var(--text-dim); font-size: 14.5px;
}
.footer-grid { display: flex; justify-content: space-between; align-items: flex-start; gap: 30px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; }
.footer-brand img { width: 28px; height: 28px; border-radius: 8px; }
.footer-links { display: flex; gap: 28px; flex-wrap: wrap; }
.footer-links a { color: var(--text-dim); }
.footer-links a:hover { color: var(--text); text-decoration: none; }
.footer-legal { margin-top: 26px; color: var(--text-faint); font-size: 13px; }

/* ===========================  Prose (legal/support pages)  ====== */
.prose { max-width: 760px; margin: 0 auto; padding: 56px 0 20px; }
.prose .eff { color: var(--text-faint); font-size: 15px; margin-bottom: 8px; }
.prose h1 { font-size: clamp(30px, 5vw, 40px); letter-spacing: -0.02em; font-weight: 800; margin-bottom: 6px; }
.prose h2 { font-size: 21px; font-weight: 700; margin-top: 36px; margin-bottom: 6px; }
.prose p { color: var(--text-dim); margin-bottom: 14px; }
.prose ul { color: var(--text-dim); margin: 0 0 16px 22px; }
.prose li { margin-bottom: 8px; }
.back-link { display: inline-flex; align-items: center; gap: 7px; color: var(--text-dim); font-size: 15px; margin-bottom: 8px; }
.back-link:hover { color: var(--text); text-decoration: none; }

/* support cards */
.support-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 28px 0 8px; }
@media (max-width: 560px) { .support-grid { grid-template-columns: 1fr; } }

/* ===========================  Inner-page header  =============== */
.page-hero { position: relative; text-align: center; padding: 72px 0 18px; }
.page-hero::before {
  content: ""; position: absolute; inset: -10% 0 auto 0; height: 360px; z-index: -1;
  background: radial-gradient(55% 60% at 50% 0%, rgba(27,124,255,0.16), transparent 70%);
}
.page-hero h1 { font-size: clamp(34px, 6vw, 54px); line-height: 1.05; letter-spacing: -0.03em; font-weight: 800; margin-bottom: 14px; }
.page-hero p { color: var(--text-dim); font-size: clamp(17px, 2.2vw, 20px); max-width: 46ch; margin: 0 auto; }

/* centered CTA row */
.center-cta { text-align: center; padding: 8px 0 4px; }
.center-cta .hero-cta { margin-top: 6px; }

/* ===========================  Contact form  =================== */
.form { max-width: 560px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; text-align: left; }
.field label { font-size: 14.5px; font-weight: 600; color: var(--text); }
.field input, .field textarea {
  font: inherit; font-size: 16px; color: var(--text);
  background: var(--surface); border: 1px solid var(--border-2); border-radius: var(--radius-sm);
  padding: 13px 15px; width: 100%; transition: border-color .18s var(--ease);
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.field textarea { resize: vertical; min-height: 130px; }
.field input::placeholder, .field textarea::placeholder { color: var(--text-faint); }
.form .btn-primary { align-self: flex-start; }
.form-hint { color: var(--text-faint); font-size: 14px; }
.hp { position: absolute; left: -9999px; }   /* honeypot */
@media (max-width: 560px) { .form .btn-primary { align-self: stretch; } }

/* reduce-motion respect */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
