/* ScanLM website. No web fonts, no scripts from elsewhere, no cookies:
   the site keeps the same promise as the app. */

:root {
  --bg: #f6f8fc;
  --surface: #ffffff;
  --surface-2: #eef3fb;
  --text: #0f1b2d;
  --muted: #55627a;
  --line: #dbe3f0;
  --brand: #1557c0;
  --brand-strong: #0b3d91;
  --brand-soft: #e3edfd;
  --glow: #3fb8ff;
  --ok: #1f8a4c;
  --ok-soft: #e2f4ea;
  --warn: #b3261e;
  --hero-a: #0b3d91;
  --hero-b: #1866d6;
  --hero-text: #ffffff;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(15, 27, 45, .06), 0 8px 24px rgba(15, 27, 45, .06);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1220;
    --surface: #121b2e;
    --surface-2: #17233b;
    --text: #e8eef9;
    --muted: #9aa8c2;
    --line: #24324d;
    --brand: #6ea8ff;
    --brand-strong: #9cc3ff;
    --brand-soft: #182a4a;
    --glow: #5cc8ff;
    --ok: #5ccf8d;
    --ok-soft: #12301f;
    --warn: #ff8a80;
    --hero-a: #08234f;
    --hero-b: #0f4aa6;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

a { color: var(--brand); text-underline-offset: 2px; }
a:hover { color: var(--brand-strong); }

img { max-width: 100%; height: auto; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; color: var(--text); text-decoration: none; }
.brand img { width: 32px; height: 32px; }
.site-nav { display: flex; gap: 18px; font-size: 15px; }
.site-nav a { color: var(--muted); text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); }

/* Hero */
.hero {
  background: radial-gradient(1200px 500px at 80% -10%, rgba(63, 184, 255, .35), transparent 60%),
              linear-gradient(160deg, var(--hero-a), var(--hero-b));
  color: var(--hero-text);
  padding: 72px 0 80px;
  overflow: hidden;
}
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(36px, 6vw, 58px); line-height: 1.05; margin: 0 0 18px; letter-spacing: -.02em; }
.hero h1 span { color: #9fe0ff; }
.hero p.lead { font-size: clamp(18px, 2.2vw, 21px); opacity: .92; margin: 0 0 28px; max-width: 34em; }
.hero-icon { justify-self: center; width: min(300px, 70vw); filter: drop-shadow(0 24px 48px rgba(0, 0, 0, .35)); border-radius: 22.5%; }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 20px; border-radius: 12px;
  font-weight: 600; font-size: 16px; text-decoration: none;
  border: 1px solid transparent;
}
.btn-store { background: #000; color: #fff; border-color: rgba(255, 255, 255, .25); }
.btn-store:hover { color: #fff; background: #111; }
.btn-store small { display: block; font-weight: 500; font-size: 11px; opacity: .8; line-height: 1; }
.btn-store strong { display: block; font-size: 18px; line-height: 1.15; }
.btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .45); }
.btn-ghost:hover { color: #fff; background: rgba(255, 255, 255, .1); }
.hero-note { font-size: 14px; opacity: .8; margin-top: 14px; }

/* Sections */
section { padding: 72px 0; }
section.alt { background: var(--surface-2); }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: 13px; font-weight: 700; color: var(--brand); margin: 0 0 8px; }
h2 { font-size: clamp(28px, 4vw, 38px); line-height: 1.15; margin: 0 0 16px; letter-spacing: -.01em; }
h3 { font-size: 20px; margin: 0 0 8px; }
.section-lead { color: var(--muted); font-size: 19px; max-width: 40em; margin: 0 0 36px; }

/* Privacy block */
.privacy-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.promise-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.promise-list li { display: flex; gap: 12px; align-items: flex-start; }
.promise-list .tick {
  flex: none; width: 26px; height: 26px; border-radius: 50%;
  background: var(--ok-soft); color: var(--ok);
  display: grid; place-items: center; font-weight: 800; font-size: 15px; margin-top: 2px;
}
.flow { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }
.flow svg { width: 100%; height: auto; display: block; }
.flow figcaption { color: var(--muted); font-size: 14px; margin-top: 10px; text-align: center; }

