/* =========================================================================
   OnDevice OCR Pro — Landing page styles
   Quiet, document-like, trustworthy. One azure accent (from the app icon),
   generous whitespace, Apple-native system type. No flash.
   ========================================================================= */

:root {
  --bg:         #FFFFFF;
  --bg-soft:    #F6F8FB;   /* milk-glass off-white sections */
  --ink:        #1D1D1F;   /* near-black body text */
  --ink-soft:   #5B5E66;   /* secondary text */
  --ink-faint:  #6E6E73;   /* captions / fine print — AA on white (~4.7:1) */
  --hairline:   #E6E8EC;   /* borders / dividers */
  --accent:     #4592CD;   /* icon azure — fills / illustrations */
  --accent-ink: #15639F;   /* deeper azure — links / emphasis (AA on white) */
  --accent-deep:#0A3D62;   /* dark navy — headline highlight words */
  --accent-soft:#EAF2F9;   /* faint azure wash */
  --maxw:       1080px;
  --radius:     14px;
  --shadow-soft: 0 1px 2px rgba(16,24,40,.04), 0 12px 32px rgba(16,24,40,.07);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ---- reset ------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body, h1, h2, h3, p, ul, figure, dl, dd { margin: 0; }
ul { padding: 0; list-style: none; }
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---- base -------------------------------------------------------------- */
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.container {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 24px;
}

section { padding-block: clamp(56px, 9vw, 104px); }
.section-soft { background: var(--bg-soft); border-block: 1px solid var(--hairline); }

h1 {
  font-size: clamp(2.1rem, 5.2vw, 3.6rem);
  line-height: 1.06;
  letter-spacing: -0.025em;
  font-weight: 600;
  text-wrap: balance;   /* even out line breaks so no lonely last word */
}
h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 600;
}
h3 { font-size: 1.0625rem; font-weight: 600; letter-spacing: -0.01em; }

.lead { font-size: clamp(1.05rem, 1.8vw, 1.3rem); color: var(--ink-soft); }
.eyebrow {
  font-size: .78rem; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent-ink);
}
.measure { max-width: 60ch; }
.center { text-align: center; margin-inline: auto; }

/* ---- App Store badge --------------------------------------------------- */
.badge { display: inline-block; transition: transform .2s ease, filter .2s ease; }
.badge img { width: 200px; height: auto; }
.badge:hover { transform: translateY(-1px); filter: brightness(1.06); text-decoration: none; }
.badge:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; border-radius: 12px; }
.req-note { margin-top: 14px; font-size: .85rem; color: var(--ink-faint); }
.trial-strip { background: var(--accent-soft); border-block: 1px solid var(--hairline); }
.trial-strip .container {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 16px 28px; padding-block: 26px;
}
.trial-strip p {
  margin: 0; font-size: clamp(1.15rem, 2vw, 1.4rem); font-weight: 600; color: var(--ink);
}

/* =========================================================================
   HERO
   ========================================================================= */
.hero {
  position: relative;
  padding-top: clamp(48px, 7vw, 88px);
  overflow: hidden;
}
/* faint azure glow echoing the glass icon */
.hero::before {
  content: "";
  position: absolute; inset: -20% 0 auto 0; height: 460px;
  background: radial-gradient(60% 70% at 50% 0%, var(--accent-soft) 0%, rgba(234,242,249,0) 70%);
  z-index: 0; pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero-grid {
  display: grid; grid-template-columns: 1.5fr 1fr;
  gap: clamp(32px, 5vw, 64px); align-items: center;
}
/* brand lockup: icon + wordmark, the quiet product identity */
.hero-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; }
.hero-icon { width: 64px; height: 64px; border-radius: 14px; box-shadow: var(--shadow-soft); flex: none; }
.hero-wordmark {
  font-size: clamp(1.15rem, 1.7vw, 1.4rem);
  font-weight: 600; letter-spacing: -0.015em;
  color: var(--ink); line-height: 1.12;
}
.hero h1 { margin-bottom: 18px; }
.hero .lead .em { color: var(--ink); font-weight: 600; }
.hero h1 .hero-line2 { display: block; margin-top: 0.28em; font-size: 0.8em; }
.hero h1 .hl { color: var(--accent-deep); }
.hero h1 .accent-em { font-style: italic; color: var(--ink); }
.hero .lead { margin-bottom: 30px; }

/* framed screenshot with a soft, glassy edge */
.shot {
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #FFFFFF, var(--bg-soft));
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}
.shot::after { /* fallback look when the <img> has no source yet */
  content: attr(data-label);
  aspect-ratio: 16/10;
  color: var(--ink-faint); font-size: .85rem;
  display: flex; align-items: center; justify-content: center;
}
.shot img { display: block; width: 100%; }
.shot.has-img::after { display: none; }

/* hero mockup: transparent PNG that already includes its own device frame —
   no border/box, let it float; a soft drop-shadow follows the laptop silhouette */
.hero-shot { margin: 0; }
.hero-shot img { width: 100%; filter: drop-shadow(0 18px 40px rgba(16,24,40,.16)); }

/* =========================================================================
   TRUST STRIP
   ========================================================================= */
