/* RGAB CV Builder: the page (/resume-builder/, assets/js/cv-builder.js; the CV designs themselves are in cv-templates.css).
   Loaded only by that page, after rgab.css, and uses its tokens (navy, charcoal, gold, gold-text, porcelain, soft-white, sand). No inline style, no
   image file, no font or script of any other site.

   Design: a navy hero with a paper stack that fans out and writes itself, a white step panel with a progress ring beside a live A4 preview, rounded
   cards, gold used for fills and lines and its darker shade (--gold-text) for any text on light backgrounds.

   Motion (all CSS, 0.2 to 0.5 s, nothing loops except the soft sparkle in the hero and the shimmer while something is loading): steps slide in, the
   progress ring and the strength ring fill, chips and ideas pop, template cards tilt (the tilt itself is set by the script) and lift, the preview
   fades between designs, the success check draws itself with a few dots rising around it. Under prefers-reduced-motion every animation and
   transition is off (see the block at the end of the motion section) and nothing depends on motion to be understood. Focus rings are never removed. */

.cv-app { --cv-line: rgba(27, 42, 75, 0.14); --cv-card: #FFFFFF; --cv-err: #B3261E; --cv-ok: #1F6B4A; }
/* the site header is sticky: whatever takes focus must come to rest below it (and below the Edit / Preview bar on phones), never behind it */
.cv-app a, .cv-app button, .cv-app input, .cv-app select, .cv-app textarea, .cv-app summary, .cv-app [tabindex] { scroll-margin-top: 150px; scroll-margin-bottom: 24px; }
/* the site gives every <section> 80 px of padding; the builder sets its own */
.cv-app section { padding: 0; }
.cv-app .cv-hero { padding: 56px 0 64px; }
.cv-app .cv-work { padding: 28px 0 56px; }
.cv-app .cv-faq { padding: 8px 0 56px; }

/* ------------------------------------------------------------------ hero */
.cv-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 420px at 85% 20%, rgba(215, 184, 94, 0.18), rgba(215, 184, 94, 0) 60%),
    radial-gradient(700px 360px at 0% 100%, rgba(255, 253, 248, 0.07), rgba(255, 253, 248, 0) 60%),
    var(--navy);
  color: var(--soft-white);
  padding: 56px 0 64px;
}
.cv-hero-grid { display: grid; gap: 40px; align-items: center; grid-template-columns: minmax(0, 1fr); }
.cv-hero .eyebrow { color: var(--gold); }
.cv-hero h1 { color: var(--soft-white); font-size: clamp(2rem, 4.6vw, 3.4rem); max-width: 16ch; margin-bottom: 0.45em; }
.cv-lede { max-width: 54ch; font-size: 1.05rem; opacity: 0.94; }
.cv-promises { list-style: none; margin: 0 0 1.6rem; padding: 0; display: grid; gap: 8px; max-width: 54ch; }
.cv-promises li { position: relative; padding-left: 28px; font-size: 0.95rem; }
.cv-promises li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 0.45em;
  width: 12px;
  height: 7px;
  border-left: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  transform: rotate(-45deg);
}
.cv-hero-cta { min-width: 12rem; text-align: center; box-shadow: 0 10px 24px rgba(11, 17, 30, 0.35); }
.cv-hero-cta:focus-visible { box-shadow: 0 0 0 2px var(--soft-white); outline-color: var(--soft-white); }