/* Feature cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.card p { margin: 0; color: var(--muted); font-size: 16px; }
.card .ico {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand); margin-bottom: 14px;
}
.card .ico svg { width: 22px; height: 22px; }

/* Model options */
.options { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.option { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.option ul { margin: 10px 0 0; padding-left: 20px; color: var(--muted); }
.tag { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); margin-bottom: 10px; }

/* FAQ / documents */
details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 0 20px; margin-bottom: 10px; }
details summary { cursor: pointer; font-weight: 600; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; color: var(--muted); font-weight: 400; font-size: 22px; line-height: 1; }
details[open] summary::after { content: "–"; }
details > div { padding: 0 0 16px; color: var(--muted); }
details > div p:first-child { margin-top: 0; }

.doc h1 { font-size: clamp(30px, 5vw, 42px); line-height: 1.1; margin: 0 0 8px; letter-spacing: -.01em; }
.doc .meta { color: var(--muted); margin: 0 0 32px; }
.doc h2 { font-size: 24px; margin: 40px 0 10px; }
.doc h3 { margin-top: 24px; }
.doc p, .doc li { color: var(--text); }
.doc ul { padding-left: 22px; }
.doc .summary-box { background: var(--ok-soft); border-radius: 14px; padding: 18px 20px; margin: 0 0 32px; }
.doc .summary-box p { margin: 0; }
.doc address { font-style: normal; line-height: 1.7; }
code { font: 14px/1.4 ui-monospace, "SF Mono", Menlo, Consolas, monospace; background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; }
.placeholder { background: #fff3c4; color: #5c4400; border-radius: 4px; padding: 0 4px; }
@media (prefers-color-scheme: dark) { .placeholder { background: #4a3b00; color: #ffe08a; } }

/* Contact form */
.contact-form { display: grid; gap: 18px; margin-top: 24px; }
.form-row { display: grid; gap: 6px; }
.form-row label { font-weight: 600; font-size: 15px; }
.optional { font-weight: 400; color: var(--muted); }
.contact-form input[type="text"], .contact-form input[type="email"], .contact-form select, .contact-form textarea {
  width: 100%; font: inherit; color: var(--text); background: var(--surface);
  border: 1px solid var(--line); border-radius: 10px; padding: 11px 13px;
}
.contact-form textarea { resize: vertical; min-height: 160px; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: 2px solid var(--brand); outline-offset: 1px; border-color: var(--brand); }
.contact-form .captcha input { max-width: 120px; }
.has-error input, .has-error textarea { border-color: var(--warn); }
.field-error { color: var(--warn); font-size: 14px; margin: 0; }
.form-alert { background: color-mix(in srgb, var(--warn) 12%, var(--surface)); color: var(--text); border-left: 3px solid var(--warn); border-radius: 8px; padding: 12px 14px; margin-top: 16px; }
.form-note { color: var(--muted); font-size: 14px; margin: 0; }
.btn-primary { background: var(--brand); color: #fff; border: 0; cursor: pointer; justify-self: start; }
.btn-primary:hover { background: var(--brand-strong); color: #fff; }
@media (prefers-color-scheme: dark) { .btn-primary, .btn-primary:hover { color: #0b1220; } }
.btn-primary:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
/* Honeypot: off-screen rather than display:none, which some bots detect. */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0 48px; color: var(--muted); font-size: 15px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
.site-footer a { color: var(--muted); }

/* Small screens */
@media (max-width: 860px) {
  .hero { padding: 48px 0 56px; }
  .hero .wrap, .privacy-grid, .options { grid-template-columns: 1fr; }
  .hero-icon { order: -1; width: 160px; justify-self: start; }
  .cards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .cards { grid-template-columns: 1fr; }
  .site-nav { gap: 12px; font-size: 14px; }
  .site-nav .hide-sm { display: none; }
  section { padding: 52px 0; }
}
