/* Results list in the manner of an Estonian job board: one white sheet, plain rows divided by
   hairlines, a company mark on the left, a heart to save. Loaded after eesti.css. */

.rbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin: 22px 0 12px; }
.rbar .filters button { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; padding: 7px 14px; }
.rbar .filters button b { font-weight: 700; opacity: .7; }
.rbar-tools { display: flex; gap: 16px; }
.linkbtn { display: inline-flex; align-items: center; gap: 6px; padding: 4px 0; border: 0; background: none; cursor: pointer; font: 600 14px var(--font); color: var(--ink-2); }
.linkbtn:hover { color: var(--blue); }

.jlist { background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; display: block; }
.jlist .jrow {
  position: relative; display: grid; grid-template-columns: 52px 1fr auto 40px; gap: 14px; align-items: start;
  padding: 18px 14px 18px 18px; background: #fff; border: 0; border-radius: 0; transform: none; box-shadow: none; transition: background .12s;
}
.jlist .jrow + .jrow { border-top: 1px solid var(--line); }
.jlist .jrow:hover { background: #f7fafd; transform: none; box-shadow: none; }
.jlist .jrow.seen .job-title { color: #6b4fa3; }      /* opened already, as a visited link */

.avatar {
  width: 52px; height: 52px; border-radius: 8px; display: grid; place-items: center; flex: none;
  font: 700 17px/1 var(--font); letter-spacing: 0.02em; border: 1px solid rgba(0, 0, 0, .05);
}
.avatar.t0 { background: #e8f2fb; color: #00579e; }
.avatar.t1 { background: #e6f6f0; color: #0a6b52; }
.avatar.t2 { background: #fdf1e3; color: #96560d; }
.avatar.t3 { background: #f1ecfa; color: #5a3d99; }
.avatar.t4 { background: #fbe9ec; color: #9c2740; }
.avatar.t5 { background: #eceff3; color: #3c4658; }

.jrow .job-title { font: 700 17.5px/1.3 var(--font); color: var(--ink); letter-spacing: -0.005em; }
.jrow:hover .job-title { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.jrow-co { margin-top: 2px; font-size: 15px; color: var(--ink-2); }
.jrow-meta { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 14px; color: var(--ink-2); }
.jrow-meta span { display: inline-flex; align-items: center; gap: 5px; }
.jrow-meta svg { color: var(--ink-3); flex: none; }
.jrow-meta .pay { font-weight: 700; color: #1b7a4b; }
.jrow-why { margin-top: 9px; display: flex; gap: 7px; align-items: flex-start; font-size: 14px; line-height: 1.45; color: var(--ink-3); }
.jrow-why svg { color: var(--go); flex: none; margin-top: 3px; stroke-width: 2.6; }
.jrow-why span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.jrow-side { text-align: center; padding-top: 2px; }
.match { display: inline-block; min-width: 56px; padding: 5px 10px; border-radius: 6px; font: 700 15px/1.2 var(--font); background: #eceff3; color: #3c4658; }
.match.top { background: #dff5ec; color: #0a6b52; }
.match.mid { background: #e8f2fb; color: #00579e; }
.jrow-side small { display: block; margin-top: 3px; font-size: 11.5px; color: var(--ink-3); }

.jlist .star { color: #a9b1bf; margin-top: 4px; }
.jlist .star:hover { color: #d6336c; background: #fdf0f4; }
.jlist .star[aria-pressed="true"] { color: #d6336c; }
.jlist .star[aria-pressed="true"] svg { fill: #d6336c; }

@media (max-width: 600px) {
  .jlist .jrow { grid-template-columns: 42px 1fr 36px; gap: 10px; padding: 14px 8px 14px 12px; }
  .avatar { width: 42px; height: 42px; font-size: 14px; }
  .jrow-side { grid-column: 2; grid-row: 2; display: flex; align-items: center; gap: 8px; text-align: left; padding: 0; }
  .jrow-side small { margin: 0; }
  .jlist .star { grid-column: 3; grid-row: 1; margin-top: 0; }
  .jrow .job-title { font-size: 16.5px; }
  .rbar-tools { width: 100%; }
}

/* ---------- the ad frame while it loads ---------- */
.jframe iframe { opacity: 0; transition: opacity .25s; }
.jframe.loaded iframe { opacity: 1; }
.jframe-wait { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; padding: 24px; color: var(--ink); }
.jframe-wait p { margin: 0; }
.jframe-wait a { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; }
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--blue); animation: spin .8s linear infinite; margin-bottom: 8px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- a board that does not allow framing ---------- */
.jplain { padding-top: 22px; }
.jgate { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; padding: 22px; border: 1px solid var(--line); border-radius: 12px; background: #f7fafd; }
.jgate-ico { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue); }
.jgate h2 { margin: 0; font: 700 18px/1.3 var(--font); }
.jgate p { margin: 5px 0 0; font-size: 14.5px; color: var(--ink-2); max-width: 54ch; }
@media (max-width: 700px) {
  .jgate { grid-template-columns: 1fr; text-align: left; }
  .jgate-ico { display: none; }
  .jgate .btn { width: 100%; }
}

@media print {
  .rbar, .jlist .star { display: none !important; }
  .jlist { border: 0; }
  .jlist .jrow { break-inside: avoid; padding: 10pt 0; }
}
@media (prefers-reduced-motion: reduce) { .spinner { animation: none; } }

/* ================= cards in the cv.ee / cvkeskus pattern, our colours ================= */
.cards { display: grid; gap: 12px; }
.card2 {
  position: relative; display: grid; grid-template-columns: 96px 1fr auto; gap: 18px; align-items: center;
  padding: 18px 20px; background: #fff; border-radius: 10px; border: 1px solid transparent;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .05);
  transition: box-shadow .18s, border-color .18s, transform .18s;
  animation: card-in .45s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(min(var(--i), 12) * 45ms);
}
@keyframes card-in { from { opacity: 0; transform: translateY(14px); } }
.card2:hover { border-color: #cfe2f6; box-shadow: 0 10px 24px rgba(0, 87, 158, .10); transform: translateY(-2px); }
.card2.seen .job-title { color: #5b4a8b; }

.logo-box { width: 96px; height: 64px; display: grid; place-items: center; }
.logo-box img { max-width: 96px; max-height: 60px; object-fit: contain; display: block; }
.logo-box .avatar { width: 60px; height: 60px; font-size: 19px; }

.card2-top { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 13px; color: var(--ink-3); margin-bottom: 4px; }
.card2-top .dot::before { content: "·"; margin-right: 10px; }
.badge-new { padding: 1px 7px; border-radius: 4px; background: var(--blue-soft); color: var(--blue-dark); font-size: 11px; font-weight: 800; letter-spacing: .05em; }
.card2 .job-title { margin: 0; font: 800 18px/1.3 var(--font); letter-spacing: -0.01em; color: var(--ink); transition: color .15s; }
.card2:hover .job-title { color: var(--blue); }
.card2-line { margin-top: 3px; display: flex; flex-wrap: wrap; gap: 2px 12px; font-size: 14.5px; }
.card2-line .pay { color: var(--blue); font-weight: 700; }
.card2-line .co { color: var(--ink-2); font-weight: 600; }
.card2-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.card2-tags span { padding: 2px 9px; border-radius: 999px; background: #f1f4f8; color: var(--ink-2); font-size: 12.5px; font-weight: 600; }
.card2-tags:empty { display: none; }
.card2-why { margin-top: 9px; display: flex; gap: 7px; align-items: flex-start; font-size: 13.5px; line-height: 1.45; color: var(--ink-3); }
.card2-why svg { color: var(--go); flex: none; margin-top: 2px; stroke-width: 2.6; }
.card2-why span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.card2-side { align-self: stretch; display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: 8px; min-width: 120px; }
.card2-side .match { font: 600 12.5px/1.2 var(--font); padding: 5px 10px; border-radius: 999px; white-space: nowrap; }
.card2-side .match b { font-weight: 800; font-size: 14px; }
.card2-side .place { display: inline-flex; align-items: center; gap: 4px; font-size: 13.5px; color: var(--ink-2); text-align: right; }
.card2-side .place svg { color: var(--blue); flex: none; }
.card2 .star { position: relative; z-index: 2; margin: -8px -8px 0 0; color: #9aa5b5; }
.card2 .star:hover { color: #d6336c; background: #fdf0f4; }
.card2 .star[aria-pressed="true"] { color: #d6336c; }
.card2 .star[aria-pressed="true"] svg { fill: #d6336c; animation: pop .35s ease; }
@keyframes pop { 40% { transform: scale(1.35); } }

/* the bar of a match fills when the card comes in */
.card2-side .match { position: relative; overflow: hidden; isolation: isolate; }

@media (max-width: 640px) {
  .card2 { grid-template-columns: 56px 1fr 40px; gap: 12px; padding: 14px; align-items: start; }
  .logo-box { width: 56px; height: 56px; }
  .logo-box img { max-width: 56px; max-height: 48px; }
  .logo-box .avatar { width: 48px; height: 48px; font-size: 15px; }
  .card2 .job-title { font-size: 16.5px; }
  .card2-side { display: contents; }
  .card2 .star { grid-column: 3; grid-row: 1; margin: -6px -6px 0 0; }
  .card2-side .match, .card2-side .place { grid-column: 2; }
  .card2-side .match { justify-self: start; margin-top: -4px; }
  .card2-side .place { justify-self: start; }
}
@media print {
  .card2 { box-shadow: none; border: 0; border-bottom: 1px solid #ccc; border-radius: 0; animation: none; break-inside: avoid; }
}
@media (prefers-reduced-motion: reduce) { .card2, .card2 .star svg { animation: none; } }

/* ---------- the paywall teasers: the same cards, locked ---------- */
.locked-cards .card2:hover { transform: none; border-color: transparent; box-shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .05); }
.locked-cards .card2:hover .job-title { color: var(--ink); }
.locked-cards .card2 { grid-template-columns: 72px 1fr auto; }
.locked-cards .logo-box { width: 72px; }
.logo-veil { width: 60px; height: 60px; border-radius: 10px; display: grid; place-items: center; color: #9aa5b5;
  background: repeating-linear-gradient(135deg, #f1f4f8 0 8px, #e8edf3 8px 16px); }
.locked-cards .veil { filter: blur(4.5px); user-select: none; color: var(--ink-2); }
.heart-off { color: #c9d0da; margin: -2px -2px 0 0; }
.more-cards { position: relative; padding: 26px 18px 18px; text-align: center; color: var(--ink-2); animation: card-in .45s cubic-bezier(.2, .7, .2, 1) both; animation-delay: .14s; }
.more-cards b { position: relative; z-index: 1; font-weight: 700; }
.ghost-card { position: absolute; left: 14px; right: 14px; top: 0; height: 14px; border-radius: 0 0 10px 10px; background: #fff; box-shadow: 0 1px 3px rgba(16, 24, 40, .07); }
.ghost-card + .ghost-card { left: 30px; right: 30px; top: 14px; height: 10px; opacity: .7; }
@media (max-width: 640px) {
  .locked-cards .card2 { grid-template-columns: 48px 1fr 32px; }
  .locked-cards .logo-box { width: 48px; height: 48px; }
  .logo-veil { width: 44px; height: 44px; }
  .heart-off { grid-column: 3; grid-row: 1; }
}

/* ---------- the example on the front page: one of the real cards ---------- */
.hero-card { width: min(470px, 46%); }
.demo-card { animation: none; grid-template-columns: 64px 1fr auto; gap: 14px; padding: 16px 16px 16px 14px; box-shadow: none; border: 0; }
.demo-card:hover { transform: none; box-shadow: none; border-color: transparent; }
.demo-card .logo-box { width: 64px; height: 64px; }
.demo-card .logo-box .avatar { width: 56px; height: 56px; font-size: 18px; }
.demo-card .job-title { font-size: 17px; }
.demo-card .card2-side { min-width: 0; }
.heart-on { color: #d6336c; margin: -4px -2px 0 0; }
.heart-on svg { fill: #d6336c; animation: pop .4s 1.6s ease both; }
.hero-card .demo-tag { z-index: 3; }
@media (max-width: 860px) { .hero-card { width: auto; } }
@media (max-width: 640px) {
  .demo-card { grid-template-columns: 48px 1fr 32px; }
  .demo-card .logo-box { width: 48px; height: 48px; }
  .demo-card .logo-box .avatar { width: 44px; height: 44px; font-size: 15px; }
  .heart-on { grid-column: 3; grid-row: 1; }
}

/* paywall cards sit in a narrower column: smaller logo, slimmer side, no broken titles */
.locked-cards .card2 { grid-template-columns: 56px 1fr auto; gap: 14px; padding: 16px; }
.locked-cards .logo-box { width: 56px; height: 56px; }
.locked-cards .logo-veil { width: 52px; height: 52px; }
.locked-cards .card2-side { min-width: 0; max-width: 130px; }
.locked-cards .place { font-size: 12.5px; }
.card2 .job-title { overflow-wrap: normal; word-break: normal; hyphens: manual; }
.heart-on { display: inline-flex; }
.demo-card .card2-side { align-items: flex-end; }
.demo-card .logo-box img { width: 64px; height: auto; border-radius: 8px; box-shadow: 0 0 0 1px var(--line); }
@media (max-width: 640px) { .demo-card .logo-box img { width: 48px; } }
/* the example logos are square: show them whole, centred, at the full box size */
.demo-card .logo-box { align-self: center; }
.demo-card .logo-box img { width: 64px; height: 64px; border-radius: 12px; box-shadow: 0 0 0 1px var(--line); object-fit: contain; }
@media (max-width: 640px) { .demo-card .logo-box img { width: 48px; height: 48px; border-radius: 10px; } .demo-card .logo-box { align-self: start; } }

/* ---------- a file dragged anywhere over the upload page ---------- */
.dropscreen { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px;
  background: rgba(0, 87, 158, .14); backdrop-filter: blur(3px); opacity: 0; pointer-events: none; transition: opacity .15s; }
.dropscreen-in { width: min(560px, 100%); padding: 48px 24px; border-radius: 22px; text-align: center; background: #fff;
  border: 3px dashed var(--blue); box-shadow: 0 30px 70px rgba(0, 47, 90, .25); color: var(--blue);
  display: flex; flex-direction: column; align-items: center; gap: 10px; transform: scale(.94); transition: transform .2s; }
.dropscreen-in b { font: 700 24px/1.2 var(--display); color: var(--ink); letter-spacing: -0.02em; }
.dropscreen-in span { color: var(--ink-3); font-size: 15px; }
.dropscreen-in svg { animation: bob 1.1s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(6px); } }
body.dragging .dropscreen { opacity: 1; }
body.dragging .dropscreen-in { transform: none; }
.drop.has { animation: got .4s ease; }
@keyframes got { 40% { transform: scale(1.02); } }

/* ---------- a job whose board cannot be shown in a frame: the result card, then one button ---------- */
.jplain { background: var(--page); padding: 22px 0 28px; }
.card2.solo { animation: none; grid-template-columns: 96px 1fr auto; }
.card2.solo:hover { transform: none; }
.card2.solo .job-title { font-size: 21px; }
.card2-why.full span { -webkit-line-clamp: unset; display: block; }
.gocard { margin-top: 14px; padding: 26px 20px; background: #fff; border-radius: 10px; text-align: center;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .05); }
.gocard .btn { animation: pulse 2.4s 1s 2; }
.gocard p { margin: 10px 0 0; font-size: 14px; color: var(--ink-3); }
@media (max-width: 640px) {
  .card2.solo { grid-template-columns: 56px 1fr; }
  .card2.solo .card2-side { display: flex; grid-column: 2; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: flex-start; min-width: 0; }
  .card2.solo .job-title { font-size: 18px; }
  .gocard .btn { width: 100%; }
}

/* ---------- footer: a thin flag ribbon and three swallows heading home ---------- */
.foot, .belt { display: none; }
.foot2 { position: relative; margin-top: 40px; background: #fff; border-top: 1px solid var(--line); overflow: hidden; }
.flagline { display: flex; height: 4px; }
.flagline i { flex: 1; }
.flagline i:nth-child(1) { background: #0072ce; }
.flagline i:nth-child(2) { background: #14171f; }
.flagline i:nth-child(3) { background: #fff; box-shadow: inset 0 -1px 0 var(--line); }
.foot2-in { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; padding-top: 26px; padding-bottom: 12px; }
.foot2-brand { display: flex; align-items: center; gap: 12px; }
.foot2-brand b { display: block; font: 700 15px/1.2 var(--display); letter-spacing: -0.02em; }
.foot2-brand span { font-size: 13.5px; color: var(--ink-3); }
.foot2-links { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 14.5px; font-weight: 600; position: relative; z-index: 1; }
.foot2-links a { color: var(--ink-2); }
.foot2-links a:hover { color: var(--blue); }
.foot2-copy { padding-top: 6px; padding-bottom: 26px; font-size: 12.5px; color: var(--ink-3); }
.flock { position: absolute; right: 4%; top: -6px; width: 210px; height: 90px; pointer-events: none; }
.flock svg { position: absolute; fill: var(--blue); }
.flock .f1 { width: 34px; left: 120px; top: 6px; transform: rotate(-20deg); opacity: .55; }
.flock .f2 { width: 22px; left: 70px; top: 30px; transform: rotate(-28deg); opacity: .35; }
.flock .f3 { width: 15px; left: 30px; top: 46px; transform: rotate(-34deg); opacity: .22; }
.flock svg { animation: drift 7s ease-in-out infinite; }
.flock .f2 { animation-delay: -2s; }
.flock .f3 { animation-delay: -4s; }
@keyframes drift { 50% { translate: 8px -5px; } }
@media (max-width: 640px) {
  .flock { right: -40px; opacity: .7; }
  .foot2-in { flex-direction: column; align-items: flex-start; }
}
@media print { .foot2 { display: none; } }
@media (prefers-reduced-motion: reduce) { .flock svg { animation: none; } }
.flock { right: auto; left: 34%; top: 2px; }
@media (max-width: 640px) { .flock { left: auto; right: -30px; top: 10px; } }

/* ---------- what fits / what to note ---------- */
.fit { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.fit li { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 7px; border-radius: 999px; font-size: 13px; font-weight: 600; line-height: 1.3; }
.fit li.ok { background: #e7f7f0; color: #0b6b4f; }
.fit li.ok svg { flex: none; stroke-width: 3; color: #0aa678; }
.fit li.warn { background: #fff4e0; color: #8a4b00; }
.fit li.warn b { display: grid; place-items: center; flex: none; width: 17px; height: 17px; border-radius: 50%; background: #f59e0b; color: #fff; font-size: 11.5px; font-weight: 900; }
.fit.inline { margin-top: 8px; }
@media (max-width: 640px) { .fit li { font-size: 12.5px; } }

/* ---------- load more ---------- */
.morebox { margin-top: 18px; display: grid; grid-template-columns: 1fr 1.1fr; gap: 26px; align-items: center; padding: 26px;
  background: linear-gradient(135deg, #f2f8ff, #fff 60%); border: 1.5px solid #cfe2f6; border-radius: 14px; }
.more-stack { position: relative; height: 150px; }
.more-ghost { position: absolute; left: calc(var(--k) * 14px); right: calc(var(--k) * 14px); top: calc(var(--k) * 34px); display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; background: #fff; border-radius: 10px; box-shadow: 0 6px 18px rgba(0, 87, 158, .10); opacity: calc(1 - var(--k) * .25);
  animation: ghost-in .5s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--k) * 120ms); }
.more-ghost .logo-veil { width: 38px; height: 38px; border-radius: 8px; flex: none; }
.more-ghost b { font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; filter: blur(3.5px); user-select: none; }
@keyframes ghost-in { from { opacity: 0; transform: translateY(12px); } }
.more-copy h2 { margin: 0; font: 700 21px/1.25 var(--display); letter-spacing: -0.02em; }
.more-copy p { margin: 8px 0 16px; color: var(--ink-2); }
.more-copy .more-test { margin: 10px 0 0; color: var(--warn); font-weight: 600; }
@media (max-width: 700px) { .morebox { grid-template-columns: 1fr; padding: 20px; } .more-stack { height: 130px; } .morebox .btn { width: 100%; } }

/* ---------- the motif: CV, heart, job ---------- */
.motif { display: block; width: 100%; height: auto; overflow: visible; }
.motif .m-line { animation: dash 1.2s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -13; } }
.motif .m-heart { transform-box: fill-box; transform-origin: center; animation: beat2 1.8s ease-in-out infinite; }
@keyframes beat2 { 0%, 60%, 100% { transform: scale(1); } 15% { transform: scale(1.14); } 30% { transform: scale(.97); } }
.motif .m-doc { animation: float 4s ease-in-out infinite; }
.motif .m-job { animation: float 4s ease-in-out -2s infinite; }
@keyframes float { 50% { transform: translateY(-4px); } }
.band { grid-template-columns: 1fr; }
@media (min-width: 760px) { .band { grid-template-columns: 220px 1fr auto; } }
.band-motif { max-width: 220px; }
.on-dark .m-line { stroke: #fff; }
.on-dark .m-heart path:first-child { stroke: #fff; fill: var(--blue); }
.on-dark .m-heart path:last-child { stroke: #fff; }
.on-dark .m-doc rect:first-child, .on-dark .m-job rect:first-of-type { stroke: #fff; }
.on-dark .m-job path { stroke: #fff; }
.band .bird { display: none; }
@media (prefers-reduced-motion: reduce) { .motif * { animation: none !important; } }

/* ---------- footer swallows: a small flock crossing the footer, slowly ---------- */
.foot2 .flock { left: 0; right: auto; top: 18px; width: 210px; height: 90px; z-index: 0;
  animation: cross 34s linear infinite; }
.foot2 .flock svg { animation: drift 3.2s ease-in-out infinite; }
.foot2 .flock .f1 { width: 30px; opacity: .6; }
.foot2 .flock .f2 { animation-delay: -1.1s; }
.foot2 .flock .f3 { animation-delay: -2.2s; }
@keyframes cross { from { translate: -240px 0; } to { translate: calc(100vw + 40px) -30px; } }
@keyframes drift { 50% { translate: 4px -7px; } }
@media (max-width: 640px) { .foot2 .flock { right: auto; left: 0; top: 30px; opacity: .6; } }
@media (prefers-reduced-motion: reduce) { .foot2 .flock { animation: none; left: auto; right: 6%; } }

/* ---------- how it works: one screen, three clips, the lit step drives it ---------- */
.howto { align-items: center; }
.stage { border-radius: 14px; background: #fff; border: 1px solid var(--line); box-shadow: 0 18px 50px rgba(0, 47, 90, .12); overflow: hidden; }
.stage-bar { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; background: #f1f4f8; border-bottom: 1px solid var(--line); }
.stage-bar i { width: 9px; height: 9px; border-radius: 50%; background: #d3dbe5; }
.stage-bar span { margin-left: 10px; padding: 3px 12px; border-radius: 6px; background: #fff; font-size: 12px; color: var(--ink-3); }
.stage-in { position: relative; aspect-ratio: 16 / 10; background: #f7f9fc; }
.slot { position: absolute; inset: 0; opacity: 0; transform: scale(.985); transition: opacity .6s ease, transform .6s ease; pointer-events: none; }
.slot.on { opacity: 1; transform: none; }
.slot video { width: 100%; height: 100%; object-fit: cover; display: block; }
.mock { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: 12px; padding: 7% 9%; }

/* 1: a CV file drops into the box, turns green, wishes are typed */
.m1-drop { position: relative; height: 46%; border: 2px dashed #b8c9dc; border-radius: 12px; background: rgba(255, 255, 255, .7); display: grid; place-items: center; }
.m1-drop em { font-style: normal; font-size: 13px; color: var(--ink-3); }
.m1-file { position: absolute; top: -40%; left: 50%; display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 9px; background: #fff;
  box-shadow: 0 10px 24px rgba(0, 47, 90, .18); font-size: 13px; font-weight: 600; translate: -50% 0; opacity: 0; }
.m1-file b { padding: 3px 6px; border-radius: 4px; background: #e5484d; color: #fff; font-size: 11px; }
.m1-ok { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 10px; background: #effaf5; border: 1.5px solid #0aa678; font-size: 13.5px; font-weight: 600; opacity: 0; }
.m1-ok i { width: 18px; height: 18px; border-radius: 50%; background: #0aa678; flex: none; }
.m1-wish { padding: 10px 14px; border-radius: 10px; background: #fff; border: 1px solid var(--line); font-size: 13.5px; color: var(--ink-2); opacity: 0; }
.m1-wish span { display: inline-block; overflow: hidden; white-space: nowrap; width: 0; border-right: 2px solid var(--blue); vertical-align: bottom; }
.slot.on .m1-file { animation: m1drop 1.4s .2s cubic-bezier(.3, .7, .3, 1) both; }
.slot.on .m1-drop { animation: m1fade .4s 1.5s both; }
.slot.on .m1-ok { animation: m1in .45s 1.55s both; }
.slot.on .m1-wish { animation: m1in .4s 2.2s both; }
.slot.on .m1-wish span { animation: m1type 1.8s 2.5s steps(31) both; }
@keyframes m1drop { 0% { opacity: 0; top: -40%; rotate: -8deg; } 25% { opacity: 1; } 70% { top: 34%; rotate: 0deg; opacity: 1; } 100% { top: 34%; opacity: 0; } }
@keyframes m1fade { to { opacity: 0; height: 0; padding: 0; margin: -6px 0; border-width: 0; } }
@keyframes m1in { from { opacity: 0; translate: 0 10px; } to { opacity: 1; translate: 0 0; } }
@keyframes m1type { to { width: 31ch; } }

/* 2: the free preview counts up, three rows with fit scores */
.m2 { align-items: center; text-align: center; }
.m2-head { margin: 0; font-size: 14px; color: var(--ink-3); }
.m2-num { font: 700 64px/1 var(--display); color: var(--blue); }
.m2-row { width: 100%; display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; background: #fff; border: 1px solid var(--line); opacity: 0; }
.m2-row i { width: 26px; height: 26px; border-radius: 6px; background: #e3ecf6; flex: none; }
.m2-row span { flex: 1; height: 10px; border-radius: 5px; background: linear-gradient(90deg, #dfe7f0, #eef2f7); filter: blur(1px); }
.m2-row em { font-style: normal; font-weight: 800; font-size: 13px; color: #0b8a63; }
.slot.on .m2-num { animation: m2pop .6s .2s cubic-bezier(.2, 1.4, .4, 1) both; }
.slot.on .m2-row { animation: m1in .45s both; animation-delay: calc(.9s + var(--k) * .35s); }
@keyframes m2pop { from { opacity: 0; scale: .6; } }

/* 3: the list opens, cards slide in with their score */
.m3-card { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: #fff; border: 1px solid var(--line);
  box-shadow: 0 4px 14px rgba(0, 47, 90, .06); opacity: 0; }
.m3-card i { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; background: #e3f0fd; color: var(--blue); font-style: normal; font-weight: 800; font-size: 12px; flex: none; }
.m3-card div { flex: 1; min-width: 0; }
.m3-card b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m3-card span { font-size: 12px; color: var(--ink-3); }
.m3-card em { font-style: normal; padding: 4px 8px; border-radius: 999px; background: #e7f7f0; color: #0b6b4f; font-weight: 800; font-size: 12.5px; }
.slot.on .m3-card { animation: m3in .55s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(.3s + var(--k) * .45s); }
@keyframes m3in { from { opacity: 0; translate: 40px 0; } to { opacity: 1; translate: 0 0; } }

/* the steps: the lit one has a soft background and a filling bar */
.howsteps li { display: block; }
.howsteps li::before { display: none; }
.howsteps button { position: relative; display: grid; grid-template-columns: 40px 1fr; column-gap: 14px; width: 100%; padding: 12px 14px; border: 0; border-radius: 12px;
  background: transparent; text-align: left; font: inherit; color: inherit; cursor: pointer; overflow: hidden; transition: background .3s; }
.howsteps button::before { content: attr(data-n); }
.howsteps li button::before { grid-row: 1 / 3; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #e3e9f0; color: var(--ink-2);
  font: 700 15px/1 var(--display); transition: background .3s, color .3s; }
.howsteps li[data-step="1"] button::before { content: "1"; }
.howsteps li[data-step="2"] button::before { content: "2"; }
.howsteps li[data-step="3"] button::before { content: "3"; }
.howsteps li.on button { background: #eef5fd; }
.howsteps li.on button::before, .howsteps li.done button::before { background: var(--blue); color: #fff; }
.howsteps b, .howsteps span { grid-column: 2; }
.howsteps li:not(.on) span { color: var(--ink-3); }
.howsteps .bar { position: absolute; left: 14px; right: 14px; bottom: 6px; height: 3px; border-radius: 2px; background: rgba(0, 114, 206, .12); opacity: 0; }
.howsteps .bar::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--blue); transform-origin: left; transform: scaleX(var(--p, 0)); }
.howsteps li.on .bar { opacity: 1; }
.howsteps button:hover { background: #f3f7fb; }
@media (prefers-reduced-motion: reduce) { .slot.on * { animation: none !important; opacity: 1 !important; } .m1-wish span { width: auto; border: 0; } .m1-file { display: none; } }
.m3-card img { width: 34px; height: 34px; border-radius: 8px; flex: none; box-shadow: 0 0 0 1px var(--line); }
.m2-row img { width: 26px; height: 26px; border-radius: 6px; flex: none; filter: blur(2px); opacity: .8; }
.pay-card { margin-top: 8px; }
.check2.waive { margin: 0 0 12px; font-size: 13px; text-align: left; }
