/* cv-match: one hand-written stylesheet, no framework.
   Look: an Estonian job board. Dense white rows on a pale grey page, navy ink, one blue for
   actions, green only for "pay / go". No gradients, no shadows deeper than a hairline. */

:root {
  --ink: #0b1533;
  --ink-2: #47506a;
  --ink-3: #7b8398;
  --line: #dfe3ec;
  --page: #f4f6fa;
  --card: #ffffff;
  --blue: #1668e3;
  --blue-dark: #0f4fb5;
  --blue-soft: #e8f1fe;
  --go: #0aa66e;
  --go-dark: #088558;
  --gold: #a9792b;
  --gold-soft: #fbf3e2;
  --warn: #b4540a;
  --warn-soft: #fff4e5;
  --bad: #b3261e;
  --bad-soft: #fdecea;
  --radius: 10px;
  --wrap: 880px;
  --font: "Open Sans", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--page); color: var(--ink);
  font: 16px/1.55 var(--font); -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid #9ec5ff; outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 640px; }

/* ---------- header / footer ---------- */
.top { background: var(--card); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { font-weight: 800; font-size: 20px; letter-spacing: -0.02em; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand b { color: var(--blue); font-weight: 800; }
.langs { display: flex; gap: 2px; font-size: 14px; }
.langs a, .langs span { padding: 6px 10px; border-radius: 999px; color: var(--ink-2); }
.langs span { background: var(--page); color: var(--ink); font-weight: 600; }
.langs a:hover { background: var(--page); text-decoration: none; }
main { padding: 36px 0 56px; }
.foot { border-top: 1px solid var(--line); padding: 22px 0 40px; font-size: 14px; color: var(--ink-3); }
.foot .wrap { display: flex; gap: 18px; flex-wrap: wrap; }
.foot a { color: var(--ink-2); }

/* ---------- type ---------- */
.h1 { font-size: clamp(28px, 5vw, 40px); line-height: 1.15; font-weight: 800; letter-spacing: -0.025em; }
.h2 { font-size: 22px; line-height: 1.25; font-weight: 800; letter-spacing: -0.015em; }
.h3 { font-size: 17px; font-weight: 700; }
.lead { font-size: 18px; color: var(--ink-2); margin-top: 14px; max-width: 56ch; }
.muted { color: var(--ink-3); }
.small { font-size: 14px; }
.kicker { font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--blue); }
section + section { margin-top: 48px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border: 0; border-radius: 999px; cursor: pointer;
  font-weight: 700; font-size: 16px; line-height: 1.2; text-align: center;
  background: var(--blue); color: #fff; transition: background .12s;
}
.btn:hover { background: var(--blue-dark); text-decoration: none; }
.btn.go { background: var(--go); }
.btn.go:hover { background: var(--go-dark); }
.btn.danger { background: var(--bad); }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn.ghost:hover { background: var(--card); box-shadow: inset 0 0 0 1.5px var(--ink-3); }
.btn.block { display: flex; width: 100%; }
.btn.big { padding: 16px 30px; font-size: 17px; }
.btn svg { flex: none; }

/* ---------- generic card / chips ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.pad { padding: 20px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px;
  background: var(--page); color: var(--ink-2); font-size: 13px; font-weight: 600; white-space: nowrap;
}
.chip.blue { background: var(--blue-soft); color: var(--blue-dark); }
.chip.gold { background: var(--gold-soft); color: var(--gold); }
.note { border-radius: var(--radius); padding: 12px 16px; font-size: 15px; }
.note.bad { background: var(--bad-soft); color: var(--bad); border: 1px solid #f3c4c0; }
.note.test { background: var(--warn-soft); color: var(--warn); border: 1.5px dashed #e0a15c; font-weight: 600; font-size: 14px; }

/* ---------- landing ---------- */
.hero { display: grid; gap: 32px; align-items: center; }
@media (min-width: 820px) { .hero { grid-template-columns: 1.1fr 1fr; } }
.hero .btn { margin-top: 24px; }
.hero-sub { margin-top: 12px; font-size: 14px; color: var(--ink-3); }
.demo { position: relative; }
.demo-tag {
  position: absolute; top: -10px; left: 14px; z-index: 1; background: var(--ink); color: #fff;
  font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 2px 8px; border-radius: 4px;
}
.steps { display: grid; gap: 12px; margin-top: 18px; counter-reset: step; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { counter-increment: step; padding: 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); font-size: 15px; color: var(--ink-2); }
.steps li::before {
  content: counter(step); display: grid; place-items: center; width: 26px; height: 26px; margin-bottom: 10px;
  border-radius: 50%; background: var(--blue-soft); color: var(--blue-dark); font-weight: 800; font-size: 14px;
}
.boards { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.boards li { padding: 8px 14px; background: var(--card); border: 1px solid var(--line); border-radius: 8px; font-weight: 700; font-size: 15px; color: var(--ink-2); }
.two { display: grid; gap: 12px; }
@media (min-width: 720px) { .two { grid-template-columns: 1fr 1fr; } }
.price-big { font-size: 44px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.price-big small { font-size: 16px; font-weight: 600; color: var(--ink-3); letter-spacing: 0; }
.faq { margin-top: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.faq details + details { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 15px 44px 15px 18px; font-weight: 700; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 11px; font-size: 22px; font-weight: 400; color: var(--ink-3); }
.faq details[open] summary::after { content: "–"; }
.faq p { padding: 0 18px 16px; color: var(--ink-2); }

/* ---------- upload ---------- */
.field { margin-top: 22px; }
.label { display: block; font-weight: 700; margin-bottom: 8px; }
.hint { margin-top: 6px; font-size: 14px; color: var(--ink-3); }
.drop {
  display: block; position: relative; padding: 30px 20px; text-align: center; cursor: pointer;
  background: var(--card); border: 2px dashed #b9c2d6; border-radius: var(--radius); transition: border-color .12s, background .12s;
}
.drop:hover, .drop.over { border-color: var(--blue); background: var(--blue-soft); }
.drop.has { border-style: solid; border-color: var(--go); background: #f0faf6; }
.drop input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.drop-title { font-weight: 700; }
.drop-file { font-weight: 700; color: var(--go-dark); word-break: break-all; }
textarea, .input {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius);
  background: var(--card); font: inherit; color: var(--ink); resize: vertical;
}
textarea:focus, .input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.suggest { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.suggest button {
  padding: 5px 12px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--card);
  font-size: 14px; font-weight: 600; color: var(--ink-2); cursor: pointer;
}
.suggest button:hover { border-color: var(--blue); color: var(--blue-dark); }
.suggest button.on { background: var(--blue-soft); border-color: var(--blue); color: var(--blue-dark); }
.check { display: flex; gap: 12px; align-items: flex-start; margin-top: 22px; font-size: 15px; color: var(--ink-2); }
.check input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--blue); }

/* ---------- processing ---------- */
.working { text-align: center; padding: 40px 0; }
.progress { height: 6px; max-width: 320px; margin: 26px auto 0; border-radius: 999px; background: var(--line); overflow: hidden; }
.progress i { display: block; height: 100%; width: 8%; background: var(--blue); border-radius: 999px; transition: width 1.2s ease-out; }
.stages { margin: 22px auto 0; max-width: 320px; text-align: left; font-size: 15px; color: var(--ink-3); }
.stages li { padding: 5px 0 5px 26px; position: relative; }
.stages li::before { content: ""; position: absolute; left: 4px; top: 12px; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--line); }
.stages li.now { color: var(--ink); font-weight: 600; }
.stages li.now::before { border-color: var(--blue); background: var(--blue); }
.stages li.done::before { border-color: var(--go); background: var(--go); }

/* ---------- job rows (results, preview, demo) ---------- */
.jobs { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); overflow: hidden; }
.job + .job { border-top: 1px solid var(--line); }
.job-head {
  display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: center; width: 100%;
  padding: 16px 18px; background: none; border: 0; text-align: left; cursor: pointer;
}
.job-head:hover { background: #fafbfd; }
.job-title { font-size: 17px; font-weight: 700; line-height: 1.3; color: var(--ink); }
.job.open .job-title { color: var(--blue-dark); }
.job-sub { margin-top: 2px; font-size: 14.5px; color: var(--ink-2); }
.job-head .chips { margin-top: 8px; }
.score { text-align: right; min-width: 62px; }
.score-num { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; line-height: 1; }
.score-num small { font-size: 12px; font-weight: 600; color: var(--ink-3); }
.score-bar { height: 4px; margin-top: 6px; border-radius: 999px; background: var(--line); overflow: hidden; }
.score-bar i { display: block; height: 100%; border-radius: 999px; background: var(--go); }
.score.mid .score-bar i { background: var(--blue); }
.score.low .score-bar i { background: #9aa3b8; }
.score-label { margin-top: 4px; font-size: 11px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-3); }
.job-body { padding: 0 18px 18px; }
.why { padding: 12px 14px; border-left: 3px solid var(--blue); background: var(--blue-soft); border-radius: 0 8px 8px 0; font-size: 15.5px; }
.why b { display: block; margin-bottom: 2px; font-size: 12px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--blue-dark); }
.job-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 14px; }
.adtext { margin-top: 14px; font-size: 14.5px; color: var(--ink-2); white-space: pre-line; max-height: 220px; overflow: auto; padding-right: 6px; }
.gone { color: var(--warn); font-size: 14px; font-weight: 600; }

