.landing-home-view[hidden],
.template-page[hidden] {
  display: none;
}

.template-page {
  position: relative;
  min-height: calc(var(--vh, 100vh) - 92px);
  padding: 120px 80px;
  background: linear-gradient(180deg, var(--white) 0%, var(--bg) 45%, var(--bg2) 100%);
  overflow: hidden;
}

.template-page::before {
  content: '';
  position: absolute;
  top: 0;
  left: 8%;
  right: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--p4), transparent);
}

.template-page::after {
  display: none;
}

.template-page-inner {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
}

.template-page .template-breadcrumb {
  margin: 0 0 40px;
  padding-left: 50px;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink3);
}

.template-page .template-breadcrumb-link,
.template-page .template-breadcrumb-static {
  color: var(--ink2);
}

.template-page .template-breadcrumb-current {
  color: var(--ink);
}

.template-page .template-breadcrumb-link:hover {
  color: var(--p);
}

.tpl-hero {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: 56px;
}

.tpl-hero-copy {
  text-align: left;
}

.tpl-hero-copy h1, .tpl-hero-copy h2 {
  max-width: 640px;
  margin: 0 auto 22px;
  color: var(--ink);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(28px, 5vw, 62px);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.02;
}

.tpl-hero-copy h1 span, .tpl-hero-copy h2 span,
.tpl-section-head h2 span,
.tpl-final-cta h2 span,
.contact-faq-title span {
  color: var(--p);
}

.tpl-hero-copy p:not(.tpl-microcopy) {
  max-width: 520px;
  margin: 0 0 32px;
  color: var(--ink3);
  font-size: 18px;
  line-height: 1.65;
}

.tpl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(135deg, var(--p) 0%, #7c5cff 100%);
  box-shadow: 0 16px 40px rgba(99, 102, 241, .42);
  transition: transform .2s, box-shadow .2s;
}

.tpl-hero .tpl-btn {
  gap: 11px;
  padding: 18px 34px;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 700;
}

.tpl-hero .tpl-btn span {
  font-size: 18px;
  transition: transform .2s;
}

.tpl-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 54px rgba(99, 102, 241, .52);
}

.tpl-hero .tpl-btn:hover span {
  transform: translateX(4px);
}

.tpl-btn-dark,
.tpl-final-cta .tpl-btn {
  padding: 18px 40px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
}

.tpl-microcopy {
  margin: 0;
  color: var(--ink4);
  font-weight: 600;
}

.tpl-reassure {
  margin-top: 18px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  text-align: left;
}

.tpl-section-reassure {
  margin-top: 26px;
  font-size: 12px;
  letter-spacing: 0;
  text-transform: uppercase;
  text-align: center;
}

.tpl-upload-card {
  position: relative;
  justify-self: center;
  width: 100%;
  max-width: 480px;
  --tpl-picked-color: var(--p);
  padding: 26px;
  border: 1px solid var(--border2);
  border-radius: 22px;
  background: var(--white);
  box-shadow: 0 30px 70px rgba(99, 102, 241, .18);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.tpl-demo-guide {
  position: absolute;
  z-index: 0;
  top: -72px;
  right: -30px;
  width: 104px;
  height: 104px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.tpl-demo-guide-glow {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 102, 241, .32), rgba(129, 140, 248, .14) 55%, transparent 72%);
  filter: blur(3px);
  animation: fillpGuideGlow 4.5s ease-in-out infinite;
}

.tpl-demo-guide-img {
  position: relative;
  z-index: 1;
  width: 96px;
  height: auto;
  filter: drop-shadow(0 14px 22px rgba(79, 70, 229, .32));
  animation: fillpFloat 5s ease-in-out infinite;
}

.tpl-demo-guide-bubble {
  position: absolute;
  z-index: 6;
  top: 14px;
  right: 90px;
  white-space: nowrap;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--border2);
  border-radius: 999px;
  padding: 7px 13px;
  box-shadow: 0 8px 22px rgba(99, 102, 241, .18);
  animation: fillpFloat 5s ease-in-out infinite .25s;
}

.tpl-demo-guide-bubble::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -5px;
  transform: translateY(-50%) rotate(45deg);
  width: 9px;
  height: 9px;
  background: var(--white);
  border-right: 1px solid var(--border2);
  border-top: 1px solid var(--border2);
}

.tpl-upload-card:hover {
  transform: translateY(-6px);
  border-color: var(--p4);
  box-shadow: 0 24px 60px rgba(99, 102, 241, .20);
}

.tpl-upload-label {
  margin-bottom: 18px;
  color: var(--ink4);
  font-size: 12px;
  font-weight: 700;
}

.tpl-dropzone {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 132px;
  border: 1px dashed var(--border2);
  border-radius: 14px;
  background: var(--bg);
  text-align: center;
  overflow: hidden;
  transition: border-color .28s ease, background .28s ease, box-shadow .28s ease;
}

.tpl-dropzone::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, color-mix(in srgb, var(--tpl-picked-color) 16%, transparent), transparent 62%);
  opacity: 0;
  pointer-events: none;
  transition: opacity .28s ease;
}

.tpl-upload-card.is-logo-inserted .tpl-dropzone {
  border-color: color-mix(in srgb, var(--tpl-picked-color) 48%, var(--border2));
  background: color-mix(in srgb, var(--tpl-picked-color) 8%, var(--bg));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tpl-picked-color) 16%, transparent);
}

.tpl-upload-card.is-logo-inserted .tpl-dropzone::after {
  opacity: 1;
}

.tpl-dropzone-ic,
.tpl-generated-badge span,
.tpl-check,
.tpl-icon,
.tpl-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, var(--p), #7c5cff);
  box-shadow: 0 12px 26px rgba(99, 102, 241, .35);
}

.tpl-dropzone-ic {
  width: 50px;
  height: 50px;
  margin-bottom: 14px;
  border-radius: 14px;
  position: relative;
  z-index: 1;
  transition: transform .35s cubic-bezier(.22, 1, .36, 1), opacity .25s ease, background .35s ease;
}

.tpl-upload-card.is-logo-inserted .tpl-dropzone-ic {
  transform: translateY(-8px) scale(.72);
  opacity: 0;
}

.tpl-dropzone-ic svg,
.tpl-generated-badge svg,
.tpl-check svg,
.tpl-icon svg,
.tpl-card-icon svg {
  width: 24px;
  height: 24px;
}

.tpl-dropzone strong {
  position: relative;
  z-index: 1;
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
  transition: color .25s ease, transform .35s cubic-bezier(.22, 1, .36, 1);
}

.tpl-dropzone small,
.tpl-colors-label {
  color: var(--ink4);
  font-size: 12px;
  font-weight: 600;
}

.tpl-dropzone small {
  position: relative;
  z-index: 1;
  transition: opacity .25s ease, transform .35s cubic-bezier(.22, 1, .36, 1);
}

.tpl-upload-card.is-logo-inserted .tpl-dropzone strong {
  color: var(--tpl-picked-color);
  transform: translateY(22px);
}

.tpl-upload-card.is-logo-inserted .tpl-dropzone small {
  opacity: 0;
  transform: translateY(24px);
}

.tpl-logo-chip {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 62px;
  border-radius: 18px;
  background: var(--white);
  border: 1px solid var(--border2);
  box-shadow: 0 18px 36px rgba(99, 102, 241, .22);
  opacity: 0;
  transform: translate(-50%, -76%) scale(.45) rotate(-8deg);
  transition: opacity .25s ease, transform .48s cubic-bezier(.22, 1, .36, 1);
}

.tpl-logo-chip img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.tpl-upload-card.is-logo-inserted .tpl-logo-chip {
  opacity: 1;
  transform: translate(-50%, -76%) scale(1) rotate(0);
}

.tpl-upload-card.is-logo-inserted .tpl-logo-chip::after {
  content: '';
  position: absolute;
  inset: -12px;
  border-radius: 24px;
  border: 1px solid color-mix(in srgb, var(--tpl-picked-color) 42%, transparent);
  animation: tplLogoPulse 1.25s ease-out 1;
}

@keyframes tplLogoPulse {
  from { opacity: .9; transform: scale(.82); }
  to { opacity: 0; transform: scale(1.25); }
}

.tpl-colors-label {
  margin: 16px 0 9px;
  text-align: center;
}

.tpl-color-row {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}

.tpl-color-row span {
  position: relative;
  width: 27px;
  height: 27px;
  border-radius: 8px;
  transition: transform .22s ease, box-shadow .22s ease, outline-color .22s ease;
}

.tpl-color-row span.is-picking {
  transform: translateY(-4px) scale(1.16);
  box-shadow: 0 12px 24px color-mix(in srgb, var(--tpl-picked-color) 34%, transparent);
}

.tpl-color-row span.is-picked {
  transform: translateY(-4px) scale(1.12);
  outline: 3px solid color-mix(in srgb, var(--tpl-picked-color) 28%, #fff);
  outline-offset: 4px;
  box-shadow: 0 14px 28px color-mix(in srgb, var(--tpl-picked-color) 38%, transparent);
}

.tpl-color-row span.is-picked::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -12px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--tpl-picked-color);
  transform: translateX(-50%);
}

.tpl-doc-line {
  height: 1px;
  margin: 0 0 11px;
  background: var(--border);
}

.tpl-doc-line.short {
  width: 82%;
  height: 8px;
  margin-top: 20px;
  border-radius: 999px;
  background: var(--bg2);
}

.tpl-doc-title {
  color: var(--ink4);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 16px;
}

.tpl-demo-statusrow {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 10px;
}

.tpl-demo-status {
  font-size: 12px;
  font-weight: 600;
  color: var(--p);
  letter-spacing: 0;
  transition: color .3s;
}

.tpl-demo-status.done {
  color: #22c55e;
}

.tpl-demo-pct {
  font-size: 13px;
  font-weight: 800;
  color: var(--p);
  letter-spacing: 0;
  transition: color .3s;
}

.tpl-demo-pct.done {
  color: #22c55e;
}

.tpl-demo-bar {
  height: 8px;
  border-radius: 5px;
  background: var(--p5);
  overflow: hidden;
  margin-bottom: 18px;
}

