/* Pilvi one-pager. No external fonts or libraries (keeps the page GDPR-clean and fast). */

:root {
  --ink: #0c1a2b;
  --ink-2: #132740;
  --ink-line: rgba(255, 255, 255, 0.14);
  --paper: #f6f7f5;
  --surface: #ffffff;
  --line: #dde2e8;
  --text: #15202c;
  --muted: #566272;
  --on-ink: #eef2f7;
  --on-ink-muted: #a9b7c9;
  --brand: #30adea;
  --accent: #0b76b3;
  --accent-hover: #085a8a;
  --accent-soft: #e4f3fb;
  --accent-on-ink: #30adea;
  --ok: #157a4a;
  --err: #b42318;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(12, 26, 43, 0.05), 0 8px 24px rgba(12, 26, 43, 0.06);
  --font: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --gutter: 24px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.2rem, 4.6vw, 3.5rem); font-weight: 700; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 650; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 var(--gutter); }

.sr-only, .hp {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--surface); padding: 8px 14px; border-radius: 8px; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.eyebrow {
  font-size: 0.78rem; font-weight: 650; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 0.9em;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent;
  background: var(--accent); color: #fff; font: inherit; font-weight: 600; font-size: 1rem;
  text-decoration: none; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s;
}
.btn:hover { background: var(--accent-hover); color: #fff; }
.btn-small { min-height: 40px; padding: 0 18px; font-size: 0.95rem; }
.btn-ghost { background: transparent; color: var(--on-ink); border-color: var(--ink-line); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(12, 26, 43, 0.92);
  -webkit-backdrop-filter: saturate(150%) blur(10px);
  backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid var(--ink-line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.brand:hover { color: #fff; }
.brand-logo { height: 36px; width: auto; }
.brand-footer .brand-logo { height: 32px; }

.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a:not(.btn) { color: var(--on-ink-muted); text-decoration: none; font-size: 0.97rem; font-weight: 500; }
.site-nav a:not(.btn):hover { color: #fff; }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--ink-line); border-radius: 10px;
  background: transparent; cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
}
.nav-toggle .bar { display: block; width: 18px; height: 2px; background: #fff; border-radius: 2px; transition: transform .2s; }
.nav-toggle[aria-expanded="true"] .bar:nth-of-type(2) { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar:nth-of-type(3) { transform: translateY(-4px) rotate(-45deg); }

/* Hero */
.hero {
  background:
    radial-gradient(900px 480px at 85% 10%, rgba(48, 173, 234, 0.24), transparent 65%),
    radial-gradient(700px 400px at 0% 100%, rgba(48, 173, 234, 0.08), transparent 60%),
    var(--ink);
  color: var(--on-ink);
  padding: 88px 0 56px;
}
.hero .eyebrow { color: var(--accent-on-ink); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero h1 { color: #fff; }
.lead { font-size: 1.16rem; color: var(--on-ink-muted); max-width: 36em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.hero-figure { margin: 0; }
.hero-figure figcaption { margin-top: 12px; font-size: 0.88rem; color: var(--on-ink-muted); text-align: center; }
.diagram { width: 100%; height: auto; }
.diagram text { font-family: var(--font); text-anchor: middle; }
.d-node rect { fill: rgba(255, 255, 255, 0.04); stroke: rgba(255, 255, 255, 0.22); stroke-width: 1.2; }
.d-core rect { fill: var(--accent); stroke: var(--brand); }
.d-muted rect { fill: rgba(255, 255, 255, 0.02); stroke-dasharray: 5 5; }
.d-title { fill: #fff; font-size: 16px; font-weight: 650; }
.d-item { fill: #c5d1df; font-size: 13.5px; }
.d-core .d-item { fill: #fff; font-size: 16px; font-weight: 650; }
.d-small { fill: #d6eefa; font-size: 11.5px; }
.d-line { stroke: var(--accent-on-ink); stroke-width: 2; fill: none; }
.d-dash { stroke-dasharray: 5 5; }
.d-arrow { fill: var(--accent-on-ink); }

.facts {
  list-style: none; margin: 64px 0 0; padding: 26px 0 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  border-top: 1px solid var(--ink-line);
}
.facts li { display: flex; flex-direction: column; gap: 4px; }
.facts strong { color: #fff; font-size: 1.05rem; }
.facts span { color: var(--on-ink-muted); font-size: 0.9rem; line-height: 1.45; }

/* Sections */
.section { padding: 96px 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head p:not(.eyebrow) { color: var(--muted); font-size: 1.07rem; }

/* Services */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px; box-shadow: var(--shadow);
}
.card > p { color: var(--muted); }
.card-icon {
  width: 46px; height: 46px; border-radius: 12px; background: var(--accent-soft);
  display: grid; place-items: center; margin-bottom: 18px;
}
.card-icon svg { width: 24px; height: 24px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ticks { list-style: none; margin: 18px 0 0; padding: 18px 0 0; border-top: 1px solid var(--line); }
.ticks li { position: relative; padding-left: 26px; margin: 0 0 8px; font-size: 0.96rem; }
.ticks li::before {
  content: ""; position: absolute; left: 2px; top: 0.5em; width: 11px; height: 6px;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg);
}

/* Process */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding-top: 58px; }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; top: 0; left: 0; font-size: 0.9rem; font-weight: 700; color: var(--accent);
  width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--accent);
  display: grid; place-items: center; background: var(--surface);
}
.steps li::after {
  content: ""; position: absolute; top: 20px; left: 52px; right: -12px; height: 1px; background: var(--line);
}
.steps li:last-child::after { display: none; }
.steps p { color: var(--muted); font-size: 0.97rem; }

/* Why */
.why-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 64px; align-items: start; }
.why-grid .section-head { margin-bottom: 0; position: sticky; top: 110px; }
.why-list { margin: 0; display: grid; gap: 0; }
.why-list > div { padding: 26px 0; border-top: 1px solid var(--line); }
.why-list > div:last-child { border-bottom: 1px solid var(--line); }
.why-list dt { font-weight: 650; font-size: 1.15rem; margin-bottom: 6px; }
.why-list dd { margin: 0; color: var(--muted); }

/* Contact */
.section-dark { background: var(--ink); color: var(--on-ink); }
.section-dark h2 { color: #fff; }
.section-dark .eyebrow { color: var(--accent-on-ink); }
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: start; }
.contact-intro > p:not(.eyebrow) { color: var(--on-ink-muted); font-size: 1.07rem; }
.contact-card {
  font-style: normal; margin-top: 32px; padding: 24px; border: 1px solid var(--ink-line); border-radius: var(--radius);
  display: flex; flex-direction: column; gap: 6px; background: rgba(255, 255, 255, 0.03);
}
.contact-card strong { color: #fff; }
.contact-card span { color: var(--on-ink-muted); }
.contact-card a { color: var(--accent-on-ink); font-weight: 550; overflow-wrap: anywhere; }
.contact-card a:hover { color: #fff; }

.form-wrap { background: var(--surface); color: var(--text); border-radius: var(--radius); padding: 32px; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25); }
.contact-form { display: grid; gap: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label { font-size: 0.9rem; font-weight: 600; }
.field input[type="text"], .field input[type="email"], .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--text);
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 11px 13px; transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23566272' stroke-width='1.8'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(11, 118, 179, 0.2); background: #fff;
}
.field .is-invalid, .field input.is-invalid { border-color: var(--err); }
.field-check { flex-direction: row; align-items: flex-start; gap: 10px; }
.field-check input { width: 18px; height: 18px; margin: 3px 0 0; flex: none; accent-color: var(--accent); }
.field-check label { font-weight: 400; color: var(--muted); font-size: 0.9rem; }

.notice { border-radius: var(--radius-sm); padding: 12px 14px; margin-bottom: 18px; font-size: 0.95rem; }
.notice-ok { background: #e7f6ee; color: var(--ok); border: 1px solid #b7e2c9; }
.notice-err { background: #fdecea; color: var(--err); border: 1px solid #f5c2bd; }

/* Footer */
.site-footer { background: #08131f; color: var(--on-ink-muted); padding: 48px 0 40px; font-size: 0.9rem; }
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 24px 40px; align-items: start; }
.brand-footer { margin-bottom: 12px; }
.footer-nav { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-nav a { color: var(--on-ink-muted); text-decoration: none; }
.footer-nav a:hover { color: #fff; }
.copy { grid-column: 1 / -1; border-top: 1px solid var(--ink-line); padding-top: 20px; margin: 8px 0 0; font-size: 0.82rem; }

/* Privacy page */
.doc { max-width: 760px; padding: 64px var(--gutter) 96px; }
.doc h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.doc h2 { font-size: 1.35rem; margin-top: 2em; }
.doc p, .doc li { color: #2a3542; }

/* Responsive */
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-figure { max-width: 520px; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 36px 24px; }
  .steps li::after { display: none; }
  .why-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .why-grid .section-head { position: static; }
}

@media (max-width: 760px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; }
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ink); border-bottom: 1px solid var(--ink-line);
    padding: 8px var(--gutter) 20px; display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--ink-line); font-size: 1.05rem; }
  .site-nav .btn { margin-top: 16px; min-height: 48px; }
  .hero { padding: 56px 0 40px; }
  .facts { margin-top: 48px; gap: 20px 16px; }
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 32px; }
  .cards { grid-template-columns: 1fr; gap: 16px; }
  .card { padding: 24px 20px; }
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .field-row { grid-template-columns: 1fr; }
  .form-wrap { padding: 22px 18px; }
  .footer-inner { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1 1 auto; }
}

@media (max-width: 420px) {
  .facts { grid-template-columns: 1fr; }
}

@media print {
  .site-header, .nav-toggle, .hero-actions, .form-wrap { display: none !important; }
  body, .hero, .section-dark, .site-footer { background: #fff !important; color: #000 !important; }
}