.trust {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 14px 0; padding-block: 24px;
}
.trust li {
  display: flex; align-items: center; gap: 9px;
  font-size: 1rem; font-weight: 600; letter-spacing: 0;
  color: var(--ink);
  padding-inline: clamp(18px, 3.4vw, 42px);
}
.trust li:not(:last-child) { border-right: 1px solid var(--hairline); }
.trust-check { width: 18px; height: 18px; color: var(--accent-ink); flex: none; }

/* =========================================================================
   FEATURES
   ========================================================================= */
.features-head { max-width: 56ch; margin-bottom: clamp(36px, 5vw, 60px); }
.features-head h2 { margin-bottom: 12px; }

.feature-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(30px, 4vw, 46px) clamp(30px, 4vw, 58px);
}
.feature { display: grid; grid-template-columns: 22px 1fr; gap: 14px; align-items: start; }
.feature .ico {
  width: 22px; height: 22px; display: grid; place-items: center;
  margin-top: 1px;
  color: var(--accent-ink);
}
.feature .ico svg { width: 21px; height: 21px; }
.feature h3 {
  margin-bottom: 7px;
  color: var(--ink);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.18;
}
.feature p { color: var(--ink); font-size: .95rem; font-weight: 500; line-height: 1.45; max-width: 26ch; }

.made-for {
  margin-top: clamp(40px, 6vw, 64px);
  padding-top: clamp(28px, 4vw, 40px);
  border-top: 1px solid var(--hairline);
  text-align: center; color: var(--ink-soft); font-size: .98rem;
}
.made-for b { color: var(--ink); font-weight: 600; }

/* =========================================================================
   PRIVACY BLOCK
   ========================================================================= */
.privacy { text-align: center; }
.privacy h2 { max-width: 18ch; margin: 0 auto 22px; }
.privacy p { max-width: 64ch; margin-inline: auto; color: var(--ink-soft); }
.privacy .lead { color: var(--ink); }
.privacy .tail { margin-top: 16px; font-size: .95rem; color: var(--ink-faint); }

/* =========================================================================
   FAQ
   ========================================================================= */
.faq-head { margin-bottom: clamp(28px, 4vw, 44px); }
.faq { max-width: 760px; margin-inline: auto; }
.faq .qa { padding-block: 22px; border-top: 1px solid var(--hairline); }
.faq .qa:last-child { border-bottom: 1px solid var(--hairline); }
.faq h3 { margin-bottom: 6px; }
.faq p { color: var(--ink-soft); }

/* =========================================================================
   FINAL CTA
   ========================================================================= */
.cta { text-align: center; }
.cta h2 { margin-bottom: 26px; }

/* =========================================================================
   FOOTER
   ========================================================================= */
footer { border-top: 1px solid var(--hairline); padding-block: 40px; }
footer .container {
  display: flex; flex-wrap: wrap; gap: 14px 28px;
  align-items: center; justify-content: space-between;
}
footer nav { display: flex; flex-wrap: wrap; gap: 22px; }
footer a, footer .copy { font-size: .88rem; color: var(--ink-soft); }
footer .copy { color: var(--ink-faint); }
footer nav [aria-current="page"] { color: var(--ink-faint); cursor: default; pointer-events: none; }

/* =========================================================================
   LEGAL SUBPAGES (imprint / privacy)
   ========================================================================= */
.legal { padding-block: clamp(48px, 7vw, 88px); }
.legal .back { font-size: .9rem; display: inline-block; margin-bottom: 28px; }
.legal h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 28px; }
.legal h2 { font-size: 1.2rem; margin-top: 36px; margin-bottom: 10px; }
.legal p, .legal dd { color: var(--ink-soft); max-width: 70ch; margin-bottom: 12px; }
.legal dt { font-weight: 600; color: var(--ink); margin-top: 14px; }
.legal dd { margin-left: 0; }
.legal .updated { color: var(--ink-faint); font-size: .9rem; margin-bottom: 28px; }

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-text { order: 1; }
  .hero-figure { order: 2; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  section { padding-block: 48px; }
  .container { padding-inline: 20px; }
  .hero {
    padding-top: 28px;
    padding-bottom: 42px;
  }
  .hero-grid { gap: 26px; }
  .hero-brand { margin-bottom: 20px; }
  .hero-icon { width: 56px; height: 56px; border-radius: 12px; }
  .hero h1 { margin-bottom: 16px; }
  .hero .lead { margin-bottom: 24px; }
  .feature-grid { grid-template-columns: 1fr; }
  .trust li:nth-child(2n) { border-right: 0; }
  footer .container { flex-direction: column; align-items: flex-start; }
}

/* =========================================================================
   MOTION — one quiet staggered reveal on load; respect reduced motion
   ========================================================================= */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(14px); animation: rise .7s cubic-bezier(.2,.7,.2,1) forwards; }
  .reveal.d1 { animation-delay: .06s; }
  .reveal.d2 { animation-delay: .14s; }
  .reveal.d3 { animation-delay: .22s; }
  .reveal.d4 { animation-delay: .30s; }
  @keyframes rise { to { opacity: 1; transform: none; } }
}

/* visible keyboard focus everywhere */
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
