/* Resume Studio. Mopid colours (same values as the website's globals.css) and fonts (Poppins + Inter). */
:root {
  --cream: #fafafa; --ink: #1e1e1e; --ink-2: #2b2b2b; --orange: #e7704c; --orange-btn: #d35f3e; --orange-text: #b5472a;
  --grey: #5f6572; --faint: #6b7280; --tint: #fbeae4; --tint-2: #fdf4f0; --line: #ececf1; --line-2: #e2e3e8;
  --green: #1f7a4d; --green-bg: #e8f5ee; --white: #fff; --danger: #b42318; --danger-bg: #fef3f2;
  --r-sm: 12px; --r: 16px; --r-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(30,30,30,.05);
  --shadow: 0 1px 2px rgba(30,30,30,.04), 0 12px 32px -18px rgba(30,30,30,.18);
  --shadow-lg: 0 2px 4px rgba(30,30,30,.04), 0 28px 60px -28px rgba(30,30,30,.32);
  --ease: cubic-bezier(.2, .8, .2, 1); --spring: cubic-bezier(.34, 1.4, .64, 1);
  --appbar: 65px;
  /* Mopid secondary palette: one colour per step. --tc = colour, --tb = soft background, --ti = text-safe shade, --tf = icon on --tc */
  --m-green: #48bf84; --m-purple: #832da4; --m-blue: #006cfb; --m-yellow: #ffc107; --m-coral: #fd755e; --m-paper: #faf7ef;
  --tc: var(--orange); --tb: var(--tint); --ti: var(--orange-text); --tf: #fff;
}
.tone-orange { --tc: #e7704c; --tb: #fbeae4; --ti: #b5472a; --tf: #fff; }
.tone-coral  { --tc: #fd755e; --tb: #ffe9e4; --ti: #b23f2a; --tf: #fff; }
.tone-blue   { --tc: #006cfb; --tb: #e5efff; --ti: #0052c2; --tf: #fff; }
.tone-purple { --tc: #832da4; --tb: #f4e9f8; --ti: #6f2590; --tf: #fff; }
.tone-green  { --tc: #48bf84; --tb: #e4f6ec; --ti: #1f7a4d; --tf: #fff; }
.tone-yellow { --tc: #ffc107; --tb: #fff4d1; --ti: #8a6100; --tf: #1e1e1e; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 140px; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 16px/1.55 Inter, system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
h1, h2, h3, .level, .gauge-num b { font-family: Poppins, Inter, system-ui, sans-serif; letter-spacing: -0.015em; }
h1 { font-size: clamp(1.55rem, 1.2rem + 1.4vw, 2.1rem); line-height: 1.15; font-weight: 700; margin: 2px 0 0; outline: none; }
h2 { font-size: 1.4rem; line-height: 1.25; font-weight: 600; margin: 0; }
h3 { font-size: 1.05rem; font-weight: 600; margin: 0; }
p { margin: 0; }
.muted { color: var(--grey); font-size: .92rem; }
.eyebrow { font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--orange-text); }
[hidden] { display: none !important; }
button, a, label, select { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2.5px solid var(--orange); outline-offset: 2px; border-radius: 6px; }
svg { flex: none; }

/* same plain cream page as the other landing pages: no glow or dot texture */
.glow { display: none; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(600px 380px at 6% -8%, rgba(231,112,76,.18), transparent 70%),
    radial-gradient(520px 360px at 100% 2%, rgba(131,45,164,.08), transparent 70%),
    radial-gradient(520px 420px at 96% 96%, rgba(0,108,251,.06), transparent 70%),
    radial-gradient(480px 380px at 0% 100%, rgba(255,193,7,.10), transparent 70%),
    radial-gradient(rgba(30,30,30,.05) 1px, transparent 1px) 0 0 / 22px 22px; }

/* ---------- app bar ---------- */
.test-pill { font-size: .74rem; font-weight: 600; background: var(--ink); color: #fff; padding: 4px 10px; border-radius: 999px; }
.saved { margin-left: auto; font-size: .82rem; color: var(--faint); display: inline-flex; align-items: center; gap: 6px; }
.saved::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.saved:empty::before { display: none; }

/* ---------- studio layout ---------- */
.studio { max-width: 1440px; margin: 0 auto; padding: 24px 20px 64px; display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1100px) { .studio { grid-template-columns: 270px minmax(0, 1fr) minmax(0, 440px); align-items: start; } }
@media (min-width: 1380px) { .studio { grid-template-columns: 290px minmax(0, 1fr) 500px; } }
.stage { min-width: 0; }

.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; box-shadow: var(--shadow); }

/* ---------- rail: journey + scorecard ---------- */
.rail { display: none; gap: 16px; position: sticky; top: calc(var(--appbar) + 20px); max-height: calc(100vh - var(--appbar) - 36px); overflow-y: auto; scrollbar-width: none; padding-bottom: 4px; }
.rail::-webkit-scrollbar { display: none; }
@media (min-width: 1100px) { .rail { display: grid; } }
.rail-close, .sheet-grip { display: none; }
.journey { padding: 18px 14px; }
.journey .eyebrow { padding: 0 8px 8px; }
.steps-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.steps-list button { width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px 10px; min-height: 52px; border: 0; background: none; border-radius: 14px; text-align: left; font: inherit; color: var(--ink); cursor: pointer; position: relative; transition: background .2s; }
.steps-list button:disabled { cursor: default; color: var(--faint); }
.steps-list button:not(:disabled):hover { background: var(--cream); }
.steps-list .num { position: relative; width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: var(--tb); transition: all .25s var(--ease); }
.steps-list .num > svg { width: 19px; height: 19px; fill: var(--ti); }
.steps-list button:disabled .num { background: #f1f1f4; }
.steps-list button:disabled .num > svg { fill: #b7bac2; }
.steps-list .done-dot { position: absolute; right: -5px; bottom: -5px; width: 18px; height: 18px; border-radius: 50%; background: #1f7a4d; border: 2px solid #fff; display: grid; place-items: center; }
.steps-list .done-dot svg { width: 11px; height: 11px; fill: #fff; }
.steps-list .t { flex: 1; min-width: 0; }
.steps-list .t b { display: block; font-weight: 600; font-size: .94rem; }
.steps-list .t small { display: block; font-size: .78rem; color: var(--faint); }
.steps-list li.done .t small { color: var(--green); font-weight: 600; }
.steps-list li.now button { background: var(--tb); }
.steps-list li.now .num { background: var(--tc); box-shadow: 0 8px 16px -8px var(--tc); }
.steps-list li.now .num > svg { fill: var(--tf); }
.steps-list li.now button::before { content: ""; position: absolute; left: -14px; top: 12px; bottom: 12px; width: 3px; border-radius: 3px; background: var(--tc); }

.scorecard { text-align: center; padding: 20px 18px; }
.gauge { position: relative; width: 190px; margin: 0 auto; }
.gauge svg { width: 100%; display: block; overflow: visible; }
.g-bg, .g-fg { fill: none; stroke-width: 14; stroke-linecap: round; }
.g-bg { stroke: var(--tint); }
.g-fg { stroke: var(--orange); stroke-dasharray: 251.3; stroke-dashoffset: 251.3; transition: stroke-dashoffset .8s var(--ease), stroke .4s; }
.gauge.top .g-fg { stroke: var(--green); }
.gauge-num { position: absolute; left: 0; right: 0; bottom: 2px; display: flex; justify-content: center; align-items: baseline; gap: 2px; }
.gauge-num b { font-size: 2.3rem; font-weight: 700; line-height: 1; }
.gauge-num span { color: var(--faint); font-weight: 600; font-size: .9rem; }
.gauge.bump { animation: bump .5s var(--spring); }
.level { font-weight: 600; font-size: 1.12rem; margin-top: 8px; }
.to-next { font-size: .84rem; color: var(--grey); margin-top: 2px; }
.ladder { list-style: none; margin: 14px 0 4px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.ladder li { font-size: .66rem; font-weight: 600; color: var(--faint); line-height: 1.2; }
.ladder li::before { content: ""; display: block; height: 6px; border-radius: 999px; background: var(--line); margin-bottom: 5px; transition: background .4s; }
.ladder li.on { color: var(--ink); }
.ladder li.on::before { background: var(--tc); }
.badges-title { margin: 16px 0 8px; text-align: left; }
.badges-title span { color: var(--faint); letter-spacing: 0; text-transform: none; font-weight: 600; }
.badge-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.badge-grid li { aspect-ratio: 1; border-radius: 10px; display: grid; place-items: center; background: var(--cream); border: 1px dashed var(--line-2); transition: all .3s var(--ease); }
.badge-grid li svg { width: 15px; height: 15px; fill: #c8cad1; }
.badge-grid li.on { background: var(--tc); border: 1px solid transparent; box-shadow: 0 6px 12px -8px var(--tc); }
.badge-grid li.on svg { fill: var(--tf); }
.badge-grid li.new { animation: badge .7s var(--spring); }
.next-tip { margin-top: 14px; text-align: left; font-size: .84rem; color: var(--grey); background: var(--tint-2); border-radius: var(--r-sm); padding: 10px 12px; }
.next-tip b { color: var(--orange-text); }

/* ---------- step card ---------- */
.step { padding: 0 22px 26px; overflow: hidden; }
@media (min-width: 700px) { .step { padding: 0 36px 34px; } }
.step-head { position: relative; display: flex; align-items: flex-start; gap: 16px; margin: 0 -22px 22px; padding: 26px 22px 22px; background: linear-gradient(135deg, var(--tb), rgba(255,255,255,0) 78%); border-bottom: 1px solid var(--line); transition: background .4s; }
@media (min-width: 700px) { .step-head { margin: 0 -36px 24px; padding: 32px 36px 26px; } }
.step-head::after { content: ""; position: absolute; right: -40px; top: -60px; width: 190px; height: 190px; border-radius: 50%; border: 28px solid var(--tc); opacity: .08; pointer-events: none; }
.step-head-text { flex: 1; min-width: 0; }
.step-head .eyebrow { color: var(--ti); }
.step-icon { flex: none; width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; background: var(--tc); box-shadow: 0 12px 22px -12px var(--tc); animation: pop .45s var(--spring); }
.step-icon svg { width: 28px; height: 28px; fill: var(--tf); }
@media (max-width: 560px) { .step-icon { width: 46px; height: 46px; border-radius: 15px; } .step-icon svg { width: 24px; height: 24px; } }
.worth { flex: none; font-size: .76rem; font-weight: 700; color: var(--orange-text); background: var(--tint); padding: 5px 11px; border-radius: 999px; white-space: nowrap; transition: background .3s, color .3s; }
.worth.got { background: var(--green-bg); color: var(--green); }
.lede { color: var(--grey); margin: 6px 0 0; font-size: 1.02rem; }
.why-tip { display: flex; gap: 10px; align-items: flex-start; background: var(--cream); border: 1px solid var(--line); border-radius: var(--r); padding: 11px 14px; font-size: .88rem; color: var(--grey); margin-bottom: 24px; }
.why-tip svg { width: 18px; height: 18px; fill: var(--ti); margin-top: 1px; }
.why-tip { border-left: 3px solid var(--tc); }
.banner { display: flex; align-items: center; gap: 12px; background: linear-gradient(135deg, #e9f6ef, #f4fbf7); border: 1px solid #cfe9db; color: var(--green); border-radius: var(--r); padding: 12px 14px; margin-bottom: 18px; font-weight: 600; animation: rise .45s var(--spring); }
.banner .medal { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--green); flex: none; }
.banner .medal svg { width: 20px; height: 20px; fill: #fff; }
.banner small { display: block; font-weight: 500; color: #2d6a4a; }
.step-body.enter > * { animation: rise .4s var(--ease) backwards; }
.step-body > *:nth-child(2) { animation-delay: .04s; } .step-body > *:nth-child(3) { animation-delay: .08s; } .step-body > *:nth-child(4) { animation-delay: .12s; } .step-body > *:nth-child(n+5) { animation-delay: .16s; }

/* actions: inside the card on desktop, a frosted bottom bar on phones and tablets */
.actions { display: flex; gap: 10px; margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line); }
.actions #next { margin-left: auto; min-width: 180px; }
.btn.only-small { display: none; }
@media (max-width: 1099px) {
  .btn.only-small { display: inline-flex; }
  .actions { position: fixed; z-index: 25; left: 0; right: 0; bottom: 0; margin: 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: rgba(255,255,255,.86); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); }
  .actions #next { flex: 1; min-width: 0; }
  .studio { padding-bottom: 120px; }
}
@media (max-width: 520px) { .actions .btn-icon-text span { display: none; } .actions .btn-icon-text { width: 54px; padding: 0; flex: none; } }

/* ---------- buttons ---------- */
.btn { white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 22px; border-radius: 16px; border: 0; font: 600 1rem Inter, sans-serif; text-decoration: none; cursor: pointer; transition: transform .12s, box-shadow .2s, filter .2s, background .2s, border-color .2s; color: var(--ink); background: var(--white); }
.btn svg { width: 20px; height: 20px; fill: currentColor; }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn-primary { color: #fff; background-image: linear-gradient(135deg, var(--orange), var(--orange-btn)); box-shadow: 0 10px 22px -10px rgba(211,95,62,.75), inset 0 1px 0 rgba(255,255,255,.22); }
.btn-primary:hover { filter: brightness(1.05); box-shadow: 0 14px 26px -10px rgba(211,95,62,.85), inset 0 1px 0 rgba(255,255,255,.22); }
.btn-ink { color: #fff; background: linear-gradient(135deg, var(--ink), var(--ink-2)); box-shadow: 0 10px 22px -12px rgba(30,30,30,.7); }
.btn-ink svg { fill: #ffb59c; }
.btn-ghost { background: var(--white); border: 1.5px solid var(--line-2); }
.btn-ghost:hover { border-color: var(--orange); }
.btn-sm { min-height: 40px; padding: 0 14px; font-size: .9rem; border-radius: 12px; }
.btn-wide { width: 100%; }

/* ---------- form controls ---------- */
.field { display: block; margin-bottom: 16px; }
.field > .lbl { display: flex; align-items: center; gap: 6px; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.field .hint { display: block; color: var(--faint); font-size: .82rem; margin-top: 5px; }
.req { color: var(--orange-text); }
input:not([type=radio]):not([type=checkbox]):not([type=file]), textarea, select {
  width: 100%; font: 16px/1.45 Inter, sans-serif; color: var(--ink); background: var(--white); min-height: 52px;
  border: 1.5px solid var(--line-2); border-radius: 14px; padding: 13px 15px; resize: vertical; transition: border-color .15s, box-shadow .15s, background .15s;
}
input:hover, textarea:hover, select:hover { border-color: #d2d4db; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%235f6572' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 20px; padding-right: 38px; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 4px rgba(231,112,76,.14); }
::placeholder { color: #a3a6af; }
.grid2 { display: grid; gap: 0 14px; grid-template-columns: 1fr 1fr; }
@media (max-width: 560px) { .grid2 { grid-template-columns: 1fr; } }
.pair { display: grid; gap: 0 10px; grid-template-columns: 1fr 1fr; }
.error { color: var(--danger); background: var(--danger-bg); border: 1px solid #fcd5d0; border-radius: 12px; padding: 11px 14px; font-size: .92rem; margin-top: 14px; animation: shake .35s; }
.subhead { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-weight: 600; margin: 26px 0 10px; }
.subhead:first-child { margin-top: 0; }
.subhead small { font-weight: 600; font-size: .78rem; color: var(--faint); }

/* choice cards */
.choices { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
@media (max-width: 480px) { .choices { grid-template-columns: 1fr; } }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice .box { position: relative; display: flex; gap: 14px; align-items: center; height: 100%; min-height: 76px; border: 1.5px solid var(--line-2); border-radius: 18px; padding: 14px 16px; background: var(--white); transition: border-color .2s, background .2s, transform .15s, box-shadow .2s; }
.choice:hover .box { border-color: var(--tc); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.choice .tile { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--tb); transition: background .2s; flex: none; }
.choice .tile svg { width: 24px; height: 24px; fill: var(--ti); transition: fill .2s; }
.choice b { display: block; font-weight: 600; }
.choice small { display: block; color: var(--grey); font-size: .84rem; }
.choice .tick { position: absolute; top: 10px; right: 10px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--tc); transform: scale(0); transition: transform .3s var(--spring); }
.choice .tick svg { width: 14px; height: 14px; fill: var(--tf); }
.choice input:checked + .box { border-color: var(--tc); background: var(--tb); box-shadow: 0 0 0 1px var(--tc), 0 12px 24px -16px var(--tc); }
.choice input:checked + .box .tile { background: var(--tc); }
.choice input:checked + .box .tile svg { fill: var(--tf); }
.choice input:checked + .box .tick { transform: scale(1); }
.choice input:focus-visible + .box { outline: 2.5px solid var(--orange); outline-offset: 3px; }

.upload-box { margin-top: 18px; display: flex; gap: 14px; align-items: center; border: 1.5px dashed #e3b9a9; border-radius: 18px; padding: 16px; background: var(--tint-2); cursor: pointer; transition: background .2s, border-color .2s; }
.upload-box:hover { background: var(--tint); border-color: var(--orange); }
.upload-box .tile { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--white); box-shadow: var(--shadow-sm); }
.upload-box .tile svg { width: 24px; height: 24px; fill: var(--orange-text); }
.upload-box input { display: none; }
.upload-box b { display: block; }
.upload-box small { color: var(--grey); }

/* entries: a timeline of jobs, cards for education and certificates */
.entries { display: grid; gap: 10px; margin-bottom: 14px; }
.entries.timeline { gap: 0; padding-left: 22px; position: relative; }
.entries.timeline::before { content: ""; position: absolute; left: 7px; top: 14px; bottom: 14px; width: 2px; background: var(--line); border-radius: 2px; }
.entries.timeline .entry { margin-bottom: 10px; }
.entries.timeline .entry::before { content: ""; position: absolute; left: -21px; top: 22px; width: 14px; height: 14px; border-radius: 50%; background: var(--white); border: 3px solid var(--orange); }
.entry { position: relative; display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--line); border-radius: 16px; padding: 14px 14px 14px 16px; background: var(--white); box-shadow: var(--shadow-sm); animation: rise .35s var(--spring); }
.entry .tile { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--tint); flex: none; }
.entry .tile svg { width: 20px; height: 20px; fill: var(--orange-text); }
.entry-main { flex: 1; min-width: 0; }
.entry-main b { display: block; font-weight: 600; }
.entry-main span { color: var(--grey); font-size: .86rem; display: block; }
.entry-main .tag { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; font-size: .74rem; font-weight: 700; color: var(--green); background: var(--green-bg); padding: 3px 9px; border-radius: 999px; }
.entry-main .tag svg { width: 12px; height: 12px; fill: currentColor; }
.entry-actions { display: flex; gap: 2px; margin: -6px -6px 0 0; }
.icon-btn { width: 44px; height: 44px; border-radius: 12px; border: 0; background: none; color: var(--grey); cursor: pointer; display: grid; place-items: center; transition: background .15s, color .15s; }
.icon-btn svg { width: 19px; height: 19px; fill: currentColor; }
.icon-btn:hover { background: var(--cream); color: var(--ink); }
.add { width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 58px; border: 1.5px dashed var(--orange); border-radius: 18px; background: var(--white); color: var(--orange-text); font: 600 1rem Inter, sans-serif; cursor: pointer; transition: background .2s, transform .15s; }
.add:hover { background: var(--tint-2); }
.add:active { transform: scale(.99); }
.add .plus { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: linear-gradient(135deg, var(--orange), var(--orange-btn)); }
.add .plus svg { width: 18px; height: 18px; fill: #fff; }
.add .pts-tag { font-size: .74rem; font-weight: 700; background: var(--tint); padding: 3px 8px; border-radius: 999px; }
.editor { border: 1.5px solid var(--orange); border-radius: 20px; padding: 18px; margin-bottom: 14px; background: linear-gradient(180deg, var(--tint-2), var(--white) 120px); box-shadow: 0 16px 36px -24px rgba(211,95,62,.6); animation: rise .35s var(--spring); }
.editor-title { display: flex; align-items: center; gap: 10px; font-weight: 600; margin-bottom: 14px; }
.editor-title .tile { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: linear-gradient(135deg, var(--orange), var(--orange-btn)); }
.editor-title .tile svg { width: 18px; height: 18px; fill: #fff; }
.editor-actions { display: flex; gap: 10px; margin-top: 6px; }
.editor-actions .btn { flex: 1; }
.check { display: flex; gap: 12px; align-items: center; min-height: 48px; cursor: pointer; font-size: .96rem; padding: 0 2px; }
.check input { width: 22px; height: 22px; accent-color: var(--orange); flex: none; }
.toggles { display: grid; gap: 8px; }
.toggle { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 10px 14px; border: 1.5px solid var(--line-2); border-radius: 16px; cursor: pointer; transition: border-color .2s, background .2s; }
.toggle input { position: absolute; opacity: 0; pointer-events: none; }
.toggle .sw { width: 44px; height: 26px; border-radius: 999px; background: #d9dbe1; position: relative; flex: none; transition: background .25s; }
.toggle .sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .3s var(--spring); }
.toggle:has(input:checked) { border-color: var(--orange); background: var(--tint-2); }
.toggle input:checked + .sw { background: var(--orange); }
.toggle input:checked + .sw::after { transform: translateX(18px); }
.toggle input:focus-visible + .sw { outline: 2.5px solid var(--orange); outline-offset: 2px; }

/* job description helpers */
.starters { display: flex; flex-wrap: wrap; gap: 8px; margin: -4px 0 12px; }
@media (max-width: 560px) { .starters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-right: -18px; padding-right: 18px; } .starters::-webkit-scrollbar { display: none; } .starters .chip { flex: none; } }
.meter-pills { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.pill { display: inline-flex; align-items: center; gap: 5px; font-size: .78rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--cream); border: 1px solid var(--line); color: var(--faint); transition: all .25s var(--ease); }
.pill svg { width: 12px; height: 12px; fill: currentColor; }
.pill.on { background: var(--green-bg); border-color: #cfe9db; color: var(--green); }
.polish { width: 100%; min-height: 54px; }
.polish .spin { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(255,255,255,.35); border-top-color: #fff; animation: spin .8s linear infinite; }
.polished { border: 1.5px solid #bfe2cf; background: linear-gradient(180deg, #f1faf5, var(--white)); border-radius: 18px; padding: 14px; margin: 12px 0 4px; animation: rise .4s var(--spring); }
.polished-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 10px; }
.polished-head b { display: inline-flex; align-items: center; gap: 8px; color: var(--green); }
.polished-head b svg { width: 18px; height: 18px; fill: currentColor; }
.polished textarea { min-height: 48px; margin-bottom: 8px; font-size: .95rem; overflow: hidden; resize: none; border-color: #d6ece0; }
.polished .tipq { display: flex; gap: 8px; font-size: .86rem; color: var(--grey); background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin-top: 4px; }
.polished .tipq svg { width: 16px; height: 16px; fill: var(--orange); margin-top: 2px; }
.stale { font-size: .84rem; color: var(--orange-text); margin: 8px 0 0; }

/* chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 0 15px; border-radius: 999px; border: 1.5px solid var(--line-2); background: var(--white); font: 500 .93rem Inter, sans-serif; color: var(--ink); cursor: pointer; transition: background .2s, border-color .2s, color .2s, transform .12s; }
.chip:hover { border-color: #d9a594; }
.chip:active { transform: scale(.96); }
.chip svg { width: 15px; height: 15px; fill: currentColor; }
.chip.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip.on svg { fill: #ffb59c; }
.chip.soft.on { background: var(--m-purple); border-color: var(--m-purple); }
.chip.soft.on svg { fill: #fff; }
.skill-goal { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: var(--cream); border: 1px solid var(--line); margin-bottom: 14px; }
.skill-goal .bar { flex: 1; height: 8px; border-radius: 999px; background: var(--line); overflow: hidden; }
.skill-goal .bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--orange), var(--orange-btn)); transition: width .5s var(--ease); }
.skill-goal.full .bar span { background: var(--green); }
.skill-goal b { font: 700 1.2rem Poppins, sans-serif; }
.skill-goal small { display: block; color: var(--faint); font-size: .78rem; }
.chip-input { display: flex; gap: 8px; margin-top: 12px; }
.chip-input input { flex: 1; }
.lang-row { display: grid; grid-template-columns: 1fr 150px 44px; gap: 8px; margin-bottom: 8px; align-items: center; }
@media (max-width: 420px) { .lang-row { grid-template-columns: 1fr 120px 44px; } }

/* template picker: a header, a colour row, then big A4 previews in a slider */
.look-head { display: flex; gap: 14px; align-items: center; margin: 30px 0 14px; padding: 14px 16px; border-radius: 18px; background: linear-gradient(120deg, #fff4d1, #ffe9e4 45%, #f4e9f8 80%, #e5efff); }
.look-icon { width: 46px; height: 46px; border-radius: 14px; flex: none; display: grid; place-items: center; background: #fff; box-shadow: var(--shadow-sm); }
.look-icon svg { width: 24px; height: 24px; fill: var(--m-purple); }
.look-head b { display: block; font: 600 1.08rem Poppins, sans-serif; }
.look-head small { display: block; color: var(--grey); font-size: .84rem; line-height: 1.4; }
.colour-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; margin-bottom: 10px; }
.colour-label { display: inline-flex; align-items: center; gap: 6px; font-size: .9rem; color: var(--grey); }
.colour-label svg { width: 18px; height: 18px; fill: var(--grey); }
.colour-label b { color: var(--ink); }
.swatches { display: flex; gap: 2px; flex-wrap: wrap; }
.swatch { width: 44px; height: 44px; display: grid; place-items: center; cursor: pointer; position: relative; }
.swatch input { position: absolute; opacity: 0; pointer-events: none; }
.swatch .dot { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); transition: transform .2s var(--spring), box-shadow .2s; }
.swatch .dot.orig { background: conic-gradient(#1e1e1e 0 25%, #1f4e79 0 50%, #b5472a 0 75%, #6f2590 0); }
.swatch .dot svg { width: 16px; height: 16px; fill: #fff; transform: scale(0); transition: transform .25s var(--spring); }
.swatch:hover .dot { transform: scale(1.08); }
.swatch input:checked + .dot { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--c, var(--ink)); }
.swatch input:checked + .dot svg { transform: scale(1); }
.swatch input:focus-visible + .dot { outline: 2.5px solid var(--orange); outline-offset: 5px; }
.slider { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 10px 14px 34px; margin: 0 -14px -16px; scroll-padding-left: 14px; scrollbar-width: none; overscroll-behavior-x: contain; }
.slider::-webkit-scrollbar { display: none; }
.tpl { position: relative; cursor: pointer; flex: 0 0 min(64vw, 230px); scroll-snap-align: start; }
@media (min-width: 1100px) { .tpl { flex-basis: 196px; } }
.tpl input { position: absolute; opacity: 0; pointer-events: none; }
.tpl .box { display: block; border: 1.5px solid var(--line-2); border-radius: 18px; overflow: hidden; background: var(--white); transition: border-color .2s, box-shadow .2s, transform .25s var(--ease); }
.tpl:hover .box { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.tpl .thumb { display: block; width: 100%; aspect-ratio: 210 / 297; overflow: hidden; position: relative; background: var(--white); border-bottom: 1px solid var(--line); }
.tpl .thumb iframe { position: absolute; top: 0; left: 0; width: 794px; height: 1123px; border: 0; transform-origin: 0 0; pointer-events: none; }
.tpl .thumb::after { content: ""; position: absolute; inset: auto 0 0; height: 36%; background: linear-gradient(180deg, rgba(255,255,255,0), rgba(255,255,255,.9)); pointer-events: none; }
.ribbon { position: absolute; z-index: 1; left: 8px; top: 8px; display: inline-flex; align-items: center; gap: 4px; font-size: .7rem; font-weight: 700; padding: 4px 9px; border-radius: 999px; background: rgba(30,30,30,.82); color: #fff; backdrop-filter: blur(4px); }
.ribbon.rec { background: var(--m-yellow); color: var(--ink); }
.ribbon svg { width: 12px; height: 12px; fill: currentColor; }
.tpl .meta { display: block; padding: 11px 13px 13px; }
.tpl .meta b { display: flex; align-items: center; justify-content: space-between; font: 600 1rem Poppins, sans-serif; }
.tpl .meta small { color: var(--grey); font-size: .8rem; line-height: 1.35; display: block; min-height: 2.7em; }
.tpl .tick { width: 24px; height: 24px; border-radius: 50%; background: var(--orange); display: grid; place-items: center; transform: scale(0); transition: transform .3s var(--spring); }
.tpl .tick svg { width: 15px; height: 15px; fill: #fff; }
.tpl input:checked + .box { border-color: var(--orange); box-shadow: 0 0 0 2px var(--orange), 0 18px 34px -18px rgba(211,95,62,.75); }
.tpl input:checked + .box .tick { transform: scale(1); }
.tpl input:focus-visible + .box { outline: 2.5px solid var(--orange); outline-offset: 3px; }
.slider-foot { display: flex; align-items: center; gap: 10px; }
.slider-dots { display: flex; gap: 6px; margin-right: auto; }
.slider-dots span { width: 7px; height: 7px; border-radius: 999px; background: var(--line-2); transition: width .3s var(--ease), background .3s; }
.slider-dots span.on { background: var(--orange); width: 20px; }
.slider-arrows { display: flex; gap: 6px; }
.slider-arrows .icon-btn { border: 1.5px solid var(--line-2); background: var(--white); }
.full-size { min-height: 44px; }
@media (max-width: 400px) { .full-size { padding: 0 10px; } }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: .9rem; color: var(--grey); margin-top: 22px; padding: 14px; border-radius: 16px; background: var(--cream); border: 1px solid var(--line); cursor: pointer; }
.consent input { width: 22px; height: 22px; margin-top: 1px; accent-color: var(--orange); flex: none; }

/* ---------- live preview desk ---------- */
.desk { display: none; position: sticky; top: calc(var(--appbar) + 20px); }
@media (min-width: 1100px) { .desk { display: block; } }
.desk-head { display: flex; align-items: center; gap: 8px; margin: 2px 4px 10px; }
.desk-head .muted { margin-left: auto; font-size: .8rem; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 0 rgba(231,112,76,.6); animation: pulse 2s infinite; }
.paper { position: relative; background: var(--white); border-radius: 10px; box-shadow: var(--shadow-lg); overflow: hidden; border: 1px solid var(--line); }
.paper iframe { position: absolute; top: 0; left: 0; width: 794px; height: 1123px; border: 0; transform-origin: 0 0; background: var(--white); }
.desk .paper { max-height: calc(100vh - var(--appbar) - 70px); overflow-y: auto; scrollbar-width: thin; }
.desk-empty { text-align: center; padding: 26px 26px 30px; border-radius: 18px; border: 1.5px dashed var(--line-2); background: rgba(255,255,255,.6); }
.desk-empty b { display: block; font: 600 1.05rem Poppins, sans-serif; margin-top: 18px; }
.desk-empty .muted { max-width: 300px; margin: 4px auto 0; }
.ghost-page { width: 72%; margin: 0 auto; aspect-ratio: 210 / 297; background: #fff; border-radius: 8px; box-shadow: var(--shadow-lg); padding: 9% 9%; display: flex; flex-direction: column; gap: 7px; text-align: left; transform: rotate(-2deg); }
.ghost-page span { display: block; height: 7px; border-radius: 4px; background: #eeeef2; animation: shimmer 2.2s ease-in-out infinite; }
.ghost-page .g-name { width: 55%; height: 14px; background: var(--ink); opacity: .85; }
.ghost-page .g-sub { width: 38%; margin-bottom: 8px; }
.ghost-page .g-h { width: 30%; height: 9px; margin-top: 8px; }
.ghost-page .c1 { background: var(--m-blue); } .ghost-page .c2 { background: var(--m-purple); } .ghost-page .c3 { background: var(--m-green); }
.ghost-page .short { width: 70%; }
.ghost-page .g-chips { display: flex; gap: 5px; height: auto; background: none; animation: none; }
.ghost-page .g-chips i { height: 12px; flex: 1; border-radius: 6px; background: var(--tint); }
.ghost-page .g-chips i:nth-child(2) { background: #fff4d1; } .ghost-page .g-chips i:nth-child(3) { background: #e5efff; } .ghost-page .g-chips i:nth-child(4) { background: #e4f6ec; }

/* ---------- phone: progress bar under the app bar ---------- */
.mbar { display: none; }
@media (max-width: 1099px) {
  .mbar { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; position: sticky; top: var(--appbar); z-index: 20; padding: 10px 16px 14px; background: rgba(250,250,250,.86); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid var(--line); }
  .studio { padding-top: 16px; }
  .test-pill { display: none; }
  #step-count, .step-head .worth { display: none; } /* the top bar already shows the step and its points */
}
.mring { position: relative; width: 48px; height: 48px; border: 0; background: none; padding: 0; cursor: pointer; border-radius: 50%; }
.mring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.mring span { position: absolute; inset: 0; display: grid; place-items: center; font: 700 .95rem Poppins, sans-serif; }
.mring.bump { animation: bump .5s var(--spring); }
.ring-bg, .ring-fg { fill: none; stroke-width: 5; }
.ring-bg { stroke: var(--tint); }
.ring-fg { stroke: var(--orange); stroke-linecap: round; stroke-dasharray: 119.4; stroke-dashoffset: 119.4; transition: stroke-dashoffset .7s var(--ease), stroke .3s; }
.top-level .ring-fg { stroke: var(--green); }
.mbar-text { min-width: 0; }
.mbar-text span { display: block; font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--orange-text); }
.mbar-text b { display: block; font: 600 1rem Poppins, sans-serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mprogress { grid-column: 1 / -1; display: flex; gap: 4px; }
.mprogress span { flex: 1; height: 5px; border-radius: 999px; background: var(--line); overflow: hidden; position: relative; }
.mprogress span.done { background: var(--tc); }
.mprogress span.now::after { content: ""; position: absolute; inset: 0; width: 50%; background: var(--tc); border-radius: inherit; }
.mbar-text span { color: var(--ti) !important; }

/* phones and tablets: the rail becomes a bottom sheet */
@media (max-width: 1099px) {
  .rail.open { display: grid; position: fixed; z-index: 45; left: 0; right: 0; bottom: 0; top: auto; max-height: 86vh; overflow-y: auto; background: var(--cream); border-radius: 26px 26px 0 0; padding: 10px 16px calc(20px + env(safe-area-inset-bottom)); box-shadow: 0 -20px 50px -20px rgba(30,30,30,.35); animation: sheet .35s var(--ease); }
  .rail.open .sheet-grip { display: block; width: 44px; height: 5px; border-radius: 999px; background: #d4d6dc; margin: 2px auto 6px; }
  .rail.open .rail-close { display: flex; justify-content: space-between; align-items: center; }
}
.scrim { position: fixed; inset: 0; z-index: 40; background: rgba(30,30,30,.4); backdrop-filter: blur(2px); animation: fade .25s; }
.modal { position: fixed; inset: 0; z-index: 50; background: var(--cream); display: flex; flex-direction: column; padding: 14px 16px calc(16px + env(safe-area-inset-bottom)); animation: sheet .3s var(--ease); }
.modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.paper-modal { flex: 1; overflow-y: auto; width: 100%; max-width: 820px; margin: 0 auto; }
.modal-head { width: 100%; max-width: 820px; margin-left: auto; margin-right: auto; }

/* ---------- working ---------- */
.working-wrap { padding: 40px 16px; min-height: calc(100vh - var(--appbar)); display: grid; place-items: center; }
.working { text-align: center; max-width: 480px; width: 100%; padding: 36px 28px; }
.orbit { position: relative; width: 74px; height: 74px; margin: 0 auto 20px; }
.orbit span { position: absolute; inset: 0; border-radius: 50%; border: 3px solid transparent; border-top-color: var(--orange); animation: spin 1.1s linear infinite; }
.orbit span:nth-child(2) { inset: 10px; border-top-color: var(--orange-btn); animation-duration: 1.6s; animation-direction: reverse; }
.orbit span:nth-child(3) { inset: 22px; background: var(--tint); border: 0; animation: pulse-dot 1.4s ease-in-out infinite; }
.working h2 { margin-bottom: 6px; }
.work-steps { list-style: none; padding: 0; margin: 22px auto 18px; text-align: left; width: fit-content; display: grid; gap: 8px; }
.work-steps li { display: flex; gap: 10px; align-items: center; color: #a3a6af; font-weight: 500; transition: color .3s; }
.work-steps li::before { content: ""; width: 20px; height: 20px; border-radius: 50%; border: 2px solid #d8d9df; flex: none; transition: all .3s var(--ease); }
.work-steps li.on { color: var(--ink); }
.work-steps li.on::before { border-color: var(--orange); background: var(--tint); }
.work-steps li.done { color: var(--grey); }
.work-steps li.done::before { border-color: var(--green); background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 16.2l-4.2-4.2-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center / 14px no-repeat; }
.work-bar { height: 6px; border-radius: 999px; background: var(--line); overflow: hidden; }
.work-bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--orange), var(--orange-btn)); border-radius: inherit; transition: width 14s cubic-bezier(.1, .7, .3, 1); }

/* ---------- result ---------- */
.result { max-width: 1320px; margin: 0 auto; padding: 24px 20px 64px; position: relative; overflow-x: clip; }
.result-hero { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; padding: 24px 26px; background: linear-gradient(135deg, var(--white) 55%, var(--tint-2)); margin-bottom: 22px; animation: rise .5s var(--spring); }
.hero-score { position: relative; width: 84px; height: 84px; flex: none; }
.hero-score svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.hero-score .ring-bg, .hero-score .ring-fg { stroke-width: 4.5; }
.hero-score span { position: absolute; inset: 0; display: grid; place-items: center; font: 700 1.6rem Poppins, sans-serif; }
.hero-text { flex: 1; min-width: 220px; }
.hero-text h1 { margin: 2px 0 4px; }
.downloads { display: flex; gap: 10px; flex-wrap: wrap; }
.result-grid { display: grid; gap: 22px; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); align-items: start; }
@media (max-width: 980px) { .result-grid { grid-template-columns: 1fr; } }
.result-main, .result-side { min-width: 0; }
.result-side { display: grid; gap: 16px; }
.tpl-bar { display: flex; align-items: baseline; gap: 10px; margin-bottom: 6px; }
.tpl-bar .muted { font-size: .82rem; }
.slider-result .tpl { flex-basis: 150px; }
.slider-result .tpl .meta small { display: none; }
.paper-result { margin-top: 8px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.score-pill { font-size: .78rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--green-bg); color: var(--green); }
.score-pill.warn { background: var(--tint); color: var(--orange-text); }
.checks, .why, .badge-wall { list-style: none; padding: 0; margin: 0; }
.checks li { display: flex; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); font-size: .93rem; }
.checks li:first-child { border-top: 0; padding-top: 0; }
.mark { flex: none; width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center; }
.mark svg { width: 15px; height: 15px; fill: currentColor; }
.mark.ok { background: var(--green-bg); color: var(--green); }
.mark.no { background: var(--tint); color: var(--orange-text); }
.checks small { display: block; color: var(--grey); font-size: .82rem; }
.why li { padding: 11px 0; border-top: 1px solid var(--line); font-size: .94rem; }
.why li:first-child { border-top: 0; padding-top: 4px; }
.why b { display: block; font-size: .72rem; color: var(--orange-text); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 2px; }
#questions .field > .lbl { font-weight: 500; }
.badge-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.badge-wall li { display: flex; align-items: center; gap: 8px; padding: 9px 10px; border-radius: 12px; background: var(--green-bg); color: var(--green); font-weight: 600; font-size: .8rem; line-height: 1.2; }
.badge-wall li svg { width: 16px; height: 16px; fill: currentColor; }
.badge-wall li.off { background: var(--cream); color: var(--faint); font-weight: 500; border: 1px dashed var(--line-2); }
.cost { text-align: center; font-size: .82rem; }

/* ---------- toast, confetti, sparks ---------- */
.toast { position: fixed; left: 50%; top: calc(var(--appbar) + 14px); z-index: 60; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 10px; background: var(--ink); color: #fff; padding: 10px 16px 10px 10px; border-radius: 999px; font-weight: 600; font-size: .92rem; box-shadow: 0 16px 34px -12px rgba(30,30,30,.55); animation: toast 2.6s var(--ease) forwards; white-space: nowrap; max-width: calc(100vw - 32px); }
.toast .coin { min-width: 34px; height: 34px; padding: 0 8px; border-radius: 999px; display: grid; place-items: center; background: linear-gradient(135deg, var(--orange), var(--orange-btn)); font: 700 .85rem Poppins, sans-serif; }
.toast span:last-child { overflow: hidden; text-overflow: ellipsis; }
@media (min-width: 1100px) { .toast { top: auto; bottom: 28px; } } /* desktop: below the work, never over the step title */
@media (max-width: 1099px) { .toast { top: calc(var(--appbar) + 88px); } }
.confetti { position: absolute; inset: 0 0 auto 0; height: 0; pointer-events: none; }
.confetti i { position: absolute; top: 0; width: 8px; height: 13px; border-radius: 2px; animation: fall 1.8s ease-in forwards; }
.spark { position: fixed; z-index: 60; width: 7px; height: 7px; border-radius: 2px; pointer-events: none; animation: spark .9s ease-out forwards; }

@keyframes pop { from { transform: scale(.6) rotate(-8deg); opacity: 0; } }
@keyframes shimmer { 50% { opacity: .55; } }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes sheet { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fade { from { opacity: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(231,112,76,.55); } 70% { box-shadow: 0 0 0 8px rgba(231,112,76,0); } 100% { box-shadow: 0 0 0 0 rgba(231,112,76,0); } }
@keyframes pulse-dot { 0%, 100% { transform: scale(.85); } 50% { transform: scale(1.05); } }
@keyframes bump { 0%, 100% { transform: scale(1); } 40% { transform: scale(1.1); } }
@keyframes badge { 0% { transform: scale(.4) rotate(-20deg); } 60% { transform: scale(1.25) rotate(6deg); } 100% { transform: scale(1); } }
@keyframes shake { 20%, 60% { transform: translateX(-4px); } 40%, 80% { transform: translateX(4px); } }
@keyframes toast { 0% { opacity: 0; transform: translate(-50%, -10px) scale(.96); } 10%, 84% { opacity: 1; transform: translate(-50%, 0) scale(1); } 100% { opacity: 0; transform: translate(-50%, -8px); } }
@keyframes fall { to { transform: translateY(520px) rotate(560deg); opacity: 0; } }
@keyframes spark { to { transform: translate(var(--dx), var(--dy)) rotate(360deg); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .confetti, .spark { display: none; }
}
@media (max-width: 560px) { .colour-row .swatches { width: 100%; gap: 0; justify-content: space-between; flex-wrap: nowrap; } }

/* ---------- Apply with Mopid in one click ---------- */
.btn-apply { min-height: 56px; padding: 0 24px; font-size: 1.02rem; }
.btn-apply svg { fill: #fff4d1; }
.btn-apply .spin { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(255,255,255,.35); border-top-color: #fff; animation: spin .8s linear infinite; }
.btn-apply.done, .btn-apply.done:disabled { opacity: 1; background-image: none; background: #1f7a4d; box-shadow: 0 10px 22px -12px rgba(31,122,77,.8); }
.btn-apply.done svg { fill: #fff; }
@media (max-width: 700px) { .downloads { width: 100%; } .downloads .btn-apply { flex: 1 1 100%; } .downloads .btn-ghost { flex: 1; } }
.apply-panel { margin: -6px 0 22px; border: 1.5px solid var(--orange); background: linear-gradient(180deg, var(--tint-2), var(--white) 140px); animation: rise .4s var(--spring); }
.apply-panel.ok { border-color: #bfe2cf; background: linear-gradient(180deg, #f1faf5, var(--white) 140px); }
.apply-head { display: flex; gap: 14px; align-items: center; margin-bottom: 16px; }
.apply-panel.ok .apply-head { margin-bottom: 0; }
.apply-icon { width: 46px; height: 46px; border-radius: 14px; flex: none; display: grid; place-items: center; background: var(--orange); }
.apply-panel.ok .apply-icon { background: #1f7a4d; }
.apply-icon svg { width: 24px; height: 24px; fill: #fff; }

/* =================== landing page =================== */
.on-landing .saved, .on-landing .test-pill { display: none; }
.lp { max-width: 1180px; margin: 0 auto; padding: 0 20px; overflow-x: clip; }
.lp h1 { font-size: clamp(2.1rem, 1.5rem + 3vw, 3.6rem); line-height: 1.07; letter-spacing: -0.03em; font-weight: 700; }
.lp h2 { font-size: clamp(1.55rem, 1.25rem + 1.4vw, 2.3rem); line-height: 1.15; letter-spacing: -0.02em; font-weight: 700; text-align: center; max-width: 720px; margin: 0 auto; }
.hl { color: var(--orange-text); background: linear-gradient(transparent 68%, rgba(255,193,7,.45) 68%); padding: 0 .06em; }
.lp-pill { display: inline-flex; align-items: center; gap: 8px; font-size: .84rem; font-weight: 600; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; box-shadow: var(--shadow-sm); margin-bottom: 18px; }
.dot-live { width: 8px; height: 8px; border-radius: 50%; background: var(--m-green); box-shadow: 0 0 0 4px rgba(72,191,132,.2); }
.lp-sub { font-size: clamp(1.02rem, .95rem + .3vw, 1.15rem); color: var(--grey); margin: 16px 0 26px; max-width: 520px; }
.lp-cta { min-height: 58px; padding: 0 28px; font-size: 1.06rem; border-radius: 18px; }
.lp-ticks { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .9rem; color: var(--grey); }
.lp-ticks li { display: inline-flex; align-items: center; gap: 6px; }
.lp-ticks svg { width: 18px; height: 18px; fill: #1f7a4d; }

/* hero */
.lp-hero { display: grid; gap: 36px; padding: 40px 0 56px; align-items: center; }
@media (min-width: 940px) { .lp-hero { grid-template-columns: 1.05fr 1fr; padding: 72px 0 88px; gap: 48px; } }
.lp-visual { position: relative; height: 430px; max-width: 500px; width: 100%; margin: 0 auto; }
@media (min-width: 940px) { .lp-visual { height: 540px; } }
.lp-visual::before { content: ""; position: absolute; inset: 8% 4% 4% 10%; border-radius: 40px; background: linear-gradient(135deg, #ffe9e4, #f4e9f8 50%, #e5efff); transform: rotate(-4deg); }
.lp-paper { position: absolute; left: 4%; top: 2%; width: 66%; background: #fff; border-radius: 10px; box-shadow: var(--shadow-lg); overflow: hidden; transform: rotate(-3deg); border: 1px solid var(--line); }
.lp .thumb { display: block; width: 100%; aspect-ratio: 210 / 297; overflow: hidden; position: relative; background: #fff; }
.lp .thumb iframe { position: absolute; top: 0; left: 0; width: 794px; height: 1123px; border: 0; transform-origin: 0 0; pointer-events: none; }
.lp-sample { position: absolute; left: 10px; bottom: 10px; font-size: .7rem; font-weight: 700; background: rgba(30,30,30,.8); color: #fff; padding: 3px 9px; border-radius: 999px; }
.lp-phone { position: absolute; right: 2%; bottom: 0; width: 46%; max-width: 220px; aspect-ratio: 9 / 18.5; background: var(--m-paper); border: 7px solid var(--ink); border-radius: 30px; box-shadow: 0 30px 60px -24px rgba(30,30,30,.5); padding: 22px 10px 12px; display: flex; flex-direction: column; gap: 9px; transform: rotate(3deg); }
.lp-phone-notch { position: absolute; top: 6px; left: 50%; transform: translateX(-50%); width: 34%; height: 9px; border-radius: 999px; background: var(--ink); }
.lp-phone-bar { display: flex; align-items: center; gap: 8px; }
.lp-ring { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font: 700 .75rem Poppins, sans-serif; background: conic-gradient(var(--orange) 0 72%, var(--tint) 0); position: relative; }
.lp-ring::before { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--m-paper); }
.lp-ring { isolation: isolate; } .lp-ring::before { z-index: -1; }
.lp-phone-bar small { display: block; font-size: .58rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: #6f2590; }
.lp-phone-bar b { display: block; font: 600 .8rem Poppins, sans-serif; }
.lp-phone-prog { display: flex; gap: 3px; }
.lp-phone-prog i { flex: 1; height: 4px; border-radius: 9px; background: var(--line-2); }
.lp-phone-prog .o { background: var(--orange); } .lp-phone-prog .b { background: var(--m-blue); }
.lp-phone-prog .half { background: linear-gradient(90deg, var(--m-purple) 50%, var(--line-2) 50%); }
.lp-phone-card { background: #fff; border-radius: 14px; padding: 10px; box-shadow: var(--shadow-sm); border: 1px solid var(--line); display: grid; gap: 2px; }
.lp-phone-card b { font-size: .74rem; line-height: 1.25; margin-top: 4px; }
.lp-phone-card small { font-size: .62rem; color: var(--grey); }
.lp-tile { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: var(--tc, var(--orange)); }
.lp-tile svg { width: 17px; height: 17px; fill: var(--tf, #fff); }
.lp-tile.p { background: var(--m-purple); }
.lp-tag { display: inline-flex; align-items: center; gap: 4px; width: fit-content; margin-top: 5px; font-size: .6rem; font-weight: 700; color: #1f7a4d; background: #e4f6ec; padding: 2px 7px; border-radius: 999px; }
.lp-tag svg { width: 10px; height: 10px; fill: currentColor; }
.lp-phone-btn { margin-top: auto; display: flex; align-items: center; justify-content: center; gap: 4px; height: 34px; border-radius: 11px; color: #fff; font-size: .74rem; font-weight: 600; background: linear-gradient(135deg, var(--orange), var(--orange-btn)); }
.lp-phone-btn svg { width: 13px; height: 13px; fill: #fff; }
.lp-float { position: absolute; display: flex; align-items: center; gap: 9px; background: #fff; border-radius: 16px; padding: 9px 13px 9px 9px; box-shadow: 0 18px 40px -16px rgba(30,30,30,.35); border: 1px solid var(--line); animation: floaty 5s ease-in-out infinite; }
.lp-float b { display: block; font-size: .84rem; line-height: 1.2; }
.lp-float small { display: block; font-size: .75rem; color: var(--grey); }
.lp-float .fi { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; font: 700 .78rem Poppins, sans-serif; color: #fff; flex: none; }
.lp-float .fi svg { width: 19px; height: 19px; fill: #fff; }
.fi.g { background: #1f7a4d; } .fi.o { background: linear-gradient(135deg, var(--orange), var(--orange-btn)); }
.f1 { right: 0; top: 8%; } .f2 { left: 0; bottom: 12%; animation-delay: -2.5s; }
@media (max-width: 420px) { .lp-visual { height: 380px; } .lp-float { transform: scale(.9); } .f1 { top: 4%; } }

/* sections */
.lp-sec { padding: 48px 0; }
@media (min-width: 940px) { .lp-sec { padding: 72px 0; } }
.lp-eyebrow { text-align: center; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--orange-text); margin-bottom: 10px; }
.lp-lede { text-align: center; color: var(--grey); margin: 10px auto 0; max-width: 560px; }
.lp-ba { display: grid; gap: 14px; margin: 30px auto 0; max-width: 920px; align-items: center; }
@media (min-width: 800px) { .lp-ba { grid-template-columns: 1fr auto 1.25fr; gap: 20px; } }
.lp-before, .lp-after { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 20px; box-shadow: var(--shadow); }
.lp-before p { font-size: 1.02rem; color: var(--grey); font-style: italic; margin-top: 8px; }
.lp-after { border-color: #bfe2cf; background: linear-gradient(180deg, #f1faf5, #fff 70%); }
.lp-after ul { margin: 8px 0 0; padding-left: 18px; display: grid; gap: 6px; }
.lp-label { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--grey); background: var(--cream); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; }
.lp-label.g { color: #1f7a4d; background: #e4f6ec; border-color: #cfe9db; }
.lp-arrow { justify-self: center; width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; background: var(--m-purple); box-shadow: 0 12px 24px -12px var(--m-purple); }
.lp-arrow svg { width: 24px; height: 24px; fill: #fff; }
@media (max-width: 799px) { .lp-arrow { transform: rotate(90deg); } }
.lp-note { display: flex; align-items: center; justify-content: center; gap: 8px; text-align: center; color: var(--grey); font-size: .9rem; margin-top: 18px; }
.lp-note svg { width: 18px; height: 18px; fill: #1f7a4d; flex: none; }
.lp-steps { list-style: none; padding: 0; margin: 30px auto 0; display: grid; gap: 14px; max-width: 1000px; }
@media (min-width: 800px) { .lp-steps { grid-template-columns: repeat(3, 1fr); gap: 18px; } }
.lp-steps li { display: flex; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 20px; box-shadow: var(--shadow); border-top: 4px solid var(--tc); }
.lp-num { flex: none; width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; background: var(--tc); color: var(--tf); font: 700 1.1rem Poppins, sans-serif; }
.lp-steps b { display: block; font: 600 1.05rem Poppins, sans-serif; margin-bottom: 4px; }
.lp-steps p, .lp-feat p { color: var(--grey); font-size: .93rem; }
.lp-tpls { display: block; }
.lp-tpls::-webkit-scrollbar { display: none; }

.lp-tpl { flex: 0 0 min(58vw, 200px); scroll-snap-align: center; text-decoration: none; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); transition: transform .25s var(--ease), box-shadow .25s; }
.lp-tpl:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.lp-tpl .thumb { border-bottom: 1px solid var(--line); }
.lp-tpl-meta { display: block; padding: 11px 14px 13px; }
.lp-tpl-meta b { display: block; font: 600 1rem Poppins, sans-serif; }
.lp-tpl-meta small { color: var(--grey); font-size: .8rem; }
.lp-feats { display: grid; gap: 14px; margin: 30px auto 0; max-width: 1000px; }
@media (min-width: 700px) { .lp-feats { grid-template-columns: 1fr 1fr; gap: 18px; } }
.lp-feat { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 22px; box-shadow: var(--shadow); }
.lp-feat .lp-tile { width: 46px; height: 46px; border-radius: 14px; margin-bottom: 14px; box-shadow: 0 10px 20px -12px var(--tc); }
.lp-feat .lp-tile svg { width: 24px; height: 24px; }
.lp-feat b { display: block; font: 600 1.08rem Poppins, sans-serif; margin-bottom: 4px; }
.lp-faq { max-width: 760px; margin: 26px auto 0; display: grid; gap: 10px; }
.lp-faq details { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 0 18px; box-shadow: var(--shadow-sm); }
.lp-faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 60px; font-weight: 600; }
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary svg { width: 24px; height: 24px; fill: var(--grey); transition: transform .25s var(--ease); flex: none; }
.lp-faq details[open] summary svg { transform: rotate(180deg); }
.lp-faq details p { color: var(--grey); padding-bottom: 18px; }
.lp-final { text-align: center; margin: 24px 0 8px; padding: 48px 24px; border-radius: 30px; color: #fff; background: radial-gradient(400px 220px at 0% 0%, rgba(231,112,76,.45), transparent 70%), radial-gradient(420px 240px at 100% 100%, rgba(131,45,164,.45), transparent 70%), var(--ink); }
.lp-final h2 { color: #fff; }
.lp-final p { color: #d6d7dc; margin: 10px 0 24px; }
.lp-foot { text-align: center; color: var(--faint); font-size: .84rem; padding: 26px 0 40px; }
.lp-sticky { position: fixed; z-index: 25; left: 0; right: 0; bottom: 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: rgba(250,247,239,.88); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-top: 1px solid var(--line); animation: sheet .3s var(--ease); }
@media (min-width: 940px) { .lp-sticky { display: none !important; } }
@media (max-width: 939px) { .on-landing .lp-foot { padding-bottom: 110px; } }
@keyframes floaty { 50% { translate: 0 -8px; } }
.lp-phone-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.lp-phone-chips i { font-style: normal; font-size: .58rem; font-weight: 600; padding: 3px 7px; border-radius: 999px; background: #fff; border: 1px solid var(--line-2); }
.lp-phone-chips i.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.lp-phone-chips i.soft { background: var(--m-purple); color: #fff; border-color: var(--m-purple); }
.lp-phone-polish { height: 30px; border-radius: 10px; display: grid; place-items: center; font-size: .62rem; font-weight: 600; color: #fff; background: var(--ink); }
@media (max-width: 420px) { .lp-phone-chips i:nth-child(n+3) { display: none; } }

/* hero with a real photo: photo at the back, the sample resume in front */
.lp-photo { position: absolute; right: 0; top: 0; width: 74%; height: 90%; object-fit: cover; object-position: 50% 30%; border-radius: 30px; box-shadow: var(--shadow-lg); }
.lp-visual::before { inset: 10% 10% 0 0; transform: rotate(-3deg); }
.lp-paper { left: 0; top: auto; bottom: 0; width: 46%; transform: rotate(-4deg); box-shadow: 0 30px 60px -24px rgba(30,30,30,.45); }
.f1 { left: 2%; right: auto; top: 12%; }
.f2 { right: 2%; left: auto; bottom: 6%; }
@media (max-width: 420px) { .f1 { top: 6%; left: 0; } }

/* people */
.lp-people { display: grid; gap: 16px; margin: 30px auto 0; max-width: 1000px; }
@media (min-width: 760px) { .lp-people { grid-template-columns: 1fr 1fr; gap: 20px; } }
.lp-person { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); }
.lp-person img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.lp-person figcaption { padding: 18px 20px 22px; }
.lp-person b { display: block; font: 600 1.12rem Poppins, sans-serif; margin: 8px 0 4px; }
.lp-person p { color: var(--grey); font-size: .94rem; }
.lp-chip { display: inline-block; font-size: .74rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--tb); color: var(--ti); }

/* template strip arrows */
.lp-tpl-foot { display: flex; justify-content: center; gap: 8px; margin-top: 4px; }
.lp-tpl-foot .icon-btn { border: 1.5px solid var(--line-2); background: #fff; }
.ribbon { top: auto; bottom: 8px; z-index: 2; } /* at the bottom of the card, so it never hides the name or a coloured header */

/* eye button: see a design big */
.eye { position: absolute; z-index: 3; top: 8px; right: 8px; width: 44px; height: 44px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer; background: rgba(255,255,255,.94); color: var(--ink); box-shadow: 0 6px 16px -6px rgba(30,30,30,.45); transition: transform .15s var(--ease), background .2s; }
.eye svg { width: 21px; height: 21px; fill: currentColor; }
.eye:hover { background: var(--ink); color: #fff; transform: scale(1.06); }
.eye:active { transform: scale(.94); }
.lp-tpl { position: relative; }
.lp-tpl > a { display: block; text-decoration: none; color: var(--ink); }
.modal-actions { display: flex; gap: 8px; }
.modal-head b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.modal-head { gap: 10px; }
@media (max-width: 600px) { .lp-paper { width: 40%; } .lp-photo { width: 80%; } } /* phones: keep her face clear of the sample resume */

/* ===== animated hero: cut-out photo on a colour circle, cards pop in then float ===== */
.hero-anim { height: 470px; max-width: 480px; }
@media (min-width: 940px) { .hero-anim { height: 560px; } }
.hero-anim::before { display: none; }
.lp-blob { position: absolute; left: 50%; bottom: 0; width: 86%; aspect-ratio: 1; translate: -50% 0; border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, #fd755e, #e7704c 55%, #d35f3e); box-shadow: 0 40px 80px -30px rgba(211,95,62,.6);
  animation: blob-in .9s var(--spring) both, blob-breathe 7s ease-in-out 1s infinite; }
.lp-orbit { position: absolute; left: 50%; bottom: -4%; aspect-ratio: 1; translate: -50% 0; border-radius: 50%; border: 1.5px dashed rgba(231,112,76,.35); animation: spin 38s linear infinite; pointer-events: none; }
.lp-orbit.o1 { width: 104%; }
.lp-orbit.o2 { width: 122%; bottom: -13%; border-color: rgba(131,45,164,.2); animation-duration: 60s; animation-direction: reverse; }
.lp-orbit i { position: absolute; top: 8%; left: 14%; width: 12px; height: 12px; border-radius: 50%; background: var(--m-yellow); box-shadow: 0 0 0 4px rgba(255,193,7,.25); }
.lp-orbit.o2 i { top: auto; bottom: 22%; left: auto; right: 2%; background: var(--m-blue); box-shadow: 0 0 0 4px rgba(0,108,251,.18); width: 10px; height: 10px; }
.lp-cut { position: absolute; left: 50%; bottom: 0; height: 100%; width: auto; translate: -50% 0; object-fit: contain; filter: drop-shadow(0 24px 30px rgba(30,30,30,.18)); animation: rise-in .9s var(--ease) .15s both; }
.hero-anim .lp-float { animation: pop-in .6s var(--spring) both, floaty 5s ease-in-out infinite; }
.hero-anim .f1 { left: -2%; right: auto; top: 14%; bottom: auto; animation-delay: .7s, 1.3s; }
.hero-anim .f2 { right: -4%; left: auto; top: 40%; bottom: auto; animation-delay: .95s, 2.4s; }
.hero-anim .f3 { left: 0; right: auto; bottom: 10%; top: auto; animation-delay: 1.2s, .4s; }
.fi.p { background: var(--m-purple); } .fi.b { background: var(--m-blue); }
@media (max-width: 420px) { .hero-anim { height: 420px; } .hero-anim .f2 { right: -2%; } .lp-float b { font-size: .78rem; } .lp-float small { font-size: .66rem; } }
@keyframes blob-in { from { opacity: 0; scale: .55; } }
@keyframes blob-breathe { 50% { scale: 1.03; } }
@keyframes rise-in { from { opacity: 0; translate: -50% 40px; } }
@keyframes pop-in { from { opacity: 0; scale: .6; } }

/* hero title: two lines, orange gradient on "5 minutes" with a hand-drawn underline that draws in */
.lp-title { font-size: clamp(2.3rem, 1.6rem + 3.4vw, 4rem); line-height: 1.04; letter-spacing: -0.035em; }
.lp-title .t1, .lp-title .t2 { display: block; }
.lp-title .t1 { color: var(--ink); animation: rise .6s var(--ease) both; }
.lp-title .t2 { color: var(--ink); animation: rise .6s var(--ease) .12s both; }
.t-accent { position: relative; display: inline-block; white-space: nowrap; background: linear-gradient(100deg, #d35f3e 0%, #e7704c 45%, #fd755e 100%); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .08em; }
.swoosh { position: absolute; left: -2%; bottom: -.12em; width: 104%; height: .32em; overflow: visible; }
.swoosh path { fill: none; stroke: var(--m-yellow); stroke-width: 7; stroke-linecap: round; stroke-dasharray: 320; stroke-dashoffset: 320; animation: draw .8s var(--ease) .6s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .swoosh path { stroke-dashoffset: 0; } }

/* the photo ends along the circle's bottom curve (no straight cut): same width and bottom as the circle,
   and a huge bottom radius that the browser scales down to exactly a half circle */
.lp-cut-wrap { position: absolute; left: 50%; bottom: 0; width: 86%; height: 112%; translate: -50% 0; overflow: hidden; border-radius: 0 0 9999px 9999px; pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 88%, transparent 100%); mask-image: linear-gradient(to bottom, #000 88%, transparent 100%); }
.lp-cut-wrap .lp-cut { height: 92%; bottom: -2%; filter: none; }

/* consent not ticked: the box itself turns red and shakes */
.consent.bad { border: 1.5px solid #f04438; background: var(--danger-bg); color: var(--danger); box-shadow: 0 0 0 4px rgba(240,68,56,.12); animation: shake .4s; }
.consent.bad input { outline: 2.5px solid #f04438; outline-offset: 2px; }

/* "Make it even stronger" sits right under the result header, questions side by side on wide screens */
.improve-card { margin-bottom: 22px; animation: rise .5s var(--spring) .1s backwards; }
.improve-card .card-head { margin-bottom: 4px; }
.improve-card > .muted { margin-bottom: 14px; }
@media (min-width: 900px) {
  #questions { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 16px; }
  .improve-card #improve { width: auto; min-width: 260px; }
}
@media (max-width: 560px) { .picker .slider-dots { display: none; } .picker .slider-foot { justify-content: space-between; } } /* phones: the eye button and arrows need the room */

/* ---------- site navbar: same look as the rest of mopid.me (components/site/Header.tsx) ---------- */
.appbar { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.9); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid #ececf1; }
.appbar-in { max-width: 1152px; height: 64px; margin: 0 auto; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
@media (min-width: 640px) { .appbar-in { padding: 0 24px; } }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 8px; top: 8px; z-index: 50; background: #fff; padding: 8px 12px; border-radius: 6px; }
.nav-logo { display: inline-flex; align-items: center; min-height: 44px; flex: none; }
.nav-logo img { height: 28px; width: auto; display: block; }
.nav-main { display: none; align-items: center; gap: 4px; }
.nav-link { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 0 12px; border: 0; background: none; border-radius: 6px; font: 500 15px/1 Inter, system-ui, sans-serif; color: #1e1e1e; text-decoration: none; cursor: pointer; }
.nav-link { position: relative; transition: color .3s cubic-bezier(.22,1,.36,1); }
.nav-link::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 8px; height: 2px; border-radius: 2px; background: #e7704c; transform: scaleX(0); transform-origin: left; transition: transform .45s cubic-bezier(.22,1,.36,1); }
.nav-link:hover, .nav-link[aria-expanded="true"] { color: #b5472a; }
.nav-link:hover::after, .nav-link[aria-expanded="true"]::after { transform: scaleX(1); }
.nav-link svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.nav-dd { position: relative; }
.nav-dd-menu { position: absolute; left: 0; top: 100%; margin: 4px 0 0; padding: 8px; width: 288px; list-style: none; display: grid; gap: 2px; background: #fff; border: 1px solid #ececf1; border-radius: 12px; box-shadow: 0 1px 2px rgba(30,30,30,.05); }
.nav-dd-menu[hidden], .nav-mobile[hidden] { display: none; }
.nav-dd-menu a { display: flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 6px; font-size: 15px; color: #1e1e1e; text-decoration: none; }
.nav-dd-menu a:hover { background: #fbeae4; }
.nav-dd-all { margin-top: 4px; padding-top: 4px; border-top: 1px solid #ececf1; }
.nav-dd-all a { font-weight: 500; }
.nav-right { display: flex; align-items: center; gap: 8px; }
.nav-cta { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 18.4px; border-radius: 12px; white-space: nowrap; font: 700 18.67px/1.2 Inter, system-ui, sans-serif; letter-spacing: -0.005em; color: #fff; text-decoration: none; background-image: linear-gradient(135deg, #e7704c, #d35f3e); box-shadow: 0 6px 14px -6px rgba(231,112,76,.55); transition: transform .2s ease-out, box-shadow .2s ease-out, filter .2s ease-out; }
.nav-cta:hover { transform: translateY(-2px); filter: brightness(.96); box-shadow: 0 12px 26px -6px rgba(211,95,62,.6); }
.nav-burger { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; background: none; border-radius: 6px; color: #1e1e1e; cursor: pointer; }
.nav-burger svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; }
.nav-burger .ic-close, .nav-burger[aria-expanded="true"] .ic-open { display: none; }
.nav-burger[aria-expanded="true"] .ic-close { display: block; }
.nav-mobile { border-top: 1px solid #ececf1; background: #fafafa; padding: 0 16px 16px; }
.nav-mobile p { margin: 0; padding-top: 12px; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #5f6572; }
.nav-mobile ul { list-style: none; margin: 0; padding: 0; }
.nav-mobile-grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 8px; }
.nav-mobile-list { margin-top: 8px !important; padding-top: 8px !important; border-top: 1px solid #ececf1; }
.nav-mobile a { display: flex; align-items: center; min-height: 44px; font-size: 15px; color: #1e1e1e; text-decoration: none; }
.appbar .saved { display: none; margin-left: auto; }
.nav-companies { display: none; font-size: 14px; font-weight: 500; color: #5f6572; text-decoration: none; text-underline-offset: 4px; }
.nav-companies:hover { color: #1e1e1e; text-decoration: underline; }
.nav-mobile-first { margin-top: 0 !important; border-top: 0 !important; }
.nav-mobile .nav-mobile-co { margin-top: 8px; padding-top: 12px; border-top: 1px solid #ececf1; font-size: 14px; letter-spacing: 0; text-transform: none; font-weight: 400; color: #5f6572; }
.nav-mobile .nav-mobile-co a { display: inline; min-height: 0; font-size: 14px; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
@media (min-width: 1024px) { .nav-companies { display: inline; } .nav-main { display: flex; } .nav-burger { display: none; } .nav-mobile { display: none !important; } }
@media (min-width: 1240px) { .appbar .saved:not(:empty) { display: inline-flex; } .nav-main { margin-right: auto; } }
@media (max-width: 360px) { .nav-cta { font-size: 16px; padding: 8px 14px; } }

/* no-server mode (html[data-api="off"], the copy on mopid.me): hide parts that need the AI server */
html[data-api="off"] .api-only { display: none !important; }

/* a box that needs attention: red outline, message under it */
.step-body [aria-invalid="true"] { border-color: #f04438 !important; box-shadow: 0 0 0 4px rgba(240,68,56,.14) !important; }
.bad { animation: shake .4s; }
.choices.bad, .chips.bad, .add.bad, .consent.bad, .btn.bad { outline: 2px solid #f04438; outline-offset: 4px; border-radius: 16px; }
.consent.bad { border-color: #f04438; background: var(--danger-bg); }
.field-err { display: block; color: var(--danger); font-size: .86rem; font-weight: 600; margin-top: 6px; }
.field-err::before { content: "! "; }
@media (prefers-reduced-motion: reduce) { .bad { animation: none; } }

/* ---- design picker: a deck of resumes (the one on top is the one you get) ---- */
.deck-stage { position: relative; overflow: hidden; padding: 52px 16px 26px; margin: 0 -14px; outline: none; border-radius: 18px; }
.deck-stage:focus-visible { box-shadow: inset 0 0 0 2.5px var(--orange); }
.deck { position: relative; width: min(74%, 300px); aspect-ratio: 210 / 297; margin: 0 auto; touch-action: pan-y; }
.compact .deck { width: min(70%, 230px); }
.deck-card { position: absolute; inset: 0; border-radius: 16px; overflow: hidden; background: #fff; border: 2px solid var(--line); box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 30px 60px -30px rgba(30,30,30,.45);
  transition: transform .6s cubic-bezier(.2,.8,.2,1), opacity .4s ease, filter .4s ease; will-change: transform; user-select: none; -webkit-user-select: none; }
.deck-card[data-top="1"] { cursor: grab; }
.deck-card[data-mode="drag"] { cursor: grabbing; transition: none; }
.deck-card[data-mode="fly"] { transition: transform .45s cubic-bezier(.3,.5,.3,1), opacity .45s ease; }
.deck-card[data-mode="snap"] { transition: none; }
.deck-card .thumb { display: block; position: absolute; inset: 0; overflow: hidden; background: #fff; }
.deck-card .thumb iframe { position: absolute; top: 0; left: 0; width: 794px; height: 1123px; border: 0; transform-origin: 0 0; pointer-events: none; }
.deck-card .thumb::after { content: ""; position: absolute; inset: auto 0 0; height: 22%; background: linear-gradient(180deg, rgba(255,255,255,0), rgba(255,255,255,.92)); }
.deck-eye { top: 10px; right: 10px; z-index: 20; }
.deck-meta { display: flex; align-items: center; gap: 14px; max-width: 460px; margin: 0 auto; }
.deck-btn { flex: none; border: 1.5px solid var(--line-2); background: var(--white); transition: background .2s, color .2s, border-color .2s; }
.deck-btn:hover { background: var(--orange); border-color: var(--orange); color: #fff; }
.deck-btn:hover svg { fill: #fff; }
.deck-cap { flex: 1; min-width: 0; }
.deck-cap b { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font: 600 1.1rem/1.2 Poppins, sans-serif; }
.deck-cap small { display: block; color: var(--grey); font-size: .85rem; line-height: 1.4; margin-top: 2px; }
.deck-rec { font: 700 .68rem Inter, sans-serif; padding: 3px 8px; border-radius: 999px; background: var(--m-yellow); color: var(--ink); }
.deck-count { font: 500 .8rem ui-monospace, Menlo, monospace; letter-spacing: .12em; color: var(--grey); white-space: nowrap; }
.deck-count b { color: var(--ink); font-weight: 600; }
.deck-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.deck-hint { display: inline-flex; align-items: center; gap: 6px; font-size: .84rem; color: var(--grey); }
.deck-hint svg { width: 15px; height: 15px; fill: var(--green); }
.compact .deck-cap small { display: none; }
@media (prefers-reduced-motion: reduce) { .deck-card, .deck-card[data-mode="fly"] { transition: opacity .3s ease; } }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.nav-link[aria-current="page"], .nav-mobile-list a[aria-current="page"] { color: var(--orange-text); font-weight: 600; }

.lp-deck-cta { display: flex; justify-content: center; margin-top: 18px; }

/* text size picker (under the colours) */
.size-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 12px; }
.size-row .aa { font: 700 .95rem Poppins, sans-serif; margin-right: 2px; }
.seg { display: inline-flex; padding: 3px; border-radius: 999px; background: #f1f1f4; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px; font-size: .88rem; font-weight: 500; color: var(--grey); cursor: pointer; transition: background .2s, color .2s, box-shadow .2s; }
.seg input:checked + span { background: #fff; color: var(--ink); font-weight: 600; box-shadow: 0 2px 8px -3px rgba(30,30,30,.3); }
.seg input:focus-visible + span { outline: 2.5px solid var(--orange); outline-offset: 2px; }
.change-card { margin: 0 0 22px; }
.change-card .chips { margin-top: 12px; }
#change-text[aria-invalid="true"] { border-color: #f04438; box-shadow: 0 0 0 4px rgba(240,68,56,.14); }
