/* LocalDoc site: shared styles (index, partner). Colors from the app and the logo. */
:root {
  color-scheme: dark;
  --bg: #0b1120;
  --surface: rgb(15 23 42 / 0.72);
  --surface-2: #111a2e;
  --border: rgb(148 163 184 / 0.16);
  --border-strong: rgb(148 163 184 / 0.28);
  --text: #e2e8f0;
  --muted: #94a3b8;
  --heading: #f8fafc;
  --accent: #38bdf8;
  --accent-2: #a78bfa;
  --grad: linear-gradient(120deg, #38bdf8, #60a5fa 55%, #a78bfa);
  --ok: #34d399;
  --err: #f87171;
  --radius: 18px;
  --font: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background:
    radial-gradient(1200px 700px at 0% -10%, rgb(56 189 248 / 0.13), transparent 60%),
    radial-gradient(1000px 600px at 100% 0%, rgb(167 139 250 / 0.12), transparent 60%),
    var(--bg);
  color: var(--text);
  font: 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3 { color: var(--heading); line-height: 1.15; margin: 0 0 .6em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.3rem, 5.4vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.2rem; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: .9rem; }
section { padding: 96px 0; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 640px; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }

/* Header */
header.top { position: sticky; top: 0; z-index: 20; backdrop-filter: blur(14px); background: rgb(11 17 32 / 0.72); border-bottom: 1px solid var(--border); }
header.top .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.25rem; color: var(--heading); }
.brand img { width: 34px; height: 34px; }
.brand span span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
nav.links { display: flex; gap: 22px; margin-left: auto; }
nav.links a { color: var(--muted); font-size: .95rem; font-weight: 500; }
nav.links a:hover { color: var(--heading); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 12px; font-weight: 600; font-size: 1rem; border: 1px solid var(--border-strong); color: var(--heading); background: transparent; cursor: pointer; font-family: inherit; transition: transform .15s, box-shadow .15s; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--grad); border: 0; color: #0b1120; box-shadow: 0 8px 28px rgb(56 189 248 / 0.28); }
.btn-small { padding: 9px 16px; font-size: .92rem; }

/* Hero */
.hero { padding: 80px 0 40px; text-align: center; }
.hero .lead { margin: 0 auto 2rem; font-size: 1.25rem; }
.hero .cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.pills { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin: 0 0 1.6rem; }
.pill { font-size: .85rem; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--border-strong); color: var(--text); background: var(--surface); }
.pill b { color: var(--ok); font-weight: 600; }
.shot { position: relative; border-radius: var(--radius); border: 1px solid var(--border-strong); background: var(--surface-2); padding: 10px; box-shadow: 0 30px 80px rgb(2 6 23 / 0.6), 0 0 0 1px rgb(56 189 248 / 0.06); }
.shot::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: var(--grad); opacity: .35; -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.shot .bar { display: flex; gap: 6px; padding: 4px 6px 10px; }
.shot .bar i { width: 10px; height: 10px; border-radius: 50%; background: rgb(148 163 184 / 0.25); }
.shot img { border-radius: 10px; width: 100%; height: auto; }
.frame { position: relative; }
.hero .shot { margin: 56px auto 0; max-width: 1040px; }
.glow { position: relative; }
.glow::after { content: ""; position: absolute; inset: 15% 10% -10%; background: var(--grad); filter: blur(90px); opacity: .18; z-index: -1; }

