/* ScanFacile website. Light and dark follow the visitor's device. */
:root {
  --bg: #ffffff;
  --bg-soft: #f6f6fb;
  --card: #ffffff;
  --ink: #14141f;
  --ink-2: #4b4b5c;
  --muted: #6b6b7d;
  --line: #e6e6f0;
  --brand: #5b5bff;
  --brand-ink: #ffffff;
  --brand-soft: #eeeeff;
  --ok: #138a5b;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(20, 20, 40, .04), 0 8px 24px rgba(20, 20, 40, .06);
  --max: 1120px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c0c12;
    --bg-soft: #13131b;
    --card: #17171f;
    --ink: #f3f3f8;
    --ink-2: #c4c4d2;
    --muted: #9a9aad;
    --line: #262633;
    --brand: #8080ff;
    --brand-ink: #0c0c12;
    --brand-soft: #1d1d33;
    --ok: #3ccf91;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .35);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-underline-offset: 3px; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.015em; text-wrap: balance; margin: 0; }
p { margin: 0; }
.wrap { max-width: var(--max); margin: 0 auto; padding-inline: 20px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 12px; z-index: 10; background: var(--card); padding: 8px 12px; border-radius: 8px; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 6px; }

/* Header */
.top {
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 18px; }
.brand img { width: 32px; height: 32px; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { color: var(--ink-2); text-decoration: none; font-size: 15px; padding: 8px 12px; border-radius: 10px; }
.nav a:hover { background: var(--bg-soft); color: var(--ink); }
.lang { display: flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; flex: none; }
.top .nav + .lang { margin-left: 4px; }
.top .wrap > .lang:nth-child(2) { margin-left: auto; }
.lang a { font-size: 13px; font-weight: 700; letter-spacing: .03em; color: var(--muted); text-decoration: none; padding: 4px 10px; border-radius: 999px; }
.lang a:hover { color: var(--ink); }
.lang a[aria-current="true"] { background: var(--brand); color: var(--brand-ink); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 20px; border-radius: 12px;
  font-weight: 600; font-size: 15px; text-decoration: none;
  background: var(--brand); color: var(--brand-ink); border: 1px solid transparent;
}
.btn:hover { filter: brightness(1.06); }
.btn.ghost { background: var(--card); color: var(--ink); border-color: var(--line); }
.btn svg { width: 20px; height: 20px; flex: none; }
.store { min-width: 190px; justify-content: flex-start; }
.store small { display: block; font-size: 11px; font-weight: 500; opacity: .75; line-height: 1.1; }
.store span { display: block; line-height: 1.2; }
.store[aria-disabled="true"] { cursor: default; }

/* Hero */
.hero { padding-block: 72px 56px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: .02em;
  color: var(--brand); background: var(--brand-soft);
  padding: 6px 12px; border-radius: 999px; margin-bottom: 20px;
}
.hero h1 { font-size: clamp(34px, 5vw, 54px); font-weight: 800; }
.hero h1 em { font-style: normal; color: var(--brand); }
.lead { margin-top: 18px; font-size: 19px; color: var(--ink-2); max-width: 34em; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.note { margin-top: 12px; font-size: 14px; color: var(--muted); }
.ticks { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 28px 0 0; padding: 0; list-style: none; color: var(--ink-2); font-size: 15px; }
.ticks li { display: flex; align-items: center; gap: 8px; }
.ticks svg { width: 18px; height: 18px; color: var(--ok); flex: none; }

/* Phone frames around real app screenshots */
.phone {
  width: min(300px, 78vw); aspect-ratio: 780 / 1688; margin-inline: auto;
  border-radius: 40px; padding: 10px; background: #0b0b10;
  box-shadow: 0 30px 60px -20px rgba(40, 40, 120, .35), 0 0 0 1px rgba(255, 255, 255, .06) inset;
}
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 31px; }
.hero-visual { position: relative; }
.hero-visual::before {
  content: ""; position: absolute; inset: 8% -4% 0; z-index: -1;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--brand) 30%, transparent), transparent);
  filter: blur(20px);
}

/* Sections */
section { padding-block: 80px; }
section.soft { background: var(--bg-soft); }
.head { max-width: 640px; margin-bottom: 40px; }
.head.center { margin-inline: auto; text-align: center; }
.kicker { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); margin-bottom: 10px; }
h2 { font-size: clamp(28px, 3.4vw, 38px); font-weight: 750; }
.head p { margin-top: 14px; color: var(--ink-2); font-size: 17px; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.feature .ico {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand); margin-bottom: 16px;
}
.feature .ico svg { width: 22px; height: 22px; }
.feature h3 { font-size: 18px; margin-bottom: 6px; }
.feature p { color: var(--ink-2); font-size: 15px; }

