@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800;900&display=swap');

/* Shared marketing-page preview of the ResumeMaker.Online editor. */
.hero-editor-demo {
  scroll-margin-top: 80px;
  --hero-demo-accent: #64748b;
  --hero-demo-accent-dark: #475569;
  --hero-panel-padding: 16px;
  --hero-panel-border: #e2e5e9;
  --hero-panel-shadow: 0 16px 36px -10px rgba(17, 24, 39, .18);
  position: relative;
  height: 620px;
  overflow: hidden;
  border: 1px solid #dfe3e8;
  border-bottom: 0;
  border-radius: 22px 22px 0 0;
  background: #eef0f3;
  box-shadow: 0 28px 70px rgba(15, 23, 42, .16), 0 3px 12px rgba(15, 23, 42, .06);
}

.hero-editor-topbar {
  position: relative;
  z-index: 5;
  display: flex;
  height: 50px;
  align-items: center;
  border-bottom: 1px solid #e5e7eb;
  background: rgba(255, 255, 255, .96);
}

.hero-editor-library-actions {
  display: flex;
  width: 280px;
  flex: 0 0 280px;
  gap: 6px;
  padding: 0 14px;
  border-right: 1px solid #e5e7eb;
}

.hero-editor-button {
  display: inline-flex;
  height: 30px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid #e5e7eb;
  border-radius: 9px;
  padding: 0 9px;
  background: #fff;
  color: #4b5563;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.hero-editor-library-actions .hero-editor-button { flex: 1; }
.hero-editor-button.is-accent { border-color: #bfdbfe; background: #eff6ff; color: #2563eb; }
.hero-editor-button.is-ink { border-color: #171719; background: #171719; color: #fff; }

.hero-editor-titlebar {
  display: flex;
  min-width: 0;
  flex: 1;
  align-items: center;
  gap: 9px;
  padding: 0 14px;
}

.hero-editor-live-dot {
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  border-radius: 999px;
  background: #10b981;
  box-shadow: 0 0 0 4px #d1fae5;
}

.hero-editor-title {
  overflow: hidden;
  color: #202124;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -.015em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-editor-top-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
  padding-right: 16px;
}

.hero-editor-body {
  display: grid;
  height: calc(100% - 50px);
  grid-template-columns: 280px minmax(0, 1fr);
}

.hero-editor-panel {
  position: relative;
  z-index: 3;
  display: flex;
  min-height: 0;
  flex-direction: column;
  margin: 14px 0 0 14px;
  overflow: hidden;
  border: 1px solid var(--hero-panel-border);
  border-bottom: 0;
  border-radius: 16px 16px 0 0;
  background: rgba(255, 255, 255, .97);
  box-shadow: var(--hero-panel-shadow);
}

.hero-editor-panel-content { flex: 1; padding: var(--hero-panel-padding); }
.hero-editor-template-summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.hero-editor-template-info { display: flex; min-width: 0; flex: 1; align-items: center; gap: 10px; }

.hero-editor-template-thumb {
  position: relative;
  width: 31px;
  height: 44px;
  flex: 0 0 31px;
  overflow: hidden;
  border: 1px solid #dfe3e8;
  border-radius: 3px;
  background: #fff;
  box-shadow: 0 2px 4px rgba(15, 23, 42, .08);
}

/* Match the product's structural thumbnail: main content and a right sidebar. */
.hero-editor-template-thumb { display: flex; }
.hero-editor-thumb-main { display: flex; flex: 1; flex-direction: column; gap: 3px; padding: 5px 3px; }
.hero-editor-thumb-main b, .hero-editor-thumb-main span, .hero-editor-thumb-side span { display: block; height: 1.5px; border-radius: 2px; background: #d1d5db; }
.hero-editor-thumb-main b { width: 55%; margin-bottom: 4px; background: #9ca3af; }
.hero-editor-thumb-main span:nth-child(3) { width: 75%; margin-bottom: 4px; }
.hero-editor-thumb-main span:last-child { width: 80%; }
.hero-editor-thumb-side { display: flex; width: 34%; flex-direction: column; gap: 3px; padding: 5px 2px; background: #f3f4f6; }
.hero-editor-thumb-side span:nth-child(2) { width: 70%; margin-bottom: 4px; }

.hero-editor-template-info > span:last-child { min-width: 0; }
.hero-editor-eyebrow { display: block; overflow: hidden; color: #9ca3af; font-size: 10px; font-weight: 800; letter-spacing: .12em; line-height: 1; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.hero-editor-template-name { margin-top: 5px; overflow: hidden; color: #1f2937; font-size: 13px; font-weight: 800; line-height: 1; text-overflow: ellipsis; white-space: nowrap; }
.hero-editor-change { display: inline-flex; height: 23px; flex: 0 0 auto; align-items: center; gap: 4px; padding: 0 6px; border: 1px solid #e5e7eb; border-radius: 8px; color: #6b7280; font-size: 10px; font-weight: 700; }
.hero-editor-tabs { display: grid; height: 30px; grid-template-columns: repeat(2, 1fr); gap: 3px; margin-bottom: 12px; padding: 3px; border-radius: 9px; background: #f3f4f6; }
.hero-editor-tab { display: flex; align-items: center; justify-content: center; gap: 6px; border-radius: 7px; color: #8b9099; font-size: 10px; font-weight: 700; }
.hero-editor-tab.is-active { background: #fff; color: #202124; box-shadow: 0 1px 3px rgba(15, 23, 42, .08); }
.hero-editor-column + .hero-editor-column { margin-top: 9px; }
.hero-editor-column-header { display: flex; min-height: 28px; align-items: center; justify-content: space-between; gap: 8px; }
.hero-editor-column-title { display: inline-flex; min-width: 0; flex: 1; align-items: center; gap: 6px; overflow: hidden; color: #9ca3af; font-size: 10px; font-weight: 800; letter-spacing: .11em; line-height: 1; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.hero-editor-column-title i { flex: 0 0 auto; color: #2563eb; font-size: 14px; letter-spacing: 0; }
.hero-editor-column-add { display: inline-flex; height: 28px; align-items: center; justify-content: center; gap: 4px; padding: 0 8px; border-radius: 8px; background: #fff; color: #2563eb; font-size: 10px; font-weight: 800; line-height: 1; white-space: nowrap; }
.hero-editor-column-add i { font-size: 14px; }
.hero-editor-sections { display: grid; gap: 1px; }

.hero-editor-section-row {
  display: grid;
  height: 36px;
  grid-template-columns: 18px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 8px;
  padding: 0 7px;
  border-radius: 10px;
  background: #fff;
  color: #374151;
  font-size: 12px;
  font-weight: 600;
}

.hero-editor-section-row > i:first-child { color: #9ca3af; font-size: 14px; }
.hero-editor-section-row > i:last-child { justify-self: center; color: #c2c6cc; font-size: 13px; }
.hero-editor-tip { margin: 0 14px 14px; padding: 11px 12px; border: 1px solid #dbeafe; border-radius: 12px; background: #eff6ff; }
.hero-editor-tip-title { display: flex; align-items: center; gap: 5px; color: #2563eb; font-size: 10px; font-weight: 700; }
.hero-editor-tip p { margin-top: 4px; color: rgb(30 58 138 / .75); font-size: 10px; font-weight: 400; line-height: 1.625; }

.hero-editor-canvas {
  position: relative;
  display: flex;
  min-width: 0;
  align-items: flex-start;
  justify-content: center;
  overflow: hidden;
  padding: 18px 14px 0;
  background: radial-gradient(circle at 50% 20%, rgba(255, 255, 255, .9), transparent 42%), #eef0f3;
}

.hero-resume-stage { position: relative; width: 651px; height: 921px; flex: 0 0 auto; }
.hero-resume-render { position: absolute; top: 0; left: 0; width: 794px; transform: scale(.82); transform-origin: top left; }
.hero-resume-render > .w-full { width: 794px; }
.hero-resume-render [data-document-page="resume"] { overflow: hidden; border: 1px solid #dfe3e8; background: #fff; box-shadow: 0 12px 34px rgba(15, 23, 42, .13); }
.hero-resume-render .timeline-item-controls,
.hero-resume-render .timeline-section-controls { opacity: 0 !important; pointer-events: none !important; transform: translateY(1px) !important; }
.hero-resume-render .timeline-section-controls.hero-resume-ai-visible { opacity: 1 !important; transform: translateY(0) scale(1) !important; }
.hero-resume-render .timeline-section-editor::after,
.hero-resume-render .timeline-item-editor::after { opacity: 0 !important; }

.hero-editor-coach-demo {
  position: absolute;
  right: 20px;
  bottom: 20px;
  z-index: 7;
  width: 318px;
  overflow: hidden;
  border: 1px solid var(--hero-panel-border);
  border-radius: 16px;
  background: rgba(255, 255, 255, .97);
  box-shadow: var(--hero-panel-shadow);
  animation: hero-editor-coach-float 5.5s ease-in-out infinite;
}

.hero-editor-coach-header {
  display: flex;
  min-height: 52px;
  align-items: center;
  gap: 9px;
  padding: var(--hero-panel-padding);
  border-bottom: 1px solid var(--hero-panel-border);
  background: #fff;
}

.hero-editor-coach-blob {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border-radius: 48% 52% 61% 39% / 42% 45% 55% 58%;
  background:
    radial-gradient(circle at 26% 22%, rgba(255,255,255,.96) 0 6%, rgba(164,232,255,.82) 13%, transparent 32%),
    radial-gradient(circle at 73% 72%, #04d9ff 0 8%, #0088ff 32%, transparent 62%),
    linear-gradient(138deg, #a8efff 0%, #1648f5 38%, #0526c9 68%, #04d9ff 100%);
  box-shadow: inset -5px -5px 10px #00157f38, inset 4px 4px 9px #bef4ff4d, 0 0 14px #0099ff33;
  animation: hero-editor-coach-blob 6s ease-in-out infinite alternate;
}
@keyframes hero-editor-coach-blob {
  from { border-radius: 48% 52% 61% 39% / 42% 45% 55% 58%; transform: rotate(-2deg); }
  to { border-radius: 61% 39% 47% 53% / 50% 62% 38% 50%; transform: rotate(3deg); }
}

.hero-editor-coach-heading {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 2px;
}

.hero-editor-coach-heading strong { color: #1f2937; font-size: 13px; font-weight: 800; line-height: 1; }
.hero-editor-coach-heading small { overflow: hidden; color: #6b7280; font-size: 10px; font-weight: 400; line-height: 1.625; text-overflow: ellipsis; white-space: nowrap; }
.hero-editor-coach-conversation { display: grid; gap: 9px; padding: var(--hero-panel-padding); background: rgba(248, 250, 252, .78); }

.hero-editor-coach-request {
  justify-self: end;
  max-width: 82%;
  padding: 7px 9px;
  border-radius: 11px 11px 3px 11px;
  background: #111827;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.35;
}

.hero-editor-coach-response { display: flex; align-items: flex-start; gap: 7px; }
.hero-editor-coach-avatar { display: inline-flex; width: 23px; height: 23px; flex: 0 0 23px; align-items: center; justify-content: center; border-radius: 999px; background: #2563eb; color: #fff; font-size: 11px; box-shadow: 0 4px 10px rgba(37, 99, 235, .18); }
.hero-editor-coach-answer { display: flex; min-width: 0; flex: 1; flex-direction: column; gap: 5px; padding: 7px 8px; border: 1px solid #e5e7eb; border-radius: 3px 11px 11px; background: #fff; box-shadow: 0 1px 2px rgba(15, 23, 42, .04); }
.hero-editor-coach-answer > strong { color: #374151; font-size: 10px; font-weight: 600; line-height: 1.35; }
.hero-editor-coach-answer > span { display: flex; align-items: center; gap: 4px; color: #059669; font-size: 10px; font-style: normal; font-weight: 800; line-height: 1.2; }
.hero-editor-coach-answer > span i { font-size: 10px; }
.hero-editor-coach-answer > span em { margin-left: auto; color: inherit; font-size: inherit; font-style: normal; font-weight: inherit; white-space: nowrap; }

@keyframes hero-editor-coach-float {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -7px, 0); }
}

.hero-editor-fade {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 280px;
  z-index: 4;
  height: 86px;
  background: linear-gradient(to top, #fff 4%, rgba(255, 255, 255, 0));
  pointer-events: none;
}

@media (max-width: 1100px) {
  .hero-resume-stage { width: 572px; height: 809px; }
  .hero-resume-render { transform: scale(.72); }
}

@media (max-width: 900px) {
  .hero-editor-fade { left: 264px; }
  .hero-editor-library-actions { display: none; }
  .hero-editor-body { grid-template-columns: 264px minmax(0, 1fr); }
  .hero-editor-panel { margin-left: 16px; }
  .hero-editor-top-actions .hero-editor-translate-action { display: none; }
  .hero-resume-stage { width: 429px; height: 607px; }
  .hero-resume-render { transform: scale(.54); }
  .hero-editor-coach-demo { right: 14px; bottom: 14px; width: 300px; }
}

@media (max-width: 767px) {
  .hero-editor-demo { height: 515px; border-radius: 17px 17px 0 0; box-shadow: 0 20px 50px rgba(15, 23, 42, .14); }
  .hero-editor-topbar { height: 46px; }
  .hero-editor-titlebar { padding: 0 10px 0 13px; }
  .hero-editor-title { font-size: 12px; }
  .hero-editor-top-actions { padding-right: 10px; }
  .hero-editor-top-actions .hero-editor-button { width: 30px; flex: 0 0 30px; aspect-ratio: 1 / 1; padding: 0; }
  .hero-editor-top-actions .hero-editor-button span { display: none; }
  .hero-editor-top-actions .hero-editor-tailor-action { width: auto; flex-basis: auto; aspect-ratio: auto; padding: 0 9px; }
  .hero-editor-top-actions .hero-editor-tailor-action span { display: inline; }
  .hero-editor-body { display: block; height: calc(100% - 46px); }
  .hero-editor-panel { display: none; }
  .hero-editor-canvas { height: 100%; padding: 12px 2px 0; }
  .hero-resume-stage { width: 429px; height: 607px; }
  .hero-resume-render { transform: scale(.54); }
  .hero-editor-coach-demo { right: 10px; bottom: 10px; width: min(300px, calc(100% - 20px)); border-radius: 14px; }
  .hero-editor-coach-header { min-height: 48px; }
  .hero-editor-coach-conversation { gap: 7px; }
  .hero-editor-fade { left: 0; height: 60px; }
}

@media (max-width: 360px) {
  .hero-resume-stage { width: 349px; height: 494px; }
  .hero-resume-render { transform: scale(.44); }
  .hero-editor-coach-demo { width: 280px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-editor-coach-demo,
  .hero-editor-coach-blob { animation: none; }
}

/* A stationary selection makes the writing assistant discoverable in the preview. */
.hero-resume-render .hero-resume-summary-selection { position: relative; padding: 12px; border: 1px dashed rgba(156, 163, 175, .78); border-radius: 9px; background: transparent; }
.hero-resume-summary-toolbar { position: absolute; z-index: 3; top: -21px; right: 8px; display: inline-flex; min-width: 100px; align-items: center; justify-content: center; gap: 7px; padding: 7px 10px; border-radius: 8px; background: #171719; color: #fff; font: 500 12px/1.5 'Nunito Sans',sans-serif; white-space: nowrap; box-shadow: 0 3px 8px #0f172a20; }
.hero-resume-summary-toolbar > .ph-sparkle { color: #fcd34d; }