.cv-hero-art { position: relative; justify-self: center; width: min(320px, 78vw); aspect-ratio: 3 / 4; }
.cv-paper {
  position: absolute;
  inset: 0;
  border-radius: 10px;
  background: var(--soft-white);
  box-shadow: 0 24px 50px rgba(5, 9, 18, 0.45);
}
.cv-paper-3 { background: #E9E2CF; transform: rotate(9deg) translate(10%, 2%); }
.cv-paper-2 { background: #F3EEDF; transform: rotate(-7deg) translate(-8%, 1%); }
.cv-paper-1 { padding: 11% 10%; transform: rotate(0.5deg); }
.cv-p-photo { position: absolute; right: 10%; top: 9%; width: 20%; aspect-ratio: 1; border-radius: 50%; background: var(--gold); }
.cv-p-line { display: block; height: 7px; border-radius: 4px; background: rgba(27, 42, 75, 0.16); margin-bottom: 9px; transform-origin: left center; }
.cv-p-name { width: 52%; height: 12px; background: var(--navy); margin-bottom: 8px; }
.cv-p-sub { width: 36%; background: rgba(129, 110, 56, 0.55); margin-bottom: 14px; }
.cv-p-rule { display: block; height: 2px; width: 100%; background: var(--gold); margin-bottom: 14px; transform-origin: left center; }
.cv-p-l1 { width: 92%; }
.cv-p-l2 { width: 84%; }
.cv-p-l3 { width: 96%; }
.cv-p-l4 { width: 70%; }
.cv-p-l5 { width: 88%; }
.cv-p-seal {
  position: absolute;
  right: 8%;
  bottom: 7%;
  width: 22%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--navy);
  box-shadow: 0 0 0 4px rgba(215, 184, 94, 0.55);
}
.cv-p-seal::after {
  content: '';
  position: absolute;
  left: 30%;
  top: 31%;
  width: 40%;
  height: 22%;
  border-left: 3px solid var(--gold);
  border-bottom: 3px solid var(--gold);
  transform: rotate(-45deg);
}
.cv-spark { position: absolute; width: 10px; height: 10px; background: var(--gold); transform: rotate(45deg); opacity: 0.8; }
.cv-spark-1 { left: -6%; top: 14%; }
.cv-spark-2 { right: -8%; top: 48%; width: 7px; height: 7px; }
.cv-spark-3 { left: 6%; bottom: -3%; width: 8px; height: 8px; }

/* ------------------------------------------------------------------ work area */
.cv-work { padding: 28px 0 56px; }
.cv-mobile-tabs { display: none; gap: 0; margin: 0 0 14px; padding: 4px; border-radius: 12px; background: #FFFFFF; border: 1px solid var(--cv-line); }
.cv-tab {
  flex: 1;
  min-height: 44px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  font: inherit;
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.cv-tab.is-on { background: var(--navy); color: var(--soft-white); }

.cv-layout { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); align-items: start; }
.cv-edit {
  min-width: 0;
  background: var(--cv-card);
  border: 1px solid var(--cv-line);
  border-top: 4px solid var(--gold);
  border-radius: 16px;
  padding: 20px 18px 22px;
  box-shadow: 0 10px 30px rgba(27, 42, 75, 0.07);
}

/* stepper: progress ring, step name, strength badge */
.cv-stepper { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.cv-ring { position: relative; flex: 0 0 auto; width: 64px; height: 64px; }
.cv-ring svg, .cv-meter svg { display: block; width: 100%; height: 100%; }
.cv-ring-track { fill: none; stroke: rgba(27, 42, 75, 0.12); stroke-width: 6; }
.cv-ring-bar, .cv-meter-bar { fill: none; stroke: var(--navy); stroke-width: 6; stroke-linecap: round; stroke-dasharray: 163.4; stroke-dashoffset: 163.4; transition: stroke-dashoffset 0.45s cubic-bezier(0.2, 0.8, 0.2, 1); }
.cv-meter-bar { stroke: var(--gold-text); }
.cv-ring-pct, .cv-meter-num { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 0.82rem; color: var(--navy); }
.cv-stepper-text { min-width: 0; flex: 1; }
.cv-stepper-count { margin: 0; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.04em; color: var(--charcoal); }
.cv-stepper-name { margin: 2px 0 0; font-family: var(--font-headline); font-size: 1.25rem; line-height: 1.2; color: var(--navy); }
.cv-mini-strength {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 64px;
  min-height: 44px;
  padding: 6px 10px;
  border: 1px solid var(--cv-line);
  border-radius: 12px;
  background: var(--porcelain);
  font: inherit;
  color: var(--navy);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.cv-mini-strength:hover { background: var(--sand); transform: translateY(-1px); }
.cv-mini-label { font-size: 0.62rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--charcoal); }
.cv-mini-num { font-size: 1.15rem; font-weight: 800; line-height: 1.1; }

.cv-steps { margin: 0 -8px 12px; }
.cv-step-list { display: flex; gap: 8px; list-style: none; margin: 0; padding: 8px 8px 10px; overflow-x: auto; scrollbar-width: thin; }
.cv-step-pill-wrap { flex: 0 0 auto; }
.cv-step-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 4px 12px 4px 6px;
  border: 1px solid var(--cv-line);
  border-radius: 99px;
  background: #FFFFFF;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--navy);
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.cv-step-pill:disabled { cursor: default; opacity: 0.55; }
.cv-step-pill:not(:disabled):hover { border-color: var(--navy); transform: translateY(-1px); }
.cv-step-pill-n { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: var(--porcelain); font-size: 0.75rem; }
.cv-step-pill.is-done .cv-step-pill-n { background: var(--gold); }
.cv-step-pill.is-current { background: var(--navy); border-color: var(--navy); color: var(--soft-white); }
.cv-step-pill.is-current .cv-step-pill-n { background: var(--gold); color: var(--navy); }

/* a step */
.cv-step { min-width: 0; }
.cv-step-title { font-size: clamp(1.45rem, 3vw, 1.9rem); margin-bottom: 0.25em; outline-offset: 4px; }
.cv-step-lead { color: var(--charcoal); margin-bottom: 1.2rem; }
.cv-group { margin-bottom: 1.4rem; }
.cv-group-title { font-size: 1.1rem; margin: 1.2rem 0 0.35rem; }
.cv-row { display: grid; gap: 0 16px; grid-template-columns: minmax(0, 1fr); }
.cv-field { min-width: 0; margin-bottom: 4px; }
.cv-field .field-input { margin-bottom: 6px; min-height: 46px; }
.cv-field .field-hint { margin: 0 0 8px; }
.cv-req { color: var(--cv-err); font-weight: 800; }
.cv-err { min-height: 0; margin: 0 0 8px; font-size: 0.82rem; font-weight: 700; color: var(--cv-err); }
.cv-err:empty { display: none; }
.cv-field [aria-invalid="true"], .cv-field [aria-invalid="true"].field-input { border-color: var(--cv-err); }
.cv-textarea { min-height: 9rem; resize: vertical; line-height: 1.5; }
.cv-inline { display: flex; gap: 10px; align-items: flex-start; }
.cv-inline .field-input { flex: 1 1 auto; min-width: 0; }
.cv-inline .btn { flex: 0 0 auto; min-height: 46px; padding-top: 12px; padding-bottom: 12px; }
.cv-phone { display: block; }
.cv-phone .rgab-geo-phone { margin-bottom: 6px; }
.cv-phone select, .cv-phone input[type="tel"] { min-height: 46px; padding: 8px 12px; border: 1px solid rgba(27, 42, 75, 0.18); border-radius: 8px; background: #FFFFFF; font-family: inherit; font-size: 0.95rem; color: var(--dark-text, #181B20); }
.cv-phone .rgab-geo-num { flex: 1 1 10rem; min-width: 0; }

/* the first step */
.cv-draft { margin: 0 0 1.2rem; padding: 14px 16px; border-radius: 12px; background: var(--sand); border: 1px solid rgba(129, 110, 56, 0.3); }
.cv-draft[hidden] { display: none; }
.cv-draft-text { margin: 0 0 10px; }
.cv-draft-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cv-draft-actions .btn { padding: 11px 20px; }
.cv-ask { margin: 0 0 1.2rem; padding: 0; border: 0; min-width: 0; }
.cv-ask legend { padding: 0; margin-bottom: 10px; font-family: var(--font-headline); font-size: 1.35rem; font-weight: 600; color: var(--navy); }
.cv-choices { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
.cv-choice { position: relative; display: block; cursor: pointer; }
.cv-choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.cv-choice-box {
  position: relative;
  display: block;
  min-height: 84px;
  padding: 14px 16px 14px 56px;
  border: 2px solid var(--cv-line);
  border-radius: 14px;
  background: #FFFFFF;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.cv-choice-box strong { display: block; font-size: 1.05rem; color: var(--navy); }
.cv-choice-box > span:not(.cv-choice-tick) { display: block; color: var(--charcoal); font-size: 0.9rem; }
.cv-choice-tick { position: absolute; left: 16px; top: 18px; width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--navy); background: #FFFFFF; transition: background 0.2s ease; }
.cv-choice-tick::after {
  content: '';
  position: absolute;
  left: 6px;
  top: 6px;
  width: 10px;
  height: 5px;
  border-left: 2.5px solid var(--navy);
  border-bottom: 2.5px solid var(--navy);
  transform: rotate(-45deg) scale(0);
  transition: transform 0.2s ease;
}
.cv-choice:hover .cv-choice-box { border-color: var(--navy); transform: translateY(-2px); box-shadow: 0 10px 22px rgba(27, 42, 75, 0.1); }
.cv-choice input:checked + .cv-choice-box { border-color: var(--navy); background: var(--sand); }
.cv-choice input:checked + .cv-choice-box .cv-choice-tick { background: var(--gold); }
.cv-choice input:checked + .cv-choice-box .cv-choice-tick::after { transform: rotate(-45deg) scale(1); }
.cv-choice input:focus-visible + .cv-choice-box { outline: 2px solid var(--midnight); outline-offset: 2px; box-shadow: 0 0 0 2px var(--soft-white); }

.cv-tiles { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); margin-bottom: 8px; border-radius: 16px; transition: box-shadow 0.2s ease; }
.cv-tiles.is-drop { box-shadow: 0 0 0 3px var(--gold); }
.cv-tile {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  grid-template-areas: 'icon title' 'icon text';
  column-gap: 14px;
  align-items: center;
  text-align: left;
  min-height: 84px;
  padding: 14px 16px;
  border: 2px solid var(--navy);
  border-radius: 14px;
  background: var(--navy);
  color: var(--soft-white);
  font: inherit;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.cv-tile + .cv-tile, .cv-tile:nth-of-type(2) { background: #FFFFFF; color: var(--navy); }
.cv-tile:hover { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(27, 42, 75, 0.2); }
.cv-tile:active { transform: translateY(0) scale(0.99); }
.cv-tile-icon { grid-area: icon; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border-radius: 12px; background: var(--gold); color: var(--navy); }
.cv-tile-icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cv-tile-title { grid-area: title; font-weight: 800; font-size: 1.02rem; }
.cv-tile-text { grid-area: text; font-size: 0.86rem; opacity: 0.92; }
.cv-file-input { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }
.cv-privacy-line { margin: 10px 0 0; }
.cv-import { margin-top: 12px; }
.cv-import-card { padding: 12px 14px; border-radius: 12px; border: 1px solid var(--cv-line); background: var(--porcelain); }
.cv-import-card.is-error { border-color: var(--cv-err); background: #FFF6F5; }
.cv-import-card.is-ok { border-color: var(--cv-ok); }
.cv-import-text { margin: 0; font-weight: 600; }
.cv-import-extra { margin: 6px 0 0; font-size: 0.88rem; }
.cv-bar { display: block; height: 6px; margin-top: 10px; overflow: hidden; border-radius: 4px; background: rgba(27, 42, 75, 0.12); }
.cv-bar i { display: block; width: 40%; height: 100%; border-radius: 4px; background: var(--navy); }

.cv-banner { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 14px; padding: 12px 14px; border-radius: 12px; background: var(--sand); border: 1px solid rgba(129, 110, 56, 0.3); }
.cv-banner-text { margin: 0; flex: 1; font-size: 0.9rem; }
.cv-banner-close { flex: 0 0 auto; width: 44px; height: 44px; margin: -8px -8px -8px 0; display: inline-flex; align-items: center; justify-content: center; border: 0; background: transparent; color: var(--navy); cursor: pointer; border-radius: 8px; }

/* chips */
.cv-chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0 0 14px; padding: 0; }
.cv-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 40px;
  padding: 4px 6px 4px 14px;
  border-radius: 99px;
  border: 1px solid var(--navy);
  background: #FFFFFF;
  color: var(--navy);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
}
.cv-chip-text { min-width: 0; overflow-wrap: anywhere; }
.cv-chip-x, .cv-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: -4px -6px -4px 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--navy);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.cv-chip-x:hover, .cv-icon-btn:hover:not(:disabled) { background: rgba(27, 42, 75, 0.1); }
.cv-icon-btn { margin: 0; border-radius: 10px; border: 1px solid var(--cv-line); background: #FFFFFF; }
.cv-icon-btn:disabled { opacity: 0.35; cursor: default; }
.cv-icon-btn.is-danger { color: var(--cv-err); }
.cv-icon-btn:active:not(:disabled) { transform: scale(0.94); }
.cv-ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.cv-chip-add { padding: 4px 14px 4px 8px; border-style: dashed; cursor: pointer; transition: background 0.2s ease, transform 0.2s ease; }
.cv-chip-add:hover { background: var(--sand); transform: translateY(-1px); }
.cv-chip-add.is-popped { transform: scale(1.12); background: var(--gold); }
.cv-idea-mark { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 24px; height: 24px; border-radius: 50%; background: var(--gold); color: var(--navy); }
.cv-idea-mark .cv-ic { width: 14px; height: 14px; stroke-width: 3; }
.cv-tips { margin: 0 0 1rem; padding: 10px 14px; border-radius: 12px; background: var(--porcelain); border: 1px solid var(--cv-line); }
.cv-tips summary { cursor: pointer; font-weight: 700; padding: 6px 0; min-height: 32px; }
.cv-tips ul { margin: 6px 0 4px; padding-left: 1.2rem; }
.cv-tips li { margin-bottom: 6px; font-size: 0.92rem; }

/* cards in a list (jobs, education, languages) */
.cv-list { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 14px; }
.cv-card { position: relative; padding: 14px 14px 12px; border: 1px solid var(--cv-line); border-radius: 14px; background: #FFFFFF; transition: box-shadow 0.2s ease, border-color 0.2s ease, opacity 0.2s ease; }
.cv-card.is-dragging { box-shadow: 0 16px 32px rgba(27, 42, 75, 0.22); border-color: var(--gold-text); opacity: 0.94; z-index: 2; }
.cv-card-head { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.cv-card-title { flex: 1; min-width: 0; margin: 0; font-family: var(--font-body); font-size: 1rem; font-weight: 800; letter-spacing: 0; overflow-wrap: anywhere; }
.cv-card-sub { font-weight: 600; color: var(--charcoal); }
.cv-card-tools { display: flex; gap: 6px; }
.cv-handle { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 44px; color: var(--charcoal); cursor: grab; touch-action: none; border-radius: 8px; }
.cv-handle:hover { background: var(--porcelain); }
.cv-handle .cv-ic { stroke-width: 3; }
.cv-bullets-set { margin: 0 0 8px; padding: 0; border: 0; min-width: 0; }
.cv-bullets-set legend { padding: 0; margin-bottom: 6px; font-weight: 700; font-size: 0.85rem; }
.cv-bullet-list { list-style: none; margin: 0 0 6px; padding: 0; }
.cv-bullet-line { display: flex; gap: 8px; align-items: center; }
.cv-bullet-line .field-input { margin-bottom: 4px; flex: 1; min-width: 0; }
.cv-bullet-hint { min-height: 0; margin: 0 0 8px; font-size: 0.8rem; color: var(--gold-text); font-weight: 600; }
.cv-bullet-hint:empty { display: none; }
.cv-link-btn { display: inline-block; min-height: 44px; padding: 8px 4px; border: 0; background: transparent; color: var(--navy); font: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; text-align: left; }
.cv-link-btn:hover:not(:disabled) { color: var(--gold-text); }
.cv-link-btn:disabled { opacity: 0.45; cursor: default; text-decoration: none; }
.cv-current { margin: 0 0 10px; min-height: 44px; align-items: center; }
.cv-current input { width: 20px; height: 20px; }
.cv-ideas { margin-top: 6px; border-top: 1px dashed var(--cv-line); padding-top: 6px; }
.cv-ideas summary { cursor: pointer; font-weight: 700; font-size: 0.9rem; min-height: 44px; display: flex; align-items: center; }
.cv-ideas-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.cv-idea {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--cv-line);
  border-radius: 12px;
  background: var(--porcelain);
  font: inherit;
  font-size: 0.88rem;
  text-align: left;
  color: var(--navy);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.cv-idea:hover { background: var(--sand); transform: translateX(3px); }
.cv-idea.is-added { background: #FFFFFF; border-color: var(--cv-ok); cursor: default; }
.cv-idea.is-added .cv-idea-mark { background: var(--cv-ok); color: #FFFFFF; }
.cv-idea-text { min-width: 0; overflow-wrap: anywhere; }
.cv-add { margin-top: 2px; }
.cv-undo { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; padding: 4px 8px 4px 14px; border-radius: 12px; background: var(--navy); color: var(--soft-white); }
.cv-undo-text { flex: 1; font-size: 0.9rem; }
.cv-undo-btn { min-height: 44px; padding: 6px 14px; border: 0; background: transparent; color: var(--gold); font: inherit; font-weight: 800; text-decoration: underline; cursor: pointer; }
.cv-card-slim { padding: 10px 12px; }
.cv-lang-row { display: grid; gap: 4px 14px; grid-template-columns: minmax(0, 1fr); align-items: end; }
.cv-lang-row .cv-icon-btn { justify-self: end; }
.cv-simple-row { display: flex; gap: 10px; align-items: flex-end; }
.cv-simple-row .cv-field { flex: 1; min-width: 0; }
.cv-levels { margin: 0 0 6px; padding: 0; border: 0; min-width: 0; }
.cv-levels legend { padding: 0; margin-bottom: 6px; font-weight: 700; font-size: 0.85rem; }
.cv-seg { display: flex; flex-wrap: wrap; gap: 6px; }
.cv-seg-opt { position: relative; display: block; }
.cv-seg-opt input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.cv-seg-opt span { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 4px 16px; border: 1px solid var(--navy); border-radius: 99px; background: #FFFFFF; font-weight: 700; font-size: 0.86rem; transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease; }
.cv-seg-opt:hover span { background: var(--sand); }
.cv-seg-opt input:checked + span { background: var(--navy); color: var(--soft-white); }
.cv-seg-opt input:focus-visible + span { outline: 2px solid var(--midnight); outline-offset: 2px; box-shadow: 0 0 0 2px var(--soft-white); }

/* design step */
.cv-gallery-set { margin: 0 0 16px; padding: 0; border: 0; min-width: 0; }
.cv-gallery { --ts: 0.2; display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); perspective: 900px; }
.cv-tcard {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 10px 12px;
  border: 2px solid var(--cv-line);
  border-radius: 14px;
  background: #FFFFFF;
  cursor: pointer;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.18s ease-out, box-shadow 0.2s ease, border-color 0.2s ease;
}
.cv-tcard input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 2; }
.cv-tcard:hover { border-color: var(--navy); box-shadow: 0 14px 28px rgba(27, 42, 75, 0.16); }
.cv-tcard.is-on { border-color: var(--gold-text); box-shadow: 0 0 0 3px var(--gold), 0 14px 28px rgba(27, 42, 75, 0.16); }
.cv-tcard:focus-within { outline: 2px solid var(--midnight); outline-offset: 3px; }
.cv-thumb { position: relative; display: block; width: 100%; aspect-ratio: 210 / 297; overflow: hidden; border: 1px solid var(--cv-line); border-radius: 6px; background: #FFFFFF; }
.cv-thumb .cv-sheet { position: absolute; left: 0; top: 0; transform: scale(var(--ts, 0.2)); transform-origin: 0 0; pointer-events: none; }
.cv-thumb .cv-sheet::after { display: none; }
.cv-tcard-name { font-weight: 800; font-size: 1rem; }
.cv-tcard-advice { font-size: 0.8rem; color: var(--charcoal); line-height: 1.4; }
.cv-badge { align-self: flex-start; display: inline-block; padding: 2px 10px; border-radius: 99px; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; }
.cv-badge.is-ats { background: var(--navy); color: var(--soft-white); }
.cv-badge.is-designer { background: var(--sand); color: var(--navy); border: 1px solid rgba(129, 110, 56, 0.55); }
.cv-tcard.is-on::after { content: ''; position: absolute; right: 12px; top: 12px; width: 26px; height: 26px; border-radius: 50%; background: var(--gold) no-repeat center; box-shadow: 0 2px 6px rgba(11, 17, 30, 0.3); }
.cv-tcard.is-on::before { content: ''; position: absolute; right: 21px; top: 20px; width: 9px; height: 5px; border-left: 2.5px solid var(--navy); border-bottom: 2.5px solid var(--navy); transform: rotate(-45deg); z-index: 1; }
.cv-design-controls { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); margin-bottom: 14px; }
.cv-opt { margin: 0; padding: 0; border: 0; min-width: 0; }
.cv-opt legend { padding: 0; margin-bottom: 6px; font-weight: 800; font-size: 0.9rem; }
.cv-swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.cv-swatch { position: relative; display: block; }
.cv-swatch input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.cv-swatch-dot { display: block; width: 44px; height: 44px; border-radius: 50%; border: 3px solid #FFFFFF; box-shadow: 0 0 0 1px var(--cv-line); transition: transform 0.2s ease, box-shadow 0.2s ease; }
.cv-swatch-name { position: absolute; left: 0; top: 0; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
.cv-swatch:hover .cv-swatch-dot { transform: scale(1.08); }
.cv-swatch input:checked + .cv-swatch-dot { box-shadow: 0 0 0 3px var(--navy); transform: scale(1.04); }
.cv-swatch input:focus-visible + .cv-swatch-dot { outline: 2px solid var(--midnight); outline-offset: 4px; }
.cv-sw-navy { background: #1B2A4A; }
.cv-sw-charcoal { background: #545454; }
.cv-sw-gold { background: #D7B85D; }
.cv-sw-bronze { background: #816E38; }
.cv-sw-midnight { background: #121B31; }
.cv-photo-box { margin: 0 0 8px; padding: 4px 14px 10px; border: 1px solid var(--cv-line); border-radius: 14px; background: var(--porcelain); }
.cv-photo-box.is-muted .cv-group-title::after { content: ' (not used by the design you picked)'; font-family: var(--font-body); font-size: 0.8rem; font-weight: 600; color: var(--charcoal); }
.cv-photo-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.cv-photo-actions .btn { padding: 11px 20px; }
.cv-photo-thumb { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 3px solid var(--gold); }
.cv-photo-thumb[hidden] { display: none; }
.cv-sections { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 8px; }
.cv-sec-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; padding: 4px 8px; border: 1px solid var(--cv-line); border-radius: 12px; background: #FFFFFF; transition: box-shadow 0.2s ease; }
.cv-sec-row.is-dragging { box-shadow: 0 14px 28px rgba(27, 42, 75, 0.22); border-color: var(--gold-text); }
.cv-sec-name { flex: 1 1 7rem; min-width: 0; font-weight: 700; }
.cv-switch { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 0.8rem; font-weight: 700; color: var(--charcoal); cursor: pointer; }
.cv-switch input { width: 22px; height: 22px; }

/* last step */
.cv-dl { margin: 0 0 6px; }
.cv-dl-row { display: grid; gap: 2px 14px; grid-template-columns: minmax(0, 1fr); padding: 8px 0; border-bottom: 1px solid var(--cv-line); }
.cv-dl dt { font-size: 0.78rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: var(--charcoal); }
.cv-dl dd { margin: 0; overflow-wrap: anywhere; }
.cv-dl dd.is-missing { color: var(--cv-err); font-weight: 700; }
.cv-problems { margin: 14px 0; padding: 12px 14px; border: 2px solid var(--cv-err); border-radius: 12px; background: #FFF6F5; }
.cv-problems[hidden] { display: none; }
.cv-problems-title { font-family: var(--font-body); font-size: 1rem; margin: 0 0 6px; color: var(--cv-err); }
.cv-problems-list { margin: 0; padding-left: 1.1rem; }
.cv-consents { margin: 16px 0 12px; padding: 12px 14px; border: 1px solid var(--cv-line); border-radius: 12px; min-width: 0; background: var(--porcelain); }
.cv-consents legend { padding: 0 6px; font-weight: 800; }
.cv-consent { margin: 6px 0; min-height: 44px; align-items: flex-start; font-size: 0.9rem; }
.cv-consent input { width: 22px; height: 22px; flex: 0 0 auto; margin-top: 0; }
.cv-share-hint { margin: 4px 0 0; }
.cv-get-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 14px; }
.cv-get-actions [hidden] { display: none; }
.cv-download { min-width: 15rem; text-align: center; transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease; }
.cv-download:hover { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(27, 42, 75, 0.22); opacity: 1; }
.cv-download[aria-busy="true"] { cursor: progress; }
.cv-print-note { margin: 10px 0 0; font-size: 0.85rem; color: var(--charcoal); }
.cv-result { margin-top: 16px; outline: none; }
.cv-result:focus-visible { outline: 3px solid var(--navy); outline-offset: 4px; border-radius: 14px; }
.cv-result-card { position: relative; overflow: hidden; padding: 16px; border: 1px solid var(--cv-line); border-radius: 14px; background: #FFFFFF; }
.cv-result-card.is-success { border-color: var(--cv-ok); }
.cv-result-card.is-error { border-color: var(--cv-err); background: #FFF6F5; }
.cv-result-title { font-size: 1.25rem; margin-bottom: 0.4em; }
.cv-result-note { font-size: 0.88rem; color: var(--charcoal); }
.cv-celebrate { position: relative; width: 72px; height: 72px; margin: 0 0 8px; }
.cv-celebrate-svg { width: 72px; height: 72px; overflow: visible; }
.cv-celebrate-ring { fill: var(--sand); stroke: var(--gold); stroke-width: 2.5; }
.cv-celebrate-check { fill: none; stroke: var(--cv-ok); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 0; }
.cv-confetti { position: absolute; left: 50%; top: 50%; width: 7px; height: 7px; margin: -3px 0 0 -3px; border-radius: 2px; opacity: 0; background: var(--gold); }
.cv-confetti:nth-child(3n) { background: var(--navy); }
.cv-confetti:nth-child(3n + 1) { background: var(--gold-text); }
.cv-ref { display: grid; gap: 4px; max-width: 24rem; margin: 10px 0; }
.cv-ref-label { font-weight: 800; font-size: 0.85rem; }
.cv-ref-input { width: 100%; padding: 12px 14px; border: 2px dashed var(--navy); border-radius: 10px; background: var(--porcelain); font: inherit; font-weight: 800; font-size: 1.15rem; letter-spacing: 0.06em; color: var(--navy); }
.cv-offer { margin-top: 14px; padding: 14px; border-radius: 12px; background: var(--navy); color: var(--soft-white); }
.cv-offer-title { font-family: var(--font-headline); font-size: 1.15rem; color: var(--soft-white); margin: 0 0 6px; }
.cv-offer p { font-size: 0.9rem; }
.cv-offer-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cv-offer .btn-secondary.on-light { background: transparent; color: var(--soft-white); border: 1px solid var(--soft-white); }
.cv-nav { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--cv-line); }
.cv-nav[hidden], .cv-nav [hidden] { display: none; }
.cv-nav .btn { padding: 13px 22px; transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease; }
.cv-nav .btn:hover { transform: translateY(-1px); }
.cv-nav #cv-next { margin-left: auto; }
.cv-app .btn { max-width: 100%; }
.cv-app button.btn { font-family: var(--font-body); }

/* ------------------------------------------------------------------ preview pane and strength */
.cv-preview { min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.cv-strength { border: 1px solid var(--cv-line); border-radius: 16px; background: #FFFFFF; padding: 14px 16px; box-shadow: 0 10px 30px rgba(27, 42, 75, 0.07); }
.cv-strength-head { display: flex; align-items: center; gap: 14px; }
.cv-meter { position: relative; flex: 0 0 auto; width: 64px; height: 64px; }
.cv-meter-num { font-size: 1.15rem; }
.cv-strength-text { min-width: 0; }
.cv-strength-title { font-family: var(--font-body); font-size: 1.02rem; font-weight: 800; margin: 0 0 2px; letter-spacing: 0; }
.cv-strength-score { margin: 0; font-size: 0.86rem; color: var(--charcoal); }
.cv-checks { margin-top: 10px; border-top: 1px solid var(--cv-line); padding-top: 4px; }
.cv-checks summary { cursor: pointer; font-weight: 700; min-height: 44px; display: flex; align-items: center; }
.cv-checks-body { max-height: 360px; overflow-y: auto; padding: 2px 4px 6px 0; }
.cv-checks-title { font-family: var(--font-body); font-size: 0.95rem; margin: 10px 0 6px; letter-spacing: 0; }
.cv-checks-sub { font-weight: 600; color: var(--charcoal); font-size: 0.8rem; }
.cv-checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.cv-check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.88rem; }
.cv-check-mark { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; }
.cv-check-mark .cv-ic { width: 14px; height: 14px; stroke-width: 3; }
.cv-check.is-ok .cv-check-mark { background: var(--cv-ok); color: #FFFFFF; }
.cv-check.is-todo .cv-check-mark { background: var(--sand); color: var(--navy); border: 1px solid rgba(129, 110, 56, 0.6); }
.cv-check-body { display: grid; gap: 1px; min-width: 0; }
.cv-check-title { font-weight: 700; }
.cv-check-tip { color: var(--charcoal); }
.cv-preview-bar { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; }
.cv-preview-title { font-size: 1.15rem; margin: 0; }
.cv-preview-meta { margin: 0; font-size: 0.82rem; color: var(--charcoal); font-weight: 600; }
.cv-badge-sample { background: var(--gold); color: var(--navy); }
.cv-badge-sample[hidden] { display: none; }
.cv-stage { width: 100%; min-width: 0; overflow: hidden; border-radius: 6px; background: #E7E3D8; padding: 0; box-shadow: 0 14px 34px rgba(27, 42, 75, 0.18); }
.cv-sheet-wrap { position: relative; margin: 0 auto; }
.cv-sheet-wrap .cv-sheet { position: absolute; left: 0; top: 0; transform: scale(var(--cv-scale, 1)); transform-origin: 0 0; transition: opacity 0.13s ease; }
.cv-sheet.is-out { opacity: 0; }
.cv-preview-note { margin: 0; font-size: 0.82rem; color: var(--charcoal); }
.cv-preview-note[hidden] { display: none; }

/* ------------------------------------------------------------------ register to download (the gate), the download bar beside the preview */
.cv-register { position: relative; margin: 18px 0 8px; padding: 18px 16px 16px; border: 2px solid var(--gold); border-radius: 16px; background: #FFFFFF; box-shadow: 0 12px 30px rgba(27, 42, 75, 0.1); }
.cv-register::before { content: ''; position: absolute; left: 16px; right: 16px; top: -2px; height: 4px; border-radius: 0 0 4px 4px; background: linear-gradient(90deg, var(--navy), var(--gold)); }
.cv-register-head { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 10px; }
.cv-register-seal { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: var(--gold); }
.cv-register-seal svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cv-register-title { font-family: var(--font-headline); font-size: 1.35rem; margin: 0 0 4px; outline: none; }
.cv-register-title:focus-visible { outline: 3px solid var(--navy); outline-offset: 4px; border-radius: 6px; }
.cv-register-lead { margin: 0; font-size: 0.92rem; color: var(--charcoal); }
.cv-reg-done { margin: 0 0 12px; padding: 12px 14px; border: 1px solid var(--cv-ok); border-radius: 12px; background: #F2FAF6; }
.cv-reg-done[hidden], .cv-reg-more[hidden] { display: none; }
.cv-reg-done-text { margin: 0; font-size: 0.92rem; }
.cv-reg-more { margin: 4px 0 8px; padding: 10px 12px; border-left: 4px solid var(--gold); border-radius: 0 10px 10px 0; background: var(--porcelain); font-size: 0.88rem; }
.cv-reg-more button { vertical-align: baseline; }
.cv-register[data-state="done"] .cv-register-lead { display: none; }
.cv-register[data-state="done"] { border-color: var(--cv-ok); }
.cv-register[data-state="done"] .cv-register-seal { background: var(--cv-ok); color: #FFFFFF; }
.cv-gate-why { margin: 10px 0 0; font-size: 0.88rem; font-weight: 600; color: var(--navy); }
/* a button that is not available yet stays in the tab order (aria-disabled) and says why; it looks quiet, with a dashed gold edge, never faded out of reach */
.cv-app .btn[aria-disabled="true"] { background: var(--sand); color: var(--navy); border: 2px dashed var(--gold-text); box-shadow: none; cursor: not-allowed; opacity: 1; transform: none; }
.cv-app .btn[aria-disabled="true"]:hover { transform: none; box-shadow: none; opacity: 1; }
.cv-app .btn[aria-disabled="true"][aria-busy="true"] { cursor: progress; }
.cv-dlbar { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 14px; align-items: center; padding: 12px 14px; border: 1px solid var(--cv-line); border-radius: 14px; background: #FFFFFF; box-shadow: 0 8px 22px rgba(27, 42, 75, 0.07); }
.cv-dl-btn { min-height: 46px; padding: 11px 20px; }
.cv-dl-why { margin: 0; font-size: 0.86rem; font-weight: 600; color: var(--navy); }
.cv-dlbar .cv-link-btn { grid-column: 1 / -1; justify-self: start; }
.cv-dlbar[data-state="ready"] .cv-link-btn, .cv-dlbar[data-state="done"] .cv-link-btn { display: none; }
.cv-dlbar[data-state="done"] { border-color: var(--cv-ok); }
.cv-print-block { display: none; }
@media (max-width: 420px) {
  .cv-dlbar { grid-template-columns: minmax(0, 1fr); }
  .cv-dl-btn { width: 100%; }
}
@media (prefers-reduced-motion: no-preference) {
  .cv-register { animation: cv-fade-up 0.4s ease-out both; }
  .cv-register::before { background-size: 200% 100%; animation: cv-sweep 2.4s ease-in-out 1; }
  .cv-register.is-attn { animation: cv-attn 0.9s ease-out 1; }
  .cv-register-seal { animation: cv-ring-pulse 0.7s ease-out 0.15s both; }
  .cv-dlbar.is-attn { animation: cv-attn 0.9s ease-out 1; }
}
@keyframes cv-sweep { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }
@keyframes cv-attn { 0% { box-shadow: 0 0 0 0 rgba(215, 184, 93, 0.9); } 100% { box-shadow: 0 0 0 16px rgba(215, 184, 93, 0); } }

/* ------------------------------------------------------------------ FAQ */
.cv-faq { padding: 8px 0 56px; }
.cv-faq .faq-item { background: #FFFFFF; border: 1px solid var(--cv-line); border-radius: 12px; padding: 0 16px; transition: box-shadow 0.2s ease; }
.cv-faq .faq-item[open] { box-shadow: 0 8px 20px rgba(27, 42, 75, 0.08); }
.cv-faq .faq-q { min-height: 44px; display: flex; align-items: center; }

/* ------------------------------------------------------------------ larger screens */
@media (min-width: 640px) {
  .cv-row-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cv-row-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cv-row-3 > .cv-field:first-child { grid-column: 1 / -1; }
  .cv-choices, .cv-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cv-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cv-design-controls { grid-template-columns: repeat(3, auto); justify-content: start; gap: 24px; }
  .cv-lang-row { grid-template-columns: minmax(0, 1fr) auto auto; }
  .cv-dl-row { grid-template-columns: 14rem minmax(0, 1fr); }
  .cv-edit { padding: 26px 28px 28px; }
}
@media (min-width: 640px) and (max-width: 999px) {
  .cv-row-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cv-row-3 > .cv-field:first-child { grid-column: auto; }
}
@media (min-width: 900px) {
  .cv-hero-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); }
  .cv-app .cv-hero { padding: 72px 0 80px; }
}
@media (min-width: 1000px) {
  .cv-layout { grid-template-columns: minmax(0, 620px) minmax(0, 1fr); gap: 28px; }
  .cv-preview { position: sticky; top: 88px; max-height: calc(100vh - 104px); overflow-y: auto; padding-right: 2px; }
  .cv-row-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cv-row-3 > .cv-field:first-child { grid-column: 1 / -1; }
  .cv-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1280px) {
  .cv-layout { grid-template-columns: minmax(0, 660px) minmax(0, 1fr); }
  .cv-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
/* phones and small tablets: one pane at a time, switched by the Edit / Preview buttons */
@media (max-width: 999px) {
  .cv-mobile-tabs { display: flex; position: sticky; top: 64px; z-index: 5; }
  .cv-layout[data-pane="edit"] .cv-preview { display: none; }
  .cv-layout[data-pane="preview"] .cv-edit { display: none; }
  .cv-app .cv-hero { padding: 40px 0 48px; }
}
@media (max-width: 420px) {
  .cv-edit { padding: 16px 12px 18px; border-radius: 14px; }
  .cv-stepper { gap: 10px; }
  .cv-ring { width: 56px; height: 56px; }
  .cv-mini-strength { min-width: 56px; padding: 4px 6px; }
  .cv-card-head { flex-wrap: wrap; }
  .cv-tcard-advice { font-size: 0.76rem; }
  .cv-inline { flex-direction: column; align-items: stretch; }
  .cv-nav .btn { flex: 1 1 100%; }
  .cv-nav #cv-next { margin-left: 0; }
  .cv-get-actions .btn { flex: 1 1 100%; }
}

/* ------------------------------------------------------------------ motion */
@media (prefers-reduced-motion: no-preference) {
  .cv-hero .eyebrow, .cv-hero h1, .cv-lede, .cv-promises, .cv-hero-cta { animation: cv-rise 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
  .cv-hero h1 { animation-delay: 0.06s; }
  .cv-lede { animation-delay: 0.12s; }
  .cv-promises { animation-delay: 0.18s; }
  .cv-hero-cta { animation-delay: 0.24s; }
  .cv-paper-3 { animation: cv-paper-3 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) 0.1s both; }
  .cv-paper-2 { animation: cv-paper-2 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) 0.2s both; }
  .cv-paper-1 { animation: cv-paper-1 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) 0.3s both; }
  .cv-p-line, .cv-p-rule { animation: cv-write 0.45s ease-out both; }
  .cv-p-name { animation-delay: 0.55s; }
  .cv-p-sub { animation-delay: 0.65s; }
  .cv-p-rule { animation-delay: 0.75s; }
  .cv-p-l1 { animation-delay: 0.85s; }
  .cv-p-l2 { animation-delay: 0.95s; }
  .cv-p-l3 { animation-delay: 1.05s; }
  .cv-p-l4 { animation-delay: 1.15s; }
  .cv-p-l5 { animation-delay: 1.25s; }
  .cv-p-seal, .cv-p-photo { animation: cv-pop 0.4s cubic-bezier(0.3, 1.6, 0.5, 1) 1.35s both; }
  .cv-spark { animation: cv-twinkle 3.2s ease-in-out infinite; }
  .cv-spark-2 { animation-delay: 1s; }
  .cv-spark-3 { animation-delay: 2s; }

  .cv-in-fwd { animation: cv-step-fwd 0.32s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
  .cv-in-back { animation: cv-step-back 0.32s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
  .cv-card, .cv-undo, .cv-banner, .cv-import-card, .cv-result-card, .cv-problems { animation: cv-fade-up 0.28s ease-out both; }
  .cv-chip { animation: cv-chip-in 0.22s cubic-bezier(0.3, 1.4, 0.5, 1) both; }
  .cv-idea.is-added .cv-idea-mark { animation: cv-pop 0.3s cubic-bezier(0.3, 1.6, 0.5, 1) both; }
  .cv-check.is-ok .cv-check-mark { animation: cv-pop 0.3s cubic-bezier(0.3, 1.6, 0.5, 1) both; }
  .cv-sheet.is-in { animation: cv-sheet-in 0.3s ease-out both; }
  .cv-bar i { animation: cv-slide 1.1s ease-in-out infinite; }
  .cv-celebrate-ring { animation: cv-ring-pulse 0.9s ease-out both; transform-origin: 24px 24px; }
  .cv-celebrate-check { animation: cv-draw 0.5s ease-out 0.15s both; }
  .cv-confetti { animation: cv-confetti 0.95s ease-out calc(var(--i) * 0.025s + 0.2s) both; }
  .cv-btn-lift, .cv-tile, .cv-choice-box { will-change: transform; }
}
@keyframes cv-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes cv-paper-3 { from { opacity: 0; transform: rotate(0deg) translate(0, 4%); } to { opacity: 1; transform: rotate(9deg) translate(10%, 2%); } }
@keyframes cv-paper-2 { from { opacity: 0; transform: rotate(0deg) translate(0, 4%); } to { opacity: 1; transform: rotate(-7deg) translate(-8%, 1%); } }
@keyframes cv-paper-1 { from { opacity: 0; transform: translateY(18px) rotate(0.5deg); } to { opacity: 1; transform: rotate(0.5deg); } }
@keyframes cv-write { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes cv-pop { from { opacity: 0; transform: scale(0.4); } to { opacity: 1; transform: scale(1); } }
@keyframes cv-twinkle { 0%, 100% { opacity: 0.25; transform: rotate(45deg) scale(0.8); } 50% { opacity: 0.95; transform: rotate(45deg) scale(1.15); } }
@keyframes cv-step-fwd { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }
@keyframes cv-step-back { from { opacity: 0; transform: translateX(-18px); } to { opacity: 1; transform: none; } }
@keyframes cv-fade-up { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes cv-chip-in { from { opacity: 0; transform: scale(0.85); } to { opacity: 1; transform: none; } }
@keyframes cv-sheet-in { from { opacity: 0; filter: blur(2px); } to { opacity: 1; filter: blur(0); } }
@keyframes cv-slide { 0% { transform: translateX(-110%); } 100% { transform: translateX(260%); } }
@keyframes cv-ring-pulse { 0% { transform: scale(0.6); opacity: 0; } 60% { transform: scale(1.08); opacity: 1; } 100% { transform: scale(1); opacity: 1; } }
@keyframes cv-draw { from { stroke-dashoffset: 40; } to { stroke-dashoffset: 0; } }
@keyframes cv-confetti {
  0% { opacity: 0; transform: translate(0, 0) scale(0.4) rotate(0deg); }
  25% { opacity: 1; }
  100% { opacity: 0; transform: translate(calc((var(--i) - 5.5) * 12px), calc(-24px - (var(--i) * 4px))) scale(1) rotate(180deg); }
}

/* Reduced motion: nothing moves, fades or loops. The content is in its final state from the first paint. */
@media (prefers-reduced-motion: reduce) {
  .cv-app *, .cv-app *::before, .cv-app *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .cv-confetti { display: none; }
  .cv-sheet.is-out { opacity: 1; }
}

/* ------------------------------------------------------------------ print: only the CV (the designs add their own rules in cv-templates.css) */
@media print {
  html, body { background: #FFFFFF !important; margin: 0 !important; padding: 0 !important; }
  body > *:not(main) { display: none !important; }
  .breadcrumb, .cv-np, .page-loader, .skip-link { display: none !important; }
  main, .cv-app, .cv-work, .cv-work > .container, .cv-layout, .cv-preview, .cv-stage, .cv-sheet-wrap {
    display: block !important;
    position: static !important;
    width: auto !important;
    height: auto !important;
    max-width: none !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #FFFFFF !important;
    box-shadow: none !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
  }
  .cv-sheet-wrap .cv-sheet { position: static !important; transform: none !important; opacity: 1 !important; filter: none !important; animation: none !important; transition: none !important; }
  /* Ctrl+P and the browser menu are covered too: until the visitor has registered (the page sets class cv-reg on <html>), a print shows a short note and not the CV */
  html:not(.cv-reg) .cv-sheet-wrap { display: none !important; }
  html:not(.cv-reg) .cv-print-block { display: block !important; padding: 20mm 0; text-align: center; font-size: 14pt; color: #1B2A4A; }
}

/* the site's .btn-unstyled removes every border; the secondary buttons of the builder keep theirs */
.cv-app .btn-secondary.btn-unstyled { border: 1px solid var(--navy); background: #FFFFFF; color: var(--navy); cursor: pointer; }
.cv-app .btn-secondary.btn-unstyled:hover { background: var(--sand); opacity: 1; }
.cv-offer .btn-secondary.btn-unstyled { background: transparent; color: var(--soft-white); border-color: var(--soft-white); }
.cv-offer .btn-secondary.btn-unstyled:hover { background: rgba(255, 253, 248, 0.12); }
