* {
  box-sizing: border-box;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
body {
  margin: 0;
  background: #f3f4f6;
  color: #111827;
}
a {
  color: inherit;
  text-decoration: none;
}
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  background: #0f172a;
  color: #111827;
}
.brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.brand-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo {
  height: 40px;
}
.brand-title {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  display: flex;
  align-items: baseline;
  gap: 2px;
}
.sub {
  font-size: 0.82rem;
  opacity: 0.9;
}
.sub.small {
  font-size: 0.75rem;
  opacity: 0.8;
}
.jij-rocket {
  position: relative;
  color: #e63946;
  font-weight: 800;
}
.jij-rocket::after {
  content: "";
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-bottom: 10px solid #e63946;
}
.jij-rocket::before {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 15%;
  width: 70%;
  height: 6px;
  background: radial-gradient(ellipse at center, rgba(230, 57, 70, 0.4), transparent);
  filter: blur(2px);
}
.controls {
  display: flex;
  gap: 8px;
}
.btn {
  border-radius: 999px;
  border: none;
  padding: 7px 14px;
  font-size: 0.85rem;
  cursor: pointer;
  background: #1d4ed8;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn.small {
  font-size: 0.8rem;
  padding: 6px 12px;
}
.btn.outline {
  background: transparent;
  border: 1px solid #9ca3af;
  color: #e5e7eb;
}
.btn.ghost-dark {
  background: transparent;
  border: 1px solid rgba(148, 163, 184, 0.6);
  color: #e5e7eb;
}
.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.chip {
  font-size: 0.75rem;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
}
.container {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.05fr);
  gap: 16px;
  padding: 16px;
}
.card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.09);
  padding: 16px 18px 18px;
}
h1,h2,h3,h4 {
  margin-top: 0;
}
label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.85rem;
  margin-bottom: 10px;
}
.hint {
  font-size: 0.72rem;
  color: #6b7280;
  margin-top: 4px;
}
input[type="text"],
input[type="file"],
input[type="color"],
select,
input:not([type]),
textarea {
  padding: 7px 9px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  font-size: 0.85rem;
}
textarea {
  resize: vertical;
}
.grid2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.stack-nested {
  align-self: stretch;
}
.row-end {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.preview-head {
  display: flex;
  align-items: center;
  gap: 10px;
}
.title-wrap .title {
  font-weight: 700;
}
.title-wrap .muted {
  font-size: 0.75rem;
  color: #6b7280;
}
.accent-bar {
  height: 4px;
  margin: 10px 0 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, #1a2a78, #e63946);
}
.preview-body {
  position: relative;
  padding: 12px 16px 16px;
  border-radius: 10px;
  border: 2px solid #f97316;
  background: #ffffff;
  min-height: 320px;
  overflow: hidden;
}
.preview-body h2 {
  margin: 0;
}
.muted {
  font-size: 0.8rem;
  color: #6b7280;
}
.label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #4b5563;
  margin: 6px 0 4px;
}
.prewrap {
  white-space: pre-wrap;
  font-size: 0.8rem;
}
.stack {
  display: flex;
  flex-direction: column;
}
.stack.xs {
  gap: 2px;
  font-size: 0.75rem;
}
.chiprow {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
}
.below {
  margin-top: 6px;
}
.photo {
  float: right;
  width: 70px;
  height: 70px;
  border-radius: 999px;
  object-fit: cover;
  border: 2px solid #e5e7eb;
  margin: 0 0 8px 8px;
}
.contact-block {
  margin-top: 6px;
  margin-bottom: 4px;
  font-size: 0.78rem;
  color: #374151;
}
.contact-line {
  display: flex;
  align-items: center;
  gap: 4px;
}
.contact-icon {
  width: 14px;
}
.contact-icon span {
  font-size: 0.8rem;
}
.suggest-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
}
.suggest-label {
  font-size: 0.72rem;
  color: #6b7280;
  margin-right: 4px;
}
.suggest-chip {
  font-size: 0.72rem;
  padding: 2px 6px;
  border-radius: 999px;
  background: #e5e7eb;
  cursor: pointer;
}
.suggest-chip:hover {
  background: #d1d5db;
}
.actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 10px;
}
.watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-30deg);
  font-size: 1.8rem;
  font-weight: 700;
  color: rgba(15, 23, 42, 0.04);
  text-align: center;
  pointer-events: none;
  z-index: 0;
}
.preview-body > *:not(.watermark) {
  position: relative;
  z-index: 1;
}
.gap {
  gap: 12px;
}
.template-classic .preview-body {
  border-color: #111827;
}
.template-sidebar .preview-body {
  border-color: #1d4ed8;
}
.template-compact .preview-body {
  border-color: #22c55e;
}
.template-modern .preview-body {
  border-color: #f97316;
}
.template-classic .main-layout {
  display: grid;
  grid-template-columns: 1.1fr 1.1fr;
}
.template-sidebar .main-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.3fr;
}
.template-compact .main-layout {
  display: flex;
  flex-direction: column;
}
.template-modern .preview-body h2,
.template-modern .preview-body .muted#pvRole {
  text-align: center;
}
.template-modern .main-layout {
  display: grid;
  grid-template-columns: 1.2fr 1.2fr;
}
.landing-main {
  max-width: 1120px;
  margin: 20px auto 40px;
  padding: 0 16px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 24px;
}
.landing-hero-title {
  font-size: 2rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 8px;
}
.landing-hero-sub {
  font-size: 0.98rem;
  color: #4b5563;
  margin-bottom: 14px;
}
.landing-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}
.landing-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
  margin-bottom: 16px;
}
.landing-note {
  font-size: 0.78rem;
  color: #6b7280;
}
.landing-section {
  margin-top: 16px;
}
.landing-section h3 {
  font-size: 0.98rem;
  margin-bottom: 6px;
}
.landing-list {
  font-size: 0.9rem;
  color: #374151;
  padding-left: 20px;
}
.landing-card {
  background: #0b1120;
  color: #e5e7eb;
  border-radius: 16px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.landing-card h3 {
  margin: 0;
}
.landing-card small {
  font-size: 0.78rem;
  color: #9ca3af;
}
@media (max-width: 900px) {
  .container {
    grid-template-columns: minmax(0, 1fr);
  }
  .landing-main {
    grid-template-columns: minmax(0, 1fr);
  }
}


/* Secondary button (works on light backgrounds) */
.btn.secondary{
  background: #f3f4f6;
  border: 1px solid rgba(148,163,184,0.8);
  color: #0b1220;
}
.btn.secondary:hover{
  background: #e5e7eb;
}

/* ---------------- MoM client-ready preview templates ---------------- */
.mom-preview { background:#fff; color:#0f172a; border:1px solid #e5e7eb; border-radius:16px; padding:20px; min-height:520px; overflow:auto; }
.mom-preview .doc { max-width: 900px; margin: 0 auto; }
.mom-preview .doc-header { display:flex; gap:16px; align-items:flex-start; justify-content:space-between; border-bottom:1px solid #e5e7eb; padding-bottom:12px; margin-bottom:14px; }
.mom-preview .doc-brand { display:flex; gap:10px; align-items:center; }
.mom-preview .doc-logo { width:40px; height:40px; border-radius:10px; object-fit:contain; }
.mom-preview .doc-brand-name { font-weight:800; letter-spacing:0.2px; }
.mom-preview .doc-brand-sub { font-size:12px; opacity:0.75; }
.mom-preview .doc-title { text-align:right; }
.mom-preview .doc-h1 { font-weight:900; font-size:22px; }
.mom-preview .doc-meta { display:grid; gap:4px; font-size:12px; margin-top:6px; }
.mom-preview .doc-meta span { opacity:0.65; margin-right:6px; }
.mom-preview .doc-section { margin-top:14px; }
.mom-preview .doc-h2 { font-weight:800; font-size:14px; margin-bottom:8px; }
.mom-preview .doc-text { font-size:13px; line-height:1.45; white-space:pre-wrap; }
.mom-preview .doc-muted { font-size:12px; opacity:0.7; }
.mom-preview .doc-table { width:100%; border-collapse:collapse; font-size:12px; }
.mom-preview .doc-table th, .mom-preview .doc-table td { border:1px solid #e5e7eb; padding:8px; vertical-align:top; }
.mom-preview .doc-table th { background:#f8fafc; text-align:left; font-weight:800; }
.mom-preview .doc-footer { margin-top:18px; border-top:1px solid #e5e7eb; padding-top:12px; display:flex; justify-content:space-between; gap:12px; }
.mom-preview .doc-sign { text-align:right; font-size:12px; }

/* Template variations */
.mom-preview.template-classic { font-family: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif; }
.mom-preview.template-classic .doc-h1 { font-size:24px; }
.mom-preview.template-modern { font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Liberation Sans", sans-serif; }
.mom-preview.template-modern .doc-table th { background:#eef2ff; }
.mom-preview.template-elegant { font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial; }
.mom-preview.template-elegant .doc-header { border-bottom:2px solid #0f172a; }
.mom-preview.template-elegant .doc-table th { background:#fff7ed; }
.template-label { display:flex; align-items:center; gap:8px; font-size:12px; opacity:0.85; }
.template-select { padding:8px 10px; border:1px solid #d1d5db; border-radius:10px; background:#fff; }


/* Resume builder action buttons (ensure visible on light background) */
.resume-page .btn.outline,
.resume-page button.btn.outline {
  color: #111827;
  border-color: #d1d5db;
  background: #ffffff;
}
.resume-page .btn:disabled,
.resume-page button:disabled {
  opacity: 0.55;
}

/* Hide jij rocket mark in headers to avoid duplicate logo feel */
.resume-page .jij-rocket{display:none !important;}


/* --- Trust & Branding section --- */
.trust-wrap{
  margin: 26px 0 10px;
  padding: 22px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
}
.trust-title{
  margin: 0 0 6px;
  font-size: 1.45rem;
}
.trust-sub{
  margin: 0 0 16px;
  color: #374151;
}
.trust-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.trust-card{
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 14px 14px;
}
.trust-card h3{
  margin: 0 0 6px;
  font-size: 1.02rem;
}
.trust-card p{
  margin: 0;
  color: #374151;
  font-size: 0.92rem;
  line-height: 1.35;
}
.trust-strip{
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed #d1d5db;
  color: #111827;
  font-size: 0.92rem;
}
@media (max-width: 860px){
  .trust-grid{ grid-template-columns: 1fr; }
}

/* --- Footer --- */
.bj-footer{
  margin-top: 26px;
  background: #0b1120;
  color: #e5e7eb;
  padding: 22px 16px;
}
.bj-footer-inner{
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
}
.bj-footer-title{
  font-weight: 800;
  font-size: 1.15rem;
}
.bj-footer-sub{
  color: #9ca3af;
  font-size: 0.9rem;
  margin-top: 6px;
}
.bj-footer-cols{
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
}
.bj-footer-col{
  min-width: 220px;
  font-size: 0.92rem;
}
.bj-footer-head{
  font-weight: 700;
  margin-bottom: 8px;
}
.bj-footer a{ color:#93c5fd; text-decoration:none; }
.bj-footer a:hover{ text-decoration:underline; }
.bj-footer ul{ margin:0; padding-left: 18px; color:#e5e7eb; }
.bj-footer li{ margin: 4px 0; }