.tpl-demo-bar-fill {
  display: block;
  height: 100%;
  width: 8%;
  border-radius: 5px;
  background: linear-gradient(90deg, var(--p), #7c5cff);
  transition: width .5s cubic-bezier(.4, 0, .2, 1);
}

.tpl-generated-badge {
  position: absolute;
  right: -26px;
  bottom: -44px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 18px;
  border: 1px solid var(--border2);
  border-radius: 16px;
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 18px 40px rgba(99, 102, 241, .2);
  font-size: 14px;
  font-weight: 800;
  animation: fillpFloat 4.5s ease-in-out infinite;
}

.tpl-generated-badge span {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  flex-shrink: 0;
}

.tpl-generated-badge svg {
  width: 20px;
  height: 20px;
}

.tpl-section {
  margin-top: 110px;
}

.tpl-section-tint {
  background: transparent;
}

.tpl-section-head {
  max-width: 780px;
  margin: 0 auto 54px;
  text-align: center;
}

.tpl-section-head h2,
.tpl-final-cta h2 {
  max-width: 780px;
  margin: 0 auto;
  color: var(--ink);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(28px, 3.6vw, 44px);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.12;
}



.tpl-three-grid,
.tpl-benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: stretch;
  gap: 26px;
  max-width: 920px;
  margin: 0 auto;
}

.tpl-benefit-grid {
  grid-template-columns: repeat(4, 1fr);
  max-width: 1040px;
  gap: 22px;
}
.tpl-four-grid {
  grid-template-columns: repeat(4, 1fr);
  max-width: 1040px;
}
@media (max-width: 900px) { .tpl-four-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .tpl-four-grid { grid-template-columns: 1fr; } }

.tpl-info-card,
.tpl-problem-card,
.tpl-step-card,
.tpl-diff-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--white);
  box-shadow: 0 10px 40px rgba(99, 102, 241, .07);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.tpl-visual-image {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 0 0;
}
.tpl-visual-cv-card {
    position: relative;
    background: #fff;
    border: 1.5px solid #ede9fe;
    border-radius: 10px;
    padding: 14px 16px;
    width: 140px;
    box-shadow: 0 2px 12px rgba(124,111,255,0.08);
}
.tpl-visual-cv-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}
.tpl-visual-cv-head i {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #e5e7eb;
    display: block;
}
.tpl-visual-cv-head b {
    flex: 1;
    height: 8px;
    border-radius: 4px;
    background: #e5e7eb;
    display: block;
}
.tpl-visual-cv-lines {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.tpl-visual-cv-lines i {
    height: 6px;
    border-radius: 3px;
    background: #f3f4f6;
    display: block;
}
.tpl-visual-cv-lines i.wide { width: 100%; }
.tpl-visual-cv-lines i.mid { width: 70%; }
.tpl-visual-cv-lines i.short { width: 45%; }
.tpl-info-card::after,
.tpl-problem-card::after,
.tpl-step-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--p), #7c5cff);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s ease;
}

.tpl-info-card:hover,
.tpl-problem-card:hover,
.tpl-step-card:hover {
  transform: translateY(-6px);
  border-color: var(--p4);
  box-shadow: 0 24px 60px rgba(99, 102, 241, .20);
}

.tpl-info-card:hover::after,
.tpl-problem-card:hover::after,
.tpl-step-card:hover::after {
  transform: scaleX(1);
}

.tpl-problem-card,
.tpl-step-card {
  padding: 34px 28px 30px;
}

.tpl-info-card {
  display: block;
  padding: 30px 24px;
}

.tpl-check,
.tpl-icon,
.tpl-card-icon {
  width: 50px;
  height: 50px;
  margin-bottom: 18px;
  border-radius: 14px;
  transition: transform .25s ease;
}

.tpl-info-card:hover .tpl-check,
.tpl-info-card:hover .tpl-icon,
.tpl-problem-card:hover .tpl-card-icon {
  transform: scale(1.08) rotate(-3deg);
}

.tpl-info-card h3,
.tpl-problem-card h3,
.tpl-step-card h3 {
  margin: 0 0 10px;
  color: var(--ink);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.3;
}

.tpl-problem-card h3,
.tpl-step-card h3 {
  font-size: 17px;
}

.tpl-info-card p,
.tpl-problem-card p,
.tpl-step-card p {
  margin: 0;
  color: var(--ink3);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13.5px;
  line-height: 1.6;
}

.tpl-problem-card p,
.tpl-step-card p {
  font-size: 14px;
}

.tpl-problem-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 92px;
  margin-top: 24px;
  color: #ef4444;
}

.tpl-problem-doc-sheet {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 7px;
  width: 86px;
  height: 102px;
  padding: 18px 14px 12px;
  border: 1px solid #fecaca;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 34px rgba(239, 68, 68, .12);
  transition: transform .25s ease, box-shadow .25s ease;
}

.tpl-problem-alert {
  position: absolute;
  top: 2px;
  left: 50%;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 92px;
  transform: translateX(-8%);
  border-radius: 999px;
  background: #dc2626;
  box-shadow: 0 12px 24px rgba(220, 38, 38, .24);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  padding: 8px 12px;
  white-space: nowrap;
}

.tpl-problem-doc-head,
.tpl-problem-doc-line {
  display: block;
  border-radius: 999px;
}

