/* PilotKYC landing page. Tokens, light + dark, mobile-first. No external resources. */

:root {
  --bg: #ffffff;
  --bg-alt: #f4f6fb;
  --card: #ffffff;
  --border: #e1e6f0;
  --text: #0e1530;
  --muted: #55607a;
  --accent: #2a55e5;
  --accent-strong: #1d41c2;
  --accent-soft: #eaeffd;
  --teal: #0a7a70;
  --ok: #12805c;
  --ok-soft: #e3f5ee;
  --code-bg: #0b1020;
  --code-text: #dbe4ff;
  --shadow: 0 1px 2px rgba(14, 21, 48, .05), 0 8px 24px rgba(14, 21, 48, .06);
  --radius: 14px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Noto Sans Thai", "Noto Sans SC", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a0f1f;
    --bg-alt: #0f1630;
    --card: #121a35;
    --border: #243055;
    --text: #e8edff;
    --muted: #9aa6c7;
    --accent: #7c9dff;
    --accent-strong: #a3baff;
    --accent-soft: #19254d;
    --teal: #39d0c0;
    --ok: #4cd6a1;
    --ok-soft: #10302a;
    --code-bg: #070b17;
    --shadow: none;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #0a0f1f;
  --bg-alt: #0f1630;
  --card: #121a35;
  --border: #243055;
  --text: #e8edff;
  --muted: #9aa6c7;
  --accent: #7c9dff;
  --accent-strong: #a3baff;
  --accent-soft: #19254d;
  --teal: #39d0c0;
  --ok: #4cd6a1;
  --ok-soft: #10302a;
  --code-bg: #070b17;
  --shadow: none;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}
img, svg { max-width: 100%; }
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }

.skip { position: absolute; left: -9999px; top: 0; z-index: 100; padding: 10px 14px; background: var(--accent); color: #fff; border-radius: 0 0 8px 0; }
.skip:focus { left: 0; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.wrap-narrow { max-width: 780px; }
.muted { color: var(--muted); }

/* ---------- header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 16px; height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; color: var(--text); letter-spacing: -.01em; }
.logo:hover { text-decoration: none; }
.logo-mark { width: 30px; height: 30px; flex: none; }
.nav { display: none; margin-left: 12px; gap: 4px; }
.nav a { white-space: nowrap; padding: 8px 10px; border-radius: 8px; color: var(--muted); font-size: 15px; font-weight: 500; }
.nav a:hover { color: var(--text); background: var(--bg-alt); text-decoration: none; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.lang { display: inline-flex; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.lang-btn { background: none; border: 0; padding: 0 12px; min-height: 44px; min-width: 44px; font-size: 13px; font-weight: 600; color: var(--muted); }
.lang-btn[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent); }
.header-login { display: none; white-space: nowrap; align-items: center; min-height: 44px; padding: 0 14px; border: 1px solid var(--border); border-radius: 10px; color: var(--text); font-size: 14px; font-weight: 600; }
.header-login:hover { background: var(--bg-alt); text-decoration: none; }
.nav .nav-login { display: none; }
@media (min-width: 640px) { .header-login { display: inline-flex; } }
.icon-btn { width: 44px; height: 44px; display: inline-grid; place-items: center; background: none; border: 1px solid var(--border); border-radius: 10px; }
.icon-btn:hover { background: var(--bg-alt); }
.icon-btn svg { width: 20px; height: 20px; }

@media (max-width: 1199px) {
  .nav {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; margin: 0; padding: 8px 12px 14px;
    background: var(--bg); border-bottom: 1px solid var(--border);
  }
  .nav.open { display: flex; }
  .nav a { min-height: 44px; display: flex; align-items: center; }
}
@media (max-width: 639px) {
  .nav .nav-login { display: flex; }
}
@media (min-width: 1200px) {
  .nav { display: flex; }
  .menu-btn { display: none; }
}
/* Russian nav labels are longer: tighter spacing keeps nav + Log in + controls inside the 1120px header. */
@media (min-width: 1200px) {
  html[lang="ru"] .header-inner { gap: 10px; }
  html[lang="ru"] .nav { margin-left: 4px; gap: 0; }
  html[lang="ru"] .nav a { padding: 8px 6px; font-size: 14px; }
  html[lang="ru"] .header-login { padding: 0 10px; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 12px; border: 1px solid transparent;
  font-weight: 600; font-size: 16px; text-decoration: none; transition: transform .12s ease, background .12s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: linear-gradient(135deg, #3b6bff, #2a55e5); color: #fff; }
.btn-primary:hover { background: linear-gradient(135deg, #4a78ff, #3560f0); }
.btn-secondary { background: var(--card); color: var(--text); border-color: var(--border); }
.btn-secondary:hover { border-color: var(--accent); }
.btn-light { background: #fff; color: #11265f; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .5); }
.btn-ghost:hover { background: rgba(255, 255, 255, .1); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-center { justify-content: center; }

/* ---------- hero ---------- */
.hero { padding: 48px 0 40px; background:
  radial-gradient(900px 420px at 85% -10%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%),
  radial-gradient(700px 360px at -5% 10%, color-mix(in srgb, var(--teal) 12%, transparent), transparent 70%); }
.hero-grid { display: grid; gap: 36px; grid-template-columns: minmax(0, 1fr); align-items: center; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--teal); margin-bottom: 10px; }
.hero h1 { font-size: clamp(2rem, 6.4vw, 3.4rem); line-height: 1.1; letter-spacing: -.025em; margin-bottom: 18px; }
.lead { font-size: 1.1rem; color: var(--muted); max-width: 56ch; margin-bottom: 26px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.chips li { font-size: 13px; font-weight: 500; padding: 5px 12px; border: 1px solid var(--border); border-radius: 999px; background: var(--card); color: var(--muted); }

.hero-code { display: grid; gap: 14px; min-width: 0; }
.code-card { background: var(--code-bg); color: var(--code-text); border: 1px solid #1b2547; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; min-width: 0; }
.code-head { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid #1b2547; font: 12px var(--mono); color: #8ea0d6; }
.dots { display: inline-flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: #2b3763; }
.code-title { margin-right: auto; }
.pill { font: 600 11px/20px var(--font); padding: 0 8px; border-radius: 999px; }
.pill-ok { background: #123a31; color: #5be3ae; }
.code-card pre { margin: 0; padding: 14px 16px; overflow-x: auto; font: 13px/1.65 var(--mono); tab-size: 2; }
.code-card code { font: inherit; }
.c-k { color: #7cc4ff; } .c-s { color: #9be2b5; } .c-p { color: #c4b5ff; } .c-n { color: #ffcf8b; }

@media (min-width: 900px) {
  .hero { padding: 80px 0 72px; }
  .hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; }
}

/* ---------- sections ---------- */
.section { padding: 64px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 720px; margin-bottom: 36px; }
.section-head h2 { font-size: clamp(1.6rem, 4.4vw, 2.3rem); line-height: 1.2; letter-spacing: -.02em; }
.sub { color: var(--muted); margin-top: 12px; font-size: 1.05rem; }
.note { margin-top: 22px; color: var(--muted); font-size: 15px; }

.grid-2, .grid-3, .grid-4 { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 760px) { .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 980px) { .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.card, .feature { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); min-width: 0; }
.card-featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow); }
.card h3, .feature h3 { font-size: 1.15rem; line-height: 1.3; margin-bottom: 8px; }
.card-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-bottom: 14px; }
.card-icon svg, .icon { width: 24px; height: 24px; }
.mode-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.mode-head .card-icon { margin-bottom: 0; }
.mode-price { font: 700 13px/1.2 var(--font); padding: 6px 12px; border-radius: 999px; background: var(--bg-alt); border: 1px solid var(--border); color: var(--text); white-space: nowrap; }
.mode-price-featured { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); color: var(--accent); }
.feature .icon { color: var(--accent); margin-bottom: 12px; display: block; width: 28px; height: 28px; }
.feature p { color: var(--muted); font-size: 15px; }

.ticks { margin-top: 14px; display: grid; gap: 8px; }
.ticks li { position: relative; padding-left: 26px; font-size: 15px; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--ok-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12.500 4 4 8-9' fill='none' stroke='%2312805c' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* steps */
.steps { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); counter-reset: s; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.step { position: relative; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 24px 24px; box-shadow: var(--shadow); }
.step .icon { color: var(--accent); margin-bottom: 12px; display: block; width: 30px; height: 30px; }
.step h3 { font-size: 1.15rem; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 15px; }
.step-num { position: absolute; top: 16px; right: 18px; font: 800 34px/1 var(--font); color: var(--accent-soft); -webkit-text-stroke: 1px var(--border); }

/* mini code in dev cards */
pre.mini { margin: 14px 0 0; padding: 12px 14px; border-radius: 10px; background: var(--code-bg); color: var(--code-text); font: 12.5px/1.6 var(--mono); overflow-x: auto; }
pre.mini code { font: inherit; }

/* table */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); }
.compare { width: 100%; border-collapse: collapse; font-size: 15px; }
.compare th, .compare td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--border); vertical-align: top; }
.compare thead th { background: var(--bg-alt); font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.compare tbody th { width: 30%; font-weight: 600; }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }

/* pricing */
.price-card { display: flex; flex-direction: column; }
.price-tier-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.price-tier-head h3 { margin-bottom: 0; }
.tier-badge { font: 700 11px/1.2 var(--mono); padding: 4px 8px; border-radius: 6px; background: var(--bg-alt); border: 1px solid var(--border); color: var(--muted); white-space: nowrap; }
.tier-badge-featured { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); color: var(--accent); }
.price-card .btn { margin-top: auto; }
.price-card .ticks { margin-bottom: 22px; }
.price { font-size: 2.2rem; font-weight: 800; letter-spacing: -.02em; margin: 6px 0 8px; line-height: 1.15; }
.price small { display: inline-block; white-space: nowrap; font-size: .88rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }

/* faq */
.faq { display: grid; gap: 10px; }
.faq details { background: var(--card); border: 1px solid var(--border); border-radius: 12px; }
.faq summary { cursor: pointer; padding: 16px 18px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; min-height: 48px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; color: var(--accent); flex: none; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding: 0 18px 18px; color: var(--muted); }

/* cta band */
.cta-band { background: linear-gradient(135deg, #1a3aa8, #0b8f83); color: #fff; padding: 64px 0; }
.cta-inner { text-align: center; }
.cta-inner h2 { font-size: clamp(1.6rem, 4.4vw, 2.3rem); letter-spacing: -.02em; margin-bottom: 10px; }
.cta-inner p { opacity: .92; margin-bottom: 26px; }

/* footer */
.footer { border-top: 1px solid var(--border); padding: 40px 0 24px; background: var(--bg); }
.footer-inner { display: grid; gap: 24px; }
.footer-brand p { margin-top: 10px; max-width: 42ch; font-size: 15px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 20px; align-content: start; }
.footer-links a { color: var(--muted); font-size: 15px; min-height: 44px; display: inline-flex; align-items: center; }
.footer-links a:hover { color: var(--text); }
.footer-bottom { margin-top: 18px; color: var(--muted); }
@media (min-width: 760px) { .footer-inner { grid-template-columns: 1fr auto; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
  .btn:hover { transform: none; }
}
