/* Motaz CV Builder v39 — guided product experience and launch-ready polish. */
:root {
  --v39-ink: #132f3f;
  --v39-blue: #17607d;
  --v39-blue-2: #2484a8;
  --v39-gold: #c7a365;
  --v39-paper: #ffffff;
  --v39-soft: #f3f8fa;
  --v39-line: #d8e4e9;
  --v39-success: #24734b;
  --v39-shadow: 0 24px 70px rgba(13, 47, 64, .18);
}

html {
  scroll-behavior: smooth;
}

body.v39-drawer-open {
  overflow: hidden !important;
}

.creator-credit a[href^="mailto:"] {
  display: inline-flex !important;
  align-items: center;
  min-height: 31px;
  padding: 6px 10px;
  color: #285e78 !important;
  background: #edf6fa;
  border: 1px solid #c9dee8;
  border-radius: 999px;
  font-size: 8px;
  font-weight: 800;
}

.landing-footer a[href^="mailto:"],
.foot a[href^="mailto:"] {
  display: inline-flex !important;
}

.v39-launch-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 7px 10px;
  color: #185c40;
  background: #ebf7ef;
  border: 1px solid #c5e5d1;
  border-radius: 999px;
  white-space: nowrap;
  font-size: 8px;
  font-weight: 900;
}

.v39-launch-badge::before {
  content: "";
  width: 7px;
  height: 7px;
  background: #33a166;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(51, 161, 102, .12);
}

.v39-guide-launcher {
  position: fixed;
  z-index: 92;
  left: 20px;
  bottom: 22px;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  padding: 8px 15px 8px 8px;
  color: #fff;
  background: linear-gradient(135deg, #123b50, #237796);
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 17px;
  box-shadow: 0 16px 38px rgba(10, 49, 68, .28);
  font-family: inherit;
  cursor: pointer;
}

.v39-guide-launcher > span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: #153b50;
  background: #f4dcae;
  border-radius: 11px;
  font: 900 15px/1 Arial, sans-serif;
}

.v39-guide-launcher > b {
  font-size: 11px;
}

.v39-guide-launcher > small {
  position: absolute;
  left: 51px;
  bottom: 5px;
  opacity: .76;
  font-size: 6.5px;
}

.v39-guide-launcher:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 46px rgba(10, 49, 68, .34);
}

.v39-guide-backdrop {
  position: fixed;
  z-index: 140;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  background: rgba(5, 24, 34, .58);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  transition: opacity .2s ease;
}

.v39-guide-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.v39-guide-drawer {
  position: fixed;
  z-index: 141;
  top: 0;
  bottom: 0;
  left: 0;
  width: min(430px, 94vw);
  overflow-y: auto;
  color: #294753;
  background: #f7fafb;
  border-right: 1px solid #d6e2e7;
  box-shadow: 30px 0 90px rgba(4, 28, 41, .28);
  transform: translateX(-104%);
  transition: transform .24s cubic-bezier(.22, .8, .24, 1);
}

.v39-guide-drawer.open {
  transform: translateX(0);
}

.v39-guide-head {
  position: sticky;
  z-index: 2;
  top: 0;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 38px;
  align-items: center;
  gap: 11px;
  padding: 17px 18px;
  color: #fff;
  background: linear-gradient(135deg, #102f40, #1d617d);
}

.v39-guide-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: #153c51;
  background: #f0d49f;
  border-radius: 14px;
  font: 900 15px/1 Georgia, serif;
}

.v39-guide-head div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.v39-guide-head small {
  opacity: .72;
  letter-spacing: .08em;
  font-size: 7px;
  font-weight: 800;
}

.v39-guide-head b {
  font-size: 15px;
}

.v39-guide-close {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: #fff;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 12px;
  font-size: 20px;
  cursor: pointer;
}

.v39-guide-body {
  padding: 18px;
}

.v39-guide-intro {
  margin: 0 0 14px;
  color: #667b85;
  font-size: 10.5px;
  line-height: 1.75;
}