.tpl-problem-doc-head {
  width: 44px;
  height: 16px;
  background: linear-gradient(90deg, #ef4444, #dc2626);
}

.tpl-problem-doc-line {
  height: 7px;
  background: #fee2e2;
}

.tpl-problem-doc-line.tpl-line-a { width: 100%; }
.tpl-problem-doc-line.tpl-line-b { width: 72%; }
.tpl-problem-doc-line.tpl-line-c { width: 88%; }
.tpl-problem-doc-line.tpl-line-d { width: 58%; }

.tpl-problem-scatter {
  min-height: 104px;
}

.tpl-problem-scatter span {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #fecaca;
  border-radius: 12px;
  background: #fff7f7;
  box-shadow: 0 12px 24px rgba(239, 68, 68, .12);
  color: #dc2626;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  padding: 9px 13px;
  transition: transform .25s ease, box-shadow .25s ease;
}

.tpl-problem-scatter span:nth-child(1) {
  top: 14px;
  left: 50%;
  transform: translateX(-82%) rotate(-8deg);
}

.tpl-problem-scatter span:nth-child(2) {
  top: 34px;
  left: 50%;
  transform: translateX(16%) rotate(8deg);
}

.tpl-problem-scatter span:nth-child(3) {
  bottom: 10px;
  left: 50%;
  transform: translateX(-44%) rotate(-3deg);
}

.tpl-problem-time {
  flex-direction: column;
  gap: 8px;
}

.tpl-problem-clock {
  display: inline-flex;
  width: 36px;
  height: 36px;
  color: #dc2626;
}

.tpl-problem-clock svg {
  width: 100%;
  height: 100%;
}

.tpl-problem-clock-hour,
.tpl-problem-clock-minute {
  transform-box: fill-box;
  transform-origin: 12px 12px;
}

.tpl-problem-time-value {
  display: inline-flex;
  align-items: flex-end;
  gap: 4px;
  color: #ef4444;
  font-size: 46px;
  font-weight: 900;
  line-height: .82;
  letter-spacing: 0;
  text-shadow: 0 14px 28px rgba(239, 68, 68, .16);
  transition: transform .25s ease;
}

.tpl-problem-time-value em {
  margin-bottom: 5px;
  font-size: 15px;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
}

.tpl-problem-card:hover .tpl-problem-doc-sheet {
  transform: translateY(-4px) rotate(2deg);
  box-shadow: 0 24px 42px rgba(239, 68, 68, .18);
}

.tpl-problem-card:hover .tpl-problem-scatter span:nth-child(1) {
  transform: translateX(-90%) translateY(-4px) rotate(-10deg);
}

.tpl-problem-card:hover .tpl-problem-scatter span:nth-child(2) {
  transform: translateX(22%) translateY(-2px) rotate(10deg);
}

.tpl-problem-card:hover .tpl-problem-scatter span:nth-child(3) {
  transform: translateX(-44%) translateY(4px) rotate(-5deg);
}

.tpl-problem-card:hover .tpl-problem-time-value {
  transform: scale(1.06);
}

.tpl-problem-card:hover .tpl-problem-clock-hour {
  animation: tplProblemClock 1.8s linear infinite;
}

.tpl-problem-card:hover .tpl-problem-clock-minute {
  animation: tplProblemClock 1s linear infinite;
}

@keyframes tplProblemClock {
  to { transform: rotate(360deg); }
}

.tpl-center-note {
  max-width: 620px;
  margin: 32px auto 0;
  color: var(--ink3);
  font-size: 16px;
  line-height: 1.65;
  text-align: center;
}

.tpl-steps .tpl-three-grid {
  position: relative;
}

.tpl-steps .tpl-three-grid::before {
  content: '';
  position: absolute;
  top: 62px;
  left: 16%;
  right: 16%;
  height: 0;
  border-top: 2px dashed var(--p4);
  z-index: 0;
}

.tpl-step-card {
  z-index: 1;
  border-radius: 24px;
}

.tpl-step-card strong {
  display: block;
  margin-bottom: 18px;
  color: transparent;
  background: linear-gradient(135deg, var(--p), #7c5cff);
  -webkit-background-clip: text;
  background-clip: text;
  font-size: 44px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
}

.tpl-steps .tpl-btn,
.tpl-difference .tpl-btn {
  display: flex;
  width: fit-content;
  margin: 50px auto 0;
}

.tpl-inline-link {
  display: block;
  width: fit-content;
  margin: 38px auto 0;
  color: var(--p);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  text-decoration: none;
  transition: transform .2s, opacity .2s;
}

.tpl-inline-link:hover {
  transform: translateX(3px);
  opacity: .85;
}

.tpl-difference-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  gap: 26px;
  max-width: 920px;
  margin: 0 auto;
}

.tpl-difference-list {
  display: grid;
  gap: 16px;
}

.tpl-difference-list .tpl-info-card {
  min-height: 0;
}

.tpl-time-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 340px;
  padding: 36px 32px;
  border: 1.5px solid var(--p);
  border-radius: 24px;
  background: linear-gradient(180deg, #fbfaff 0%, #ffffff 60%);
  box-shadow: 0 20px 56px rgba(99, 102, 241, .2);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.tpl-time-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(99, 102, 241, .24);
}

.tpl-time-card > span {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 20px;
  padding: 6px 13px;
  border-radius: 999px;
  background: var(--p5);
  color: var(--p);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.tpl-time-row {
  padding: 19px 22px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--white);
}

.tpl-time-row small {
  display: block;
  margin-bottom: 5px;
  color: var(--ink4);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.tpl-time-row strong {
  display: block;
  color: var(--ink);
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
}

.tpl-time-arrow {
  margin: 20px 0;
  color: var(--p);
  font-size: 24px;
  font-weight: 800;
  text-align: center;
}

.tpl-time-row-after {
  border-color: var(--p4);
  background: #fbfaff;
}

.tpl-time-row-after small,
.tpl-time-row-after strong {
  color: var(--p);
}

.tpl-faq {
  margin-top: 110px;
}

.tpl-faq .contact-faq-title {
  margin: 0 auto;
  max-width: 760px;
}

.tpl-final-cta {
  margin-top: 80px;
  text-align: center;
}

.tpl-final-cta h2 {
  max-width: 680px;
  margin-bottom: 16px;
}

.tpl-final-cta p:not(.tpl-microcopy) {
  max-width: 520px;
  margin: 0 auto 30px;
  color: var(--ink3);
  font-size: 16px;
  line-height: 1.6;
}

.tpl-final-cta .tpl-section-reassure {
  margin-top: 38px;
}

@media (max-width: 980px) {
  .template-page {
    padding: 90px 40px;
  }

  .tpl-hero {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .tpl-hero-copy {
    text-align: center;
  }

  .tpl-hero-copy p:not(.tpl-microcopy) {
    margin-left: auto;
    margin-right: auto;
  }

  .tpl-reassure {
    text-align: center;
  }

  .tpl-benefit-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  .tpl-three-grid,
  .tpl-benefit-grid,
  .tpl-difference-grid {
    grid-template-columns: 1fr;
  }

  .tpl-steps .tpl-three-grid::before {
    display: none;
  }

  .tpl-steps .tpl-btn,
  .tpl-difference .tpl-btn,
  .tpl-hero .tpl-btn,
  .tpl-final-cta .tpl-btn {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .template-page {
    padding: 64px 20px;
  }

  .template-page .template-breadcrumb {
    padding-left: 0;
    flex-wrap: wrap;
  }

  .tpl-hero-copy h1, .tpl-hero-copy h2 {
    font-size: clamp(26px, 7vw, 38px);
    letter-spacing: -0.5px;
  }

  .tpl-generated-badge {
    right: 0;
    bottom: -14px;
  }

  .tpl-demo-guide {
    right: -8px;
  }

  .tpl-demo-guide-bubble {
    right: 72px;
    max-width: 230px;
    white-space: normal;
  }
}

/* TEMPLATE PERSONNALISÉ — nouveaux visuels originaux pour les cartes "Le problème" */
.tpl-visual-manual,
.tpl-visual-incoherent,
.tpl-visual-delay {
  min-height: 132px;
  margin-top: 26px;
  overflow: visible;
  isolation: isolate;
}

.tpl-visual-manual::before,
.tpl-visual-incoherent::before,
.tpl-visual-delay::before {
  content: '';
  position: absolute;
  inset: 10px 28px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(239, 68, 68, .16), transparent 66%);
  filter: blur(18px);
  z-index: -1;
}

/* 1) Mise en forme manuelle : document Word désaligné + curseur qui corrige */
.tpl-visual-manual-window {
  position: relative;
  display: block;
  width: 172px;
  height: 116px;
  border: 1px solid #fecaca;
  border-radius: 18px;
  background: linear-gradient(180deg, #fff 0%, #fff8f8 100%);
  box-shadow: 0 20px 42px rgba(239, 68, 68, .13);
  transform: rotate(-1.5deg);
  transition: transform .25s ease, box-shadow .25s ease;
}

.tpl-visual-window-bar {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 24px;
  padding: 0 10px;
  border-bottom: 1px solid #fee2e2;
  color: #dc2626;
}

.tpl-visual-window-bar i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fecaca;
}

.tpl-visual-window-bar em {
  margin-left: auto;
  color: #ef4444;
  font-size: 9px;
  font-style: normal;
  font-weight: 900;
}

.tpl-visual-ruler {
  position: absolute;
  top: 31px;
  left: 15px;
  right: 15px;
  height: 5px;
  border-radius: 999px;
  background: repeating-linear-gradient(90deg, #fecaca 0 2px, transparent 2px 12px);
  opacity: .8;
}

.tpl-visual-doc-page {
  position: absolute;
  left: 27px;
  right: 25px;
  bottom: 12px;
  height: 64px;
  border: 1px solid #fee2e2;
  border-radius: 10px;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(254, 202, 202, .35);
}

.tpl-visual-avatar-box {
  position: absolute;
  top: 11px;
  left: 10px;
  width: 25px;
  height: 22px;
  border-radius: 7px;
  background: linear-gradient(135deg, #ef4444, #f87171);
}

.tpl-visual-text-stack {
  position: absolute;
  top: 11px;
  left: 45px;
  display: grid;
  gap: 5px;
  width: 56px;
}

.tpl-visual-text-stack i,
.tpl-visual-send-lines i {
  display: block;
  height: 6px;
  border-radius: 999px;
  background: #fee2e2;
}

.tpl-visual-text-stack i:nth-child(1) { width: 54px; }
.tpl-visual-text-stack i:nth-child(2) { width: 39px; transform: translateX(8px); }
.tpl-visual-text-stack i:nth-child(3) { width: 49px; transform: translateX(-6px); }

.tpl-visual-offset-block {
  position: absolute;
  right: 12px;
  bottom: 10px;
  width: 43px;
  height: 10px;
  border-radius: 999px;
  background: #fecaca;
  transform: translateX(-12px);
}

.tpl-visual-align-guide {
  position: absolute;
  display: block;
  background: #ef4444;
  opacity: .48;
}

.tpl-guide-v { top: 7px; bottom: 7px; left: 42px; width: 1px; }
.tpl-guide-h { left: 8px; right: 8px; bottom: 25px; height: 1px; }

.tpl-visual-cursor {
  position: absolute;
  right: 48px;
  bottom: 17px;
  width: 28px;
  height: 28px;
  color: #dc2626;
  filter: drop-shadow(0 10px 12px rgba(220, 38, 38, .22));
  transform: rotate(-10deg);
  transition: transform .25s ease;
}

.tpl-visual-cursor svg { width: 100%; height: 100%; }

.tpl-visual-alert {
  top: -3px;
  left: auto;
  right: 24px;
  min-width: 104px;
  transform: rotate(1deg);
}

/* 2) Présentations incohérentes : trois templates de CV incompatibles */
.tpl-visual-incoherent {
  min-height: 138px;
}

.tpl-visual-brand-line {
  position: absolute;
  left: 32px;
  right: 32px;
  top: 65px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ef4444 0 28%, transparent 28% 37%, #fb923c 37% 61%, transparent 61% 70%, #8b5cf6 70% 100%);
  opacity: .52;
}

.tpl-visual-template {
  position: absolute;
  display: block;
  width: 72px;
  height: 86px;
  padding: 11px 10px;
  border: 1px solid #fecaca;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 16px 32px rgba(239, 68, 68, .12);
  transition: transform .25s ease, box-shadow .25s ease;
}

.tpl-visual-template i,
.tpl-visual-template b,
.tpl-visual-template em {
  display: block;
}

.tpl-visual-template b {
  width: 44px;
  height: 7px;
  margin-top: 10px;
  border-radius: 999px;
  background: #fecaca;
}

.tpl-visual-template em {
  height: 5px;
  margin-top: 6px;
  border-radius: 999px;
  background: #fee2e2;
}

.tpl-visual-template em:nth-of-type(1) { width: 52px; }
.tpl-visual-template em:nth-of-type(2) { width: 33px; }

.tpl-visual-template-a { left: 36px; top: 22px; transform: rotate(-9deg); }
.tpl-visual-template-b { left: 50%; top: 8px; transform: translateX(-50%) rotate(5deg); border-color: #fed7aa; }
.tpl-visual-template-c { right: 36px; top: 26px; transform: rotate(-2deg); border-color: #ddd6fe; }

.tpl-visual-logo-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ef4444;
}

.tpl-visual-logo-square {
  width: 22px;
  height: 14px;
  border-radius: 4px;
  background: #fb923c;
}

.tpl-visual-logo-pill {
  width: 28px;
  height: 12px;
  border-radius: 999px;
  background: #8b5cf6;
}

.tpl-visual-version-tag {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #fecaca;
  border-radius: 999px;
  background: #fff7f7;
  color: #dc2626;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  padding: 6px 9px;
  box-shadow: 0 10px 22px rgba(239, 68, 68, .12);
}

.tpl-version-a { left: 28px; bottom: 2px; transform: rotate(-6deg); }
.tpl-version-b { left: 50%; bottom: 12px; transform: translateX(-50%) rotate(4deg); }
.tpl-version-c { right: 25px; bottom: 0; transform: rotate(7deg); }

/* 3) Temps perdu : profil prêt bloqué avant l'envoi client */
.tpl-visual-delay {
  min-height: 140px;
}

.tpl-visual-send-card {
  position: absolute;
  left: 24px;
  top: 24px;
  width: 116px;
  height: 82px;
  padding: 12px;
  border: 1px solid #fecaca;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 16px 32px rgba(239, 68, 68, .12);
  transform: rotate(-2deg);
  transition: transform .25s ease, box-shadow .25s ease;
}

.tpl-visual-send-head {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 10px;
}

.tpl-visual-send-head i {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: linear-gradient(135deg, #ef4444, #f87171);
}

.tpl-visual-send-head b {
  color: #dc2626;
  font-size: 9px;
  font-weight: 900;
  line-height: 1.1;
}

.tpl-visual-send-lines {
  display: grid;
  gap: 5px;
}

.tpl-visual-send-lines i:nth-child(1) { width: 78px; }
.tpl-visual-send-lines i:nth-child(2) { width: 58px; }
.tpl-visual-send-lines i:nth-child(3) { width: 70px; }

.tpl-visual-client-chip {
  position: absolute;
  right: 22px;
  top: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 38px;
  border: 1px solid #fecaca;
  border-radius: 999px;
  background: #fff7f7;
  color: #dc2626;
  font-size: 11px;
  font-weight: 900;
  box-shadow: 0 12px 24px rgba(239, 68, 68, .12);
}

.tpl-visual-delay-road {
  position: absolute;
  left: 139px;
  right: 98px;
  top: 60px;
  height: 3px;
  border-radius: 999px;
  background: repeating-linear-gradient(90deg, #fecaca 0 8px, transparent 8px 15px);
}

.tpl-road-dot {
  position: absolute;
  top: 50%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ef4444;
  transform: translateY(-50%);
  opacity: .38;
}

.tpl-road-dot-a { left: 8%; }
.tpl-road-dot-b { left: 46%; }
.tpl-road-dot-c { right: 4%; }

.tpl-visual-hourglass {
  position: absolute;
  left: 50%;
  top: 78px;
  width: 34px;
  height: 34px;
  color: #dc2626;
  transform: translateX(-50%);
  filter: drop-shadow(0 10px 16px rgba(220, 38, 38, .18));
}

.tpl-visual-hourglass svg { width: 100%; height: 100%; }

.tpl-visual-delay-value {
  position: absolute;
  right: 34px;
  bottom: 6px;
  font-size: 38px;
}

.tpl-visual-delay-value em {
  font-size: 13px;
}

.tpl-problem-card:hover .tpl-visual-manual-window,
.tpl-problem-card:hover .tpl-visual-send-card {
  transform: translateY(-4px) rotate(1deg);
  box-shadow: 0 24px 44px rgba(239, 68, 68, .18);
}

.tpl-problem-card:hover .tpl-visual-cursor {
  transform: translate(-18px, -8px) rotate(-12deg);
}

.tpl-problem-card:hover .tpl-visual-template-a {
  transform: translateY(-5px) rotate(-12deg);
}

.tpl-problem-card:hover .tpl-visual-template-b {
  transform: translateX(-50%) translateY(3px) rotate(8deg);
}

.tpl-problem-card:hover .tpl-visual-template-c {
  transform: translateY(-4px) rotate(2deg);
}

.tpl-problem-card:hover .tpl-road-dot-a,
.tpl-problem-card:hover .tpl-road-dot-b,
.tpl-problem-card:hover .tpl-road-dot-c {
  animation: tplRoadPulse 1.2s ease-in-out infinite;
}

.tpl-problem-card:hover .tpl-road-dot-b { animation-delay: .18s; }
.tpl-problem-card:hover .tpl-road-dot-c { animation-delay: .36s; }

.tpl-problem-card:hover .tpl-visual-hourglass {
  animation: tplHourglassShake 1.2s ease-in-out infinite;
}

@keyframes tplRoadPulse {
  0%, 100% { opacity: .28; transform: translateY(-50%) scale(.85); }
  50% { opacity: 1; transform: translateY(-50%) scale(1.25); }
}

@keyframes tplHourglassShake {
  0%, 100% { transform: translateX(-50%) rotate(0deg); }
  25% { transform: translateX(-50%) rotate(-7deg); }
  50% { transform: translateX(-50%) rotate(0deg); }
  75% { transform: translateX(-50%) rotate(7deg); }
}

@media (max-width: 640px) {
  .tpl-visual-manual,
  .tpl-visual-incoherent,
  .tpl-visual-delay {
    transform: scale(.92);
    transform-origin: center;
    margin-top: 18px;
  }
}

/* TEMPLATE PERSONNALISÉ — visuels "Le problème" alignés avec la maquette fournie */
.tpl-visual-manual,
.tpl-visual-incoherent,
.tpl-visual-delay {
  min-height: 150px;
}

.tpl-visual-manual-window {
  width: 176px;
  height: 120px;
  border-color: rgba(248, 113, 113, .36);
  box-shadow: 0 24px 48px rgba(239, 68, 68, .13);
}

.tpl-visual-window-bar {
  height: 26px;
}

.tpl-visual-alert {
  top: -6px;
  left: 58%;
  right: auto;
  min-width: 96px;
  transform: translateX(-50%);
  padding: 9px 17px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  box-shadow: 0 15px 28px rgba(220, 38, 38, .25);
  font-size: 11.5px;
  letter-spacing: .01em;
}

.tpl-visual-incoherent {
  min-height: 154px;
}

.tpl-visual-template {
  box-shadow: 0 20px 40px rgba(239, 68, 68, .11);
}

.tpl-visual-template-a { top: 28px; }
.tpl-visual-template-b { top: 10px; }
.tpl-visual-template-c { top: 34px; }
.tpl-version-a { bottom: 8px; }
.tpl-version-b { bottom: 18px; }
.tpl-version-c { bottom: 6px; }

.tpl-visual-delay {
  min-height: 154px;
}

.tpl-visual-delay::before {
  inset: 32px 18px 4px;
}

.tpl-visual-send-card {
  left: 3%;
  top: 52px;
  width: 112px;
  height: 78px;
  padding: 11px;
  border-color: rgba(248, 113, 113, .36);
  border-radius: 17px;
  transform: rotate(-2deg);
}

.tpl-visual-send-head i {
  width: 25px;
  height: 25px;
  border-radius: 8px;
}

.tpl-visual-send-head b {
  font-size: 9.5px;
}

.tpl-visual-send-lines i:nth-child(1) { width: 76px; }
.tpl-visual-send-lines i:nth-child(2) { width: 55px; }
.tpl-visual-send-lines i:nth-child(3) { width: 68px; }

.tpl-visual-client-chip {
  top: 68px;
  right: 0;
  width: 76px;
  height: 40px;
  background: rgba(255, 247, 247, .9);
  border-color: rgba(248, 113, 113, .34);
  box-shadow: 0 14px 26px rgba(239, 68, 68, .10);
  font-size: 11.5px;
}

.tpl-visual-delay-road {
  left: 43%;
  right: 24%;
  top: 71px;
  height: 58px;
  background: none;
  overflow: visible;
}

.tpl-road-svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  transition: transform .25s ease;
}

.tpl-road-path {
  fill: none;
  stroke: #fca5a5;
  stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: 1 14;
  opacity: .78;
}

.tpl-road-arrow {
  fill: #fca5a5;
  filter: drop-shadow(0 8px 12px rgba(239, 68, 68, .18));
  transform-origin: 104px 18px;
}

.tpl-visual-hourglass,
.tpl-visual-delay-value {
  display: none;
}

.tpl-problem-card:hover .tpl-road-svg {
  transform: translateX(5px);
}

.tpl-problem-card:hover .tpl-road-path {
  animation: tplDelayPathMove 1.25s linear infinite;
}

.tpl-problem-card:hover .tpl-road-arrow {
  animation: tplDelayArrowPulse 1.25s ease-in-out infinite;
}

@keyframes tplDelayPathMove {
  to { stroke-dashoffset: -15; }
}

@keyframes tplDelayArrowPulse {
  0%, 100% { transform: translateX(0) scale(1); opacity: .78; }
  50% { transform: translateX(4px) scale(1.08); opacity: 1; }
}

@media (max-width: 640px) {
  .tpl-visual-delay-road {
    left: 42%;
    right: 21%;
  }

  .tpl-visual-client-chip {
    right: -2px;
  }
}

/* TEMPLATE PERSONNALISÉ — section "Pourquoi c'est différent" façon avant / après */
.tpl-difference {
  position: relative;
  overflow: visible;
}

.tpl-difference .tpl-section-head {
  margin-bottom: 48px;
}

.tpl-difference-showcase {
  position: relative;
  display: grid;
  grid-template-columns: minmax(360px, .78fr) 54px minmax(620px, 1.32fr);
  align-items: stretch;
  gap: 18px;
  max-width: 1240px;
  margin: 0 auto;
  overflow: visible;
}

.tpl-diff-panel {
  position: relative;
  min-height: 520px;
  border-radius: 30px;
  background: rgba(255,255,255,.92);
  box-shadow: 0 24px 70px rgba(99,102,241,.11);
  overflow: visible;
  isolation: isolate;
}

.tpl-diff-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: -1;
}

.tpl-diff-before {
  padding: 88px 26px 26px;
  border: 1.5px solid rgba(251, 146, 60, .34);
  background:
    radial-gradient(circle at 16% 18%, rgba(251, 146, 60, .13), transparent 34%),
    linear-gradient(180deg, rgba(255,252,248,.96), rgba(255,255,255,.94));
}

.tpl-diff-before::before {
  background: linear-gradient(180deg, rgba(255,247,237,.78), rgba(255,255,255,0) 58%);
}

.tpl-diff-after {
  --tpl-diff-color: var(--p);
  padding: 88px 44px 36px;
  border: 1.5px solid rgba(99,102,241,.35);
  background:
    radial-gradient(circle at 25% 10%, color-mix(in srgb, var(--tpl-diff-color) 12%, transparent), transparent 34%),
    radial-gradient(circle at 82% 92%, rgba(129,140,248,.12), transparent 32%),
    linear-gradient(180deg, rgba(250,250,255,.96), rgba(255,255,255,.96));
  transition: border-color .45s ease, box-shadow .45s ease;
}

.tpl-diff-after::before {
  background: linear-gradient(180deg, color-mix(in srgb, var(--tpl-diff-color) 8%, transparent), transparent 60%);
}

.tpl-diff-pill {
  position: absolute;
  top: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  max-width: calc(100% - 40px);
  white-space: nowrap;
  border-radius: 999px;
  padding: 11px 24px;
  font-size: 20px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: .02em;
  text-transform: uppercase;
  z-index: 4;
}

.tpl-diff-pill-before {
  color: #ea580c;
  background: linear-gradient(180deg, rgba(255,237,213,.95), rgba(255,247,237,.92));
  box-shadow: 0 12px 28px rgba(251,146,60,.14);
}

.tpl-diff-pill-after {
  color: var(--tpl-diff-color);
  background: linear-gradient(180deg, rgba(238,242,255,.96), rgba(255,255,255,.9));
  box-shadow: 0 12px 28px color-mix(in srgb, var(--tpl-diff-color) 18%, transparent);
  transition: color .45s ease, box-shadow .45s ease;
}

.tpl-diff-generated-tag {
  position: absolute;
  top: 31px;
  right: 46px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--tpl-diff-color), #7c5cff);
  box-shadow: 0 12px 26px color-mix(in srgb, var(--tpl-diff-color) 34%, transparent);
  font-size: 12px;
  font-weight: 800;
  transition: background .45s ease, box-shadow .45s ease;
}

.tpl-diff-generated-tag span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  animation: tdot 1.6s infinite;
}

.tpl-diff-loop {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  overflow: visible;
}

.tpl-diff-loop path {
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 5 8;
  animation: tplDiffDash 9s linear infinite;
}

.tpl-diff-loop-before {
  left: -110px;
  top: 46px;
  width: 168px;
  height: 424px;
}

.tpl-diff-loop-before path { stroke: rgba(251, 146, 60, .44); }

.tpl-diff-loop-after {
  right: -132px;
  top: 36px;
  width: 190px;
  height: 474px;
}

.tpl-diff-loop-after path { stroke: color-mix(in srgb, var(--tpl-diff-color) 50%, transparent); }

@keyframes tplDiffDash {
  to { stroke-dashoffset: -100; }
}

.tpl-diff-side-bubbles {
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
}

.tpl-diff-bubble {
  position: absolute;
  top: var(--top);
  display: flex;
  align-items: center;
  gap: 12px;
  width: max-content;
  max-width: 214px;
  min-height: 54px;
  padding: 14px 18px;
  border: 1px solid rgba(99,102,241,.15);
  border-radius: 18px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 16px 38px rgba(99,102,241,.12);
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.25;
  opacity: 0;
  transform: translateY(-50%) scale(.9);
  transition: opacity .42s ease var(--delay), transform .42s cubic-bezier(.22,1,.36,1) var(--delay), box-shadow .3s ease;
}

.tpl-diff-bubble.is-in {
  opacity: 1;
  transform: translateY(-50%) scale(1);
}

.tpl-diff-bubble::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 44px;
  border-top: 2px dotted currentColor;
  opacity: .42;
}

.tpl-diff-bubble-before {
  left: -96px;
  color: #ea580c;
  border-color: rgba(251,146,60,.22);
  box-shadow: 0 16px 38px rgba(251,146,60,.12);
}

.tpl-diff-bubble-before::after {
  right: -44px;
}

.tpl-diff-bubble-after {
  right: -126px;
  color: var(--tpl-diff-color);
  border-color: color-mix(in srgb, var(--tpl-diff-color) 20%, transparent);
  box-shadow: 0 16px 38px color-mix(in srgb, var(--tpl-diff-color) 15%, transparent);
  transition: opacity .42s ease var(--delay), transform .42s cubic-bezier(.22,1,.36,1) var(--delay), color .45s ease, border-color .45s ease, box-shadow .45s ease;
}

.tpl-diff-bubble-after::after {
  left: -44px;
}

.tpl-diff-bubble-ic {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 11px;
  color: currentColor;
  background: color-mix(in srgb, currentColor 10%, #fff);
  font-size: 18px;
  font-weight: 900;
}

.tpl-diff-bubble-ic svg {
  width: 18px;
  height: 18px;
}

.tpl-diff-bubble-ic-ppt {
  color: #f97316;
  font-family: 'DM Mono', monospace;
}

.tpl-diff-bubble-ic-canva {
  color: #fb923c;
  font-family: 'DM Mono', monospace;
}

/* Faux Word flou — avant Gisel */
.tpl-diff-before-doc {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 330px;
  margin: 0 auto 30px;
  filter: drop-shadow(0 24px 40px rgba(251,146,60,.12));
}

.tpl-diff-word-window {
  position: relative;
  overflow: hidden;
  min-height: 342px;
  border: 1px solid rgba(251,146,60,.13);
  border-radius: 18px;
  background: rgba(255,255,255,.76);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9);
  backdrop-filter: blur(8px);
}

.tpl-diff-word-window::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255,255,255,.56), rgba(255,255,255,.2));
  pointer-events: none;
}

