/* CVee home page (the CV previews themselves are styled in cv.css) */

:root {
  --brand: #8f33e8;
  --brand-700: #7322c4;
  --brand-50: #f6effd;
  --brand-100: #eee0fc;
  --lilac: #e4dcfb;
  --ink: #290e3a;
  --text: #3a1558;
  --muted: #6e5f80;
  --line: #e7dff2;
  --night: #2a0d40;
  --radius-lg: 28px;
  --radius: 18px;
  --mono: "Space Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font: 16px/1.5 "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 500; letter-spacing: -0.02em; line-height: 1.08; }
h2 { font-size: clamp(28px, 3.4vw, 40px); }
h3 { font-size: 20px; line-height: 1.2; }
p { margin: 0; }

.wrap { width: min(1160px, 100% - 32px); margin: 0 auto; }
main > section { margin-top: 20px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.btn:active { transform: translateY(1px); }
.btn:focus-visible, .nav a:focus-visible, summary:focus-visible { outline: 3px solid rgba(143, 51, 232, 0.35); outline-offset: 2px; }
.btn svg { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 6px 18px rgba(143, 51, 232, 0.28); }
.btn-primary:hover { background: var(--brand-700); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #3d1757; }
.btn-ghost { background: transparent; color: var(--brand); box-shadow: inset 0 0 0 1.5px var(--brand-100); }
.btn-ghost:hover { background: var(--brand-50); }
.btn.is-disabled { flex-wrap: wrap; gap: 6px; height: auto; min-height: 44px; padding: 8px 12px; color: var(--muted); box-shadow: inset 0 0 0 1.5px var(--line); background: transparent; cursor: default; font-weight: 500; }
.btn.is-disabled:active { transform: none; }
.soon-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--brand-100);
  color: var(--brand-700);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--brand-50); }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; }
.btn-lg { height: 52px; padding: 0 26px; font-size: 16px; }
.btn-square { width: 52px; height: 52px; padding: 0; background: var(--brand); color: #fff; }
.btn-square:hover { background: var(--brand-700); }
.btn-block { width: 100%; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  box-shadow: 0 1px 0 var(--line);
}
.header-inner { height: 68px; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.brand img { height: 22px; width: auto; }
.brand-tld {
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--brand-50);
  color: var(--brand);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
/* pill menu, like cvee.hu */
.nav {
  display: flex;
  gap: 2px;
  position: relative; /* offset parent for scrolling to the current item (home.js) */
  margin-left: auto;
  padding: 4px;
  border-radius: 14px;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line), 0 1px 2px rgba(41, 14, 58, 0.04);
}
.nav a {
  padding: 7px 12px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s, color 0.15s;
}
.nav a:hover { background: var(--brand-50); color: var(--brand-700); }
.nav a[aria-current="page"] { background: var(--night); color: #d8b4fe; }

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 20px; margin-top: 20px; }
.hero-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 5vw, 64px);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 90% at 30% 40%, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0) 60%),
    linear-gradient(135deg, #d9d1ff 0%, #ebe6ff 45%, #dcd2fb 100%);
}
.hero h1 { font-size: clamp(40px, 5.6vw, 68px); color: var(--ink); }
.lead { margin-top: 22px; max-width: 34em; font: 15px/1.7 var(--mono); color: var(--text); }
.hero-cta { display: flex; gap: 8px; margin-top: 30px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 0; padding: 0; list-style: none; }
.chips li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px;
  border-radius: 10px;
  background: #fff;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 1px 2px rgba(41, 14, 58, 0.06);
}
.chips svg { width: 17px; height: 17px; fill: none; stroke: var(--brand); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.hero-visual {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(80% 60% at 70% 20%, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0) 70%),
    linear-gradient(160deg, #b98af3 0%, #9b5cf0 55%, #8f33e8 100%);
  box-shadow: inset 0 0 0 8px #d9d1ff;
}
.hero-sheet {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(66%, 380px);
  transform: translate(-50%, -46%) rotate(-4deg);
  border-radius: 6px;
  box-shadow: 0 30px 60px rgba(42, 13, 64, 0.35), 0 8px 18px rgba(42, 13, 64, 0.2);
}
.hero-badge {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 12px;
  background: #fff;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  box-shadow: 0 12px 28px rgba(42, 13, 64, 0.22);
}
.hero-badge-top { top: 28px; right: 24px; }
.hero-badge-bottom { bottom: 28px; left: 24px; background: var(--ink); color: #fff; }
.hero-badge svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.18); }

/* ---------- CV preview frames (real engine output, scaled) ---------- */
.cv-frame {
  position: relative;
  aspect-ratio: 210 / 297;
  overflow: hidden;
  border-radius: inherit;
  background: #fff;
}
.cv-frame > .cv-doc { position: absolute; left: 0; top: 0; transform-origin: 0 0; opacity: 0; transition: opacity 0.4s; }
.cv-frame.is-ready > .cv-doc { opacity: 1; }

