/* NextRole app. Contrast measured against --bg #f5f5f2 and --surface #ffffff. */
:root {
  --bg: #f5f5f2;
  --surface: #ffffff;
  --well: #ebebe6;
  --ink: #1d1d1f;        /* 16.1:1 on surface */
  --ink-2: #5c5c62;      /* 6.4:1 on surface, 5.9:1 on bg */
  --line: #e2e2dc;       /* decorative */
  --field: #8b8b90;      /* 3.4:1, control borders */
  --accent: #1f5c47;     /* 7.8:1 on surface */
  --accent-press: #174a39;
  --accent-wash: #e6efe9;
  --warn: #8a3b12;       /* 7.4:1 */
  --warn-wash: #f7ece4;
  --r-s: 8px; --r-m: 12px; --r-l: 18px;
  --display: "Familjen Grotesk", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --ui: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --shadow-page: 0 1px 1px rgba(29,29,31,.04), 0 12px 32px -10px rgba(29,29,31,.22);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 15px/1.47 var(--ui); letter-spacing: -0.006em; -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
[tabindex="-1"]:focus { outline: none; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 70%, white); outline-offset: 2px; border-radius: 8px; }
a { color: var(--accent); text-underline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Buttons: one primary per view, press feedback on pointer-down ---------- */
.btn { -webkit-appearance: none; appearance: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 10px; border: 1px solid transparent; background: var(--well); color: var(--ink); font: 590 15px/1 var(--ui); letter-spacing: -0.01em; white-space: nowrap; text-decoration: none; cursor: pointer; transition: transform .12s ease-out, background-color .15s, box-shadow .15s; -webkit-tap-highlight-color: transparent; user-select: none; }
.btn:hover { background: #e2e2dc; }
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--accent); color: #fff; }
.btn.primary:hover { background: #22684f; }
.btn.primary:active { background: var(--accent-press); }
.btn.outline { background: var(--surface); border-color: var(--field); }
.btn.outline:hover { background: #fafaf8; }
.btn.ghost { background: transparent; color: var(--accent); padding: 0 12px; }
.btn.ghost:hover { background: var(--accent-wash); }
.btn.sm { min-height: 36px; padding: 0 14px; font-size: 14px; }
.btn.icon { width: 44px; padding: 0; }
.btn[disabled] { opacity: 1; background: var(--well); color: #8b8b90; cursor: not-allowed; transform: none; }
.btn svg { width: 18px; height: 18px; flex: none; }
@media (pointer: coarse) { .btn.sm { min-height: 44px; } }

/* ---------- App chrome ---------- */
.top { position: sticky; top: 0; z-index: 20; height: 60px; display: flex; align-items: center; gap: 12px; padding: 0 20px; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
@media (prefers-reduced-transparency: reduce) { .top { background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; } }
.brand { font: 700 19px/1 var(--display); letter-spacing: -0.03em; color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
.brand i { width: 22px; height: 22px; border-radius: 7px; background: var(--accent); position: relative; display: inline-block; }
.brand i::after { content: ""; position: absolute; left: 6px; top: 5px; width: 9px; height: 12px; border: 2.2px solid #fff; border-left: 0; border-bottom: 0; transform: skewX(-12deg); border-radius: 0 3px 0 0; }
.nav { display: flex; gap: 2px; margin-left: 12px; }
.nav a { white-space: nowrap; min-height: 44px; display: inline-flex; align-items: center; padding: 0 12px; border-radius: 8px; color: var(--ink-2); text-decoration: none; font-weight: 510; font-size: 14px; }
.nav a:hover { color: var(--ink); background: var(--well); }
.nav a[aria-current="page"] { color: var(--ink); background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.top .spacer { flex: 1; }
.trial { font-size: 13px; color: var(--ink-2); white-space: nowrap; }
.trial b { color: var(--ink); font-weight: 600; }

main { min-height: calc(100vh - 60px); }
.view { display: none; }
.view.on { display: block; animation: in .28s cubic-bezier(.22,1,.36,1); }
@keyframes in { from { opacity: 0; transform: translateY(4px); } }
.wrap { max-width: 1180px; margin: 0 auto; padding: 40px 24px 96px; }
.eyebrow { font: 600 13px/1.2 var(--ui); color: var(--accent); margin-bottom: 10px; }
.title { font: 700 clamp(34px, 2.4vw + 18px, 56px)/1.04 var(--display); letter-spacing: -0.035em; text-wrap: balance; }
.title-2 { font: 700 clamp(26px, 1.2vw + 18px, 34px)/1.1 var(--display); letter-spacing: -0.028em; text-wrap: balance; }
.lede { font-size: 19px; line-height: 1.45; color: var(--ink-2); max-width: 36em; margin-top: 14px; letter-spacing: -0.012em; }
.h3 { font: 650 17px/1.3 var(--ui); letter-spacing: -0.015em; }
.muted { color: var(--ink-2); }
.small { font-size: 13px; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.stack > * + * { margin-top: 14px; }

/* ---------- Form controls ---------- */
.field label, .label { display: block; font: 600 13px/1.3 var(--ui); color: var(--ink); margin-bottom: 6px; }
.field .hint { font-size: 13px; color: var(--ink-2); margin-top: 5px; }
.input, textarea.input, select.input { width: 100%; font: 400 15px/1.4 var(--ui); color: var(--ink); background: var(--surface); border: 1px solid var(--field); border-radius: var(--r-s); padding: 11px 12px; min-height: 44px; transition: border-color .15s, box-shadow .15s; }
textarea.input { resize: vertical; min-height: 96px; line-height: 1.5; }
.input:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.grid2 { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
@media (max-width: 560px) { .grid2 { grid-template-columns: 1fr; } }

/* Segmented control */
.seg { display: inline-flex; padding: 3px; background: var(--well); border-radius: 10px; gap: 2px; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.seg button { min-height: 38px; padding: 0 14px; border: 0; border-radius: 8px; background: transparent; font: 560 14px/1 var(--ui); color: var(--ink-2); cursor: pointer; white-space: nowrap; }
.seg button[aria-pressed="true"], .seg button[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 0 0 .5px rgba(0,0,0,.04); }
@media (pointer: coarse) { .seg button { min-height: 44px; } }

/* Choice tiles */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 40px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); font: 520 14px/1 var(--ui); color: var(--ink); cursor: pointer; white-space: nowrap; transition: transform .1s; }
.chip:active { transform: scale(.97); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
@media (pointer: coarse) { .chip { min-height: 44px; } }

/* Status (never a bare spinner) */
.status { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: var(--r-m); background: var(--accent-wash); font-weight: 520; }
.status i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: breathe 1.2s ease-in-out infinite; flex: none; }
@keyframes breathe { 50% { opacity: .25; } }
.note { padding: 12px 14px; border-radius: var(--r-m); background: var(--warn-wash); }
.note b { color: var(--warn); }

/* Paper preview */
.paper { position: relative; background: #fff; box-shadow: var(--shadow-page); overflow: hidden; }
.paper > .cv { position: absolute; top: 0; left: 0; transform-origin: 0 0; }
.paper.thumb { aspect-ratio: 794/1123; }

/* ---------- Home ---------- */
.hero { display: grid; gap: 48px; align-items: center; }
.hero-cta { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero-cta .btn { min-height: 52px; padding: 0 24px; font-size: 16px; }
.trialline { margin-top: 36px; display: grid; gap: 16px; grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 640px; }
.trialline div { border-top: 2px solid var(--line); padding-top: 10px; }
.trialline div:first-child { border-color: var(--accent); }
.trialline b { display: block; font-weight: 650; font-size: 14px; }
.trialline span { font-size: 14px; color: var(--ink-2); }
.fan { position: relative; height: 560px; }
.fan .paper { position: absolute; width: 330px; transition: transform .5s cubic-bezier(.22,1,.36,1); }
.fan .paper:nth-child(1) { left: 0; top: 60px; transform: rotate(-5deg); }
.fan .paper:nth-child(2) { left: 120px; top: 20px; z-index: 2; }
.fan .paper:nth-child(3) { left: 240px; top: 70px; transform: rotate(5deg); }
.strip-row { display: grid; grid-auto-flow: column; grid-auto-columns: 180px; gap: 20px; overflow-x: auto; padding: 8px 4px 20px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.strip-row a { scroll-snap-align: start; text-decoration: none; color: var(--ink); font-size: 14px; font-weight: 560; }
.strip-row a .paper { margin-bottom: 10px; transition: transform .2s ease-out; }
.strip-row a:hover .paper { transform: translateY(-3px); }
@media (min-width: 980px) { .hero { grid-template-columns: minmax(0, 1fr) 560px; } }
@media (max-width: 979px) { .fan { height: 420px; max-width: 480px; } .fan .paper { width: 240px; } .fan .paper:nth-child(2) { left: 90px; } .fan .paper:nth-child(3) { left: 180px; } }
@media (max-width: 560px) { .fan { height: 340px; } .fan .paper { width: 190px; } .fan .paper:nth-child(2) { left: 60px; } .fan .paper:nth-child(3) { left: 120px; } .trialline { grid-template-columns: 1fr; } }

/* ---------- Import ---------- */
.drop { display: grid; place-items: center; text-align: center; gap: 10px; padding: 48px 24px; border: 1.5px dashed var(--field); border-radius: var(--r-l); background: var(--surface); transition: border-color .15s, background-color .15s; }
.drop.over { border-color: var(--accent); background: var(--accent-wash); }
.drop .big { font: 650 20px/1.2 var(--display); letter-spacing: -0.02em; }
.review { display: grid; gap: 24px; margin-top: 28px; }
@media (min-width: 1000px) { .review { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: start; } .review .src { position: sticky; top: 84px; } }
.src { background: var(--surface); border-radius: var(--r-m); box-shadow: 0 0 0 1px var(--line); max-height: 72vh; overflow: auto; }
.src-head { position: sticky; top: 0; background: var(--surface); padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--ink-2); display: flex; justify-content: space-between; gap: 8px; }
.src ol { list-style: none; margin: 0; padding: 8px 0; font: 13px/1.6 ui-monospace, "SF Mono", Menlo, monospace; }
.src li { padding: 0 16px; border-left: 3px solid transparent; }
.src li.m { border-left-color: color-mix(in srgb, var(--accent) 35%, transparent); }
.src li.lit { background: var(--accent-wash); border-left-color: var(--accent); }
.found { background: var(--surface); border-radius: var(--r-m); box-shadow: 0 0 0 1px var(--line); }
.found-sec { padding: 18px 20px; border-bottom: 1px solid var(--line); }
.found-sec:last-child { border-bottom: 0; }
.found-sec h3 { font: 650 15px/1.3 var(--ui); display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 10px; }
.tag { display: inline-flex; align-items: center; gap: 6px; font: 600 12px/1 var(--ui); padding: 5px 8px; border-radius: 999px; background: var(--accent-wash); color: var(--accent); white-space: nowrap; }
.tag.check { background: var(--warn-wash); color: var(--warn); }
.frow { display: grid; grid-template-columns: 110px 1fr; gap: 4px 12px; padding: 6px 0; font-size: 14px; }
.frow dt { color: var(--ink-2); }
.frow dd { margin: 0; }
.job { padding: 10px 0; border-top: 1px solid var(--line); cursor: default; }
.job:first-of-type { border-top: 0; }
.job b { font-weight: 620; }
.job ul { margin: 6px 0 0; padding-left: 18px; color: var(--ink-2); font-size: 14px; }

/* ---------- Recommend ---------- */
.q { display: grid; gap: 22px; }
.q fieldset { border: 0; padding: 0; margin: 0; }
.q legend { font: 620 15px/1.3 var(--ui); margin-bottom: 10px; }
.recs { display: grid; gap: 24px; margin-top: 8px; }
@media (min-width: 900px) { .recs { grid-template-columns: repeat(3, minmax(0, 1fr)); } .recform { display: grid; grid-template-columns: 420px 1fr; gap: 48px; align-items: start; } .recform .q { position: sticky; top: 84px; } }
.rec .paper { margin-bottom: 14px; }
.rec h3 { font: 680 19px/1.2 var(--display); letter-spacing: -0.02em; display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.rec ul { margin: 8px 0 14px; padding-left: 18px; color: var(--ink-2); font-size: 14px; }
.country { margin-top: 18px; padding: 14px 16px; border-radius: var(--r-m); background: var(--surface); box-shadow: 0 0 0 1px var(--line); font-size: 14px; }

/* ---------- Gallery ---------- */
.gal-bar { position: sticky; top: 60px; z-index: 5; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); padding: 14px 0; margin-top: 18px; }
.gal-bar .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.gal { display: grid; gap: 36px 28px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); margin-top: 18px; }
.card .paper { margin-bottom: 12px; transition: transform .25s cubic-bezier(.22,1,.36,1), box-shadow .25s; }
.card:hover .paper { transform: translateY(-4px); box-shadow: 0 1px 1px rgba(29,29,31,.04), 0 20px 40px -12px rgba(29,29,31,.28); }
.card-h { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.card-h b { font: 680 17px/1.2 var(--display); letter-spacing: -0.02em; }
.card .meta { font-size: 13px; color: var(--ink-2); margin-top: 2px; }
.swatches { display: flex; gap: 6px; margin-top: 10px; align-items: center; }
.sw { width: 26px; height: 26px; border-radius: 50%; border: 0; padding: 0; cursor: pointer; position: relative; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }
.sw::before { content: ""; position: absolute; inset: -9px; }
.sw[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--ink); }
.card .use { margin-top: 12px; }

/* ---------- Editor (laptop first) ---------- */
.ed { display: grid; grid-template-columns: 232px minmax(360px, 440px) minmax(0, 1fr); height: calc(100vh - 60px); }
.ed-outline { border-right: 1px solid var(--line); padding: 18px 12px; overflow: auto; background: var(--bg); }
.ed-outline h2 { font: 600 12px/1 var(--ui); color: var(--ink-2); padding: 0 10px; margin: 6px 0 10px; letter-spacing: .01em; }
.olist { list-style: none; margin: 0; padding: 0; }
.olist li { display: flex; align-items: center; gap: 2px; border-radius: 10px; }
.olist li:hover { background: var(--well); }
.olist button.go { flex: 1; text-align: left; min-height: 40px; padding: 0 10px; border: 0; background: none; font: 520 14px/1.2 var(--ui); color: var(--ink); cursor: pointer; border-radius: 10px; }
.olist li[aria-current="true"] { background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.olist li[aria-current="true"] button.go { font-weight: 640; }
.olist .mv { width: 32px; height: 32px; border: 0; background: none; border-radius: 8px; color: var(--ink-2); cursor: pointer; opacity: .0; display: grid; place-items: center; }
.olist li:hover .mv, .olist li:focus-within .mv { opacity: 1; }
.olist .mv:hover { background: #dcdcd5; color: var(--ink); }
.olist .mv svg { width: 14px; height: 14px; }
@media (pointer: coarse) { .olist .mv { opacity: 1; width: 44px; height: 44px; } .olist button.go { min-height: 44px; } }
.ed-form { overflow: auto; padding: 22px 26px 120px; background: var(--surface); border-right: 1px solid var(--line); }
.ed-form .sec-title { font: 700 22px/1.15 var(--display); letter-spacing: -0.025em; margin-bottom: 4px; }
.ed-form .sec-sub { font-size: 14px; color: var(--ink-2); margin-bottom: 18px; }
.entry { border: 1px solid var(--line); border-radius: var(--r-m); padding: 14px; margin-bottom: 14px; background: var(--surface); }
.entry-h { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 10px; font: 620 14px/1.3 var(--ui); }
.bul { display: grid; grid-template-columns: 1fr auto; gap: 6px; align-items: start; margin-top: 8px; }
.bul textarea { min-height: 64px; }
.sugg { grid-column: 1 / -1; padding: 12px 14px; border-radius: var(--r-s); background: var(--accent-wash); }
.sugg p.t { font-family: "Source Serif 4", Georgia, serif; font-size: 16px; line-height: 1.45; }
.sugg p.w { font-size: 13px; color: var(--ink-2); margin: 4px 0 10px; }
.ed-page { position: relative; overflow: auto; background: #e8e8e3; }
.ed-page-bar { position: sticky; top: 0; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 16px; background: color-mix(in srgb, #e8e8e3 86%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.pages { display: grid; justify-items: center; gap: 22px; padding: 10px 28px 60px; }
.pg { position: relative; background: #fff; box-shadow: var(--shadow-page); overflow: hidden; }
.pg > .cv { position: absolute; left: 0; transform-origin: 0 0; }
.pg-no { position: absolute; bottom: 8px; right: 12px; font: 600 11px var(--ui); color: #8b8b90; }
.fitline { font-size: 13px; color: var(--ink-2); }
.fitline b { color: var(--ink); font-weight: 620; }
.design-panel { position: absolute; top: 58px; right: 14px; width: 320px; max-height: calc(100% - 72px); overflow: auto; background: var(--surface); border-radius: var(--r-l); box-shadow: 0 0 0 1px var(--line), 0 18px 40px -12px rgba(0,0,0,.25); padding: 16px; z-index: 4; transform-origin: top right; animation: pop .22s cubic-bezier(.22,1,.36,1); }
@keyframes pop { from { opacity: 0; transform: scale(.97); } }
.design-panel h3 { font: 620 13px/1 var(--ui); color: var(--ink-2); margin: 16px 0 8px; }
.design-panel h3:first-child { margin-top: 0; }
.mini-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mini-grid button { border: 0; background: none; padding: 0; cursor: pointer; text-align: left; font: 560 12px/1.2 var(--ui); color: var(--ink); }
.mini-grid button .paper { margin-bottom: 5px; box-shadow: 0 0 0 1px var(--line); }
.mini-grid button[aria-pressed="true"] .paper { box-shadow: 0 0 0 2px var(--accent); }
.ed-tabs { display: none; }
.cv [data-sec] { cursor: pointer; }
.cv .sel { outline: 1.5px solid color-mix(in srgb, var(--accent) 60%, transparent); outline-offset: 6px; border-radius: 2px; }
@media (max-width: 1180px) { .ed { grid-template-columns: 200px minmax(320px, 400px) minmax(0, 1fr); } }
@media (max-width: 900px) {
  .ed { display: block; height: auto; }
  .ed-tabs { display: flex; position: sticky; top: 60px; z-index: 6; padding: 10px 16px; background: var(--bg); }
  .ed-tabs .seg { width: 100%; } .ed-tabs .seg button { flex: 1; }
  .ed-outline { border: 0; padding: 4px 12px 0; }
  .olist { display: flex; overflow-x: auto; gap: 6px; scrollbar-width: none; padding-bottom: 8px; }
  .olist li { flex: none; background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
  .olist .mv { display: none; }
  .ed-outline h2 { display: none; }
  .ed-form { border: 0; padding: 16px 16px 120px; }
  .ed-page { min-height: calc(100vh - 120px); }
  .ed[data-tab="edit"] .ed-page, .ed[data-tab="page"] .ed-form, .ed[data-tab="page"] .ed-outline { display: none; }
  .design-panel { position: fixed; top: auto; bottom: 0; left: 0; right: 0; width: auto; max-height: 70vh; border-radius: var(--r-l) var(--r-l) 0 0; padding-bottom: calc(16px + env(safe-area-inset-bottom)); }
}

/* ---------- ATS check (left column) ---------- */
.ed-mode { width: 100%; margin-bottom: 14px; } .ed-mode button { flex: 1; }
.ed.checking { grid-template-columns: 384px minmax(0, 1fr); }
.ed.checking .ed-form { display: none; }
.chk { padding: 0 6px 40px; }
.chk-score { margin: 18px 0 6px; }
.chk-score b { font: 700 30px/1 var(--display); letter-spacing: -0.03em; }
.chk-score span { color: var(--ink-2); font-size: 14px; margin-left: 6px; }
.ticks { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 3px; margin: 10px 0 4px; }
.ticks i { height: 6px; border-radius: 2px; background: var(--line); }
.ticks i.ok { background: var(--accent); }
.kw { margin: 14px 0 4px; }
.kw .chips { gap: 6px; margin-top: 8px; }
.kw .t { display: inline-flex; align-items: center; gap: 5px; font: 520 13px/1 var(--ui); padding: 7px 10px; border-radius: 999px; }
.kw .t.ok { background: var(--accent-wash); color: var(--accent); }
.kw .t.no { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--field); }
.chk h3 { font: 620 12px/1 var(--ui); color: var(--ink-2); margin: 22px 0 8px; }
.ck { display: grid; grid-template-columns: 20px 1fr; gap: 2px 10px; padding: 11px 0; border-top: 1px solid var(--line); }
.ck .ic { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; margin-top: 1px; }
.ck.ok .ic { background: var(--accent); }
.ck.ok .ic::after { content: ""; width: 8px; height: 4px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.ck.fix .ic { box-shadow: inset 0 0 0 2px var(--warn); }
.ck.fix .ic::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--warn); }
.ck b { font-weight: 620; font-size: 14px; }
.ck p { grid-column: 2; font-size: 13px; color: var(--ink-2); line-height: 1.45; }
.ck .row { grid-column: 2; margin-top: 6px; gap: 4px; }
.ck .btn.sm { min-height: 32px; padding: 0 10px; font-size: 13px; }
@media (pointer: coarse) { .ck .btn.sm { min-height: 44px; } }
.cv .hit { background: color-mix(in srgb, #f2b33d 30%, transparent); box-shadow: 0 0 0 3px color-mix(in srgb, #f2b33d 30%, transparent); border-radius: 2px; }
@media (max-width: 900px) {
  .ed-mode { display: none; }
  .ed[data-tab="check"] .ed-form, .ed[data-tab="check"] .ed-page { display: none; }
  .ed[data-tab="check"] .chk { display: block !important; }
  .ed[data-tab="check"] #olistNav { display: none; }
  .ed[data-tab="edit"] .chk { display: none !important; }
}

/* ---------- Evidence ---------- */
.ev-layout { display: grid; gap: 28px; margin-top: 28px; }
@media (min-width: 1000px) { .ev-layout { grid-template-columns: 260px minmax(0, 1fr); } .ev-side { position: sticky; top: 84px; align-self: start; } }
.ev-list { display: grid; gap: 12px; }
.ev { background: var(--surface); border-radius: var(--r-m); box-shadow: 0 0 0 1px var(--line); padding: 16px 18px; display: grid; gap: 8px; }
.ev-top { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; font-size: 13px; color: var(--ink-2); }
.ev p.claim { font: 400 17px/1.45 "Source Serif 4", Georgia, serif; color: var(--ink); }
.ev .tags { display: flex; flex-wrap: wrap; gap: 6px; }
.ev .tags span { font-size: 12px; padding: 4px 8px; border-radius: 6px; background: var(--well); color: var(--ink); }
.ev .src-line { font-size: 13px; color: var(--ink-2); display: flex; gap: 14px; flex-wrap: wrap; }
.metric { font-weight: 650; color: var(--accent); }
.model { margin-top: 48px; }
.model pre { background: #1d1d1f; color: #f0f0ea; border-radius: var(--r-m); padding: 18px 20px; overflow: auto; font: 13px/1.55 ui-monospace, "SF Mono", Menlo, monospace; }

/* ---------- Tailor ---------- */
.tl { display: grid; gap: 28px; margin-top: 24px; }
@media (min-width: 1000px) { .tl { grid-template-columns: minmax(0, 1fr) 460px; } .tl .tl-page { position: sticky; top: 84px; align-self: start; } }
.match { list-style: none; padding: 0; margin: 0; background: var(--surface); border-radius: var(--r-m); box-shadow: 0 0 0 1px var(--line); }
.match li { display: grid; grid-template-columns: 84px 1fr; gap: 4px 14px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.match li:last-child { border-bottom: 0; }
.match .st { font-weight: 650; font-size: 13px; }
.match .met { color: var(--accent); } .match .gap { color: var(--warn); }
.match .cite { grid-column: 2; font-size: 13px; color: var(--ink-2); }

/* ---------- Plan / day 8 ---------- */
.plan { max-width: 560px; }
.keeps { list-style: none; padding: 0; margin: 22px 0; background: var(--surface); border-radius: var(--r-m); box-shadow: 0 0 0 1px var(--line); }
.keeps li { display: flex; justify-content: space-between; gap: 12px; padding: 13px 16px; border-bottom: 1px solid var(--line); }
.keeps li:last-child { border-bottom: 0; }
.keeps li span:last-child { color: var(--ink-2); }
.price { font: 700 44px/1 var(--display); letter-spacing: -0.04em; }
.price small { font: 500 16px var(--ui); color: var(--ink-2); letter-spacing: 0; }

/* Proto controls */
.proto { max-width: 1180px; margin: 0 auto; padding: 0 24px 48px; font-size: 13px; color: var(--ink-2); }
.proto a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; }
.proto summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; font-weight: 600; }

@media (max-width: 760px) {
  .top { padding: 0 12px; gap: 4px; }
  .nav { margin-left: 2px; } .nav a { padding: 0 8px; font-size: 13px; }
  .brand { font-size: 0; gap: 0; } .brand .logo-word { display: none; }
  .wrap { padding: 28px 16px 96px; }
  .lede { font-size: 17px; }
  .trial .long { display: none; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
@media print {
  body { background: #fff; }
  body > *:not(#print) { display: none !important; }
  #print { display: block !important; }
  #print .cv { width: 210mm; min-height: 297mm; }
  @page { size: A4; margin: 0; }
  #print .it, #print .sh { break-inside: avoid; }
  #print .sh { break-after: avoid; }
}

/* ---------- Round 3 fixes ---------- */
.ed-page-bar { flex-wrap: nowrap; }
.fitline { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pbar-btns { display: flex; gap: 6px; flex: none; }
.ed.checking { grid-template-columns: 340px minmax(320px, 400px) minmax(0, 1fr); }
.ed.checking .ed-form { display: block; }
@media (max-width: 1279px) { .ed.checking { grid-template-columns: 340px minmax(0, 1fr); } .ed.checking .ed-form { display: none; } }
.chk-title { font: 700 20px/1.2 var(--display); letter-spacing: -0.02em; margin: 2px 0 12px; }
.fixes { list-style: none; counter-reset: fx; margin: 10px 0 0; padding: 0; }
.fixes > li { display: grid; gap: 4px; padding: 14px 0; border-top: 1px solid var(--line); }
.fixes b { font-weight: 640; font-size: 14px; }
.fixes p { font-size: 13px; color: var(--ink-2); line-height: 1.45; }
.passed { margin-top: 16px; border-top: 1px solid var(--line); }
.passed summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; font-weight: 600; font-size: 14px; color: var(--accent); }
.passed ul { list-style: none; margin: 0; padding: 0 0 8px; }
.passed li { font-size: 13px; color: var(--ink-2); padding: 4px 0 4px 22px; position: relative; }
.passed li::before { content: ""; position: absolute; left: 4px; top: 9px; width: 8px; height: 4px; border: 2px solid var(--accent); border-top: 0; border-right: 0; transform: rotate(-45deg); }
.mini-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.design-panel .seg { width: 100%; } .design-panel .seg button { flex: 1; }
.fan { overflow: hidden; }
.review > * { min-width: 0; }
.rec { display: flex; flex-direction: column; } .rec > .btn { margin-top: auto; align-self: flex-start; }
.olist .mv { width: 36px; height: 36px; opacity: .5; } .olist .mv:disabled { opacity: .2; cursor: default; }
.btn.ghost[disabled], .btn.ghost[disabled]:hover { background: transparent; color: var(--ink-2); opacity: .4; }
.gal-bar .chips { -webkit-mask-image: linear-gradient(90deg, #000 92%, transparent); mask-image: linear-gradient(90deg, #000 92%, transparent); padding-right: 40px; }
select.input { -webkit-appearance: none; appearance: none; padding-right: 40px; background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%235c5c62' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 14px center; }
.swatches { gap: 12px; } .sw { width: 28px; height: 28px; } .sw::before { inset: -8px; }
.input[aria-invalid="true"] { border-color: var(--warn); box-shadow: 0 0 0 3px color-mix(in srgb, var(--warn) 18%, transparent); }
@media (max-width: 900px) {
  .ed-page-bar { flex-wrap: wrap; } .fitline { flex-basis: 100%; }
  #dlBtn { display: none; }
}
@media (max-width: 360px) { .trial { display: none; } }

/* Logo: geometric mark (an N whose right stem steps up) + editorial wordmark */
.brand { gap: 10px; }
/* Monogram A with the Balanced wordmark: Next at 600, Role 12% larger so x-heights match, a small gap, Role in green */
.brand .logo-mark { width: 30px; height: 30px; flex: none; color: var(--accent); transition: transform .25s cubic-bezier(.22,1,.36,1); }
.brand:hover .logo-mark { transform: translateY(-1px); }
.brand .logo-word { font: 600 20px/1 var(--display); letter-spacing: -0.025em; color: var(--ink); }
.brand .logo-word em { font: italic 400 22.5px/1 "Source Serif 4", Georgia, serif; letter-spacing: -0.01em; margin-left: .07em; color: var(--accent); }
.ed-outline .chk-title { font: 700 20px/1.2 var(--display); color: var(--ink); letter-spacing: -0.02em; margin: 2px 0 12px; padding: 0; }

/* ---------- Landing (round 3): product as the hero, motion with meaning ---------- */
.hero2 { display: grid; gap: 40px; align-items: center; padding-top: 56px; }
@media (min-width: 1040px) { .hero2 { grid-template-columns: minmax(0, 1fr) 600px; gap: 24px; } }
.hero2 .title { font-size: clamp(36px, 2.6vw + 20px, 60px); line-height: 1.02; letter-spacing: -0.04em; max-width: 12.5em; }
.proofs { list-style: none; padding: 0; margin: 34px 0 0; display: grid; gap: 14px; max-width: 560px; }
.proofs li { display: grid; grid-template-columns: 112px 1fr; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 15px; color: var(--ink-2); }
.proofs b { color: var(--ink); font-weight: 650; }
@media (max-width: 560px) { .proofs li { grid-template-columns: 1fr; gap: 2px; } }
.stage { position: relative; height: 640px; perspective: 1600px; }
.stage-dots { position: absolute; inset: 20px 0 0 20px; border-radius: 28px; background-image: radial-gradient(#d8d8d1 1px, transparent 1.2px); background-size: 18px 18px; -webkit-mask-image: radial-gradient(70% 60% at 55% 45%, #000 40%, transparent 75%); mask-image: radial-gradient(70% 60% at 55% 45%, #000 40%, transparent 75%); }
.card3d { position: absolute; left: 90px; top: 30px; width: 420px; transform-style: preserve-3d; transform: rotateY(-12deg) rotateX(5deg) rotateZ(-1deg); transition: transform .9s cubic-bezier(.22,1,.36,1); will-change: transform; }
.card3d .paper.big { aspect-ratio: 794/1123; border-radius: 10px; box-shadow: 0 2px 2px rgba(29,29,31,.04), 0 40px 80px -28px rgba(29,29,31,.38); }
.card3d .paper.big > .cv { transition: opacity .45s ease; }
.float { position: absolute; background: rgba(255,255,255,.94); border-radius: 16px; box-shadow: 0 0 0 1px rgba(29,29,31,.06), 0 24px 48px -20px rgba(29,29,31,.32); padding: 14px 16px; font-size: 13px; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); will-change: transform; transition: transform .9s cubic-bezier(.22,1,.36,1); }
.f-title { font: 650 11px/1 var(--ui); letter-spacing: .02em; color: var(--ink-2); margin-bottom: 8px; display: flex; justify-content: space-between; gap: 8px; }
.f-title span { color: var(--accent); }
.f-ats { left: 0; top: 230px; width: 210px; }
.f-score { font-size: 13px; color: var(--ink-2); } .f-score b { font: 700 22px/1 var(--display); color: var(--ink); letter-spacing: -0.02em; margin-right: 4px; }
.f-ats .ticks i { transition: background-color .3s; }
.f-terms { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 10px; }
.f-terms span { font-size: 11px; font-weight: 600; padding: 4px 7px; border-radius: 6px; background: var(--accent-wash); color: var(--accent); opacity: 0; transform: translateY(4px); transition: opacity .35s, transform .35s cubic-bezier(.22,1,.36,1); }
.f-terms span.no { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px var(--field); }
.f-terms span.in { opacity: 1; transform: none; }
.f-type { right: 6px; top: 150px; width: 170px; }
.f-type ul { list-style: none; margin: 0; padding: 0; }
.f-type li { padding: 5px 8px; border-radius: 8px; font-size: 16px; color: var(--ink-2); transition: background-color .3s, color .3s; }
.f-type li.on { background: var(--accent-wash); color: var(--accent); }
.f-space { right: 30px; top: 470px; width: 230px; }
.slider { position: relative; height: 6px; border-radius: 3px; background: var(--well); margin: 12px 4px 8px; }
.slider i { position: absolute; top: 50%; left: 50%; width: 20px; height: 20px; margin: -10px 0 0 -10px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.08), 0 2px 6px rgba(0,0,0,.18); transition: left .7s cubic-bezier(.22,1,.36,1); }
.f-ends { display: flex; justify-content: space-between; font-size: 11px; color: var(--ink-2); }
.f-tag { left: 40px; top: 560px; border-radius: 999px; padding: 10px 14px; font-size: 13px; color: var(--ink-2); }
.f-tag b { color: var(--ink); font-weight: 620; }
@media (max-width: 1039px) { .stage { height: 600px; max-width: 600px; margin: 0 auto; width: 100%; overflow: clip; } }
@media (max-width: 640px) {
  .stage { height: 470px; } .card3d { left: 50%; width: 300px; margin-left: -150px; top: 10px; }
  .f-ats { top: 150px; }
  .f-ats { top: 40px; width: 176px; transform: scale(.9); transform-origin: left top; } .f-type { display: none; } .f-space { right: 0; top: 330px; width: 190px; } .f-tag { top: 410px; left: 0; }
}
@media (max-width: 380px) { .f-space { display: none; } .card3d { width: 260px; margin-left: -110px; } }
.band2 { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: 64px; }
.band2 + .band2 { margin-top: 0; border-top: 0; }
.two { display: grid; gap: 40px; align-items: center; padding-top: 72px; padding-bottom: 72px; }
@media (min-width: 960px) { .two { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; } .two.flip > :first-child { order: 2; } }
.imp-demo, .ats-demo { background: var(--bg); border-radius: 20px; padding: 22px; box-shadow: inset 0 0 0 1px var(--line); min-height: 320px; }
.imp-demo { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.imp-out .fld { padding: 7px 0; border-bottom: 1px solid var(--line); opacity: .25; transition: opacity .35s; }
.imp-out .fld.in { opacity: 1; }
.imp-out .fld small { display: block; color: var(--ink-2); font-size: 11px; }
.ats-demo .ck b { font-size: 13px; }
.pricing { padding-top: 80px; padding-bottom: 40px; }
.plans { display: grid; gap: 16px; margin-top: 26px; max-width: 760px; }
@media (min-width: 640px) { .plans { grid-template-columns: 1fr 1fr; } }
.plan { position: relative; display: block; background: var(--surface); border-radius: 16px; padding: 22px; box-shadow: 0 0 0 1px var(--line); cursor: pointer; transition: box-shadow .2s, transform .12s ease-out; }
.plan:active { transform: scale(.99); }
.plan input { position: absolute; opacity: 0; }
.plan:has(input:checked) { box-shadow: 0 0 0 2px var(--accent); }
.plan:has(input:focus-visible) { outline: 3px solid color-mix(in srgb, var(--accent) 60%, white); outline-offset: 3px; }
.plan .pname { font-weight: 650; font-size: 15px; display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.plan .pprice { font: 700 40px/1 var(--display); letter-spacing: -0.04em; margin: 12px 0 4px; }
.plan .pprice small { font: 500 15px var(--ui); letter-spacing: 0; color: var(--ink-2); }
.plan .pnote { font-size: 14px; color: var(--ink-2); }
.plan .save { font-size: 12px; font-weight: 650; color: var(--accent); background: var(--accent-wash); padding: 5px 8px; border-radius: 6px; }
.plans-incl { grid-column: 1 / -1; font-size: 14px; color: var(--ink-2); padding: 4px 2px; }
.gate { max-width: 800px; }
.gate .plans { max-width: none; }
.big-cta { min-height: 52px; padding: 0 26px; font-size: 16px; margin-top: 18px; }
@media (prefers-reduced-motion: reduce) { .card3d, .float { transition: none; } }
.plan .pname { min-height: 28px; }
.two > * { min-width: 0; }
.imp-demo { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
@media (max-width: 520px) { .imp-demo { grid-template-columns: 1fr; } }

.chk-score b { display: block; }
.chk-score .sub { display: block; margin: 6px 0 0; font-size: 13px; color: var(--ink-2); }
.hero2 .title .title-2nd { display: block; font-family: "Source Serif 4", Georgia, serif; font-style: italic; font-weight: 400; letter-spacing: -0.025em; color: var(--accent); margin-top: .08em; }
.lede-2 { margin-top: 10px; font-size: 17px; }
.hero-note { margin-top: 14px; }

/* Template showcase, directly under the hero */
.showcase { margin-top: 24px; scroll-margin-top: 72px; }
.show-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding-bottom: 20px; }
.show-head .lede { max-width: 560px; margin-top: 10px; }
.show-nav { display: flex; gap: 10px; flex: none; }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); display: grid; place-items: center; cursor: pointer; color: var(--ink); }
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn:hover { border-color: var(--ink-2); }
.icon-btn:active { transform: scale(.96); }
.show-cats { padding-top: 0; padding-bottom: 8px; }
.show-cats .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-mask: linear-gradient(90deg, #000 92%, transparent); mask: linear-gradient(90deg, #000 92%, transparent); }
.show-row { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(220px, 24vw, 300px); gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 16px max(24px, calc((100vw - 1180px) / 2 + 24px)) 12px; scroll-padding-inline: max(24px, calc((100vw - 1180px) / 2 + 24px)); }
.show-row::-webkit-scrollbar { display: none; }
.show-row:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
.show-card { margin: 0; scroll-snap-align: start; }
.show-card .paper { border-radius: 4px; transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s; }
.show-card:hover .paper { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(0,0,0,.06), 0 18px 40px -12px rgba(0,0,0,.28); }
.show-card figcaption { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; }
.show-card figcaption b { display: block; font: 650 15px/1.2 var(--ui); }
.show-card figcaption small { display: block; color: var(--ink-2); font: 450 13px/1.3 var(--ui); margin-top: 3px; }
.show-foot { padding-top: 16px; padding-bottom: 56px; }
@media (max-width: 640px) {
  .show-head { padding: 28px 16px 16px; }
  .show-nav { display: none; }
  .show-cats { padding: 0 16px 8px; }
  .show-row { grid-auto-columns: 72vw; gap: 16px; padding: 12px 16px; scroll-padding-inline: 16px; }
  .show-foot { padding: 12px 16px 40px; }
}

@media (max-width: 430px) { body.in-editor #trial { display: none; } }
.show-card figcaption .btn { position: relative; flex: none; }

/* ATS score rows (docs/05-ats-copy-rules.md) */
.chk-score b { font: 700 26px/1.1 var(--display); letter-spacing: -0.025em; text-wrap: balance; }
.score-rows { margin: 14px 0 0; display: grid; gap: 12px; }
.score-rows > div { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 6px 12px; }
.score-rows dt { font: 520 14px/1.3 var(--ui); color: var(--ink); }
.score-rows dd { margin: 0; font: 650 14px/1.3 var(--ui); font-variant-numeric: tabular-nums; }
.bar { grid-column: 1 / -1; display: block; height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 3px; transition: width .6s cubic-bezier(.2,.8,.2,1); }
.f-ats .bar { margin: 8px 0 10px; }
.f-ats .bar i { transition: none; }
.chk-score .sub { margin-top: 10px; }
.kw .t { padding: 0; border-radius: 0; background: none !important; box-shadow: none !important; font: 520 13px/1.6 var(--ui); }
.kw .t.ok { color: var(--accent); }
.kw .t.no { color: var(--ink-2); text-decoration: underline dotted; text-underline-offset: 3px; }
.kw .chips { gap: 4px 14px; }

/* Editor: CV in the middle, side panel on demand (desktop) */
.ol-title { font: 650 13px/1 var(--ui); color: var(--ink); padding: 0 10px; margin: 4px 0 6px; }
.ol-hint { font-size: 13px; line-height: 1.4; color: var(--ink-2); padding: 0 10px; margin: 0 0 14px; }
.side-head { display: none; }
@media (min-width: 901px) {
  .ed, .ed.checking { grid-template-columns: 220px minmax(0, 1fr); grid-template-areas: "out page"; }
  .ed.panel { grid-template-columns: 220px minmax(0, 1fr) minmax(360px, 420px); grid-template-areas: "out page side"; }
  .ed-outline { grid-area: out; }
  .ed-page { grid-area: page; }
  .ed-side { grid-area: side; display: none; overflow: auto; background: var(--surface); border-left: 1px solid var(--line); }
  .ed.panel .ed-side { display: block; animation: sideIn .32s cubic-bezier(.22,1,.36,1); }
  .ed.checking .ed-form, .ed.panel .ed-form { display: block; border: 0; overflow: visible; }
  .ed.mode-check .ed-form { display: none; }
  .ed-side .chk { padding: 4px 24px 60px; }
  .side-head { display: flex; justify-content: flex-end; position: sticky; top: 0; z-index: 2; padding: 10px 14px 0; background: var(--surface); }
  .ed-page-bar { justify-content: center; gap: 18px; }
  .ed-page-bar .fitline { flex: 0 1 auto; }
}
@keyframes sideIn { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }
@media (max-width: 900px) {
  .ed-side { display: block; }
  .ol-hint { display: none; }
  .ed[data-tab="edit"] #chk { display: none; }
  .ed[data-tab="check"] .ed-outline, .ed[data-tab="check"] #edForm { display: none; }
  .ed[data-tab="check"] #chk { display: block; padding: 8px 16px 80px; }
  .ed[data-tab="page"] .ed-side { display: none; }
}
.entry-h > span:first-child { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.entry-h > .row { flex: none; flex-wrap: nowrap; }
.score-rows .bar { margin: 0; }

/* Import demo: the old CV as paper, a highlighter as the one human mark, NextRole's reading on the right */
.imp-demo { align-items: center; }
.imp-paper { background: #fffdf8; border-radius: 3px; padding: 22px 18px 24px; transform: rotate(-1.4deg); box-shadow: 0 1px 2px rgba(29,29,31,.06), 0 18px 34px -16px rgba(29,29,31,.32); font-family: "Source Serif 4", Georgia, serif; color: #2b2a27; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.imp-paper .ln { position: relative; margin: 0; font-size: 12.5px; line-height: 1.55; max-width: 100%; align-self: flex-start; overflow-wrap: anywhere; }
.imp-paper .ln > span { position: relative; z-index: 1; }
.imp-paper .nm { align-self: center; font-size: 17px; font-weight: 600; letter-spacing: .04em; margin-bottom: 1px; }
.imp-paper .ctr { align-self: center; text-align: center; }
.imp-paper .sm { font-size: 11px; color: #55524b; }
.imp-paper .hd { align-self: stretch; margin-top: 10px; padding-bottom: 2px; border-bottom: 1px solid #d9d4c7; font-size: 10.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #55524b; }
.imp-paper .rw { align-self: stretch; font-weight: 600; margin-top: 4px; }
.imp-paper .rw .r { float: right; margin-left: 12px; font-weight: 400; font-size: 11px; line-height: 1.9; color: #55524b; white-space: nowrap; }
.imp-paper .it { font-style: italic; color: #55524b; }
.imp-paper .bl { padding-left: 12px; }
.imp-paper .bl::before { content: ""; position: absolute; left: 2px; top: .7em; width: 4px; height: 4px; border-radius: 50%; background: #2b2a27; }
.imp-paper .ln .t { -webkit-box-decoration-break: clone; box-decoration-break: clone; padding: 0 3px; margin: 0 -3px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 20' preserveAspectRatio='none'%3E%3Cpath fill='%23efc6cb' d='M1.5 5.2C22 3.1 47 4.4 70 3.6c9.6-.3 19.4.2 28.4 1.4L99 15.2c-17 1.6-35 .8-53 1.5-14.7.6-29.6.4-44.2-.5z'/%3E%3C/svg%3E") no-repeat left 55% / 0% 88%; transition: background-size .55s cubic-bezier(.3,.8,.25,1); }
.imp-paper .hd .t { background: none; }
.imp-paper .ln.lit .t { background-size: 100% 88%; }
.imp-out { background: #fff; border-radius: 12px; padding: 6px 16px; box-shadow: 0 0 0 1px var(--line); min-width: 0; }
.imp-out .fld { position: relative; padding: 9px 22px 9px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; line-height: 1.4; opacity: .22; transform: translateY(4px); transition: opacity .35s, transform .45s cubic-bezier(.2,.8,.2,1); overflow-wrap: anywhere; }
.imp-out .fld:last-child { border-bottom: 0; }
.imp-out .fld.in { opacity: 1; transform: none; }
.imp-out .fld small { display: block; color: var(--accent); font-size: 11px; font-weight: 600; letter-spacing: .02em; margin-bottom: 1px; }
.imp-out .fld::after { content: ""; position: absolute; right: 4px; top: 50%; width: 5px; height: 10px; border: solid var(--accent); border-width: 0 2px 2px 0; transform: translateY(-60%) rotate(45deg) scale(0); transition: transform .3s cubic-bezier(.2,.8,.2,1) .15s; }
.imp-out .fld.in::after { transform: translateY(-60%) rotate(45deg) scale(1); }
@media (max-width: 520px) { .imp-paper { transform: rotate(-.8deg); } }

/* Sign-in: email, then a 6-digit code */
.wrap.auth { max-width: 460px; }
.auth form { margin-top: 24px; }
.auth .btn.primary { width: 100%; justify-content: center; }
.auth-terms { list-style: none; padding: 0; margin: 24px 0 16px; display: grid; gap: 8px; }
.auth-terms li { position: relative; padding-left: 24px; font-size: 15px; line-height: 1.45; color: var(--ink); }
.auth-terms li::before { content: ""; position: absolute; left: 4px; top: .45em; width: 5px; height: 10px; border: solid var(--accent); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.code-input { font: 600 28px/1 var(--ui); letter-spacing: .4em; text-align: center; font-variant-numeric: tabular-nums; padding-left: .4em; }
.hint.err { color: var(--danger); font-weight: 520; }
.hint.ok { color: var(--accent); font-weight: 520; }
.input[aria-invalid="true"] { border-color: var(--danger); box-shadow: 0 0 0 1px var(--danger); }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; min-height: 44px; display: inline-flex; align-items: center; }
.link-btn:disabled { color: var(--ink-2); text-decoration: none; cursor: default; }
.save-state { font-size: 13px; color: var(--ink-2); white-space: nowrap; }
.save-state[data-state="saved"]::before { content: ""; display: inline-block; width: 4px; height: 8px; margin-right: 7px; border: solid var(--accent); border-width: 0 2px 2px 0; transform: translateY(-1px) rotate(45deg); }
.save-state[data-state="failed"], .save-state[data-state="conflict"] { color: var(--danger); white-space: normal; }
.resend { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); display: grid; gap: 10px; justify-items: start; }
.resend .btn:disabled { opacity: .55; cursor: default; }

/* Your CV is ready: their own first page above the account form */
.ready-paper { width: 168px; margin: 0 0 22px; border-radius: 3px; transform: rotate(-1.5deg); box-shadow: 0 1px 2px rgba(29,29,31,.06), 0 16px 32px -14px rgba(29,29,31,.3); }
/* My CVs */
.cv-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 24px; margin-top: 24px; }
.cv-card { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 18px; align-items: start; padding: 16px; background: var(--surface); border-radius: 12px; box-shadow: 0 0 0 1px var(--line); }
.cv-card .paper { border-radius: 3px; }
.cv-title { font: 650 17px/1.25 var(--ui); margin: 2px 0 4px; overflow-wrap: anywhere; }
.cv-meta .row { margin-top: 12px; gap: 6px; }
.cv-rename { gap: 6px; margin-bottom: 6px; } .cv-rename .input { min-width: 0; flex: 1; }
#newCvGo:disabled { opacity: .5; cursor: default; }

/* =====================================================================
   Apple-style pass (2026-10-26). Flo: "I don't want any of the fonts or the layout to scream AI...
   texture and colour, we need to think Apple design."
   - Interface type is the device's own system font (SF Pro on Apple devices, Segoe on Windows), with
     tracking that tightens as size grows. Familjen stays only in the wordmark; CV templates keep their fonts.
   - Neutral greys from Apple's palette; green only for the one action that matters on a screen.
   - Depth from soft shadow and a translucent top bar, not outlines.
   Contrast (measured): --ink 15.5:1 on --bg #f5f5f7; --ink-2 #636366 6.0:1 on white, 5.5:1 on --bg, 5.1:1 on #ececf0;
   --field 3.6:1 (borders); green 7.8:1 on white. Disabled controls are exempt and sit at 2.3:1.
   ===================================================================== */
:root {
  --bg: #f7f2ee;
  --surface: #fffdfb;
  --well: #ede4df;
  --ink: #24171a;
  --ink-2: #6b5a5d;
  --line: rgba(74, 26, 34, .10);
  --field: #8c7b7e;
  --accent: #7a2433;
  --accent-press: #621c29;
  --accent-wash: #f4e6e5;
  --desk: #4a1a22;
  --on-desk: #fbf7f2;
  --on-desk-2: rgba(251, 247, 242, .8);
  --danger: #b3261e;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  --ui: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
  --lift: 0 1px 2px rgba(0, 0, 0, .04), 0 6px 20px rgba(0, 0, 0, .05);
  --lift-hover: 0 2px 4px rgba(0, 0, 0, .05), 0 14px 34px rgba(0, 0, 0, .09);
}
body { font: 400 17px/1.47 var(--ui); letter-spacing: -0.022em; }
.brand .logo-word { font-family: "Familjen Grotesk", var(--ui); }

/* Type: weight and size together, negative tracking as size grows */
.title { font: 600 clamp(36px, 2.6vw + 18px, 56px)/1.07 var(--display); letter-spacing: -0.028em; }
.title-2 { font: 600 clamp(28px, 1.2vw + 20px, 40px)/1.1 var(--display); letter-spacing: -0.026em; }
.lede { font-size: 19px; line-height: 1.42; letter-spacing: -0.016em; color: var(--ink-2); }
.eyebrow { font: 600 14px/1.3 var(--ui); letter-spacing: -0.01em; color: var(--ink-2); }
.field label, .label, legend { font: 600 15px/1.3 var(--ui); letter-spacing: -0.012em; color: var(--ink); }
.hint, .muted.small, .small { letter-spacing: -0.008em; }
.drop .big, .f-title, .chk-score b, .sec-title, .cv-title { font-family: var(--display); letter-spacing: -0.02em; }

/* Material: a translucent bar over the content, a hairline where they meet */
.top { background: rgba(247, 242, 238, .74); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid rgba(0, 0, 0, .08); box-shadow: none; }
@media (prefers-reduced-transparency: reduce) { .top { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; } }
.nav a { font-weight: 400; font-size: 15px; color: var(--ink-2); }
.nav a:hover { background: transparent; color: var(--ink); }
.nav a[aria-current="page"] { background: transparent; box-shadow: none; color: var(--ink); font-weight: 600; }

/* Buttons: one filled green action; everything else is quiet grey or a text button */
.btn { border-radius: 12px; font-weight: 500; letter-spacing: -0.016em; border: 0; }
.btn.primary { background: var(--accent); color: #fff; font-weight: 600; }
.btn.outline { background: rgba(0, 0, 0, .05); color: var(--ink); border: 0; }
.btn.outline:hover { background: rgba(0, 0, 0, .08); }
.btn.ghost { color: var(--accent); background: transparent; }
.btn.ghost:hover { background: var(--accent-wash); }
.btn:active { transform: scale(.98); }
.btn[disabled], .btn:disabled { background: rgba(0, 0, 0, .04); color: #a1a1a6; }
.icon-btn { border: 0; background: rgba(0, 0, 0, .05); }
.icon-btn:hover { background: rgba(0, 0, 0, .08); }

/* Fields: Apple's hairline field, a soft focus ring */
.input, textarea.input, select.input { border: 1px solid #d2d2d7; border-radius: 12px; font-size: 17px; letter-spacing: -0.016em; min-height: 48px; padding: 12px 14px; }
.input:hover { border-color: #b0b0b6; }
.input:focus-visible { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent); }
select.input { appearance: none; -webkit-appearance: none; padding-right: 40px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23636366' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 16px center; }
.code-input { font-size: 30px; }

/* Segmented control (few choices) and menus (long lists) instead of walls of chips */
.seg { background: rgba(118, 118, 128, .12); border-radius: 10px; padding: 2px; }
.seg button { font-weight: 500; font-size: 15px; letter-spacing: -0.012em; color: var(--ink); border-radius: 8px; min-height: 36px; }
.seg button[aria-pressed="true"], .seg button[aria-selected="true"] { background: #fff; font-weight: 600; box-shadow: 0 3px 8px rgba(0, 0, 0, .12), 0 3px 1px rgba(0, 0, 0, .04); }
.menu { max-width: 420px; }
.recform fieldset { border: 0; padding: 0; margin: 0; }
.recform legend { margin-bottom: 8px; }
.chip { border: 0; background: rgba(0, 0, 0, .05); font-weight: 500; letter-spacing: -0.012em; }
.chip:hover { background: rgba(0, 0, 0, .08); }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; }

/* Surfaces lift with shadow, not outlines */
.drop { border: 0; background: var(--surface); box-shadow: var(--lift); border-radius: 18px; padding: 52px 24px; }
.drop.over { background: var(--accent-wash); box-shadow: 0 0 0 2px var(--accent), var(--lift); }
.card, .cv-card, .imp-out, .ats-demo, .imp-demo, .plan, .float, .chk-out, .found-sec { box-shadow: var(--lift); border: 0; }
.cv-card:hover, .card:hover { box-shadow: var(--lift-hover); }
.imp-demo, .ats-demo { background: var(--surface); box-shadow: var(--lift); }
.imp-demo { background: var(--well); }
.note { border-radius: 12px; }
.auth-terms li { font-size: 16px; }
.ready-paper { box-shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 20px 40px -18px rgba(0, 0, 0, .35); }
.ed-outline, .ed-side { background: var(--surface); }
.ed-page { background: var(--desk); }
.olist li[aria-current="true"] { background: rgba(0, 0, 0, .05); box-shadow: none; border-radius: 10px; }
.scratch-row { margin-top: 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; padding: 18px 20px; background: var(--surface); border-radius: 18px; box-shadow: var(--lift); }
.scratch-row .muted { font-size: 16px; }
@media (max-width: 640px) { .ready-paper { width: 112px; margin-bottom: 18px; } }
.ed-page-bar { background: color-mix(in srgb, var(--desk) 84%, transparent); color: var(--on-desk); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid rgba(255, 255, 255, .08); }
@media (prefers-reduced-transparency: reduce) { .ed-page-bar { background: var(--desk); -webkit-backdrop-filter: none; backdrop-filter: none; } }
.custom-colour { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.custom-colour .btn { padding-left: 0; }
.sw-custom { width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }

/* Section list: names only. Rearrange lives in its own panel. */
.olist li { border-radius: 10px; }
.olist button.go { min-height: 44px; font: 500 15px/1.2 var(--ui); letter-spacing: -0.012em; }
.olist li.ol-more { margin-top: 10px; }
.olist li.ol-more:hover { background: transparent; }
.rearrange-panel .rp-title { font: 600 17px/1.2 var(--display); letter-spacing: -0.02em; }
.rp-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 6px; }
.rp-item { display: flex; align-items: center; gap: 8px; min-height: 52px; padding: 0 6px 0 12px; background: #fff; border-radius: 12px; box-shadow: 0 0 0 1px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04); cursor: grab; touch-action: none; user-select: none; transition: transform .2s cubic-bezier(.2,.8,.2,1), box-shadow .2s; }
.rp-item.dragging { cursor: grabbing; transition: none; z-index: 2; position: relative; box-shadow: 0 10px 30px rgba(0,0,0,.16), 0 0 0 1px rgba(0,0,0,.06); }
.rp-grip { width: 12px; height: 16px; flex: none; background: radial-gradient(circle, #a1a1a6 1.4px, transparent 1.6px) 0 0 / 6px 6px; }
.rp-name { flex: 1; font: 500 16px/1.2 var(--ui); letter-spacing: -0.014em; }
.rp-mv { width: 40px; height: 40px; border: 0; border-radius: 10px; background: transparent; color: var(--ink-2); display: grid; place-items: center; cursor: pointer; }
.rp-mv:hover { background: rgba(0,0,0,.05); color: var(--ink); }
.rp-mv:disabled { opacity: .25; cursor: default; }
.rp-mv svg { width: 14px; height: 14px; }
@media (prefers-reduced-motion: reduce) { .rp-item { transition: none; } }
.design-panel .swatches { display: grid; grid-template-columns: repeat(5, 32px); gap: 12px; justify-content: start; }
.design-panel .swatches .sw { width: 32px; height: 32px; aspect-ratio: 1; }
.design-panel .hint { font-size: 14px; line-height: 1.4; color: var(--ink-2); }
.design-panel .hint:empty { display: none; }

.check-why { color: var(--warn); margin: 4px 0 0; }

/* =====================================================================
   Colour: Oxblood desk (Flo chose direction A, 2026-10-26: "Build direction A, Oxblood desk, across the app.")
   One idea: a good CV on a good desk. Deep oxblood sits behind the work (the hero CV, the upload area,
   the editor canvas); a warm paper ground everywhere else; CV paper stays white so templates read true.
   Contrast (measured): --ink 15.6:1 on --bg; --ink-2 5.8:1 on --bg, 5.2:1 on --well; white on --accent 9.9:1;
   --on-desk 13.5:1 on --desk; --accent 8.9:1 on --bg. Errors use --danger (#b3261e, 5.8:1 on --bg), a brighter,
   warmer red than the brand colour, and always come with words, never colour alone.
   ===================================================================== */
.stage { background: var(--desk); border-radius: 28px; overflow: hidden; }
.stage-dots { background-image: radial-gradient(rgba(255, 255, 255, .14) 1px, transparent 1.2px); }
.showcase + .band2 { background: var(--desk); color: var(--on-desk); border: 0; }
.showcase + .band2 .two > div:first-child :is(p, .muted, .lede, .eyebrow) { color: var(--on-desk-2); }
.showcase + .band2 .two > div:first-child :is(h2, h3, .title-2, b) { color: var(--on-desk); }
.showcase + .band2 .imp-demo { color: var(--ink); }
#v-import .drop { background: var(--desk); color: var(--on-desk); box-shadow: none; }
#v-import .drop .muted { color: var(--on-desk-2); }
#v-import .drop .btn.primary { background: var(--on-desk); color: var(--desk); }
#v-import .drop .btn.ghost { color: var(--on-desk); }
#v-import .drop .btn.ghost:hover { background: rgba(255, 255, 255, .1); }
#v-import .drop.over { background: var(--accent); box-shadow: 0 0 0 3px var(--on-desk), 0 0 0 5px var(--desk); }
.ed-page-bar *:not(.btn):not(.btn *) { color: var(--on-desk); }
.ed-page-bar .btn:not(.primary) { background: rgba(255, 255, 255, .12); color: var(--on-desk); }
.ed-page-bar .btn:not(.primary):hover { background: rgba(255, 255, 255, .2); }
.ed-page-bar .btn.primary { background: var(--on-desk); color: var(--desk); }
.ed-page-bar .btn.primary:active { background: #efe6df; }
.ed-outline { background: var(--accent-wash); }
.olist li[aria-current="true"] { background: rgba(122, 36, 51, .1); }
:focus-visible { outline-color: color-mix(in srgb, var(--accent) 70%, white); }
.ed-page :focus-visible, #v-import .drop :focus-visible, .stage :focus-visible { outline-color: var(--on-desk); }
.showcase + .band2 .btn.outline { background: var(--on-desk); color: var(--desk); }
.showcase + .band2 .btn.outline:hover { background: #efe6df; }
.showcase + .band2 .imp-demo { background: rgba(255, 255, 255, .08); box-shadow: none; }
/* Found is quiet; Check this keeps the warm amber so the two never read as one colour */
.tag { background: var(--well); color: var(--ink-2); }
.tag.check { background: #fbead0; color: #7a4510; }

/* =====================================================================
   Type: Atelier geometric (Flo chose it, 2026-10-26: "Build the Atelier geometric type direction (Jost, tracked
   capitals in the navigation)."). Jost, a geometric sans in the Futura tradition, sets headings and the small
   tracked capitals; reading text, forms and buttons stay in the device's own system font. The approved
   wordmark keeps its own type. Jost is self-hosted as static weights (fonts.css), never variable.
   ===================================================================== */
:root { --display: "Jost", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif; }
.title, .title-2, .hero2 .title, .drop .big, .f-title, .chk-score b, .sec-title, .cv-title, .rearrange-panel .rp-title { font-family: var(--display); }
.hero2 .title { font-weight: 300; font-size: clamp(44px, 3.4vw + 20px, 76px); line-height: 1.04; letter-spacing: -0.012em; }
.hero2 .title .title-2nd { font-family: var(--display); font-style: normal; font-weight: 300; letter-spacing: -0.012em; }
.title { font-weight: 300; letter-spacing: -0.012em; }
.title-2 { font-weight: 400; letter-spacing: -0.01em; line-height: 1.12; }
.drop .big, .f-title, .sec-title, .cv-title, .rearrange-panel .rp-title { font-weight: 500; letter-spacing: 0; }
/* Small tracked capitals: navigation and step labels */
.nav a, .eyebrow { font-family: var(--display); font-weight: 500; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; }
.nav a[aria-current="page"] { font-weight: 600; }
/* The one italic voice (Flo, 2026-10-26: "an italicised font that doesn't scream AI... borrow any italicised font from Apple").
   ui-serif asks the device for its own serif: New York on Apple devices (Safari, iPhone, iPad). New York may not be
   hosted on the web, so other browsers fall back to Source Serif 4 italic, self-hosted. */
.hero2 .title .title-2nd { font-family: ui-serif, "Source Serif 4", Georgia, serif; font-style: italic; font-weight: 300; letter-spacing: -0.02em; }

/* Tell us about your work (exploration, docs/12) */
.talk { max-width: 680px; }
.talk-intro { margin-top: 20px; }
.talk-log { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 18px; }
.talk-log .tq { margin: 0; color: var(--ink-2); font-size: 15px; }
.talk-log .ta { margin: 4px 0 0; padding-left: 14px; border-left: 2px solid var(--accent-wash); white-space: pre-wrap; }
.talk-ask { margin-top: 28px; }
.talk-q { font: 400 clamp(22px, 1vw + 18px, 28px)/1.25 var(--display); letter-spacing: -0.01em; color: var(--ink); }
.talk .title-3 { font: 500 19px/1.3 var(--display); margin: 28px 0 10px; }
.tl { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.tl-card { background: var(--surface); border-radius: 16px; box-shadow: var(--lift); padding: 16px; display: grid; gap: 10px; }
.tl-card.ok { box-shadow: 0 0 0 1.5px var(--accent), var(--lift); }
.tl-head { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.tl-grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
.tl-grid label { display: grid; gap: 4px; font-size: 14px; color: var(--ink-2); }
@media (min-width: 560px) { .tl-grid { grid-template-columns: 1fr 1fr; } }
.ck-job { margin-top: 24px; }
.ck-job h3 { font: 500 18px/1.3 var(--display); margin: 0 0 8px; }
.ck-job ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ck-line { background: var(--surface); border-radius: 14px; padding: 12px 14px; box-shadow: var(--lift); }
.ck-line p { margin: 0; } .ck-line p + p { margin-top: 4px; }
.ck-line.held { box-shadow: 0 0 0 2px #9a6216, var(--lift); }
.talk-foot { margin-top: 28px; align-items: center; gap: 14px; }

.legal .title-3 { font: 500 19px/1.3 var(--display); margin: 28px 0 6px; }
.legal p { max-width: 62ch; }

/* The 10-second recruiter test */
.rec10 { max-width: 760px; }
#recBox { margin-top: 20px; }
.rec-look { margin: 0; display: grid; justify-items: center; gap: 12px; }
.rec-look img { width: min(100%, 560px); height: auto; max-height: 78vh; object-fit: contain; background: #fff; border-radius: 4px; box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 24px 48px -20px rgba(36,23,26,.45); }
.rec-time { width: min(100%, 560px); height: 3px; background: var(--well); border-radius: 3px; overflow: hidden; }
.rec-time i { display: block; height: 100%; background: var(--accent); transform-origin: left; animation: rec-time 10s linear forwards; }
@keyframes rec-time { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@media (prefers-reduced-motion: reduce) { .rec-time { display: none; } }
.rec-ask { max-width: 520px; }
.rec-pair { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.rec-pair h3 { font: 500 18px/1.3 var(--display); margin: 0 0 10px; }
.rec-pair dl { display: grid; grid-template-columns: 1fr; gap: 12px; margin: 0; }
.rec-pair dt { font-size: 13px; color: var(--ink-2); margin-bottom: 2px; }
.rec-pair dd { margin: 0; }
@media (min-width: 640px) { .rec-pair dl { grid-template-columns: 1fr 1fr; gap: 24px; } }
.rec-changes { margin: 0; padding-left: 20px; display: grid; gap: 12px; }
.rec-changes li span { display: block; margin-top: 2px; }

/* One small heading style for every flow screen */
.title-3 { font: 500 19px/1.3 var(--display); letter-spacing: 0; margin: 28px 0 10px; }

/* Editor desk, a little brighter than the hero desk (Flo, 2026-10-26: "can we brighten the oxblood background a bit").
   On-desk text 10.6:1; the length warning is light amber, 7.4:1. */
:root { --desk-editor: #622636; }
.ed-page { background: var(--desk-editor); }
.ed-page-bar { background: color-mix(in srgb, var(--desk-editor) 86%, transparent); }
@media (prefers-reduced-transparency: reduce) { .ed-page-bar { background: var(--desk-editor); } }
.ed-page-bar .fit-warn { color: #f5c993 !important; }

.rec-q { border: 0; margin: 0 0 18px; padding: 0; }
.rec-q legend { font: 600 16px/1.35 var(--ui); margin-bottom: 8px; }
.rec-q .seg { display: inline-flex; gap: 4px; padding: 3px; border-radius: 12px; background: var(--well); }
.seg-opt { position: relative; }
.seg-opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg-opt span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 10px; font-weight: 500; }
.seg-opt input:checked + span { background: var(--surface); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.seg-opt input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--accent) 70%, white); outline-offset: 1px; }

.ed-page-bar .fit-note { color: #f5c993; }
.ed-page-bar .fit-btn { background: rgba(255,255,255,.12); color: var(--on-desk); }

.example-note { display: flex; gap: 10px 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin: 0 0 14px; padding: 12px 14px; border-radius: 12px; background: var(--accent-wash); }
.example-note p { margin: 0; font-size: 14px; color: var(--ink); max-width: 46ch; }
#gal .card, #showRow .show-card, .rec { cursor: pointer; }
#v-editor .example-note { margin: 14px auto 0; max-width: 760px; width: calc(100% - 56px); background: rgba(255,255,255,.1); }
#v-editor .example-note p { color: var(--on-desk); }
#v-editor .example-note .btn.ghost { color: var(--on-desk); }
#v-editor .example-note .btn.ghost:hover { background: rgba(255,255,255,.14); }

/* Page margins and section spacing sliders */
.design-panel .slider-row h3 { margin: 18px 0 8px; }
.slider-row h3 .sl-val { font-weight: 600; color: var(--accent); }
.dp-slider { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; gap: 8px; }
.sl-step { width: 44px; height: 44px; border: 0; border-radius: 12px; background: var(--well); color: var(--ink); font: 500 20px/1 var(--ui); cursor: pointer; }
.sl-step:active { transform: scale(.96); }
.dp-slider input[type=range] { width: 100%; accent-color: var(--accent); height: 28px; margin: 0; cursor: pointer; }
.sl-ends { display: flex; justify-content: space-between; font-size: 13px; color: var(--ink-2); margin: 4px 52px 0; }

#v-editor .fit-suggest { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 14px auto 0; max-width: 760px; width: calc(100% - 56px); padding: 12px 14px; border-radius: 12px; background: rgba(255,255,255,.1); color: var(--on-desk); }
#v-editor .fit-suggest p { margin: 0 6px 0 0; font-size: 14px; }
#v-editor .fit-suggest .btn { background: var(--on-desk); color: var(--desk-editor); }

/* The real file input is visually hidden; its label shows the keyboard focus (QA P1-3, WCAG 2.4.7) */
#file:focus-visible + label, label[for="file"]:has(+ #file:focus-visible), .drop:has(#file:focus-visible) label[for="file"] { outline: 3px solid var(--on-desk); outline-offset: 3px; }

/* Career clarity check (draft) */
.clarity { max-width: 640px; padding-top: 40px; padding-bottom: 56px; }
.clarity-form fieldset { border: 0; padding: 0; margin: 22px 0 20px; display: grid; gap: 10px; }
.clarity-opt { position: relative; display: block; }
.clarity-opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.clarity-opt span { display: flex; align-items: center; min-height: 56px; padding: 12px 18px; border-radius: 14px; background: var(--surface); box-shadow: var(--lift); font-size: 17px; }
.clarity-opt input:checked + span { box-shadow: 0 0 0 2px var(--accent), var(--lift); }
.clarity-opt input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--accent) 70%, white); outline-offset: 2px; }
.clarity-actions { margin-top: 24px; gap: 12px; flex-wrap: wrap; }
.offer-price { margin: 14px 0 0; font-size: 17px; } .offer-price b { font: 500 30px/1 var(--display); margin-right: 8px; }
.offer-list { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.clarity .slot { background: #fbead0; color: #7a4510; padding: 8px 10px; border-radius: 8px; }
.clarity-band { padding-top: 56px; }

.offer-cover { margin: 8px 0 0; display: grid; gap: 12px; }
.offer-cover dt { font-weight: 600; }
.offer-cover dd { margin: 2px 0 0; color: var(--ink-2); }
.clarity p { max-width: 62ch; }
.clarity p { margin: 0 0 14px; }
.clarity .offer-list + p, .clarity .offer-cover + h2 { margin-top: 16px; }

/* Rhythm: an action always sits clearly below its text (Flo, 2026-10-26: "Look at how close that button is to the text") */
.lede + .btn, .lede + .row, .lede + #homePlans, p + #homePlans, .clarity-band .lede + .btn { margin-top: 28px; }
#homePlans { display: block; }
.pricing { padding-bottom: 72px; }
.rec ul + .btn, .rec ul + button { margin-top: 20px; }
.lede, .title, .title-2 { text-wrap: pretty; }

/* Coach and booking */
.coach, .book-who { display: flex; align-items: center; gap: 14px; margin: 8px 0 16px; }
.coach img, .book-who img { border-radius: 50%; object-fit: cover; flex: none; }
.coach p, .book-who p { margin: 0; display: grid; gap: 2px; }
.coach span, .book-who span { color: var(--ink-2); font-size: 15px; }
.book { max-width: 640px; padding-top: 40px; padding-bottom: 64px; }
.book-form { display: grid; gap: 18px; margin-top: 12px; }
.book-times { border: 0; padding: 0; margin: 0; display: grid; gap: 16px; }
.book-times legend { font: 600 16px/1.3 var(--ui); margin-bottom: 10px; }
.book-date { margin: 0 0 8px; font-weight: 600; }
.book-slots { display: flex; flex-wrap: wrap; gap: 8px; }
.book-slot { position: relative; }
.book-slot input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.book-slot span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 12px; background: var(--surface); box-shadow: var(--lift); font-weight: 500; }
.book-slot input:checked + span { background: var(--accent); color: #fff; }
.book-slot input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--accent) 70%, white); outline-offset: 2px; }
.book-slot input:disabled + span { opacity: .55; }
.book .btn.primary { justify-self: start; }

.book-week { display: grid; }
.book-wk { margin: 6px 0 4px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); font-family: var(--display); }
.book-day { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.book-day .book-date { margin: 0; font-weight: 500; }
.book-times { gap: 18px; }