.tpl-diff-word-top {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 15px;
  background: linear-gradient(180deg, #fff, rgba(255,255,255,.72));
  border-bottom: 1px solid rgba(17,17,22,.05);
}

.tpl-diff-word-top i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #f4eee8;
}

.tpl-diff-word-menu,
.tpl-diff-word-toolbar {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 18px;
  color: rgba(106,85,71,.38);
  font-size: 9px;
  font-weight: 800;
}

.tpl-diff-word-toolbar {
  gap: 10px;
  padding-top: 2px;
  padding-bottom: 12px;
}

.tpl-diff-word-toolbar i,
.tpl-diff-word-toolbar b {
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: #eee6de;
}

.tpl-diff-word-toolbar b {
  width: 18px;
  height: 8px;
  border-radius: 999px;
}

.tpl-diff-word-page {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 8px 10px;
  width: calc(100% - 56px);
  min-height: 245px;
  margin: 0 auto 28px;
  padding: 34px 42px 26px;
  border: 1px solid rgba(17,17,22,.05);
  background: rgba(255,255,255,.72);
}

.tpl-diff-word-page span {
  display: block;
  border-radius: 999px;
  background: #ece8e4;
}

.tpl-diff-grey-title {
  grid-column: 1 / -1;
  justify-self: center;
  width: 74%;
  height: 19px;
  opacity: .82;
}