.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin: 22px 0 12px; }
.filters { display: flex; flex-wrap: wrap; gap: 6px; }
.filters button {
  padding: 7px 14px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--card);
  font-size: 14px; font-weight: 700; color: var(--ink-2); cursor: pointer;
}
.filters button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.savebar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 14px; padding: 12px 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); font-size: 14.5px; color: var(--ink-2); }
.savebar span { flex: 1 1 240px; }
.savebar .btn { padding: 8px 16px; font-size: 14px; }

/* ---------- paywall ---------- */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 20px; }
@media (min-width: 640px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { padding: 14px 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.stat b { display: block; font-size: 26px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.stat span { font-size: 13.5px; color: var(--ink-2); }
.paygrid { display: grid; gap: 20px; margin-top: 24px; align-items: start; }
@media (min-width: 860px) { .paygrid { grid-template-columns: 1fr 320px; } .paybox { position: sticky; top: 16px; } }
.locked .job-head { cursor: default; }
.locked .job-head:hover { background: none; }
.veil { filter: blur(5px); user-select: none; pointer-events: none; color: var(--ink-2); }
.lockline { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 13.5px; font-weight: 600; color: var(--ink-3); }
.fade { position: relative; }
.fade::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 90px; background: linear-gradient(rgba(255,255,255,0), var(--card)); pointer-events: none; }
.more-locked { padding: 16px 18px; text-align: center; font-weight: 700; color: var(--ink-2); border-top: 1px solid var(--line); background: var(--card); }
.paybox { border: 2px solid var(--ink); border-radius: 14px; background: var(--card); padding: 22px; }
.paybox .price-big { margin-top: 6px; }
.ticks { margin-top: 16px; display: grid; gap: 9px; font-size: 15px; }
.ticks li { padding-left: 28px; position: relative; }
.ticks li::before {
  content: ""; position: absolute; left: 2px; top: 6px; width: 14px; height: 8px;
  border-left: 2.5px solid var(--go); border-bottom: 2.5px solid var(--go); transform: rotate(-45deg);
}
.paybox .btn { margin-top: 18px; }
.assure { margin-top: 12px; font-size: 13.5px; color: var(--ink-3); text-align: center; }
.mobile-pay { display: none; }
@media (max-width: 859px) {
  .mobile-pay {
    display: flex; align-items: center; justify-content: space-between; gap: 12px; position: sticky; bottom: 0; z-index: 5;
    margin: 24px -20px -56px; padding: 12px 20px; background: var(--card); border-top: 1px solid var(--line);
  }
  .mobile-pay b { font-size: 15px; }
  .mobile-pay .btn { padding: 11px 20px; }
}

/* ---------- legal / admin ---------- */
.prose h2 { margin-top: 28px; font-size: 18px; font-weight: 800; }
.prose p { margin-top: 10px; color: var(--ink-2); }
table { width: 100%; border-collapse: collapse; font-size: 14px; margin-top: 8px; }
th, td { text-align: left; padding: 7px 8px; border-bottom: 1px solid var(--line); }
th { color: var(--ink-3); font-weight: 600; }
.ok { color: var(--go-dark); font-weight: 700; }
.failed { color: var(--bad); font-weight: 800; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ================= sales pass: photos, motion, fewer words ================= */
.wide { max-width: 1120px; }
.btn { transition: background .12s, transform .12s, box-shadow .12s; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(11, 21, 51, .14); }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn .arrow { transition: transform .15s; }
.btn:hover .arrow { transform: translateX(3px); }

/* hero with a photo */
.hero2 { position: relative; border-radius: 18px; overflow: hidden; background: #e9e6e1; isolation: isolate; }
.hero2 img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 78% 40%; z-index: -2; }
.hero2::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(246,244,241,.97) 0%, rgba(246,244,241,.9) 38%, rgba(246,244,241,0) 68%);
}
.hero2-in { padding: 64px 48px 150px; max-width: 620px; }
.hero2 .h1 { font-size: clamp(32px, 4.6vw, 52px); }
.hero2 .lead { color: var(--ink); opacity: .82; }
.hero2 .btn { margin-top: 26px; }
.hero2 .hero-sub { color: var(--ink-2); font-weight: 600; }
.hero-card { position: absolute; right: 40px; bottom: 34px; width: min(380px, 42%); box-shadow: 0 18px 40px rgba(11, 21, 51, .22); border-radius: 12px; }
.hero-card .jobs { border: 0; }
.hero-card .job-head { cursor: default; padding: 14px 16px; }
.hero-card .job-body { padding: 0 16px 14px; }
.hero-card .why { font-size: 14px; }
.swap { transition: opacity .35s, transform .35s; }
.swap.out { opacity: 0; transform: translateY(6px); }
@media (max-width: 860px) {
  .hero2 { background: var(--card); border: 1px solid var(--line); }
  .hero2 img.bg { position: static; height: 210px; z-index: 0; display: block; object-position: 70% 35%; }
  .hero2::before { display: none; }
  .hero2-in { padding: 26px 22px 24px; }
  .hero-card { position: static; width: auto; margin: 0 22px 24px; box-shadow: 0 8px 22px rgba(11, 21, 51, .12); border: 1px solid var(--line); }
}

/* numbers strip */
.nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 22px; text-align: center; }
.nums b { display: block; font-size: clamp(24px, 4.4vw, 38px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.nums span { font-size: 14px; color: var(--ink-2); }
.nums > div + div { border-left: 1px solid var(--line); }

/* benefits */
.bens { display: grid; gap: 14px; }
@media (min-width: 760px) { .bens { grid-template-columns: repeat(3, 1fr); } }
.ben { padding: 22px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; transition: transform .18s, box-shadow .18s, border-color .18s; }
.ben:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(11, 21, 51, .08); border-color: #c9d2e3; }
.ben-ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue); margin-bottom: 14px; }
.ben h3 { font-size: 18px; font-weight: 800; letter-spacing: -0.01em; }
.ben p { margin-top: 6px; color: var(--ink-2); font-size: 15.5px; }