/* ---------- section heads ---------- */
.section-head { max-width: 640px; margin: 0 auto 40px; text-align: center; }
.section-head p, .sub { margin-top: 14px; font: 14.5px/1.7 var(--mono); color: var(--muted); }
.section-head.on-dark { margin: 0 0 36px; text-align: left; }
.section-head.on-dark h2 { color: #fff; }
.section-head.on-dark p { color: #d9c8ef; }
.eyebrow { margin-bottom: 10px; font-size: 14px; font-weight: 600; color: var(--brand); letter-spacing: 0.01em; }

/* ---------- benefits (dark panel) ---------- */
.dark-panel {
  padding: clamp(28px, 5vw, 56px);
  border-radius: var(--radius-lg);
  background: var(--night);
}
.benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.benefit {
  padding: 26px 24px 28px;
  border-radius: var(--radius);
  background: var(--brand);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}
.benefit:nth-child(3n + 2) { background: #9b45ec; }
.benefit h3 { font-size: 22px; }
.benefit p { margin-top: 12px; font: 13.5px/1.65 var(--mono); color: #f1e6fd; }

/* ---------- soft panels ---------- */
.soft-panel {
  padding: clamp(28px, 5vw, 60px);
  border-radius: var(--radius-lg);
  background: #f7f4fd;
  box-shadow: inset 0 0 0 1px var(--line);
}
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.split h2 { color: var(--ink); }

.steps { margin: 28px 0 32px; padding: 0; list-style: none; display: grid; gap: 18px; }
.steps li { display: flex; gap: 16px; align-items: flex-start; font: 14.5px/1.65 var(--mono); color: var(--text); }
.steps strong { font-family: "Space Grotesk", sans-serif; font-size: 16px; font-weight: 600; color: var(--ink); }
.step-num {
  flex: none;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--brand);
  color: #fff;
  font-weight: 600;
}

/* editor mock-up */
.mock {
  border-radius: 20px;
  background: #e9e2fb;
  padding: 10px;
  box-shadow: 0 24px 48px rgba(41, 14, 58, 0.12);
}
.mock-bar { display: flex; gap: 6px; padding: 6px 8px 12px; }
.mock-bar span { width: 10px; height: 10px; border-radius: 50%; background: #fff; opacity: 0.8; }
.mock-body { display: grid; gap: 14px; padding: 22px; border-radius: 14px; background: #fff; }
.mock-field label { display: block; margin-bottom: 6px; font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.mock-input {
  position: relative;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fff;
  box-shadow: inset 0 0 0 1.5px #e2daec;
  font: 13px/1.55 var(--mono);
  color: var(--ink);
}
.mock-input:first-of-type { box-shadow: inset 0 0 0 2px var(--brand), 0 0 0 4px rgba(143, 51, 232, 0.14); }
.mock-area { min-height: 76px; color: var(--text); }
.caret { display: inline-block; width: 1.5px; height: 15px; margin-left: 2px; vertical-align: -3px; background: var(--brand); animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.mock-pills { display: flex; gap: 6px; flex-wrap: wrap; }
.mock-pills span { padding: 6px 12px; border-radius: 8px; background: var(--brand-50); font-size: 13px; font-weight: 500; color: var(--text); }
.mock-pills .is-on { background: var(--brand); color: #fff; }
.mock-swatches { display: flex; gap: 8px; }
.mock-swatches span { width: 22px; height: 22px; border-radius: 50%; background: var(--c); }
.mock-swatches .is-on { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--c); }
.mock-download {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--brand);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}
.mock-download svg { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* stat card */
.split-reverse > :first-child { order: 0; }
.stat-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 360px;
  padding: 36px;
  border-radius: 22px;
  color: #fff;
  background:
    radial-gradient(70% 60% at 80% 10%, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0) 70%),
    linear-gradient(150deg, #a15cf2, #6a1fc0 70%, #4c138f);
}
.stat-num { font-size: clamp(80px, 11vw, 132px); font-weight: 500; line-height: 0.9; letter-spacing: -0.04em; }
.stat-num small { font-size: 0.4em; margin-left: 4px; letter-spacing: 0; }
.stat-label { margin-top: 16px; max-width: 22em; font-size: 18px; line-height: 1.4; }
.stat-source { margin-top: 18px; font: 12px/1.4 var(--mono); color: #e3cffb; }

/* accordion */
.accordion { display: grid; gap: 10px; margin-top: 26px; }
.accordion details {
  border-radius: 14px;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line);
}
.accordion summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after {
  content: "";
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--brand-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 6v12M6 12h12' stroke='%238f33e8' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") center / 14px no-repeat;
  transition: transform 0.2s;
}
.accordion details[open] summary::after { transform: rotate(45deg); }
.accordion details p { padding: 0 18px 18px; font: 14px/1.7 var(--mono); color: var(--text); }

/* ---------- templates ---------- */
.templates { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.tpl {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 20px;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line), 0 2px 6px rgba(41, 14, 58, 0.04);
  transition: transform 0.2s, box-shadow 0.2s;
}
.tpl:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1px var(--line), 0 18px 36px rgba(41, 14, 58, 0.1); }
.tpl-preview { padding: 22px 22px 0; background: linear-gradient(180deg, #efe9fc, #f7f4fd); }
.tpl-preview .cv-frame { border-radius: 6px 6px 0 0; box-shadow: 0 10px 30px rgba(41, 14, 58, 0.12); aspect-ratio: 210 / 230; }
.tpl-info { display: flex; flex-direction: column; gap: 8px; flex: 1; padding: 20px 22px 22px; }
.tpl-info p { flex: 1; margin-bottom: 10px; font: 13.5px/1.6 var(--mono); color: var(--muted); }

/* blank CV card: the empty design, with a "+" on top */
.tpl-blank .tpl-preview { position: relative; }
.blank-plus {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 10px rgba(143, 51, 232, 0.14), 0 12px 28px rgba(143, 51, 232, 0.35);
  transform: translate(-50%, -40%);
  transition: transform 0.2s;
}
.blank-plus svg { width: 28px; height: 28px; fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; }
.tpl-blank:hover .blank-plus { transform: translate(-50%, -40%) scale(1.08); }

/* ---------- transparency ---------- */
.trust {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 32px;
  align-items: center;
  padding: clamp(28px, 5vw, 52px);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #d9d1ff, #efe9ff);
}
.trust p { margin-top: 14px; font: 14.5px/1.7 var(--mono); color: var(--text); }
.trust-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0; padding: 0; list-style: none; }
.trust-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 14px;
  background: #fff;
  font-size: 15px;
  font-weight: 600;
}
.trust-list svg { flex: none; width: 20px; height: 20px; padding: 3px; border-radius: 50%; background: var(--brand); fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; padding: clamp(40px, 6vw, 72px) 0 clamp(20px, 3vw, 32px); }
.faq h2 { text-align: center; }
.faq .accordion details { background: #f7f4fd; }

/* ---------- final CTA ---------- */
.cta-band {
  padding: clamp(40px, 6vw, 72px) clamp(24px, 5vw, 56px);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(60% 80% at 85% 0%, rgba(143, 51, 232, 0.55), rgba(143, 51, 232, 0) 70%),
    var(--night);
  color: #fff;
  text-align: center;
}
.cta-band h2 { max-width: 720px; margin: 0 auto; }
.cta-band p { margin: 16px auto 30px; font: 14.5px/1.7 var(--mono); color: #d9c8ef; }

/* ---------- footer ---------- */
.site-footer { margin-top: 40px; padding: 28px 0 36px; box-shadow: 0 -1px 0 var(--line); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; font-size: 14px; color: var(--muted); }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-left: auto; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--brand); }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.guide-list .soon-badge { flex: none; }
.soft-panel .guide-list { margin-top: 22px; }

/* ---------- inner pages: blog, knowledge base ---------- */
.page-hero {
  margin-top: 20px;
  padding: clamp(32px, 6vw, 72px) clamp(24px, 5vw, 64px);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 90% at 20% 30%, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0) 60%),
    linear-gradient(135deg, #d9d1ff 0%, #ebe6ff 45%, #dcd2fb 100%);
}
.page-hero + section { margin-top: 36px; }
.page-hero h1 { max-width: 15em; font-size: clamp(34px, 4.6vw, 56px); color: var(--ink); }
.page-hero .lead { margin-top: 18px; }
.topic-bar { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; padding: 0; list-style: none; }
.topic-bar li {
  padding: 8px 14px;
  border-radius: 999px;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}
.topic-bar li:first-child { background: var(--night); color: #fff; box-shadow: none; }
.soon-note { margin-top: 26px; text-align: center; font: 14px/1.7 var(--mono); color: var(--muted); }
.soon-note a { color: var(--brand); font-family: "Space Grotesk", sans-serif; font-weight: 600; }

/* placeholder cards: the shape of future posts and guides */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.post-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 20px;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line);
}
.post-featured { display: grid; grid-template-columns: 1.2fr 1fr; margin-bottom: 18px; }
.post-img { aspect-ratio: 16 / 9; background: linear-gradient(135deg, #e9e2fb, #f6f2fe 60%, #efe9fc); }
.post-featured .post-img { aspect-ratio: auto; min-height: 260px; }
.post-body { display: flex; flex-direction: column; gap: 10px; padding: 20px 22px 24px; }
.post-featured .post-body { justify-content: center; padding: 32px; }
.sk { display: block; height: 12px; border-radius: 6px; background: #efeaf6; }
.sk-tag { width: 80px; height: 20px; border-radius: 999px; background: var(--brand-50); }
.sk-title { height: 18px; background: #e7e0f1; }
.sk-w90 { width: 90%; } .sk-w75 { width: 75%; } .sk-w60 { width: 60%; } .sk-w40 { width: 40%; }
.post-card .soon-badge, .topic-card .soon-badge { position: absolute; top: 14px; right: 14px; }

.kb-search {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 560px;
  margin-top: 26px;
  padding: 0 16px;
  height: 52px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(41, 14, 58, 0.08);
}
.kb-search svg { flex: none; width: 20px; height: 20px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; }
.kb-search input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: 15px; color: var(--ink); outline: none; }
.kb-search input:disabled { cursor: not-allowed; }
.topic-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.topic-card {
  position: relative;
  padding: 24px 22px 22px;
  border-radius: 20px;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line);
}
.topic-icon { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 16px; border-radius: 12px; background: var(--brand-50); }
.topic-icon svg { width: 22px; height: 22px; fill: none; stroke: var(--brand); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.topic-card h3 { font-size: 19px; }
.topic-card p { margin-top: 8px; font: 13.5px/1.6 var(--mono); color: var(--muted); }
.topic-count { display: block; margin-top: 14px; font-size: 13px; font-weight: 600; color: var(--brand-700); }
.guide-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.guide-list li { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.guide-list .sk-num { flex: none; width: 30px; height: 30px; border-radius: 9px; background: var(--brand-50); }
.guide-list .sk-lines { flex: 1; display: grid; gap: 8px; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero, .split, .trust { grid-template-columns: 1fr; }
  .hero-visual { min-height: 460px; }
  .benefits { grid-template-columns: 1fr 1fr; }
  .templates { grid-template-columns: 1fr 1fr; gap: 14px; }
  .tpl-preview { padding: 14px 14px 0; }
  .tpl-info { padding: 16px; }
  .split-reverse > :first-child { order: 1; }
}
@media (max-width: 1100px) {
  .header-inner { gap: 16px; }
  .nav a { padding: 7px 9px; font-size: 13.5px; }
}
/* Not enough room in one row: the menu gets its own row and scrolls sideways. */
@media (max-width: 1000px) {
  html { scroll-padding-top: 128px; }
  .header-inner { flex-wrap: wrap; height: auto; padding: 10px 0; row-gap: 10px; justify-content: space-between; }
  .nav { order: 3; width: 100%; margin-left: 0; overflow-x: auto; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
}
@media (max-width: 900px) {
  .post-grid, .topic-grid { grid-template-columns: 1fr 1fr; }
  .post-featured { grid-template-columns: 1fr; }
  .post-featured .post-img { min-height: 180px; }
}
@media (max-width: 720px) {
  .post-grid, .topic-grid { grid-template-columns: 1fr; }
  .benefits, .templates, .trust-list { grid-template-columns: 1fr; }
  .hero-visual { min-height: 400px; }
  .hero-sheet { width: 62%; }
  .hero-badge { font-size: 13px; padding: 8px 12px; }
  .hero-badge-top { top: 18px; right: 16px; }
  .hero-badge-bottom { bottom: 18px; left: 16px; }
  .stat-card { min-height: 280px; padding: 28px; }
  .footer-links { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .caret { animation: none; }
  .btn, .tpl, .cv-frame > .cv-doc { transition: none; }
}

/* ---------- header: log in + main button ---------- */
/* log in + sign up in one lavender pill, like cvee.hu */
.header-actions { display: flex; align-items: center; gap: 4px; flex: none; padding: 4px; border-radius: 14px; background: #ece7fb; }
.nav-login, .nav-signup { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; border-radius: 10px; font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; transition: background-color 0.15s, color 0.15s; }
.nav-login { color: var(--ink); }
.nav-login:hover, .nav-login[aria-current="page"] { background: #fff; color: var(--brand-700); }
.nav-signup { background: var(--night); color: #fff; box-shadow: 0 4px 12px rgba(42, 13, 64, 0.2); }
.nav-signup:hover { background: #3d1757; }
.nav-signup[aria-current="page"] { background: var(--brand); }
.nav-signup svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.nav-login:focus-visible, .nav-signup:focus-visible { outline: 3px solid rgba(143, 51, 232, 0.35); outline-offset: 2px; }

/* ---------- sign up / log in ---------- */
.auth {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px;
  margin-top: 20px;
}
.auth-card {
  position: relative;
  align-self: start;
  padding: clamp(28px, 4vw, 48px);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line), 0 12px 40px rgba(41, 14, 58, 0.06);
}
.auth-card .soon-badge { position: absolute; top: 20px; right: 20px; }
.auth-card h1 { font-size: clamp(30px, 3.4vw, 40px); color: var(--ink); }
.auth-sub { margin-top: 10px; font: 14.5px/1.7 var(--mono); color: var(--muted); }
.btn-google { margin-top: 26px; background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-google:hover { background: var(--brand-50); }
.btn-google svg { width: 18px; height: 18px; }
.auth-or { display: flex; align-items: center; gap: 12px; margin: 20px 0; font-size: 13px; color: var(--muted); }
.auth-or::before, .auth-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth-form { display: grid; gap: 16px; }
.auth-field { display: grid; gap: 6px; }
.auth-label { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.auth-label small { font-weight: 400; color: var(--muted); }
.auth-label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.auth-link { font-size: 13px; font-weight: 600; color: var(--brand); text-decoration: none; }
.auth-link:hover { text-decoration: underline; }
.auth-field input, .pw {
  width: 100%;
  height: 48px;
  border-radius: 12px;
  background: #fff;
  box-shadow: inset 0 0 0 1.5px #e2daec;
  transition: box-shadow 0.15s;
}
.auth-field input { padding: 0 14px; border: 0; font: inherit; font-size: 15px; color: var(--ink); outline: none; }
.auth-field input::placeholder { color: #a79cb3; }
.auth-field input:focus, .pw:focus-within { box-shadow: inset 0 0 0 2px var(--brand), 0 0 0 4px rgba(143, 51, 232, 0.14); }
.auth-field input[aria-invalid="true"], .pw:has(input[aria-invalid="true"]) { box-shadow: inset 0 0 0 2px #d6336c; }
.pw { display: flex; align-items: center; }
.pw input { flex: 1; min-width: 0; height: 100%; box-shadow: none !important; background: transparent; }
.pw-toggle { flex: none; height: 36px; margin-right: 6px; padding: 0 12px; border: 0; border-radius: 9px; background: var(--brand-50); color: var(--brand-700); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.pw-toggle:hover { background: var(--brand-100); }
.auth-check { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 1.45; color: var(--text); cursor: pointer; flex-wrap: wrap; }
.auth-check input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--brand); flex: none; }
.auth-check > span { flex: 1; }
.auth-check .auth-error { flex-basis: 100%; }
.auth-error { font-size: 13px; font-weight: 500; color: #c2255c; }
.auth-form .btn-lg { margin-top: 4px; }
.auth-msg { margin: 0; padding: 12px 14px; border-radius: 12px; background: var(--brand-50); font-size: 14px; line-height: 1.5; color: var(--text); }
.auth-msg a { font-weight: 700; color: var(--brand); white-space: nowrap; }
.auth-msg[hidden] { display: none; }
.auth-switch { margin-top: 22px; font-size: 14.5px; color: var(--muted); text-align: center; }
.auth-switch a { font-weight: 700; color: var(--brand); text-decoration: none; }
.auth-switch a:hover { text-decoration: underline; }

.auth-side {
  position: relative;
  overflow: hidden;
  min-height: 560px;
  padding: clamp(28px, 4vw, 48px);
  border-radius: var(--radius-lg);
  color: #fff;
  background:
    radial-gradient(80% 60% at 80% 10%, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0) 70%),
    linear-gradient(160deg, #a46cf0 0%, #8f33e8 55%, #6a1fc0 100%);
}
.auth-side h2 { max-width: 12em; font-size: clamp(26px, 2.8vw, 34px); }
.auth-perks { display: grid; gap: 12px; margin: 22px 0 0; padding: 0; list-style: none; }
.auth-perks li { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; line-height: 1.45; }
.auth-perks svg { flex: none; width: 20px; height: 20px; padding: 3px; border-radius: 50%; background: rgba(255, 255, 255, 0.22); fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.auth-sheet {
  position: absolute;
  right: -6%;
  bottom: -22%;
  width: 62%;
  border-radius: 6px;
  transform: rotate(-6deg);
  box-shadow: 0 30px 60px rgba(42, 13, 64, 0.35);
}

@media (max-width: 900px) {
  .auth { grid-template-columns: 1fr; }
  .auth-side { display: none; } /* the form comes first on phones and tablets */
  .auth-card { max-width: 560px; width: 100%; justify-self: center; }
}
@media (max-width: 480px) {
  .nav-login, .nav-signup { padding: 0 11px; }
  .auth-card .soon-badge { position: static; display: inline-block; margin-bottom: 12px; }
}

/* ---------- pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 24px 22px 22px;
  border-radius: 20px;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line);
}
.plan h3 { font-size: 18px; color: var(--ink); }
.plan-price { margin-top: 14px; line-height: 1; }
.plan-price span { font-size: 44px; font-weight: 600; letter-spacing: -0.03em; color: var(--ink); }
.plan-per { margin-top: 8px; font: 13px/1.4 var(--mono); color: var(--muted); }
.plan-list { display: grid; gap: 10px; flex: 1; margin: 20px 0 22px; padding: 18px 0 0; border-top: 1px solid var(--line); list-style: none; }
.plan-list li { position: relative; padding-left: 26px; font-size: 14px; line-height: 1.45; color: var(--text); }
.plan-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--brand-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12 4 4 8-9' fill='none' stroke='%238f33e8' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.plan-best { background: var(--night); box-shadow: 0 18px 40px rgba(42, 13, 64, 0.25); }
.plan-best h3, .plan-best .plan-price span { color: #fff; }
.plan-best .plan-per { color: #d8b4fe; }
.plan-best .plan-list { border-top-color: rgba(255, 255, 255, 0.14); }
.plan-best .plan-list li { color: #ece2f7; }
.plan-best .plan-list li::before { background-color: rgba(255, 255, 255, 0.14); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12 4 4 8-9' fill='none' stroke='%23ffffff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.plan-badge {
  position: absolute;
  top: -11px;
  left: 22px;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 6px 14px rgba(143, 51, 232, 0.35);
}
.plan-promises { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px; margin: 26px 0 0; padding: 0; list-style: none; }
.plan-promises li { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 600; color: var(--ink); }
.plan-promises svg { width: 18px; height: 18px; padding: 3px; border-radius: 50%; background: var(--brand); fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.plan-note { margin-top: 14px; text-align: center; font: 12.5px/1.5 var(--mono); color: var(--muted); }

@media (max-width: 1100px) { .plans { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .plans { grid-template-columns: 1fr; } }

/* ---------- My CVs ---------- */
.mycvs { margin-top: 28px; }
.mycvs-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.mycvs-head h1 { font-size: clamp(32px, 4vw, 44px); color: var(--ink); }
.mycvs-head .sub { max-width: 36em; }
.mycvs-note { display: flex; align-items: flex-start; gap: 10px; margin: 20px 0 24px; padding: 12px 14px; border-radius: 14px; background: var(--brand-50); font-size: 14px; line-height: 1.5; color: var(--text); }
.mycvs-note svg { flex: none; width: 18px; height: 18px; margin-top: 1px; fill: none; stroke: var(--brand); stroke-width: 2; stroke-linecap: round; }
.mycvs-note a { font-weight: 600; color: var(--brand); }
.cv-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.cv-card { display: flex; flex-direction: column; overflow: hidden; border-radius: 20px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.cv-card-thumb { display: block; padding: 18px 18px 0; background: linear-gradient(180deg, #efe9fc, #f7f4fd); }
.cv-card-thumb .cv-frame { aspect-ratio: 210 / 210; border-radius: 6px 6px 0 0; box-shadow: 0 10px 26px rgba(41, 14, 58, 0.12); transition: transform 0.2s; }
.cv-card-thumb:hover .cv-frame { transform: translateY(-3px); }
.cv-card-body { display: flex; flex-direction: column; gap: 4px; flex: 1; padding: 16px 18px 18px; }
.cv-card-title { overflow: hidden; font-size: 17px; line-height: 1.3; color: var(--ink); text-overflow: ellipsis; white-space: nowrap; }
.cv-card-rename { width: 100%; height: 34px; padding: 0 10px; border: 0; border-radius: 9px; font: inherit; font-size: 16px; font-weight: 600; color: var(--ink); box-shadow: inset 0 0 0 2px var(--brand); outline: none; }
.cv-card-meta { font-size: 13px; color: var(--muted); }
.cv-card-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 2px; margin-top: 12px; }
.cv-card-actions .btn-sm { margin-right: 6px; }
.cv-act { padding: 6px 8px; border: 0; border-radius: 8px; background: none; color: var(--text); font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; }
.cv-act:hover { background: var(--brand-50); color: var(--brand-700); }
.cv-act-danger:hover { background: #fde8ef; color: #c2255c; }
.cv-act:focus-visible { outline: 3px solid rgba(143, 51, 232, 0.35); outline-offset: 1px; }
.cv-card-new { align-items: center; justify-content: center; gap: 10px; min-height: 280px; border: 2px dashed #d9cdea; box-shadow: none; background: transparent; color: var(--brand-700); font-size: 16px; font-weight: 600; text-decoration: none; }
.cv-card-new:hover { border-color: var(--brand); background: var(--brand-50); }
.cv-new-plus { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--brand); color: #fff; font-size: 28px; line-height: 1; }
.mycvs-empty { grid-column: 1 / -1; padding: 56px 20px; border-radius: 20px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); text-align: center; }
.mycvs-empty h2 { font-size: 24px; color: var(--ink); }
.mycvs-empty p { margin: 8px 0 20px; font: 14px/1.6 var(--mono); color: var(--muted); }
.page-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: calc(100vw - 32px);
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--night);
  color: #fff;
  font-size: 14px;
  box-shadow: 0 12px 30px rgba(42, 13, 64, 0.3);
  opacity: 0;
  transform: translate(-50%, 12px);
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
}
.page-toast.is-show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.page-toast button { padding: 0; border: 0; background: none; color: #d8b4fe; font: inherit; font-weight: 700; cursor: pointer; }
.draft-note { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin: 0 0 20px; padding: 12px 14px 12px 16px; border-radius: 14px; background: #fff7e8; box-shadow: inset 0 0 0 1px #f6dcaa; font-size: 14.5px; font-weight: 500; color: var(--ink); }

/* ---------- account area: header menu (js/account.js) ---------- */
.account-menu { position: relative; }
.nav-account { display: inline-flex; align-items: center; gap: 4px; height: 36px; padding: 0 6px 0 4px; border: 0; border-radius: 10px; background: transparent; color: var(--ink); cursor: pointer; }
.nav-account:hover, .nav-account[aria-expanded="true"] { background: #fff; }
.nav-account:focus-visible { outline: 3px solid rgba(143, 51, 232, 0.35); outline-offset: 2px; }
.avatar { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--night); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: 0.02em; }
.avatar svg { width: 17px; height: 17px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; }
.nav-account .chev { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.account-pop { position: absolute; top: calc(100% + 10px); right: -4px; z-index: 20; display: grid; min-width: 230px; padding: 6px; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px var(--line), 0 18px 40px rgba(41, 14, 58, 0.16); }
.account-pop[hidden] { display: none; }
.account-pop-name { margin: 0 0 4px; padding: 8px 10px 10px; border-bottom: 1px solid var(--line); font-size: 14px; font-weight: 600; color: var(--ink); }
.account-pop a, .account-pop button { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 10px; border: 0; border-radius: 9px; background: none; color: var(--text); font: inherit; font-size: 14px; font-weight: 500; text-align: left; text-decoration: none; cursor: pointer; }
.account-pop a:hover, .account-pop button:hover { background: var(--brand-50); color: var(--brand-700); }
.account-pop [data-soon] { color: var(--muted); }

/* ---------- Dashboard (account home) ---------- */
.dash { margin-top: 28px; }
.dash > .mycvs-note { margin-top: 0; }
.dash-hero { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.dash-hero h1 { font-size: clamp(32px, 4vw, 44px); color: var(--ink); }
.dash-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.dash-main, .dash-side { display: grid; gap: 24px; min-width: 0; }
.dash-card { padding: 22px; border-radius: 20px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.dash-card-title { font-size: 20px; color: var(--ink); }
.dash-text { margin-top: 10px; font: 13.5px/1.65 var(--mono); color: var(--text); }
.dash-fine { font: 12.5px/1.5 var(--mono); color: var(--muted); }
.dash-side .dash-fine { margin-top: 10px; text-align: center; }
.dash-link { font-size: 14px; font-weight: 600; color: var(--brand); text-decoration: none; }
.dash-link:hover { text-decoration: underline; }
.dash-link[hidden] { display: none; }
.dash-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.dash-section-head h2 { font-size: 24px; color: var(--ink); }
.dash-count { font-weight: 400; color: var(--muted); }
.dash-subhead { margin: 22px 0 12px; font-size: 16px; font-weight: 600; color: var(--ink); }
.dash-cvs { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.dash-empty { padding: 32px 20px; }
.dash-empty h3 { font-size: 20px; color: var(--ink); }
.dash-empty p { margin-bottom: 0; }

/* the CV in progress + its check */
.dash-continue { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 26px; }
.dash-continue.is-first { grid-template-columns: 1fr; padding: clamp(22px, 3vw, 34px); background: linear-gradient(135deg, var(--brand-50), #fff 70%); }
.continue-thumb { align-self: start; display: block; padding: 16px 16px 0; border-radius: 14px; background: linear-gradient(180deg, #efe9fc, #f7f4fd); }
.continue-thumb .cv-frame { aspect-ratio: 210 / 250; border-radius: 6px 6px 0 0; box-shadow: 0 10px 26px rgba(41, 14, 58, 0.12); transition: transform 0.2s; }
.continue-thumb:hover .cv-frame { transform: translateY(-3px); }
.continue-body { min-width: 0; }
.continue-body .eyebrow { margin-bottom: 6px; }
.continue-title { overflow: hidden; font-size: clamp(22px, 2.4vw, 28px); line-height: 1.2; color: var(--ink); text-overflow: ellipsis; }
.is-first .continue-title { max-width: 20em; }
.continue-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-top: 8px; }
.state-chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.state-chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.state-chip.is-ok { background: #e7f7ee; color: #1d7a46; }
.state-chip.is-warn { background: #fff1dc; color: #a35a00; }
.continue-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 18px; }
.first-steps { display: grid; gap: 10px; margin: 18px 0 4px; padding: 0; list-style: none; counter-reset: step; }
.first-steps li { display: flex; align-items: center; gap: 12px; font-size: 15px; color: var(--text); counter-increment: step; }
.first-steps li::before { content: counter(step); flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; background: var(--brand); color: #fff; font-size: 13px; font-weight: 700; }

.cv-check { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.meter-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.meter-head h3 { font-size: 16px; font-weight: 600; color: var(--ink); }
.meter-label { font-size: 13.5px; color: var(--muted); }
.meter-label b { font-size: 15px; color: var(--ink); }
.meter { height: 8px; margin-top: 10px; overflow: hidden; border-radius: 999px; background: var(--brand-50); }
.meter span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--brand), #b26bf2); transition: width 0.4s; }
.check-all { margin-top: 14px; padding: 10px 12px; border-radius: 12px; background: #e7f7ee; font-size: 14px; line-height: 1.5; color: #155c35; }
.check-list { display: grid; gap: 2px; margin: 12px 0 0; padding: 0; list-style: none; }
.check-item { display: flex; align-items: flex-start; gap: 12px; padding: 9px 0; }
.check-item + .check-item { border-top: 1px solid #f1ecf7; }
.check-ico { flex: none; display: grid; place-items: center; width: 22px; height: 22px; margin-top: 1px; border-radius: 50%; box-shadow: inset 0 0 0 2px #d9cdea; }
.check-item.is-done .check-ico { background: var(--brand); box-shadow: none; }
.check-ico svg { width: 14px; height: 14px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.check-text { flex: 1; display: grid; gap: 2px; min-width: 0; }
.check-text b { font-size: 14.5px; font-weight: 600; color: var(--ink); }
.check-text small { font: 12.5px/1.55 var(--mono); color: var(--muted); }
.check-item.is-done .check-text b { font-weight: 500; color: var(--muted); }
.check-item .cv-act { flex: none; margin: -4px -8px 0 0; color: var(--brand); text-decoration: none; }

/* start a new CV */
.start-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.start-card { display: flex; flex-direction: column; gap: 6px; padding: 18px; border-radius: 18px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); color: var(--text); text-decoration: none; transition: box-shadow 0.15s, transform 0.15s; }
a.start-card:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1.5px var(--brand), 0 12px 26px rgba(41, 14, 58, 0.08); }
a.start-card:focus-visible, .design-pick:focus-visible { outline: 3px solid rgba(143, 51, 232, 0.35); outline-offset: 2px; }
.start-card strong { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: 16px; font-weight: 600; color: var(--ink); }
.start-card > span:last-child { font: 13px/1.55 var(--mono); color: var(--muted); }
.start-card.is-soon { background: #faf8fd; cursor: default; }
.start-card.is-soon .start-icon { background: #efeaf6; }
.start-card.is-soon .start-icon svg { stroke: var(--muted); }
.start-icon { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 6px; border-radius: 12px; background: var(--brand-50); }
.start-icon svg { width: 20px; height: 20px; fill: none; stroke: var(--brand); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.design-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.design-pick { display: block; padding: 14px 14px 0; overflow: hidden; border-radius: 18px; background: linear-gradient(180deg, #efe9fc, #f7f4fd); text-decoration: none; }
.design-pick .cv-frame { aspect-ratio: 210 / 170; border-radius: 6px 6px 0 0; box-shadow: 0 10px 26px rgba(41, 14, 58, 0.12); transition: transform 0.2s; }
.design-pick:hover .cv-frame { transform: translateY(-3px); }
.design-pick > span { display: block; margin: 0 -14px; padding: 10px 14px 12px; background: #fff; box-shadow: inset 0 1px 0 var(--line); font-size: 15px; font-weight: 600; color: var(--ink); }

/* side column */
.pass-state { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 15px; font-weight: 600; color: var(--ink); }
.pass-dot { width: 9px; height: 9px; border-radius: 50%; background: #c9bfd6; }
.pass-list { display: grid; margin: 16px 0; padding: 0; list-style: none; }
.pass-list li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; font-size: 14px; color: var(--text); }
.pass-list li + li { border-top: 1px solid #f1ecf7; }
.pass-list b { color: var(--ink); }
.tip-list { display: grid; gap: 12px; margin: 14px 0 16px; padding: 0; list-style: none; counter-reset: tip; }
.tip-list li { position: relative; padding-left: 34px; font: 13px/1.6 var(--mono); color: var(--text); counter-increment: tip; }
.tip-list li::before { content: counter(tip); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 8px; background: var(--brand-50); color: var(--brand-700); font: 700 12px/1 "Space Grotesk", sans-serif; }
.tip-list b { font-family: "Space Grotesk", sans-serif; font-size: 14px; color: var(--ink); }
.acct-list { display: grid; margin: 10px 0 0; padding: 0; list-style: none; }
.acct-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; }
.acct-list li + li { border-top: 1px solid #f1ecf7; }
.acct-list li > span:first-child { display: grid; gap: 2px; min-width: 0; }
.acct-list b { font-size: 14.5px; font-weight: 600; color: var(--ink); }
.acct-list small { font-size: 12.5px; line-height: 1.4; color: var(--muted); }
.acct-list .cv-act { flex: none; color: var(--brand); box-shadow: inset 0 0 0 1.5px var(--brand-100); }
.acct-list .soon-badge { flex: none; }

@media (max-width: 1000px) {
  .dash-grid { grid-template-columns: 1fr; }
  .dash-side { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
}
@media (max-width: 720px) {
  .dash-continue { grid-template-columns: 1fr; }
  .continue-thumb { display: none; }
  .start-grid { grid-template-columns: 1fr; }
  .design-row { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .design-pick { padding: 10px 10px 0; border-radius: 14px; }
  .design-pick > span { margin: 0 -10px; padding: 8px 10px 10px; font-size: 13.5px; }
}
.account-pop a[aria-current="page"] { background: var(--brand-50); color: var(--brand-700); }

/* the ⋯ menu on a CV card: Rename, Duplicate, Delete (js/account.js) */
.cv-card-actions { flex-wrap: nowrap; justify-content: space-between; }
.cv-more { position: relative; }
.cv-more-btn { display: grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 10px; background: none; color: var(--text); cursor: pointer; }
.cv-more-btn:hover, .cv-more-btn[aria-expanded="true"] { background: var(--brand-50); color: var(--brand-700); }
.cv-more-btn:focus-visible { outline: 3px solid rgba(143, 51, 232, 0.35); outline-offset: 1px; }
.cv-more-btn svg { width: 18px; height: 18px; fill: currentColor; }
.cv-more-pop { position: absolute; right: 0; bottom: calc(100% + 6px); z-index: 5; display: grid; min-width: 150px; padding: 5px; border-radius: 12px; background: #fff; box-shadow: 0 0 0 1px var(--line), 0 14px 32px rgba(41, 14, 58, 0.16); }
.cv-more-pop[hidden] { display: none; }
.cv-more-pop button, .cv-more-pop a { padding: 8px 10px; text-decoration: none; border: 0; border-radius: 8px; background: none; color: var(--text); font: inherit; font-size: 14px; font-weight: 500; text-align: left; cursor: pointer; }
.cv-more-pop button:hover, .cv-more-pop button:focus-visible, .cv-more-pop a:hover, .cv-more-pop a:focus-visible { background: var(--brand-50); color: var(--brand-700); outline: none; }
.cv-more-pop .is-danger:hover, .cv-more-pop .is-danger:focus-visible { background: #fde8ef; color: #c2255c; }

/* phones: CV cards two by two (Dashboard shows the latest two, "See all" has the rest) */
@media (max-width: 560px) {
  .cv-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .cv-card { border-radius: 16px; }
  .cv-card-thumb { padding: 10px 10px 0; }
  .cv-card-body { padding: 12px 12px 12px; }
  .cv-card-title { font-size: 15px; }
  .cv-card-meta { font-size: 12px; }
  .cv-card-actions { margin-top: 8px; }
  .cv-card-new { min-height: 200px; }
  .dash-cvs .cv-card:nth-child(n + 3) { display: none; }
  .mycvs-empty { grid-column: 1 / -1; }
}

/* ---------- Tailor to a job (/tailor, js/tailor.js) ---------- */
.tl { margin-top: 28px; }
.tl-hero { max-width: 760px; margin-bottom: 24px; }
.tl-hero h1 { font-size: clamp(30px, 4vw, 44px); color: var(--ink); }
.tl-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 24px; align-items: start; }
.tl-form { display: grid; gap: 16px; }
.tl-field { display: grid; gap: 6px; min-width: 0; }
.tl-label { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.tl-label small { font-weight: 400; color: var(--muted); }
.tl-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tl-field input, .tl-field select, .tl-field textarea {
  width: 100%;
  min-width: 0;
  border: 0;
  border-radius: 12px;
  background: #fff;
  box-shadow: inset 0 0 0 1.5px var(--line);
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  outline: none;
}
.tl-field input, .tl-field select { height: 46px; padding: 0 14px; }
.tl-field textarea { min-height: 260px; padding: 12px 14px; line-height: 1.55; resize: vertical; }
.tl-field input::placeholder, .tl-field textarea::placeholder { color: #a79cb3; }
.tl-field input:focus, .tl-field select:focus, .tl-field textarea:focus { box-shadow: inset 0 0 0 2px var(--brand), 0 0 0 4px rgba(143, 51, 232, 0.14); }
.tl-error { margin: -4px 0 0; font-size: 13.5px; font-weight: 500; color: #c2255c; }
.tl-error[hidden] { display: none; }
.tl-private { display: flex; align-items: center; gap: 8px; margin: -4px 0 0; font-size: 13px; color: var(--muted); }
.tl-private svg { flex: none; width: 16px; height: 16px; fill: none; stroke: var(--brand); stroke-width: 2; stroke-linecap: round; }
.tl-form.is-empty .tl-field, .tl-form.is-empty .btn { opacity: 0.55; pointer-events: none; }

.tl-result { position: sticky; top: 92px; min-height: 320px; }
.tl-empty h2 { font-size: 22px; color: var(--ink); }
.tl-empty p { margin: 10px 0 18px; font: 14px/1.65 var(--mono); color: var(--muted); }
.tl-score { display: flex; align-items: center; gap: 20px; }
.tl-score h2 { font-size: 24px; line-height: 1.2; color: var(--ink); }
.tl-score .eyebrow { margin-bottom: 4px; }
.tl-sub { margin-top: 6px; font-size: 14.5px; color: var(--text); }
.tl-ring {
  flex: none;
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: radial-gradient(closest-side, #fff 76%, transparent 77% 100%), conic-gradient(var(--brand) calc(var(--p) * 1%), var(--brand-50) 0);
}
.tl-ring b { font-size: 22px; font-weight: 700; color: var(--ink); }
.tl-checks { display: grid; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.tl-checks li { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border-radius: 12px; font-size: 14px; line-height: 1.5; color: var(--text); }
.tl-checks li.is-ok { background: #e7f7ee; }
.tl-checks li.is-miss { background: #fff4e5; }
.tl-checks svg { flex: none; width: 20px; height: 20px; padding: 3px; border-radius: 50%; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.tl-checks .is-ok svg { background: #1d9a57; }
.tl-checks .is-miss svg { background: #e8850c; }
.tl-h { display: flex; align-items: center; gap: 8px; margin: 22px 0 10px; font-size: 16px; font-weight: 600; color: var(--ink); }
.tl-h span { padding: 1px 8px; border-radius: 999px; background: var(--brand-50); font-size: 12.5px; color: var(--brand-700); }
.tl-group + .tl-group { margin-top: 14px; }
.tl-group h4 { margin: 0 0 8px; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.tl-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.tl-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; font-size: 13.5px; font-weight: 500; line-height: 1.3; }
.tl-chip.is-miss { background: #fff4e5; box-shadow: inset 0 0 0 1px #f6d4a3; color: #8a4a00; }
.tl-chip.is-found { background: #e7f7ee; color: #156b3b; }
.tl-chip.is-found::before { content: ""; width: 10px; height: 10px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m5 12 5 5 9-10' fill='none' stroke='%231d9a57' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.tl-hint { margin-top: 6px; font: 12.5px/1.55 var(--mono); color: var(--muted); }
.tl-honest { margin-top: 20px; padding: 12px 14px; border-radius: 12px; background: var(--brand-50); font-size: 14px; line-height: 1.5; color: var(--text); }
.tl-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.tl-actions + .dash-fine { margin-top: 10px; }

@media (max-width: 900px) {
  .tl-grid { grid-template-columns: 1fr; }
  .tl-result { position: static; min-height: 0; }
}
@media (max-width: 480px) {
  .tl-row { grid-template-columns: 1fr; }
  .tl-score { gap: 14px; }
  .tl-ring { width: 76px; height: 76px; }
  .tl-ring b { font-size: 18px; }
  .tl-actions .btn { width: 100%; }
}
.cv-more-pop { min-width: 170px; }
.dash-tailor { background: linear-gradient(135deg, var(--brand-50), #fff 75%); }
.dash-tailor .start-icon { margin-bottom: 12px; }
.dash-tailor .dash-text { margin-bottom: 14px; }