.tpl-diff-grey-sub {
  grid-column: 1 / -1;
  justify-self: center;
  width: 34%;
  height: 16px;
  margin-bottom: 12px;
  opacity: .75;
}

.tpl-diff-grey-line {
  grid-column: 1 / -1;
  height: 7px;
  opacity: .82;
}

.tpl-diff-grey-line.wide { width: 94%; }
.tpl-diff-grey-line.mid { width: 73%; }
.tpl-diff-grey-line.short { width: 52%; }

.tpl-diff-grey-box {
  grid-column: 1 / -1;
  width: 68%;
  height: 54px;
  margin: 12px auto 8px;
  border-radius: 3px !important;
  opacity: .76;
}

.tpl-diff-bullet {
  width: 6px;
  height: 6px;
  margin-top: 1px;
  justify-self: center;
  opacity: .78;
}

.tpl-diff-grey-line.bullet {
  grid-column: auto;
  width: 88%;
}

.tpl-diff-grey-line.bullet.short { width: 68%; }

.tpl-diff-frustration-card {
  position: relative;
  z-index: 3;
  width: calc(100% - 12px);
  margin: 0 auto;
  padding: 24px 30px;
  border: 1px solid rgba(251,146,60,.14);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(255,237,213,.76), rgba(255,255,255,.92));
  box-shadow: 0 18px 42px rgba(251,146,60,.12);
}

.tpl-diff-frustration-card h3 {
  margin: 0 0 12px;
  color: #7c2d12;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.32;
}

.tpl-diff-frustration-card p {
  margin: 0;
  color: #7c2d12;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.65;
}

/* Générateur — après Gisel */
.tpl-diff-after-workspace {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  align-items: stretch;
  gap: 16px;
}

.tpl-diff-gen-panel {
  min-width: 0;
  padding: 22px 18px;
  border-color: color-mix(in srgb, var(--tpl-diff-color) 15%, transparent);
  border-radius: 18px;
  background: rgba(255,255,255,.9);
  transition: border-color .45s ease;
}

.tpl-diff-gen-panel .gen-panel-title,
.tpl-diff-gen-panel .gen-label {
  letter-spacing: 0;
}

