:root {
  --ink: #16133a;
  --ink-2: #4a4770;
  --muted: #7a7799;
  --line: #e4e2f3;
  --bg: #f6f5fd;
  --card: #ffffff;
  --brand: #5b3df5;
  --brand-2: #7c5cff;
  --brand-ink: #ffffff;
  --good: #19a463;
  --good-bg: #e3f7ec;
  --warn: #d97a06;
  --bad: #e0503a;
  --bad-bg: #fdeae6;
  --hero-1: #170f4a;
  --hero-2: #3a1aa8;
  --hero-3: #6a24c8;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(28, 16, 90, .10);
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); }
img { max-width: 100%; }

/* ---------- nav ---------- */
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px clamp(16px, 4vw, 40px);
  background: var(--hero-1); color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.08);
  gap: 16px; flex-wrap: wrap;
}
.brand { color: #fff; text-decoration: none; font-weight: 800; letter-spacing: .28em; font-size: 15px; }
.nav nav { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.nav nav a { color: #e8e5ff; text-decoration: none; font-weight: 500; font-size: 15px; }
.nav nav a:hover { color: #fff; }
.nav-cta { background: #fff; color: var(--hero-2) !important; padding: 8px 14px; border-radius: 999px; font-weight: 700 !important; }

.flash { max-width: 1100px; margin: 16px auto 0; padding: 12px 16px; border-radius: 10px; font-weight: 500; }
.flash-info { background: #ebe7ff; color: #2d1d8f; }
.flash-success { background: var(--good-bg); color: #0d6b3e; }
.flash-error { background: var(--bad-bg); color: #9b2614; }

.wrap { max-width: 1100px; margin: 0 auto; padding: 32px clamp(16px, 4vw, 32px) 64px; }
.wrap-narrow { max-width: 460px; }

.foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 24px clamp(16px, 4vw, 40px); color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); }
.foot a { color: var(--muted); }

/* ---------- buttons & forms ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 18px; border-radius: 10px; border: 1px solid transparent;
  background: var(--brand); color: var(--brand-ink); font: inherit; font-weight: 700;
  text-decoration: none; cursor: pointer; transition: transform .08s, background .15s;
}
.btn:hover { background: #4a2de0; }
.btn:active { transform: translateY(1px); }
.btn-ghost { background: transparent; color: var(--brand); border-color: var(--line); }
.btn-ghost:hover { background: #efecff; }
.btn-danger { background: transparent; color: var(--bad); border-color: #f3c8bf; }
.btn-danger:hover { background: var(--bad-bg); }
.btn-sm { padding: 7px 12px; font-size: 14px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

label { display: block; font-weight: 600; font-size: 14px; margin: 14px 0 6px; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=url], select, textarea {
  width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px;
  font: inherit; color: var(--ink); background: #fff;
}
textarea { min-height: 90px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--brand-2); outline-offset: 1px; border-color: transparent; }
.hint { color: var(--muted); font-size: 13px; margin-top: 4px; }
.check { display: flex; gap: 8px; align-items: center; font-weight: 500; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.spread { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
h1.page { font-size: clamp(26px, 3vw, 34px); margin: 0 0 6px; }
.sub { color: var(--ink-2); margin: 0 0 24px; }
.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: #efecff; color: var(--brand); }
.pill-good { background: var(--good-bg); color: var(--good); }
.pill-bad { background: var(--bad-bg); color: var(--bad); }
.pill-warn { background: #fff1dc; color: var(--warn); }
.muted { color: var(--muted); }
table.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th, .tbl td { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.tbl th { color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.table-scroll { overflow-x: auto; }

/* ---------- landing hero ---------- */
.hero {
  background:
    radial-gradient(900px 600px at 85% 30%, rgba(160, 90, 255, .45), transparent 60%),
    radial-gradient(700px 500px at 10% 100%, rgba(80, 140, 255, .35), transparent 60%),
    linear-gradient(135deg, var(--hero-1), var(--hero-2) 55%, var(--hero-3));
  color: #fff;
  padding: clamp(40px, 7vw, 100px) clamp(16px, 4vw, 40px);
}
.hero-inner { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(28px, 4vw, 60px); align-items: center; }
.hero h1 { font-size: clamp(34px, 4.6vw, 58px); line-height: 1.12; margin: 0 0 22px; letter-spacing: -.01em; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, #a8f0c6, #8fd3ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: clamp(16px, 1.4vw, 19px); color: #ddd8ff; letter-spacing: .01em; line-height: 1.75; margin: 0 0 28px; max-width: 620px; }

.drop {
  position: relative; display: block; border: 3px dashed rgba(255,255,255,.85); border-radius: 18px;
  background: rgba(80, 55, 220, .75); padding: 30px 22px; text-align: center; cursor: pointer;
  transition: background .15s, transform .15s; max-width: 640px;
}
.drop:hover, .drop.is-over { background: rgba(98, 72, 240, .9); transform: translateY(-2px); }
.drop input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop .badge { position: absolute; top: 12px; right: 12px; border: 1px solid rgba(255,255,255,.7); padding: 3px 10px; border-radius: 8px; font-size: 13px; }
.drop svg { width: 56px; height: 72px; margin-bottom: 8px; }
.drop strong { display: block; font-size: 20px; }
.drop strong u { text-underline-offset: 5px; }
.drop span.small { font-size: 14px; color: #e5e1ff; }
.drop.has-file strong::after { content: ""; }
.role-input { margin-top: 14px; max-width: 640px; }
.role-input input { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.25); color: #fff; }
.role-input input::placeholder { color: #cfc9ff; }
.trust { margin-top: 28px; color: #d9d4ff; font-size: 15px; }
.trust b { color: #fff; }
.stars { color: #00b67a; letter-spacing: 2px; font-size: 20px; }

/* demo window */
.demo { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); border-radius: 18px; overflow: hidden; backdrop-filter: blur(6px); box-shadow: 0 30px 80px rgba(10, 0, 60, .45); }
.demo-bar { display: flex; align-items: center; gap: 8px; padding: 14px 18px; border-bottom: 1px solid rgba(255,255,255,.12); font-size: 13px; font-weight: 800; letter-spacing: .14em; }
.demo-bar i { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.demo-bar .status { margin-left: auto; letter-spacing: 0; font-weight: 700; font-size: 12px; background: rgba(255,255,255,.18); padding: 4px 10px; border-radius: 8px; transition: all .3s; }
.demo-bar .status.done { background: rgba(70, 220, 140, .22); color: #a8f0c6; }
.demo-body { display: grid; grid-template-columns: 1.25fr .85fr; gap: 16px; padding: 16px; }
.demo-doc { background: #fff; color: #222; border-radius: 6px; padding: 18px 20px; font-family: "Source Serif 4", Georgia, serif; font-size: 13px; min-height: 420px; }
.demo-doc h4 { margin: 0; font-size: 18px; }
.demo-doc .meta { color: #999; font-size: 11px; font-family: "Plus Jakarta Sans"; }
.demo-doc .sec { color: var(--brand); font: 800 11px "Plus Jakarta Sans"; letter-spacing: .14em; margin: 12px 0 6px; border-bottom: 1px solid #eee; padding-bottom: 4px; }
.dl { display: flex; justify-content: space-between; gap: 8px; margin: 6px 0; align-items: flex-start; }
.dl .txt { flex: 1; }
.dl .old { color: var(--bad); text-decoration: line-through; text-decoration-color: var(--bad); }
.dl .new { display: none; border-left: 3px solid var(--brand); background: #f1eefe; padding: 6px 8px; border-radius: 4px; margin-top: 4px; }
.dl.fixed .new { display: block; animation: pop .45s ease; }
.dl .old-plain { text-decoration: underline wavy #f19b8c; text-underline-offset: 3px; }
.dl.fixed .old-plain { color: var(--bad); text-decoration: line-through; }
.tag { font: 700 10px "Plus Jakarta Sans"; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.tag-strong, .tag-fixed { background: var(--good-bg); color: var(--good); }
.tag-vague { background: var(--bad-bg); color: var(--bad); }
.demo-side { font-size: 13px; }
.demo-side .lbl { font-weight: 800; font-size: 11px; letter-spacing: .14em; color: #cfc9ff; }
.demo-score { font-size: 48px; font-weight: 800; line-height: 1; margin: 6px 0 12px; transition: color .3s; }
.demo-score small { font-size: 16px; color: #cfc9ff; font-weight: 600; }
.meter { position: relative; height: 8px; border-radius: 99px; background: linear-gradient(90deg, #e0503a, #f2b233 50%, #19c46e); }
.meter b { position: absolute; top: 50%; width: 18px; height: 18px; border-radius: 50%; background: #fff; transform: translate(-50%, -50%); box-shadow: 0 2px 8px rgba(0,0,0,.3); transition: left .5s ease; }
.demo-side .run { color: #cfc9ff; margin: 10px 0 14px; }
.fixlist { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.fixlist li { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); border-radius: 8px; padding: 9px 10px 9px 26px; position: relative; animation: pop .4s ease; }
.fixlist li::before { content: ""; position: absolute; left: 10px; top: 14px; width: 7px; height: 7px; border-radius: 50%; background: #46dc8c; }
@keyframes pop { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.section { padding: 70px clamp(16px, 4vw, 40px); }
.section h2 { text-align: center; font-size: clamp(26px, 3vw, 36px); margin: 0 0 10px; }
.section .center-sub { text-align: center; color: var(--ink-2); margin: 0 auto 40px; max-width: 640px; }
.steps { max-width: 1100px; margin: 0 auto; }
.step-num { width: 34px; height: 34px; border-radius: 50%; background: #efecff; color: var(--brand); display: grid; place-items: center; font-weight: 800; margin-bottom: 10px; }
.price-card h3 { margin: 0; }
.price { font-size: 40px; font-weight: 800; margin: 8px 0; }
.price small { font-size: 15px; color: var(--muted); font-weight: 600; }
.ticks { list-style: none; padding: 0; margin: 16px 0 22px; display: grid; gap: 8px; }
.ticks li::before { content: "✓  "; color: var(--good); font-weight: 800; }

/* ---------- results page ---------- */
.score-ring { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.score-box { text-align: center; }
.score-box .n { font-size: 44px; font-weight: 800; line-height: 1; }
.score-box .l { font-size: 12px; color: var(--muted); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.score-arrow { font-size: 26px; color: var(--muted); }
.n-bad { color: var(--bad); } .n-mid { color: var(--warn); } .n-good { color: var(--good); }
.issue { border-left: 3px solid var(--line); padding: 8px 0 8px 14px; margin: 12px 0; }
.issue.critical { border-color: var(--bad); }
.issue.major { border-color: var(--warn); }
.issue .orig { color: var(--bad); text-decoration: line-through; font-size: 14px; }
.issue .fix { color: var(--good); font-size: 14px; }
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; }
.tabs button { background: none; border: none; font: inherit; font-weight: 700; padding: 10px 14px; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs button.on { color: var(--brand); border-color: var(--brand); }
.tab-panel { display: none; } .tab-panel.on { display: block; }
.processing { text-align: center; padding: 40px 10px; }
.spinner { width: 42px; height: 42px; border: 4px solid #e5e1ff; border-top-color: var(--brand); border-radius: 50%; animation: spin 1s linear infinite; margin: 0 auto 16px; }
@keyframes spin { to { transform: rotate(360deg); } }
.edit-block { border: 1px solid var(--line); border-radius: 12px; padding: 14px; margin: 12px 0; background: #fbfaff; }

/* ---------- resume (preview + print) ---------- */
.cv { background: #fff; color: #1d1d1f; font-family: Arial, Helvetica, sans-serif; font-size: 13.5px; line-height: 1.45; padding: clamp(18px, 4vw, 44px); border-radius: 6px; border: 1px solid var(--line); }
.cv h1 { text-align: center; font-size: 26px; margin: 0; letter-spacing: .02em; }
.cv-headline { text-align: center; color: #444; margin-top: 2px; }
.cv-contact { text-align: center; color: #444; font-size: 12.5px; margin-top: 4px; word-break: break-word; }
.cv h2 { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; border-bottom: 1px solid #444; padding-bottom: 3px; margin: 18px 0 8px; }
.cv-row { display: flex; justify-content: space-between; gap: 12px; margin-top: 10px; }
.cv-row span { white-space: nowrap; font-weight: 700; }
.cv-sub { font-style: italic; color: #333; }
.cv ul { margin: 4px 0 0; padding-left: 18px; }
.cv li { margin: 2px 0; }
.cv p { margin: 4px 0; }
mark.ph { background: #fff1b8; padding: 0 2px; border-radius: 3px; }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .demo-body { grid-template-columns: 1fr; }
  .demo-doc { min-height: 0; }
}
@media (max-width: 560px) {
  .cv-row { flex-direction: column; gap: 0; }
  .nav nav { gap: 12px; }
}

@media print {
  body { background: #fff; }
  .nav, .foot, .no-print, .flash { display: none !important; }
  .wrap { padding: 0; max-width: none; }
  .cv { border: none; padding: 0; font-size: 11pt; }
  mark.ph { background: none; }
  @page { size: A4; margin: 14mm; }
}

/* ---------- before / after ---------- */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.compare-head { display: flex; justify-content: space-between; align-items: baseline; font-weight: 800; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.compare-head .n { font-size: 22px; letter-spacing: 0; }
.compare-pane { height: 820px; overflow: auto; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.compare-pane iframe { width: 100%; height: 100%; border: 0; display: block; }
.compare-pane .cv { border: none; font-size: 12.5px; padding: 20px; }
.orig-text { white-space: pre-wrap; font-family: Arial, sans-serif; font-size: 12.5px; line-height: 1.5; padding: 20px; color: #333; }
.report-row { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.report-row:last-child { border-bottom: none; }
.mini-scores { display: flex; align-items: center; gap: 8px; font-weight: 800; }
.mini-scores .gain { font-size: 12px; font-weight: 700; color: var(--good); background: var(--good-bg); padding: 2px 8px; border-radius: 99px; }
@media (max-width: 760px) { .compare { grid-template-columns: 1fr; } .compare-pane { height: 560px; } }
.pdf-pages canvas { display: block; border-bottom: 1px solid var(--line); }

/* ---------- example portfolios (landing) ---------- */
.example { display: block; text-decoration: none; color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s; }
.example:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(28, 16, 90, .16); }
.example-shot { padding: 26px 22px; min-height: 270px; border-bottom: 1px solid var(--line); }
.example-avatar { width: 40px; height: 40px; border-radius: 12px; background: var(--ex-accent); color: #fff; display: grid; place-items: center; font-weight: 800; margin-bottom: 14px; }
.example-name { font-size: 26px; font-weight: 800; line-height: 1.1; letter-spacing: -.01em; }
.example-name.serif { font-family: "Source Serif 4", Georgia, serif; font-weight: 700; }
.example-head { font-size: 13px; margin: 6px 0 12px; }
.example-tag { font-size: 15px; margin-bottom: 16px; }
.example-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.example-stats div { border: 1px solid rgba(127,127,127,.25); border-radius: 10px; padding: 10px; }
.example-stats b { display: block; color: var(--ex-accent); font-size: 18px; }
.example-stats span { font-size: 12px; }
.example-foot { display: flex; justify-content: space-between; padding: 12px 18px; font-size: 14px; font-weight: 700; color: var(--brand); }
.switcher-check { color: #fff; font-weight: 600; margin-top: 12px; align-items: flex-start; line-height: 1.4; }
.switcher-check input { margin-top: 3px; }
.switcher-check span { font-weight: 400; color: #d6d0ff; font-size: 13px; }
.upload-go { margin-top: 14px; background: #fff; color: var(--hero-2); font-size: 17px; padding: 13px 22px; }
.upload-go:hover { background: #ece8ff; }
.drop.has-file { border-style: solid; }

/* ---------- career toolkit ---------- */
.role-card { cursor: pointer; position: relative; display: block; font-weight: 400; margin: 0; border: 2px solid var(--line); transition: border-color .15s; }
.role-card:has(input:checked) { border-color: var(--brand); background: #fbfaff; }
.role-card input { position: absolute; top: 18px; right: 18px; width: 18px; height: 18px; accent-color: var(--brand); }
.role-card h3 { margin: 10px 0 4px; font-size: 20px; }
.role-card p { font-size: 14.5px; margin: 8px 0; }
.checklist { padding-left: 0; list-style: none; } .checklist li { padding: 8px 0 8px 28px; position: relative; border-bottom: 1px dashed var(--line); }
.checklist li::before { content: "☐"; position: absolute; left: 4px; color: var(--brand); }
.rules li { margin: 10px 0; }
.tool-mini, .tool-card { display: block; text-decoration: none; color: var(--ink); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; background: #fff; transition: border-color .15s, transform .15s; }
.tool-mini:hover, .tool-card:hover { border-color: var(--brand); transform: translateY(-2px); }
.tool-mini span, .tool-card span { display: block; color: var(--muted); font-size: 13.5px; margin-top: 2px; }
.tool-card strong { font-size: 16px; }
.copybox { position: relative; background: #fbfaff; border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; margin: 8px 0; white-space: pre-wrap; font-size: 14.5px; }
.copybox.mono { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13.5px; word-break: break-word; }
.copy-btn { position: absolute; top: 8px; right: 8px; font-size: 12px; padding: 4px 10px; border-radius: 8px; border: 1px solid var(--line); background: #fff; cursor: pointer; font-weight: 700; color: var(--brand); }
.ev { font-size: 12px; font-weight: 800; padding: 3px 9px; border-radius: 99px; white-space: nowrap; }
.ev-strong { background: var(--good-bg); color: var(--good); } .ev-partial { background: #fff1dc; color: var(--warn); } .ev-none { background: var(--bad-bg); color: var(--bad); }
.match-big { font-size: 56px; font-weight: 800; line-height: 1; }
.busy-overlay { position: fixed; inset: 0; background: rgba(246,245,253,.92); display: grid; place-items: center; z-index: 50; text-align: center; padding: 20px; }
.star { border: 1px solid var(--line); border-radius: 12px; padding: 16px; margin: 12px 0; background: #fff; }
.star dt { font-weight: 800; color: var(--brand); font-size: 13px; letter-spacing: .08em; margin-top: 10px; }
.star dd { margin: 2px 0 0; }
.week { border-left: 3px solid var(--brand); padding-left: 16px; margin: 18px 0; }
.status-sel { padding: 6px 8px; font-size: 13px; width: auto; }
.overdue { color: var(--bad); font-weight: 700; }