/* photo + steps */
.split { display: grid; gap: 28px; align-items: center; }
@media (min-width: 860px) { .split { grid-template-columns: 1fr 1.05fr; gap: 48px; } }
.split img { width: 100%; height: 100%; max-height: 420px; object-fit: cover; border-radius: 16px; display: block; }
.steps2 { margin-top: 20px; display: grid; gap: 18px; counter-reset: s; }
.steps2 li { counter-increment: s; display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; }
.steps2 li::before { content: counter(s); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 800; }
.steps2 b { display: block; font-size: 17px; }
.steps2 span { color: var(--ink-2); font-size: 15.5px; }

/* call-to-action band */
.band { background: var(--ink); color: #fff; border-radius: 18px; padding: 40px 32px; display: grid; gap: 20px; align-items: center; }
@media (min-width: 760px) { .band { grid-template-columns: 1fr auto; padding: 44px 48px; } }
.band h2 { font-size: clamp(24px, 3.4vw, 32px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; }
.band p { margin-top: 8px; color: #b9c2dc; }
.band .btn { background: #fff; color: var(--ink); }
.band .btn:hover { background: #eef2fb; }

/* motion */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; }
.no-js .reveal { opacity: 1; transform: none; }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes grow { from { width: 0; } }
.hero2-in > * { animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; }
.hero2-in > *:nth-child(2) { animation-delay: .07s; } .hero2-in > *:nth-child(3) { animation-delay: .14s; }
.hero2-in > *:nth-child(4) { animation-delay: .21s; } .hero2-in > *:nth-child(5) { animation-delay: .28s; }
.hero-card { animation: rise .8s .45s cubic-bezier(.2, .7, .2, 1) both; }
.score-bar i { transition: width .5s; animation: grow .9s .25s cubic-bezier(.2, .7, .2, 1) both; }
.locked .job { animation: rise .55s cubic-bezier(.2, .7, .2, 1) both; }
.locked .job:nth-child(2) { animation-delay: .12s; } .locked .job:nth-child(3) { animation-delay: .24s; }
.paybox { animation: rise .6s .3s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(10, 166, 110, .45); } 60% { box-shadow: 0 0 0 12px rgba(10, 166, 110, 0); } }
.paybox .btn.go { animation: pulse 2.4s 1.4s 3; }
.job-body { animation: rise .28s ease both; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }
.nums { margin: 30px 0 0; padding: 4px 0; }
.nums + section { margin-top: 36px; }