.tpl-diff-gen-upload {
  position: relative;
  min-height: 116px;
  padding: 20px 14px;
  border-color: color-mix(in srgb, var(--tpl-diff-color) 26%, var(--border2));
  background: color-mix(in srgb, var(--tpl-diff-color) 8%, #fff);
  transition: border-color .45s ease, background .45s ease;
}

.tpl-diff-upload-logo {
  position: absolute;
  left: 50%;
  top: 19px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 15px;
  background: rgba(255,255,255,.96);
  border: 1px solid color-mix(in srgb, var(--tpl-diff-color) 24%, transparent);
  box-shadow: 0 14px 28px color-mix(in srgb, var(--tpl-diff-color) 18%, transparent);
  opacity: 0;
  transform: translate(-50%, 8px) scale(.68);
  transition: opacity .32s ease, transform .45s cubic-bezier(.22,1,.36,1), border-color .45s ease, box-shadow .45s ease;
}

.tpl-diff-upload-logo img,
.tpl-diff-logo-fly img,
.tpl-diff-preview-logo img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.tpl-diff-after.is-logo-inserting .tpl-diff-upload-logo,
.tpl-diff-after.is-logo-inserted .tpl-diff-upload-logo {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}

.tpl-diff-after.is-logo-inserting .tpl-diff-gen-upload .gen-upload-icon,
.tpl-diff-after.is-logo-inserted .tpl-diff-gen-upload .gen-upload-icon {
  opacity: 0;
  transform: translateY(-8px) scale(.72);
}

.tpl-diff-after.is-logo-inserting .tpl-diff-gen-upload .gen-upload-txt,
.tpl-diff-after.is-logo-inserted .tpl-diff-gen-upload .gen-upload-txt {
  transform: translateY(30px);
  color: var(--tpl-diff-color);
}

.tpl-diff-after.is-logo-inserting .tpl-diff-gen-upload .gen-upload-sub,
.tpl-diff-after.is-logo-inserted .tpl-diff-gen-upload .gen-upload-sub {
  opacity: 0;
  transform: translateY(24px);
}

.tpl-diff-gen-upload .gen-upload-icon,
.tpl-diff-gen-upload .gen-upload-txt,
.tpl-diff-gen-upload .gen-upload-sub {
  position: relative;
  z-index: 1;
  transition: opacity .28s ease, transform .35s cubic-bezier(.22,1,.36,1), color .45s ease;
}

.tpl-diff-gen-colors {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tpl-diff-gen-color {
  position: relative;
  width: 29px;
  height: 29px;
  border-radius: 50%;
  border: 2px solid transparent;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.tpl-diff-gen-color.is-active {
  border-color: #fff;
  transform: translateY(-3px) scale(1.14);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--tpl-diff-color) 22%, transparent), 0 12px 24px color-mix(in srgb, var(--tpl-diff-color) 22%, transparent);
}

.tpl-diff-gen-btn {
  margin-top: 18px;
  background: linear-gradient(135deg, var(--tpl-diff-color), #7c5cff);
  box-shadow: 0 12px 26px color-mix(in srgb, var(--tpl-diff-color) 28%, transparent);
  transition: background .45s ease, box-shadow .45s ease, transform .2s ease;
}

.tpl-diff-preview-wrap {
  min-width: 0;
  align-self: stretch;
}

.tpl-diff-preview-badge {
  background: linear-gradient(135deg, var(--tpl-diff-color), #7c5cff);
  transition: background .45s ease, box-shadow .45s ease;
}

.tpl-diff-preview {
  height: 100%;
  min-height: 430px;
  border-color: color-mix(in srgb, var(--tpl-diff-color) 24%, transparent);
  box-shadow: 0 20px 50px color-mix(in srgb, var(--tpl-diff-color) 12%, transparent);
  transition: border-color .45s ease, box-shadow .45s ease;
}

.tpl-diff-banner {
  background: var(--tpl-diff-color);
  transition: background .45s ease;
}

.tpl-diff-preview-logo {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: rgba(255,255,255,.2);
  border: 2px solid rgba(255,255,255,.35);
  padding: 6px;
  opacity: .25;
  transform: scale(.82);
  transition: opacity .35s ease, transform .45s cubic-bezier(.22,1,.36,1);
}

.tpl-diff-after.is-logo-inserting .tpl-diff-preview-logo,
.tpl-diff-after.is-logo-inserted .tpl-diff-preview-logo {
  opacity: 1;
  transform: scale(1);
}

.tpl-diff-logo-fly {
  position: absolute;
  z-index: 12;
  left: 96px;
  top: 82px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 16px;
  background: rgba(255,255,255,.96);
  border: 1px solid color-mix(in srgb, var(--tpl-diff-color) 24%, transparent);
  box-shadow: 0 18px 36px color-mix(in srgb, var(--tpl-diff-color) 22%, transparent);
  opacity: 0;
  pointer-events: none;
}

.tpl-diff-after.is-logo-inserting .tpl-diff-logo-fly {
  animation: tplDiffLogoFly 1.1s cubic-bezier(.22,1,.36,1) both;
}

@keyframes tplDiffLogoFly {
  0% { opacity: 0; transform: translate(0, 14px) scale(.55) rotate(-9deg); }
  18% { opacity: 1; }
  72% { opacity: 1; transform: translate(255px, -20px) scale(1) rotate(0); }
  100% { opacity: 0; transform: translate(286px, -18px) scale(.72) rotate(4deg); }
}

.tpl-diff-after .tpl-content { padding: 16px 18px 18px; }
.tpl-diff-after .tpl-sec-t { color: var(--tpl-diff-color); transition: color .45s ease; }
.tpl-diff-after .tpl-sec-t::after { background: color-mix(in srgb, var(--tpl-diff-color) 20%, #eef2ff); transition: background .45s ease; }
.tpl-diff-after .tpl-skills-table td { border-color: color-mix(in srgb, var(--tpl-diff-color) 16%, #e0e7ff); transition: border-color .45s ease, background .45s ease, color .45s ease; }
.tpl-diff-after .tpl-skills-table td:first-child { color: var(--tpl-diff-color); background: color-mix(in srgb, var(--tpl-diff-color) 8%, #fff); }
.tpl-diff-after .tpl-form-year { color: var(--tpl-diff-color); transition: color .45s ease; }
.tpl-diff-after .tpl-line { background: color-mix(in srgb, var(--tpl-diff-color) 10%, #f3f4ff); transition: background .45s ease; }
.tpl-diff-after .tpl-diff-cert-line { font-size: 9px; color: var(--ink4); }

.tpl-diff-arrow {
  align-self: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(255,255,255,.96);
  border: 1px solid var(--border2);
  box-shadow: 0 18px 40px rgba(99,102,241,.16);
  color: var(--p);
  animation: tplDiffArrowPulse 1.9s ease-in-out infinite;
}

.tpl-diff-arrow svg {
  width: 34px;
  height: 34px;
}

@keyframes tplDiffArrowPulse {
  0%,100% { transform: scale(1); }
  50% { transform: scale(1.07); }
}

/* Compat : les anciens éléments de comparaison ne sont plus utilisés dans cette section. */
.tpl-difference-grid,
.tpl-difference-list,
.tpl-time-card {
  max-width: 920px;
}

@media (max-width: 1280px) {
  .tpl-difference-showcase {
    grid-template-columns: minmax(330px, .82fr) 50px minmax(560px, 1.18fr);
    max-width: 1120px;
  }
  .tpl-diff-before-bubbles .tpl-diff-bubble { left: -72px; }
  .tpl-diff-after-bubbles .tpl-diff-bubble { right: -84px; max-width: 186px; }
  .tpl-diff-loop-before { left: -86px; }
  .tpl-diff-loop-after { right: -94px; }
  .tpl-diff-after { padding-left: 34px; padding-right: 34px; }
  .tpl-diff-after-workspace { grid-template-columns: 198px minmax(0, 1fr); }
  .tpl-diff-logo-fly { left: 82px; }
  @keyframes tplDiffLogoFly {
    0% { opacity: 0; transform: translate(0, 14px) scale(.55) rotate(-9deg); }
    18% { opacity: 1; }
    72% { opacity: 1; transform: translate(226px, -18px) scale(1) rotate(0); }
    100% { opacity: 0; transform: translate(252px, -16px) scale(.72) rotate(4deg); }
  }
}

@media (max-width: 1100px) {
  .tpl-difference-showcase {
    grid-template-columns: 1fr;
    max-width: 720px;
    gap: 22px;
  }
  .tpl-diff-arrow {
    justify-self: center;
    transform: rotate(90deg);
    animation: none;
  }
  .tpl-diff-loop,
  .tpl-diff-bubble::after {
    display: none;
  }
  .tpl-diff-side-bubbles {
    position: static;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 24px;
  }
  .tpl-diff-bubble {
    position: static;
    width: auto;
    max-width: none;
    min-height: 0;
    transform: translateY(10px) scale(.96);
    justify-content: center;
    text-align: center;
  }
  .tpl-diff-bubble.is-in {
    transform: translateY(0) scale(1);
  }
  .tpl-diff-before,
  .tpl-diff-after {
    padding: 88px 28px 30px;
  }
  .tpl-diff-generated-tag {
    right: 28px;
  }
  .tpl-diff-before-doc {
    max-width: 420px;
  }
  .tpl-diff-word-window {
    min-height: 320px;
  }
}

@media (max-width: 760px) {
  .tpl-diff-side-bubbles,
  .tpl-diff-after-workspace {
    grid-template-columns: 1fr;
  }
  .tpl-diff-panel {
    min-height: 0;
  }
  .tpl-diff-pill {
    top: 24px;
    font-size: 16px;
  }
  .tpl-diff-before,
  .tpl-diff-after {
    padding: 76px 18px 22px;
    border-radius: 24px;
  }
  .tpl-diff-generated-tag {
    position: relative;
    top: auto;
    right: auto;
    margin: -8px auto 18px;
    width: fit-content;
  }
  .tpl-diff-before-doc {
    max-width: 100%;
  }
  .tpl-diff-word-menu span:nth-child(n+5) {
    display: none;
  }
  .tpl-diff-word-page {
    width: calc(100% - 28px);
    padding-left: 26px;
    padding-right: 26px;
  }
  .tpl-diff-frustration-card {
    width: 100%;
    padding: 22px;
  }
  .tpl-diff-preview {
    min-height: 390px;
  }
  .tpl-diff-logo-fly {
    display: none;
  }
}

@media (max-width: 520px) {
  .tpl-diff-side-bubbles {
    grid-template-columns: 1fr;
  }
  .tpl-diff-bubble {
    justify-content: flex-start;
    text-align: left;
  }
  .tpl-diff-word-menu {
    gap: 8px;
    font-size: 8px;
  }
  .tpl-diff-word-page {
    min-height: 220px;
  }
  .tpl-diff-after .tpl-name-big {
    font-size: 15px;
  }
  .tpl-diff-after .tpl-role-ph,
  .tpl-diff-after .tpl-years-ph {
    font-size: 9px;
  }
  .tpl-diff-after .tpl-banner-r {
    display: none;
  }
}


/* TEMPLATE PERSONNALISÉ — ajustements avant/après v2 */
.tpl-difference-showcase {
  grid-template-columns: minmax(318px, .8fr) 50px minmax(540px, 1.2fr);
  max-width: 1100px;
  gap: 16px;
}

.tpl-diff-panel {
  min-height: 474px;
  border-radius: 28px;
}

.tpl-diff-before {
  padding: 76px 22px 22px;
}

.tpl-diff-after {
  --tpl-static-purple: #6366f1;
  padding: 76px 34px 30px;
  border-color: rgba(99,102,241,.35);
  background:
    radial-gradient(circle at 25% 10%, rgba(99,102,241,.10), transparent 34%),
    radial-gradient(circle at 82% 92%, rgba(129,140,248,.12), transparent 32%),
    linear-gradient(180deg, rgba(250,250,255,.96), rgba(255,255,255,.96));
}

.tpl-diff-after::before {
  background: linear-gradient(180deg, rgba(99,102,241,.07), transparent 60%);
}

.tpl-diff-pill {
  top: 25px;
  padding: 10px 22px;
  font-size: 18px;
}

.tpl-diff-pill-after {
  color: var(--p);
  box-shadow: 0 12px 28px rgba(99,102,241,.16);
}

.tpl-diff-generated-tag {
  display: none !important;
}

.tpl-diff-loop-before {
  left: -92px;
  top: 42px;
  width: 150px;
  height: 390px;
}

.tpl-diff-loop-after {
  right: -110px;
  top: 54px;
  width: 166px;
  height: 410px;
}

.tpl-diff-loop-after path {
  stroke: rgba(99,102,241,.46);
}

.tpl-diff-bubble {
  max-width: 188px;
  min-height: 50px;
  padding: 12px 15px;
  border-radius: 16px;
  gap: 10px;
  font-size: 12px;
  line-height: 1.22;
  transition: opacity .28s ease, transform .28s cubic-bezier(.22,1,.36,1), box-shadow .28s ease;
}

.tpl-diff-bubble::after {
  width: 38px;
}

.tpl-diff-bubble-before {
  left: -78px;
}

.tpl-diff-bubble-before::after {
  right: -38px;
}

.tpl-diff-bubble-after {
  right: -104px;
  color: var(--p);
  border-color: rgba(99,102,241,.18);
  box-shadow: 0 16px 38px rgba(99,102,241,.13);
}

.tpl-diff-bubble-after::after {
  left: -38px;
}

.tpl-diff-bubble-ic {
  width: 29px;
  height: 29px;
  border-radius: 10px;
  background: rgba(99,102,241,.09);
}

.tpl-diff-bubble-ic svg {
  width: 16px;
  height: 16px;
}

@media (min-width: 1101px) {
  .tpl-diff-bubble.is-in {
    animation: tplDiffBubblePop .78s cubic-bezier(.22,1,.36,1) both;
  }
}

@keyframes tplDiffBubblePop {
  0% { opacity: 0; transform: translateY(-50%) scale(.6); }
  42% { opacity: 1; transform: translateY(-50%) scale(1.08); }
  62% { opacity: 1; transform: translateY(-50%) scale(1); }
  78% { opacity: 1; transform: translateY(calc(-50% - 3px)) scale(1); }
  100% { opacity: 1; transform: translateY(-50%) scale(1); }
}

.tpl-diff-before-doc {
  max-width: 296px;
  margin-bottom: 24px;
}

.tpl-diff-word-window {
  min-height: 300px;
}

.tpl-diff-word-top {
  height: 30px;
}

.tpl-diff-word-menu {
  gap: 10px;
  padding: 8px 16px;
  font-size: 8px;
}

.tpl-diff-word-toolbar {
  gap: 8px;
  padding-bottom: 10px;
}

.tpl-diff-word-page {
  width: calc(100% - 48px);
  min-height: 212px;
  padding: 28px 34px 22px;
  margin-bottom: 22px;
}

.tpl-diff-frustration-card {
  width: calc(100% - 8px);
  padding: 21px 26px;
  border-radius: 20px;
}

.tpl-diff-frustration-card h3 {
  font-size: 13px;
}

.tpl-diff-frustration-card p {
  font-size: 12px;
}

.tpl-diff-after-workspace {
  grid-template-columns: 188px minmax(0, 1fr);
  gap: 14px;
}

.tpl-diff-gen-panel {
  padding: 18px 15px;
  border-color: rgba(99,102,241,.15);
  background: rgba(255,255,255,.9);
}

.tpl-diff-gen-upload {
  min-height: 100px;
  padding: 17px 12px;
  border-color: rgba(99,102,241,.24);
  background: rgba(238,242,255,.56);
}

.tpl-diff-upload-logo,
.tpl-diff-logo-fly {
  border-color: rgba(99,102,241,.20);
  box-shadow: 0 14px 28px rgba(99,102,241,.16);
}

.tpl-diff-upload-logo {
  top: 15px;
  width: 42px;
  height: 42px;
}

.tpl-diff-upload-logo img,
.tpl-diff-logo-fly img,
.tpl-diff-preview-logo img {
  width: 30px;
  height: 30px;
}

.tpl-diff-after.is-logo-inserting .tpl-diff-gen-upload .gen-upload-txt,
.tpl-diff-after.is-logo-inserted .tpl-diff-gen-upload .gen-upload-txt {
  color: var(--p);
}

.tpl-diff-gen-colors {
  gap: 7px;
}

.tpl-diff-gen-color {
  width: 26px;
  height: 26px;
}

.tpl-diff-gen-color.is-active {
  box-shadow: 0 0 0 3px rgba(99,102,241,.18), 0 12px 24px rgba(99,102,241,.16);
}

.tpl-diff-gen-btn {
  position: relative;
  margin-top: 16px;
  color: #fff !important;
  background: linear-gradient(135deg, var(--p) 0%, #7c5cff 100%) !important;
  box-shadow: 0 12px 28px rgba(99,102,241,.34) !important;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease !important;
}

.tpl-diff-gen-btn:hover {
  color: #fff !important;
  background: linear-gradient(135deg, var(--p2) 0%, #6d5dfc 100%) !important;
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(99,102,241,.46) !important;
}

.tpl-diff-preview-badge {
  background: linear-gradient(135deg, var(--p), #7c5cff);
  box-shadow: 0 12px 26px rgba(99,102,241,.34);
}

.tpl-diff-preview {
  min-height: 384px;
  border-color: rgba(99,102,241,.20);
  box-shadow: 0 20px 50px rgba(99,102,241,.12);
}

.tpl-diff-banner {
  background: var(--tpl-diff-color);
}

.tpl-diff-preview-logo {
  width: 42px;
  height: 42px;
}

.tpl-diff-logo-fly {
  left: 82px;
  top: 70px;
  width: 44px;
  height: 44px;
}

@keyframes tplDiffLogoFly {
  0% { opacity: 0; transform: translate(0, 14px) scale(.55) rotate(-9deg); }
  18% { opacity: 1; }
  72% { opacity: 1; transform: translate(151px, -34px) scale(1) rotate(0); }
  100% { opacity: 0; transform: translate(151px, -34px) scale(.66) rotate(0); }
}

.tpl-diff-after .tpl-content {
  padding: 14px 16px 16px;
}

.tpl-diff-after .tpl-sec-t {
  color: var(--p);
}

.tpl-diff-after .tpl-sec-t::after {
  background: var(--p4);
}

.tpl-diff-after .tpl-skills-table td {
  border-color: var(--p4);
}

.tpl-diff-after .tpl-skills-table td:first-child {
  color: var(--p);
  background: var(--p5);
}

.tpl-diff-after .tpl-form-year {
  color: var(--p);
}

.tpl-diff-after .tpl-line {
  background: var(--bg2);
}

.tpl-diff-arrow {
  width: 50px;
  height: 50px;
}

.tpl-diff-arrow svg {
  width: 30px;
  height: 30px;
}

@media (max-width: 1280px) {
  .tpl-difference-showcase {
    grid-template-columns: minmax(300px, .8fr) 48px minmax(510px, 1.2fr);
    max-width: 1040px;
  }
  .tpl-diff-before-bubbles .tpl-diff-bubble { left: -62px; }
  .tpl-diff-after-bubbles .tpl-diff-bubble { right: -78px; max-width: 172px; }
  .tpl-diff-loop-before { left: -74px; }
  .tpl-diff-loop-after { right: -84px; }
  .tpl-diff-after { padding-left: 28px; padding-right: 28px; }
  .tpl-diff-after-workspace { grid-template-columns: 176px minmax(0, 1fr); }
  .tpl-diff-logo-fly { left: 76px; top: 70px; }
  @keyframes tplDiffLogoFly {
    0% { opacity: 0; transform: translate(0, 14px) scale(.55) rotate(-9deg); }
    18% { opacity: 1; }
    72% { opacity: 1; transform: translate(139px, -34px) scale(1) rotate(0); }
    100% { opacity: 0; transform: translate(139px, -34px) scale(.66) rotate(0); }
  }
}

@media (max-width: 1100px) {
  .tpl-difference-showcase {
    max-width: 680px;
  }
  .tpl-diff-before,
  .tpl-diff-after {
    padding: 78px 24px 28px;
  }
  .tpl-diff-side-bubbles {
    margin-bottom: 20px;
  }
  .tpl-diff-bubble {
    max-width: none;
  }
}


/* === tpl diff refinements v3 === */
.tpl-diff-loop {
  display: none !important;
}

/* Link each bubble directly to its panel with its own dotted spring line */
.tpl-diff-bubble {
  overflow: visible;
}

.tpl-diff-bubble::before {
  content: "";
  position: absolute;
  top: 50%;
  width: 86px;
  height: 86px;
  pointer-events: none;
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

.tpl-diff-bubble-before::before {
  right: -78px;
  transform: translateY(-50%);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 86 86' fill='none'%3E%3Cpath d='M4 43 C20 43 18 10 40 10 C64 10 58 76 82 43' stroke='%23f59e0b' stroke-opacity='.52' stroke-width='2.2' stroke-linecap='round' stroke-dasharray='2.5 8'/%3E%3C/svg%3E");
}

.tpl-diff-bubble-after::before {
  left: -78px;
  transform: translateY(-50%) scaleX(-1);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 86 86' fill='none'%3E%3Cpath d='M4 43 C20 43 18 10 40 10 C64 10 58 76 82 43' stroke='%236366f1' stroke-opacity='.5' stroke-width='2.2' stroke-linecap='round' stroke-dasharray='2.5 8'/%3E%3C/svg%3E");
}

.tpl-diff-bubble::after {
  width: 0 !important;
  border: 0 !important;
}

/* Reduce whitespace in the upload dropzone once the logo is inserted */
.tpl-diff-gen-upload {
  min-height: 92px !important;
  padding: 14px 12px 12px !important;
}

.tpl-diff-upload-logo {
  top: 10px !important;
}

.tpl-diff-after.is-logo-inserting .tpl-diff-gen-upload .gen-upload-txt,
.tpl-diff-after.is-logo-inserted .tpl-diff-gen-upload .gen-upload-txt {
  transform: translateY(16px) !important;
}

.tpl-diff-after.is-logo-inserting .tpl-diff-gen-upload .gen-upload-sub,
.tpl-diff-after.is-logo-inserted .tpl-diff-gen-upload .gen-upload-sub {
  transform: translateY(12px) !important;
}

/* Make the flying logo land closer to the circular logo target in the header */
.tpl-diff-logo-fly {
  left: 82px !important;
  top: 58px !important;
}

@keyframes tplDiffLogoFly {
  0% { opacity: 0; transform: translate(0, 16px) scale(.55) rotate(-8deg); }
  18% { opacity: 1; }
  76% { opacity: 1; transform: translate(166px, -48px) scale(.98) rotate(0deg); }
  100% { opacity: 0; transform: translate(174px, -50px) scale(.72) rotate(2deg); }
}

@media (max-width: 1280px) {
  .tpl-diff-logo-fly {
    left: 76px !important;
    top: 58px !important;
  }

  @keyframes tplDiffLogoFly {
    0% { opacity: 0; transform: translate(0, 16px) scale(.55) rotate(-8deg); }
    18% { opacity: 1; }
    76% { opacity: 1; transform: translate(154px, -48px) scale(.98) rotate(0deg); }
    100% { opacity: 0; transform: translate(162px, -50px) scale(.72) rotate(2deg); }
  }
}

@media (max-width: 1100px) {
  .tpl-diff-bubble::before {
    display: none;
  }
}


/* === tpl diff refinements v4 === */
/* Keep the bubbles visible longer and keep their connectors away from text. */
.tpl-difference-showcase {
  margin-bottom: 116px;
}

.tpl-diff-gen-btn {
  display: none !important;
}

.tpl-diff-bubble {
  z-index: 12;
}

@media (min-width: 1101px) {
  .tpl-diff-bubble.is-in {
    animation: tplDiffBubblePopLong 1.05s cubic-bezier(.22,1,.36,1) both;
  }
}

@keyframes tplDiffBubblePopLong {
  0% { opacity: 0; transform: translateY(-50%) scale(.62); }
  36% { opacity: 1; transform: translateY(-50%) scale(1.07); }
  56% { opacity: 1; transform: translateY(-50%) scale(1); }
  78% { opacity: 1; transform: translateY(calc(-50% - 4px)) scale(1); }
  100% { opacity: 1; transform: translateY(-50%) scale(1); }
}

/* Let side bubbles sit outside the preview instead of covering header/body text. */
.tpl-diff-after-bubbles .tpl-diff-bubble-after {
  right: -194px !important;
  max-width: 202px !important;
}

.tpl-diff-after-bubbles .tpl-diff-bubble-after:nth-child(1) {
  top: 32% !important;
}

.tpl-diff-after-bubbles .tpl-diff-bubble-after:nth-child(2) {
  top: 52% !important;
}

.tpl-diff-after-bubbles .tpl-diff-bubble-after:nth-child(3) {
  top: calc(100% + 42px) !important;
  right: 34px !important;
  max-width: 250px !important;
}

/* Short spring connectors: they stop at the panel edge, never over text. */
.tpl-diff-bubble-after::before {
  left: -50px !important;
  width: 54px !important;
  height: 58px !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 54 58' fill='none'%3E%3Cpath d='M52 30 C38 30 38 12 25 12 C10 12 14 46 2 46' stroke='%236366f1' stroke-opacity='.48' stroke-width='2.2' stroke-linecap='round' stroke-dasharray='2.5 8'/%3E%3C/svg%3E") !important;
}

.tpl-diff-after-bubbles .tpl-diff-bubble-after:nth-child(3)::before {
  left: 28px !important;
  top: -72px !important;
  width: 118px !important;
  height: 78px !important;
  transform: none !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 118 78' fill='none'%3E%3Cpath d='M10 74 C12 45 52 58 54 30 C56 7 92 14 108 2' stroke='%236366f1' stroke-opacity='.42' stroke-width='2.2' stroke-linecap='round' stroke-dasharray='2.5 8'/%3E%3C/svg%3E") !important;
}

/* Keep before-side connectors outside the Word text too. */
.tpl-diff-bubble-before {
  left: -92px !important;
}

.tpl-diff-bubble-before::before {
  right: -52px !important;
  width: 56px !important;
  height: 58px !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 56 58' fill='none'%3E%3Cpath d='M4 30 C18 30 18 12 31 12 C46 12 42 46 54 46' stroke='%23f59e0b' stroke-opacity='.5' stroke-width='2.2' stroke-linecap='round' stroke-dasharray='2.5 8'/%3E%3C/svg%3E") !important;
}

/* Start from the uploaded-logo area and land on the circular logo in the preview header. */
.tpl-diff-logo-fly {
  left: 96px !important;
  top: 166px !important;
  width: 42px !important;
  height: 42px !important;
}

@keyframes tplDiffLogoFly {
  0% { opacity: 0; transform: translate(0, 12px) scale(.55) rotate(-7deg); }
  16% { opacity: 1; }
  72% { opacity: 1; transform: translate(184px, -72px) scale(.95) rotate(0deg); }
  100% { opacity: 0; transform: translate(188px, -72px) scale(.64) rotate(1deg); }
}

@media (max-width: 1280px) and (min-width: 1101px) {
  .tpl-diff-after-bubbles .tpl-diff-bubble-after {
    right: -184px !important;
  }

  .tpl-diff-after-bubbles .tpl-diff-bubble-after:nth-child(3) {
    right: 28px !important;
  }

  .tpl-diff-logo-fly {
    left: 88px !important;
    top: 164px !important;
  }

  @keyframes tplDiffLogoFly {
    0% { opacity: 0; transform: translate(0, 12px) scale(.55) rotate(-7deg); }
    16% { opacity: 1; }
    72% { opacity: 1; transform: translate(172px, -72px) scale(.95) rotate(0deg); }
    100% { opacity: 0; transform: translate(176px, -72px) scale(.64) rotate(1deg); }
  }
}

@media (max-width: 1100px) {
  .tpl-difference-showcase {
    margin-bottom: 0;
  }

  .tpl-diff-after-bubbles .tpl-diff-bubble-after,
  .tpl-diff-after-bubbles .tpl-diff-bubble-after:nth-child(3),
  .tpl-diff-bubble-before {
    right: auto !important;
    left: auto !important;
    top: auto !important;
    max-width: none !important;
  }
}


/* === tpl diff refinements v5 === */
/* Remove the flying logo transfer: keep only the upload-logo pop and the preview-logo reveal. */
.tpl-diff-logo-fly {
  display: none !important;
}

/* Give bubble pop a longer, calmer presence. */
@media (min-width: 1101px) {
  .tpl-diff-bubble.is-in {
    animation: tplDiffBubblePopV5 1.18s cubic-bezier(.22,1,.36,1) both !important;
  }
}

@keyframes tplDiffBubblePopV5 {
  0% { opacity: 0; transform: translateY(-50%) scale(.64); }
  30% { opacity: 1; transform: translateY(-50%) scale(1.06); }
  52% { opacity: 1; transform: translateY(-50%) scale(1); }
  76% { opacity: 1; transform: translateY(calc(-50% - 3px)) scale(1); }
  100% { opacity: 1; transform: translateY(-50%) scale(1); }
}

/* Keep right-side bubbles inside the viewport and away from the template text. */
.tpl-difference-showcase {
  margin-bottom: 104px !important;
}

.tpl-diff-after-bubbles .tpl-diff-bubble-after {
  right: -108px !important;
  max-width: 188px !important;
  font-size: 11.4px !important;
  line-height: 1.23 !important;
}

.tpl-diff-after-bubbles .tpl-diff-bubble-after:nth-child(1) {
  top: 41% !important;
  right: -104px !important;
}

.tpl-diff-after-bubbles .tpl-diff-bubble-after:nth-child(2) {
  top: 57% !important;
  right: -104px !important;
}

.tpl-diff-after-bubbles .tpl-diff-bubble-after:nth-child(3) {
  top: calc(100% - 2px) !important;
  right: 90px !important;
  max-width: 306px !important;
  font-size: 12px !important;
}

/* Connector lines: short and routed through whitespace, not over readable text. */
.tpl-diff-bubble-after::before {
  left: -46px !important;
  top: 50% !important;
  width: 50px !important;
  height: 54px !important;
  transform: translateY(-50%) scaleX(-1) !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 50 54' fill='none'%3E%3Cpath d='M4 27 C14 27 15 10 28 12 C40 14 36 42 48 42' stroke='%236366f1' stroke-opacity='.48' stroke-width='2.2' stroke-linecap='round' stroke-dasharray='2.5 8'/%3E%3C/svg%3E") !important;
}

.tpl-diff-after-bubbles .tpl-diff-bubble-after:nth-child(1)::before,
.tpl-diff-after-bubbles .tpl-diff-bubble-after:nth-child(2)::before {
  top: 50% !important;
}

.tpl-diff-after-bubbles .tpl-diff-bubble-after:nth-child(3)::before {
  left: 52px !important;
  top: -72px !important;
  width: 170px !important;
  height: 86px !important;
  transform: none !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 170 86' fill='none'%3E%3Cpath d='M26 82 C24 54 74 61 88 34 C100 11 134 18 162 4' stroke='%236366f1' stroke-opacity='.42' stroke-width='2.2' stroke-linecap='round' stroke-dasharray='2.5 8'/%3E%3C/svg%3E") !important;
}

/* Slightly compact the side icon so the first right bubble can fit safely. */
.tpl-diff-after-bubbles .tpl-diff-bubble-after .tpl-diff-bubble-ic {
  width: 28px !important;
  height: 28px !important;
  border-radius: 10px !important;
}

@media (max-width: 1280px) and (min-width: 1101px) {
  .tpl-diff-after-bubbles .tpl-diff-bubble-after,
  .tpl-diff-after-bubbles .tpl-diff-bubble-after:nth-child(1),
  .tpl-diff-after-bubbles .tpl-diff-bubble-after:nth-child(2) {
    right: -86px !important;
    max-width: 176px !important;
    font-size: 10.9px !important;
  }

  .tpl-diff-after-bubbles .tpl-diff-bubble-after:nth-child(3) {
    right: 70px !important;
    top: calc(100% - 4px) !important;
    max-width: 286px !important;
    font-size: 11.6px !important;
  }

  .tpl-diff-after-bubbles .tpl-diff-bubble-after:nth-child(3)::before {
    left: 48px !important;
    width: 154px !important;
  }
}


@media (max-width: 480px) {
  .tpl-difference-showcase {
    max-width: 100%;
    gap: 14px;
  }
  .tpl-diff-pill {
    font-size: 11px;
    padding: 6px 14px;
    top: 18px;
  }
  .tpl-diff-before,
  .tpl-diff-after {
    padding: 64px 14px 18px;
    border-radius: 18px;
  }
  .tpl-diff-frustration-card {
    padding: 16px;
  }
  .tpl-diff-frustration-card h3 {
    font-size: 14px;
  }
  .tpl-diff-frustration-card p {
    font-size: 13px;
  }
  .tpl-diff-side-bubbles {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .tpl-diff-bubble {
    font-size: 12px;
    padding: 8px 12px;
  }
}

.fillp-ba-arrow{display:flex;align-items:center;justify-content:center;color:var(--p)}
.fillp-ba-arrow svg{width:30px;height:30px}

@media (max-width: 560px) {
  .tpl-upload-card {
    padding: 18px;
    border-radius: 16px;
    max-width: 100%;
  }
  .tpl-demo-guide {
    display: none;
  }
  .tpl-reassure {
    font-size: 11px;
  }
}