.show { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.show + .show { margin-top: 88px; }
.show.flip .show-text { order: 2; }
.show-text h3 { font-size: clamp(24px, 2.8vw, 30px); font-weight: 750; }
.show-text p { margin-top: 14px; color: var(--ink-2); font-size: 17px; }
.show-text ul { margin: 20px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; color: var(--ink-2); }
.show-text li { display: flex; gap: 10px; }
.show-text li svg { width: 20px; height: 20px; color: var(--brand); flex: none; margin-top: 2px; }

.privacy { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.privacy div { border-top: 3px solid var(--brand); padding-top: 18px; }
.privacy h3 { font-size: 17px; margin-bottom: 6px; }
.privacy p { color: var(--ink-2); font-size: 15px; }

/* Plans */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 880px; margin-inline: auto; }
.plan { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 28px; display: flex; flex-direction: column; }
.plan.best { border: 2px solid var(--brand); box-shadow: var(--shadow); }
.plan h3 { font-size: 20px; display: flex; align-items: center; gap: 10px; }
.badge { font-size: 12px; font-weight: 700; color: var(--brand-ink); background: var(--brand); padding: 3px 10px; border-radius: 999px; }
.plan .price { margin-top: 8px; color: var(--muted); font-size: 15px; }
.plan ul { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.plan li { display: flex; gap: 10px; color: var(--ink-2); font-size: 15px; }
.plan li svg { width: 20px; height: 20px; flex: none; color: var(--ok); margin-top: 1px; }
.plan li.no { color: var(--muted); }
.plan li.no svg { color: var(--muted); }
.fine { margin-top: 20px; text-align: center; color: var(--muted); font-size: 14px; }
.fine.left { text-align: left; margin-top: 28px; font-size: 15px; }

/* FAQ */
.faq { max-width: 760px; margin-inline: auto; display: grid; gap: 10px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 0 20px; }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 0; font-weight: 600;
  display: flex; justify-content: space-between; gap: 16px; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; font-weight: 400; color: var(--muted); line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding-bottom: 18px; color: var(--ink-2); }

/* Contact */
.contact { text-align: center; }
.contact .mail {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 24px;
  font-size: 18px; font-weight: 600; padding: 14px 22px; border-radius: 14px;
  background: var(--card); border: 1px solid var(--line); color: var(--ink); text-decoration: none;
}
.contact .mail svg { width: 20px; height: 20px; color: var(--brand); }

/* Footer */
footer { border-top: 1px solid var(--line); padding-block: 36px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
footer a { color: var(--ink-2); text-decoration: none; }
footer a:hover { color: var(--ink); text-decoration: underline; }
footer .brand { font-size: 15px; }
footer .brand img { width: 24px; height: 24px; }

/* Legal pages */
.doc { max-width: 760px; margin: 0 auto; padding: 56px 20px 80px; }
.doc .back { display: inline-block; margin-bottom: 24px; font-size: 15px; text-decoration: none; }
.doc h1 { font-size: clamp(30px, 4vw, 40px); font-weight: 800; }
.doc .updated { margin-top: 8px; color: var(--muted); font-size: 14px; }
.doc .summary { margin-top: 28px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; }
.doc .summary p, .doc .summary li { color: var(--ink-2); }
.doc h2 { font-size: 21px; margin: 40px 0 10px; }
.doc h3 { font-size: 17px; margin: 22px 0 6px; }
.doc p, .doc li { color: var(--ink-2); }
.doc p + p { margin-top: 12px; }
.doc ul, .doc ol { padding-left: 22px; margin: 10px 0 0; }
.doc li { margin-bottom: 8px; }
.doc .table { overflow-x: auto; margin-top: 12px; }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 520px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.doc th { color: var(--ink); font-weight: 600; background: var(--bg-soft); }
.doc td { color: var(--ink-2); }
.steps { counter-reset: s; list-style: none; padding: 0 !important; display: grid; gap: 12px; }
.steps li { counter-increment: s; display: flex; gap: 14px; align-items: flex-start; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px; margin: 0 !important; }
.steps li::before { content: counter(s); flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: var(--brand-ink); font-weight: 700; font-size: 14px; }

/* Responsive */
@media (max-width: 920px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding-block: 48px 40px; text-align: center; }
  .lead { margin-inline: auto; }
  .cta, .ticks { justify-content: center; }
  .features, .privacy { grid-template-columns: 1fr 1fr; }
  .show { grid-template-columns: 1fr; gap: 32px; }
  .show.flip .show-text { order: 0; }
}
@media (max-width: 640px) {
  .nav a.opt { display: none; }
  .top .wrap { gap: 10px; }
  .nav a { padding: 8px; font-size: 14px; }
  section { padding-block: 56px; }
  .features, .privacy, .plans { grid-template-columns: 1fr; }
  .store { flex: 1 1 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