.v39-guide-steps {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.v39-guide-steps button {
  width: 100%;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 11px;
  text-align: start;
  color: #294957;
  background: #fff;
  border: 1px solid #dce6ea;
  border-radius: 13px;
  box-shadow: 0 6px 18px rgba(25, 68, 88, .05);
  cursor: pointer;
}

.v39-guide-steps button:hover {
  border-color: #91b8c8;
  transform: translateY(-1px);
}

.v39-step-number {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: #1e6482;
  background: #eaf4f8;
  border-radius: 11px;
  font-size: 10px;
  font-weight: 950;
}

.v39-guide-steps button > span:nth-child(2) {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.v39-guide-steps b {
  font-size: 10px;
}

.v39-guide-steps small {
  color: #7b8c94;
  font-size: 7.5px;
  line-height: 1.45;
}

.v39-step-arrow {
  color: #91a3ac;
  font-size: 17px;
}

.v39-plan-mini {
  margin-top: 15px;
  padding: 14px;
  color: #eaf6fb;
  background: linear-gradient(145deg, #13384c, #1d5d77);
  border: 1px solid #2b718c;
  border-radius: 15px;
}

.v39-plan-mini > span {
  display: inline-flex;
  padding: 4px 7px;
  color: #173f54;
  background: #f1d8a8;
  border-radius: 999px;
  font-size: 6.5px;
  font-weight: 950;
}

.v39-plan-mini h3 {
  margin: 9px 0 5px;
  color: #fff;
  font-size: 13px;
}

.v39-plan-mini p {
  margin: 0;
  opacity: .78;
  font-size: 8px;
  line-height: 1.65;
}

.v39-support-card {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  margin-top: 10px;
  padding: 12px;
  background: #fff;
  border: 1px solid #dce5e9;
  border-radius: 14px;
}

.v39-support-card > span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: #805e28;
  background: #fbf0db;
  border-radius: 11px;
  font-size: 15px;
}

.v39-support-card div {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.v39-support-card b {
  font-size: 9px;
}

.v39-support-card a {
  overflow: hidden;
  color: #1f6684;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 8px;
  font-weight: 800;
}

.v39-focus-pulse {
  animation: v39FocusPulse 1.25s ease;
}

@keyframes v39FocusPulse {
  0%, 100% { box-shadow: inherit; }
  35% { box-shadow: 0 0 0 5px rgba(42, 137, 177, .2), 0 14px 34px rgba(23, 84, 111, .16); }
}

.v39-growth {
  width: min(1180px, calc(100% - 40px));
  margin: 34px auto;
  padding: 74px 0 16px;
  scroll-margin-top: 94px;
}

.v39-growth-head {
  max-width: 760px;
  margin: 0 auto 28px;
  text-align: center;
}

.v39-growth-head > span {
  color: #a67b37;
  letter-spacing: .12em;
  font-size: 10px;
  font-weight: 950;
}

.v39-growth-head h2 {
  margin: 10px 0 8px;
  color: #12384c;
  font: 800 clamp(30px, 4vw, 50px)/1.14 Georgia, "Times New Roman", serif;
}

.v39-growth-head p {
  margin: 0;
  color: #6b7e87;
  font-size: 14px;
  line-height: 1.8;
}

.v39-plan-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.v39-plan-card {
  position: relative;
  overflow: hidden;
  padding: 26px;
  background: #fff;
  border: 1px solid #dbe5e9;
  border-radius: 24px;
  box-shadow: 0 16px 46px rgba(24, 63, 82, .08);
}

.v39-plan-card.featured {
  color: #eef7fa;
  background: linear-gradient(145deg, #123446, #1d617c);
  border-color: #28738f;
}

.v39-plan-card > span {
  display: inline-flex;
  padding: 5px 9px;
  color: #805e27;
  background: #f8ecd6;
  border-radius: 999px;
  font-size: 8px;
  font-weight: 950;
}

.v39-plan-card.featured > span {
  color: #163f53;
  background: #f1d7a7;
}

.v39-plan-card h3 {
  margin: 14px 0 6px;
  color: #173d50;
  font-size: 23px;
}

.v39-plan-card.featured h3 {
  color: #fff;
}

.v39-plan-card > p {
  min-height: 48px;
  margin: 0;
  color: #6d7f87;
  font-size: 12px;
  line-height: 1.7;
}

.v39-plan-card.featured > p {
  color: #c8dce5;
}

.v39-plan-card ul {
  display: grid;
  gap: 9px;
  margin: 18px 0;
  padding: 0;
  list-style: none;
}

.v39-plan-card li {
  position: relative;
  padding-inline-start: 24px;
  color: #3e5b68;
  font-size: 10.5px;
  line-height: 1.55;
}

.v39-plan-card.featured li {
  color: #e0edf2;
}

.v39-plan-card li::before {
  content: "✓";
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 17px;
  height: 17px;
  color: #fff;
  background: #2c8a5c;
  border-radius: 50%;
  font-size: 9px;
  font-weight: 950;
}

.v39-plan-cta,
.v39-plan-wait {
  min-height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 13px;
  font-size: 10px;
  font-weight: 950;
  text-decoration: none;
}

.v39-plan-cta {
  color: #153b4f;
  background: #f2d9aa;
  border: 1px solid #e0bd78;
}

.v39-plan-wait {
  color: #637983;
  background: #f2f6f7;
  border: 1px dashed #c8d5da;
}

.v39-template-lab {
  margin-top: 18px;
  padding: 24px;
  background: linear-gradient(145deg, #f9fbfc, #edf5f8);
  border: 1px solid #d8e4e9;
  border-radius: 24px;
}

.v39-template-lab-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.v39-template-lab-head div {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.v39-template-lab-head span {
  color: #a27633;
  font-size: 8px;
  font-weight: 950;
}

.v39-template-lab-head h3 {
  margin: 0;
  color: #173e52;
  font-size: 22px;
}

.v39-template-lab-head p {
  max-width: 440px;
  margin: 0;
  color: #6f818a;
  font-size: 10px;
  line-height: 1.65;
}

.v39-template-lab-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.v39-template-lab article {
  min-width: 0;
  padding: 13px;
  background: #fff;
  border: 1px solid #dde6ea;
  border-radius: 15px;
}

.v39-template-preview {
  position: relative;
  height: 112px;
  overflow: hidden;
  margin-bottom: 10px;
  background: #f8fafb;
  border: 1px solid #e3e8eb;
  border-radius: 10px;
}

.v39-template-preview::before,
.v39-template-preview::after {
  content: "";
  position: absolute;
}

.v39-template-preview::before {
  inset: 13px 14px auto;
  height: 18px;
  border-bottom: 3px solid var(--preview-accent, #275f79);
  box-shadow: 0 22px 0 -1px #ced8dd, 0 36px 0 -1px #dbe2e6, 0 50px 0 -1px #dbe2e6;
}

.v39-template-preview::after {
  width: 22px;
  height: 22px;
  top: 10px;
  right: 12px;
  background: var(--preview-accent, #275f79);
  border-radius: 7px;
}

.v39-template-preview.sage { --preview-accent: #688372; }
.v39-template-preview.burgundy { --preview-accent: #874956; }
.v39-template-preview.graphite { --preview-accent: #454e56; }
.v39-template-preview.cobalt { --preview-accent: #285d9c; }

.v39-template-lab article b {
  display: block;
  overflow: hidden;
  color: #294958;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 10px;
}

.v39-template-lab article small {
  display: block;
  margin-top: 4px;
  color: #87969d;
  font-size: 7px;
}

.v39-support-wide {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 16px;
  padding: 19px 22px;
  color: #eaf5f9;
  background: #153d52;
  border: 1px solid #245f79;
  border-radius: 18px;
}

.v39-support-wide div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.v39-support-wide b {
  color: #fff;
  font-size: 13px;
}

.v39-support-wide small {
  color: #b9d0da;
  font-size: 9px;
}

.v39-support-wide a {
  min-height: 41px;
  display: inline-flex;
  align-items: center;
  padding: 9px 14px;
  color: #173e52;
  background: #f2d9aa;
  border-radius: 12px;
  white-space: nowrap;
  font-size: 9px;
  font-weight: 950;
  text-decoration: none;
}

.v39-page-support {
  position: fixed;
  z-index: 50;
  left: 18px;
  bottom: 18px;
  min-height: 43px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  color: #fff;
  background: #174e68;
  border: 1px solid #2a718d;
  border-radius: 13px;
  box-shadow: 0 12px 32px rgba(10, 43, 60, .22);
  font-size: 9px;
  font-weight: 900;
  text-decoration: none;
}

@media (max-width: 980px) {
  .v39-template-lab-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

}

@media (max-width: 760px) {
  .v39-launch-badge {
    display: none;
  }

  .v39-guide-launcher {
    left: 10px;
    bottom: calc(78px + env(safe-area-inset-bottom));
    min-height: 45px;
    padding: 6px 10px 6px 6px;
    border-radius: 15px;
  }

  .v39-guide-launcher > span {
    width: 32px;
    height: 32px;
  }

  .v39-guide-launcher > b {
    font-size: 9px;
  }

  .v39-guide-launcher > small {
    display: none;
  }

  .v39-guide-drawer {
    top: auto;
    right: 0;
    width: 100%;
    max-height: 92vh;
    border: 0;
    border-radius: 24px 24px 0 0;
    transform: translateY(105%);
  }

  .v39-guide-drawer.open {
    transform: translateY(0);
  }

  .v39-guide-body {
    padding: 14px 14px calc(20px + env(safe-area-inset-bottom));
  }

  .v39-growth {
    width: min(100% - 22px, 1180px);
    padding-top: 54px;
  }

  .v39-growth-head h2 {
    font-size: 31px;
  }

  .v39-growth-head p {
    font-size: 12px;
  }

  .v39-plan-grid {
    grid-template-columns: 1fr;
  }

  .v39-plan-card {
    padding: 20px;
  }

  .v39-template-lab {
    padding: 17px;
  }

  .v39-template-lab-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .v39-template-lab-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .v39-template-preview {
    height: 92px;
  }

  .v39-support-wide {
    align-items: flex-start;
    flex-direction: column;
    padding: 17px;
  }

  .v39-support-wide a {
    justify-content: center;
    width: 100%;
  }

  .v39-page-support {
    left: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom));
  }
}

@media print {
  .v39-guide-launcher,
  .v39-guide-backdrop,
  .v39-guide-drawer,
  .v39-growth,
  .v39-page-support,
  .v39-launch-badge {
    display: none !important;
  }
}