/* Steps */
.steps { position: relative; margin-top: 56px; display: grid; gap: 88px; }
.steps::before { content: ""; position: absolute; left: 27px; top: 30px; bottom: 30px; width: 2px; background: repeating-linear-gradient(to bottom, rgb(96 165 250 / 0.55) 0 8px, transparent 8px 16px); }
.step { position: relative; display: grid; grid-template-columns: 56px 1fr 1.35fr; gap: 32px; align-items: center; }
.step .num { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 1.3rem; color: #0b1120; background: var(--grad); box-shadow: 0 0 0 8px var(--bg), 0 0 30px rgb(56 189 248 / 0.4); align-self: start; position: relative; z-index: 1; }
.step .text h3 { font-size: 1.55rem; }
.step .text p { color: var(--muted); }
.step .text ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.step .text li { display: flex; gap: 10px; color: var(--text); font-size: .98rem; }
.step .text li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 4px; border-radius: 50%; background: rgb(52 211 153 / 0.15) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='%2334d399' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; }
.visual { position: relative; }

/* Annotations drawn over the screenshots */
.note { position: absolute; z-index: 2; display: flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 10px; font-size: .85rem; font-weight: 600; color: #0b1120; background: var(--grad); box-shadow: 0 10px 30px rgb(2 6 23 / 0.5); white-space: nowrap; }
.note::after { content: ""; position: absolute; width: 10px; height: 10px; background: #60a5fa; transform: rotate(45deg); }
.note.down::after { bottom: -5px; left: 22px; }
.note.up::after { top: -5px; left: 22px; }
.note.left::after { left: -5px; top: calc(50% - 5px); background: #38bdf8; }
.ring { position: absolute; z-index: 1; border: 2px dashed #7dd3fc; border-radius: 12px; box-shadow: 0 0 0 4px rgb(56 189 248 / 0.12); pointer-events: none; }

/* Hotfolder illustration */
.drop { border-radius: var(--radius); border: 1px solid var(--border-strong); background: linear-gradient(160deg, rgb(56 189 248 / 0.08), rgb(167 139 250 / 0.08)), var(--surface-2); padding: 28px; }
.drop svg { width: 100%; height: auto; }
.flow { fill: none; stroke: url(#flow-g); stroke-width: 3; stroke-dasharray: 8 9; animation: dash 1.4s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -34; } }
.doc-fly { animation: fly 4.5s ease-in-out infinite; }
.doc-fly.d2 { animation-delay: 1.5s; }
.doc-fly.d3 { animation-delay: 3s; }
@keyframes fly {
  0% { transform: translate(0, 0); opacity: 0; }
  10% { opacity: 1; }
  70% { transform: translate(220px, 22px); opacity: 1; }
  85%, 100% { transform: translate(232px, 32px); opacity: 0; }
}

/* Pipeline */
.pipeline { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 1.2rem 0 0; }
.stage { display: flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--surface); font-size: .86rem; font-weight: 600; animation: lit 6s infinite; }
.stage::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); animation: dot 6s infinite; animation-delay: inherit; }
.stage:nth-child(3) { animation-delay: 1s; } .stage:nth-child(5) { animation-delay: 2s; } .stage:nth-child(7) { animation-delay: 3s; } .stage:nth-child(9) { animation-delay: 4s; }
.arrow { color: var(--muted); font-size: .9rem; }
@keyframes lit { 0%, 12% { border-color: var(--border-strong); } 16%, 80% { border-color: rgb(52 211 153 / 0.6); } 100% { border-color: var(--border-strong); } }
@keyframes dot { 0%, 12% { background: var(--muted); } 16%, 80% { background: var(--ok); box-shadow: 0 0 10px var(--ok); } 100% { background: var(--muted); } }

/* Features */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 48px; }
.card { border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); padding: 26px; }
.card .ico { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 16px; background: linear-gradient(140deg, rgb(56 189 248 / 0.18), rgb(167 139 250 / 0.18)); border: 1px solid rgb(96 165 250 / 0.3); }
.card .ico svg { width: 24px; height: 24px; stroke: #7dd3fc; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card p { color: var(--muted); margin: 0; font-size: .97rem; }

/* Benefits */
.benefits { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.big-list { display: grid; gap: 22px; margin-top: 28px; }
.big-list div { display: grid; grid-template-columns: 52px 1fr; gap: 16px; }
.big-list b { display: block; color: var(--heading); font-size: 1.1rem; margin-bottom: 2px; }
.big-list span { color: var(--muted); font-size: .97rem; }
.big-list .k { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-size: 1.4rem; background: var(--surface); border: 1px solid var(--border-strong); }
.offline { border-radius: var(--radius); border: 1px solid var(--border-strong); background: var(--surface-2); padding: 30px; }
.offline svg { width: 100%; height: auto; }

.sectors { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 32px; }
.sectors span { padding: 10px 18px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border-strong); font-weight: 500; }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: start; }
.price-box { border-radius: var(--radius); padding: 28px; border: 1px solid var(--border-strong); background: linear-gradient(160deg, rgb(56 189 248 / 0.1), rgb(167 139 250 / 0.1)); margin-top: 24px; }
.price-box ul { margin: 0; padding-left: 1.1em; color: var(--text); }
.price-box li { margin-bottom: 6px; }
form.card { padding: 30px; background: var(--surface-2); border-color: var(--border-strong); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
label { display: block; font-size: .9rem; font-weight: 600; margin: 0 0 6px; color: var(--text); }
.field { margin-bottom: 16px; }
input, select, textarea { width: 100%; font: inherit; font-size: 1rem; color: var(--heading); background: var(--bg); border: 1px solid var(--border-strong); border-radius: 11px; padding: 11px 13px; }
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid rgb(56 189 248 / 0.5); outline-offset: 1px; border-color: transparent; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: .9rem; color: var(--muted); }
.check input { width: 18px; height: 18px; margin-top: 3px; flex: none; accent-color: #38bdf8; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.status { margin-top: 14px; padding: 12px 14px; border-radius: 11px; font-size: .95rem; display: none; }
.status.ok { display: block; background: rgb(52 211 153 / 0.12); border: 1px solid rgb(52 211 153 / 0.4); color: #a7f3d0; }
.status.err { display: block; background: rgb(248 113 113 / 0.12); border: 1px solid rgb(248 113 113 / 0.4); color: #fecaca; }
form .btn-primary { width: 100%; margin-top: 6px; }

/* Privacy banner */
.consent { position: fixed; z-index: 30; left: 16px; right: 16px; bottom: 16px; margin-inline: auto; max-width: 860px; display: none; align-items: center; gap: 20px; padding: 18px 20px; border-radius: 16px; border: 1px solid var(--border-strong); background: rgb(17 26 46 / 0.96); backdrop-filter: blur(12px); box-shadow: 0 20px 50px rgb(2 6 23 / 0.6); }
.consent.show { display: flex; }
.consent p { margin: 0; font-size: .92rem; color: var(--text); }
.consent .actions { display: flex; gap: 10px; flex: none; }
@media (max-width: 640px) { .consent { flex-direction: column; align-items: stretch; } .consent .actions { justify-content: flex-end; } }

footer { border-top: 1px solid var(--border); padding: 36px 0; color: var(--muted); font-size: .9rem; }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; }

@media (max-width: 900px) {
  section { padding: 72px 0; }
  nav.links { display: none; }
  header.top .btn { margin-left: auto; }
  .step { grid-template-columns: 44px 1fr; gap: 18px 18px; }
  .step .num { width: 44px; height: 44px; font-size: 1.1rem; }
  .steps::before { left: 21px; }
  .step .visual { grid-column: 1 / -1; }
  .steps { gap: 64px; }
  .grid { grid-template-columns: 1fr 1fr; }
  .benefits, .contact { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .grid, .row { grid-template-columns: 1fr; }
  .note { font-size: .68rem; padding: 4px 8px; border-radius: 7px; }
  .note.down::after, .note.up::after { left: 12px; width: 7px; height: 7px; }
  .hero { padding-top: 56px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .doc-fly { opacity: 0; }
  .doc-fly.d1 { opacity: 1; transform: translate(220px, 22px); }
}
