/* The homepage's silent live demo (landing.html #live-demo, driven by landing-demo.js) and the "Works with" strip
   under it. Built from the page's own tokens, so light and dark come for free.

   Without JavaScript, or with "reduce motion" on, the six scenes are laid out as a still storyboard in their
   finished state. landing-demo.js adds .ld-js to play them one at a time inside a fixed-ratio stage (so nothing
   on the page moves while it loads or plays). */
.ld { padding:48px 0 0; --ld-hi:var(--green); --ld-mid:#b7791f; --ld-lo:var(--muted); --ld-mid-soft:#fbf1dc; }
:root[data-theme="dark"] .ld { --ld-mid:#e7b955; --ld-mid-soft:#3a3018; }
.ld-frame { border:1px solid var(--line); border-radius:22px; background:var(--surface); box-shadow:var(--shadow-lg); overflow:hidden; text-align:left; }
.ld-bar { display:flex; align-items:center; gap:7px; height:44px; padding:0 14px; border-bottom:1px solid var(--line); background:var(--subtle); }
.ld-bar > span { width:11px; height:11px; border-radius:50%; background:var(--line2); flex:none; }
.ld-url { font-style:normal; margin:0 auto; font-size:12.5px; color:var(--muted); background:var(--surface); border:1px solid var(--line); border-radius:8px; padding:4px 14px; min-width:0; max-width:46%; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; text-align:center; }
.ld-status { display:inline-flex; align-items:center; gap:7px; font-size:12.5px; color:var(--muted); white-space:nowrap; }
.ld-status i { width:8px; height:8px; border-radius:50%; background:var(--working, #bedf6e); animation:ld-pulse 1.6s ease-in-out infinite; }
.ld-paused .ld-status i { animation:none; opacity:.45; }
@keyframes ld-pulse { 50% { opacity:.35; } }
.ld-toggle { flex:none; width:28px; height:28px; padding:0; margin-left:8px; border-radius:50%; background:transparent; border:1px solid var(--line2); color:var(--ink); display:none; align-items:center; justify-content:center; cursor:pointer; }
.ld-toggle:hover { background:var(--tint); border-color:var(--line2); color:var(--ink); }
.ld-toggle svg { width:11px; height:11px; fill:currentColor; }
.ld-toggle .i-play, .ld-paused .ld-toggle .i-pause { display:none; }
.ld-paused .ld-toggle .i-play { display:block; }
.ld-js .ld-toggle { display:inline-flex; }

/* ---- the stage ---- */
.ld-stage { display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:1px; background:var(--line); }
.ld-scene { background:var(--surface); padding:22px 22px 24px; min-width:0; display:flex; flex-direction:column; font-size:14px; color:var(--ink); }
.ld-js .ld-stage { display:block; position:relative; aspect-ratio:2 / 1; background:var(--surface); }
.ld-js .ld-scene { position:absolute; inset:0; padding:26px 40px 22px; opacity:0; visibility:hidden; transition:opacity .35s ease, visibility 0s .35s; overflow:hidden; }
.ld-js .ld-scene.on { opacity:1; visibility:visible; transition:opacity .35s ease; }
.ld-js [data-at] { opacity:0; transform:translateY(8px); transition:opacity .32s ease, transform .32s ease; }
.ld-js [data-at].in { opacity:1; transform:none; }
.ld-step { margin:0 0 4px; font-size:12px; font-weight:600; letter-spacing:.08em; text-transform:uppercase; color:var(--muted); }
.ld-scene h3 { font:600 clamp(18px, 2vw, 24px)/1.2 var(--display); letter-spacing:-.025em; margin:0 0 4px; color:var(--ink); }
.ld-sub { margin:0 0 16px; color:var(--muted); font-size:14px; }
.ld-sub b { color:var(--ink); font-weight:600; font-variant-numeric:tabular-nums; }
.ld-cols { display:grid; grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr); gap:16px; flex:1; min-height:0; align-content:start; }
.ld-panel { background:var(--tint); border-radius:16px; padding:10px; min-width:0; align-self:start; }
.ld-panel > small, .ld-cap { display:block; font-size:11.5px; text-transform:uppercase; letter-spacing:.06em; color:var(--muted); margin:2px 4px 8px; }
.ld-row { display:flex; gap:12px; align-items:center; padding:9px 12px; background:var(--surface); border:1px solid var(--line); border-radius:12px; min-width:0; }
.ld-row + .ld-row { margin-top:6px; }
.ld-row > div { flex:1; min-width:0; }
.ld-row b { display:block; font-size:14px; font-weight:600; color:var(--ink); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.ld-row small { display:block; color:var(--muted); font-size:12.5px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.ld-tick { flex:none; width:18px; height:18px; border-radius:50%; border:1.5px solid var(--line2); position:relative; }
.ld-tick.done { border-color:var(--ld-hi); background:var(--ld-hi); }
.ld-tick.done::after { content:""; position:absolute; left:5px; top:2px; width:4px; height:8px; border:solid var(--surface); border-width:0 2px 2px 0; transform:rotate(45deg); }
.ld:not(.ld-js) .ld-stage .ld-tick { border-color:var(--ld-hi); background:var(--ld-hi); }
.ld:not(.ld-js) .ld-stage .ld-tick::after { content:""; position:absolute; left:5px; top:2px; width:4px; height:8px; border:solid var(--surface); border-width:0 2px 2px 0; transform:rotate(45deg); }
/* score: the number and its bar are coloured by how strong the match is */
.ld-score { flex:none; width:44px; }
.ld-score b { font-size:16px; font-weight:700; font-variant-numeric:tabular-nums; }
.ld-score i { display:block; height:4px; border-radius:99px; background:var(--line); margin-top:3px; overflow:hidden; }
.ld-score i::after { content:""; display:block; height:100%; width:var(--w, 80%); border-radius:99px; background:currentColor; }
.ld-score.hi, .ld-score.hi b { color:var(--ld-hi); } .ld-score.mid, .ld-score.mid b { color:var(--ld-mid); } .ld-score.lo, .ld-score.lo b { color:var(--ld-lo); }
.ld-badge { flex:none; display:inline-flex; align-items:center; padding:2px 9px; border-radius:999px; font-size:11.5px; font-weight:500; white-space:nowrap; background:var(--green-soft); color:var(--green); }
.ld-badge.mid { background:var(--ld-mid-soft); color:var(--ld-mid); } .ld-badge.gray { background:var(--tint); color:var(--muted); }
.ld-chips { display:flex; flex-wrap:wrap; gap:6px; padding:2px; }
.ld-chip { padding:5px 11px; border-radius:999px; font-size:12.5px; background:var(--surface); border:1px solid var(--line); color:var(--ink2); transition:background .3s, color .3s, border-color .3s; }
.ld-chip.hit, .ld:not(.ld-js) .ld-stage .ld-chip:not(.gap) { background:var(--green-soft); color:var(--green); border-color:var(--accent-line); }
.ld-chip.gap { border-style:dashed; color:var(--muted); }
/* the resume page */
.ld-page { background:var(--surface); border:1px solid var(--line); border-radius:12px; padding:14px 16px; min-width:0; align-self:start; }
.ld-page h4 { margin:0; font-size:15px; font-weight:600; color:var(--ink); }
.ld-page > small { display:block; color:var(--muted); font-size:12px; margin-bottom:10px; }
.ld-line { padding:8px 0; border-top:1px solid var(--line); }
.ld-line s { display:block; color:var(--faint); font-size:13px; text-decoration-color:transparent; transition:text-decoration-color .3s, color .3s; }
.ld-line s.cut, .ld:not(.ld-js) .ld-stage .ld-line s { text-decoration-color:currentColor; }
.ld-line p { margin:2px 0 0; font-size:13.5px; color:var(--ink); min-height:1.6em; }
.ld-caret::after { content:""; display:inline-block; width:1.5px; height:1em; background:var(--ink); margin-left:1px; vertical-align:-2px; animation:ld-blink .8s steps(1) infinite; }
@keyframes ld-blink { 50% { opacity:0; } }
/* the email */
.ld-person { display:flex; gap:12px; align-items:center; padding:10px 12px; background:var(--surface); border:1px solid var(--line); border-radius:12px; }
.ld-avatar { flex:none; width:36px; height:36px; border-radius:50%; background:var(--tint); color:var(--ink); display:flex; align-items:center; justify-content:center; font-weight:600; font-size:13px; border:1px solid var(--line); }
.ld-person > div { flex:1; min-width:0; }
.ld-person b { display:block; font-size:14px; } .ld-person small { color:var(--muted); font-size:12.5px; display:block; }
.ld-mail { background:var(--surface); border:1px solid var(--line); border-radius:12px; padding:12px 16px; min-width:0; align-self:start; }
.ld-mail p { margin:0 0 6px; font-size:13.5px; color:var(--ink); }
.ld-mail p small { color:var(--muted); font-size:11.5px; text-transform:uppercase; letter-spacing:.06em; margin-right:6px; }
.ld-mail .ld-body { color:var(--ink2); min-height:6.4em; margin:8px 0 0; padding-top:8px; border-top:1px solid var(--line); }
/* the inbox card */
.ld-tabs2 { display:flex; gap:8px; margin:0 0 12px; flex-wrap:wrap; }
.ld-tabs2 span { display:inline-flex; align-items:center; gap:7px; padding:6px 13px; border-radius:999px; border:1px solid var(--line); font-size:13.5px; color:var(--ink2); }
.ld-tabs2 span.on { background:var(--brand); color:var(--on-brand); border-color:var(--brand); }
.ld-tabs2 em { font-style:normal; font-size:12px; font-weight:600; padding:0 7px; border-radius:999px; background:var(--tint); color:var(--ink); }
.ld-tabs2 span.on em { background:rgba(128,128,128,.28); color:inherit; }
.ld-card { border:1px solid var(--line); border-radius:18px; padding:16px 18px; background:var(--surface); transition:border-color .3s; }
.ld-card.ok { border-color:var(--accent-line); }
.ld-card-top { display:flex; gap:12px; align-items:flex-start; }
.ld-card-top > div { flex:1; min-width:0; font-size:14.5px; }
.ld-card-top small { color:var(--muted); font-size:12.5px; display:block; }
.ld-what { margin:12px 0; padding:9px 12px; border-radius:12px; background:var(--tint); font-size:13px; color:var(--ink2); }
.ld-what b { color:var(--ink); font-weight:600; }
.ld-acts { display:flex; gap:8px; flex-wrap:wrap; align-items:center; }
.ld-btn { position:relative; display:inline-flex; align-items:center; justify-content:center; padding:8px 17px; border-radius:999px; font-size:13.5px; font-weight:500; background:var(--brand); color:var(--on-brand); border:1px solid var(--brand); transition:transform .12s, background .2s, color .2s, border-color .2s; }
.ld-btn.sec { background:var(--surface); color:var(--ink); border-color:var(--line2); }
.ld-btn.press { transform:scale(.94); }
.ld-btn.press::after { content:""; position:absolute; inset:-6px; border-radius:999px; border:2px solid var(--ld-hi); animation:ld-ring .6s ease-out forwards; }
@keyframes ld-ring { from { opacity:.9; transform:scale(.85); } to { opacity:0; transform:scale(1.25); } }
.ld-btn.done { background:var(--green-soft); color:var(--green); border-color:var(--accent-line); }
.ld-note { font-size:13px; color:var(--muted); margin-left:4px; }
/* the application form the agent fills in */
.ld-form { border:1px solid var(--line); border-radius:14px; background:var(--surface); padding:14px 16px; min-width:0; }
.ld-form h4 { margin:0 0 10px; font-size:14.5px; font-weight:600; }
.ld-form h4 small { font-weight:400; color:var(--muted); font-size:12.5px; margin-left:6px; }
.ld-fields { display:grid; grid-template-columns:1fr 1fr; gap:8px 12px; }
.ld-field { min-width:0; }
.ld-field.wide { grid-column:1 / -1; }
.ld-field label { display:block; font-size:11.5px; color:var(--muted); margin-bottom:3px; }
.ld-input { height:32px; display:flex; align-items:center; padding:0 10px; border:1px solid var(--line2); border-radius:9px; font-size:13px; color:var(--ink); white-space:nowrap; overflow:hidden; transition:border-color .25s, background .25s; }
.ld-input.filled, .ld:not(.ld-js) .ld-stage .ld-input { border-color:var(--accent-line); background:var(--green-soft); }
.ld-input.file { gap:7px; }
.ld-input.file::before { content:""; flex:none; width:10px; height:13px; border:1.5px solid currentColor; border-radius:2px; opacity:.7; }
.ld-submit-row { display:flex; align-items:center; gap:12px; margin-top:12px; }
.ld-meter { flex:1; min-width:0; font-size:12.5px; color:var(--muted); }
.ld-meter i { display:block; height:4px; border-radius:99px; background:var(--line); margin-top:5px; overflow:hidden; }
.ld-meter i::after { content:""; display:block; height:100%; width:calc(var(--fill, 1) * 100%); background:var(--ld-hi); border-radius:99px; transition:width .3s; }
/* submitted */
.ld-done { display:flex; align-items:center; gap:16px; margin:4px 0 16px; }
.ld-check { flex:none; width:54px; height:54px; border-radius:50%; background:var(--green-soft); color:var(--green); display:flex; align-items:center; justify-content:center; }
.ld-check svg { width:26px; height:26px; fill:none; stroke:currentColor; stroke-width:2.6; stroke-linecap:round; stroke-linejoin:round; stroke-dasharray:30; stroke-dashoffset:0; }
.ld-js .ld-check svg { stroke-dashoffset:30; transition:stroke-dashoffset .5s .15s ease; }
.ld-js .ld-check.in svg { stroke-dashoffset:0; }
.ld-count { font:600 clamp(26px, 3.4vw, 40px)/1 var(--display); letter-spacing:-.03em; font-variant-numeric:tabular-nums; color:var(--ink); }
.ld-done small { display:block; color:var(--muted); font-size:13px; margin-top:4px; }
.ld-count-label { font-size:15px; font-weight:500; color:var(--ink); margin-left:6px; }

.ld:not(.ld-js) .ld-cols { grid-template-columns:minmax(0,1fr); gap:10px; }

/* ---- the scene indicator: six tabs, the current one fills as its scene plays ---- */
.ld-tabs { display:none; grid-template-columns:repeat(6, minmax(0,1fr)); gap:6px; padding:12px 14px 14px; border-top:1px solid var(--line); background:var(--subtle); }
.ld-js .ld-tabs { display:grid; }
.ld-tab { all:unset; box-sizing:border-box; cursor:pointer; padding:6px 2px 2px; font-size:12.5px; color:var(--muted); text-align:left; min-width:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; border-radius:6px; }
.ld-tab::before { content:""; display:block; height:3px; border-radius:99px; margin-bottom:7px; background:linear-gradient(90deg, var(--ink) calc(var(--p, 0) * 100%), var(--line2) 0); }
.ld-tab.on, .ld-tab:hover { color:var(--ink); }
.ld-tab.on { font-weight:500; }
.ld-tab.seen { --p:1; }
.ld-tab:focus-visible { outline:2px solid var(--ink); outline-offset:2px; }
.ld-sr { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }

/* ---- "Works with": the application systems the agent fills in and submits ---- */
.ws { padding:56px 0 0; text-align:center; }
.ws h3 { font:600 clamp(18px, 2vw, 22px)/1.25 var(--display); letter-spacing:-.02em; margin:0 0 20px; color:var(--ink); text-wrap:balance; }
.ws-list { list-style:none; margin:0 auto; padding:0; display:flex; flex-wrap:wrap; justify-content:center; gap:10px; max-width:940px; }
.ws-list li { display:inline-flex; align-items:center; gap:9px; padding:9px 16px 9px 11px; border:1px solid var(--line); border-radius:999px; background:var(--surface); font-size:14.5px; font-weight:500; color:var(--ink); }
.ws-logo { flex:none; width:22px; height:22px; display:inline-flex; align-items:center; justify-content:center; }
.ws-logo.img { background:currentColor; -webkit-mask:var(--logo) center / contain no-repeat; mask:var(--logo) center / contain no-repeat; }
.ws-logo.tile { border-radius:7px; background:var(--tint); font-size:12px; font-weight:700; color:var(--ink2); }
.ws-fine { margin:18px auto 0; max-width:640px; font-size:13.5px; color:var(--muted); }

@media (max-width:900px) {
  .ld-stage { grid-template-columns:minmax(0,1fr); }
  .ld-js .ld-scene { padding:22px 24px 20px; }
}
@media (max-width:1000px) { .ld-js .ld-stage { aspect-ratio:4 / 3; } }
@media (max-width:640px) {
  .ld { padding-top:32px; }
  .ld-frame { border-radius:18px; }
  .ld-stage { grid-template-columns:minmax(0,1fr); }
  .ld-js .ld-stage { aspect-ratio:5 / 8; }
  .ld-scene h3 { margin-bottom:10px; }
  .ld-js .ld-sub { margin-top:-6px; }
  .ld-js .ld-scene { padding:18px 16px 14px; }
  .ld-status { display:none; }
  .ld-url { max-width:none; flex:1; margin:0 4px; }
  .ld-cols { grid-template-columns:minmax(0,1fr); gap:10px; }
  .ld-sub { margin-bottom:10px; font-size:13.5px; }
  .ld-js .ld-hide-sm { display:none; }
  .ld-fields { gap:6px 10px; }
  .ld-mail .ld-body { min-height:11em; }
  .ld-tabs { gap:4px; padding:10px 12px 12px; }
  .ld-tab { font-size:0; padding-bottom:0; }
  .ld-tab::before { margin-bottom:0; height:4px; }
  .ws { padding-top:40px; }
  .ws-list li { font-size:13.5px; padding:7px 13px 7px 9px; }
}
@media (prefers-reduced-motion: reduce) {
  .ld-status i, .ld-caret::after { animation:none; }
}

/* second row of the Works-with strip: systems the universal form reader fills (new) */
.ws-sub { margin: 22px 0 10px; font-size: 13px; font-weight: 600; letter-spacing: .02em; color: var(--muted, inherit); opacity: .85; }
.ws-beta li { opacity: .92; }

.ws-logo.pic { border-radius:6px; object-fit:contain; background:#fff; }
