/* mahanmk.com/resume-builder.html — launch page for the Resume Builder (lives on store.mahanmk.com). Prefix rb-. */
.rb { --rb-ink: #0f172a; --rb-text: #334155; --rb-muted: #64748b; --rb-line: #e2e8f0; --rb-blue: #2563eb; --rb-violet: #7c3aed; --rb-radius: 18px; color: var(--rb-text); }
.rb *, .rb *::before, .rb *::after { box-sizing: border-box; }
.rb a { cursor: pointer; }
.rb img { max-width: 100%; height: auto; display: block; }
.rb h1, .rb h2, .rb h3 { color: var(--rb-ink); }
.rb-sec { margin-top: 18px; background: #fff; border: 1px solid var(--rb-line); border-radius: var(--rb-radius); padding: 26px 24px; }
.rb-sec h2 { font-size: 1.45rem; font-weight: 800; letter-spacing: -.01em; margin: 0 0 6px; line-height: 1.3; }
.rb-sec > p.rb-lead { color: var(--rb-muted); margin: 0 0 18px; line-height: 1.7; }
.rb-kicker { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--rb-violet); background: #f5f3ff; border-radius: 999px; padding: 4px 10px; margin-bottom: 10px; }

/* Buttons */
.rb-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 50px; padding: 0 22px; border-radius: 14px; font-weight: 700; font-size: 1rem; text-decoration: none !important; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; }
.rb-btn:hover { transform: translateY(-1px); }
.rb-btn-primary { background: #2563eb; color: #fff !important; box-shadow: 0 10px 24px -10px rgba(37, 99, 235, .7); }
.rb-btn-primary:hover { background: #1d4ed8; }
.rb-btn-ghost { background: #fff; color: #0f172a !important; border: 1px solid #e2e8f0; }
.rb-btn-ghost:hover { background: #f8fafc; }
.rb-btn svg { width: 18px; height: 18px; }

/* Hero */
.rb-hero { position: relative; overflow: hidden; margin-top: 14px; border-radius: 22px; background: radial-gradient(1200px 400px at 85% -10%, #ede9fe 0, transparent 60%), radial-gradient(900px 400px at -10% 110%, #dbeafe 0, transparent 55%), linear-gradient(180deg, #f8fafc, #fff); border: 1px solid var(--rb-line); }
.rb-hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 18px; align-items: center; padding: 30px 28px 26px; }
.rb-badge { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid #ddd6fe; color: #5b21b6; font-weight: 700; font-size: .8rem; padding: 5px 12px 5px 6px; border-radius: 999px; box-shadow: 0 1px 2px rgba(15, 23, 42, .05); }
.rb-badge b { background: var(--rb-violet); color: #fff; border-radius: 999px; padding: 2px 8px; font-size: .72rem; letter-spacing: .04em; }
.rb-hero h1 { font-size: 2.15rem; line-height: 1.18; font-weight: 800; letter-spacing: -.02em; margin: 14px 0 8px; }
.rb-hero h1 span { background: linear-gradient(90deg, #2563eb, #7c3aed); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rb-hero .rb-sub { font-size: 1.12rem; font-weight: 600; color: #1e293b; margin: 0 0 10px; }
.rb-hero p.rb-desc { line-height: 1.75; margin: 0 0 18px; color: var(--rb-text); }
.rb-cta { display: flex; flex-wrap: wrap; gap: 10px; }
.rb-checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 14px; margin: 18px 0 0; padding: 0; list-style: none; font-size: .92rem; }
.rb-checks li { display: flex; align-items: center; gap: 8px; margin: 0; }
.rb-checks li::before { content: "✓"; flex: none; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: #dcfce7; color: #15803d; font-size: .75rem; font-weight: 800; }

/* Device mockups */
.rb-visual { position: relative; min-height: 430px; }
.rb-phone { position: relative; z-index: 2; width: 220px; margin-left: auto; margin-right: 8px; border-radius: 34px; padding: 9px; background: #0f172a; box-shadow: 0 30px 60px -20px rgba(15, 23, 42, .45), inset 0 0 0 2px #334155; }
.rb-phone::before { content: ""; position: absolute; top: 15px; left: 50%; width: 64px; height: 16px; margin-left: -32px; background: #0f172a; border-radius: 0 0 12px 12px; z-index: 3; }
.rb-phone img { border-radius: 26px; width: 100%; }
.rb-paper { position: absolute; z-index: 1; left: 0; top: 34px; width: 210px; transform: rotate(-6deg); border-radius: 8px; overflow: hidden; background: #fff; box-shadow: 0 22px 45px -18px rgba(15, 23, 42, .35); border: 1px solid var(--rb-line); }
.rb-float { position: absolute; z-index: 4; left: 18px; bottom: 26px; display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--rb-line); border-radius: 14px; padding: 10px 12px; box-shadow: 0 12px 30px -12px rgba(15, 23, 42, .35); font-size: .82rem; }
.rb-float i { font-style: normal; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: #ecfdf5; color: #059669; font-weight: 800; }
.rb-float b { display: block; color: var(--rb-ink); }

/* Stats */
.rb-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--rb-line); background: rgba(255, 255, 255, .7); }
.rb-stats div { padding: 14px 10px; text-align: center; border-left: 1px solid var(--rb-line); }
.rb-stats div:first-child { border-left: 0; }
.rb-stats b { display: block; font-size: 1.35rem; color: var(--rb-ink); line-height: 1.2; }
.rb-stats span { font-size: .8rem; color: var(--rb-muted); }

/* Steps */
.rb-steps-grid { display: grid; grid-template-columns: 1fr 260px; gap: 22px; align-items: center; }
.rb-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: rb; }
.rb-steps li { counter-increment: rb; display: flex; gap: 14px; padding: 14px; border: 1px solid var(--rb-line); border-radius: 14px; margin: 0; background: #fff; }
.rb-steps li::before { content: counter(rb); flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; color: #fff; background: linear-gradient(135deg, #2563eb, #7c3aed); }
.rb-steps h3 { font-size: 1rem; font-weight: 700; margin: 2px 0 4px; }
.rb-steps p { margin: 0; font-size: .92rem; line-height: 1.6; color: var(--rb-muted); }
.rb-shot-phone { border-radius: 26px; padding: 8px; background: #0f172a; box-shadow: 0 24px 50px -22px rgba(15, 23, 42, .5); }
.rb-shot-phone img { border-radius: 20px; }

/* Templates */
.rb-templates { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.rb-tpl { display: block; text-decoration: none !important; color: inherit !important; border: 1px solid var(--rb-line); border-radius: 14px; overflow: hidden; background: #fff; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.rb-tpl:hover { transform: translateY(-3px); border-color: #c7d2fe; box-shadow: 0 18px 36px -18px rgba(37, 99, 235, .45); }
.rb-tpl-img { position: relative; background: linear-gradient(180deg, #f1f5f9, #f8fafc); padding: 10px 10px 0; }
.rb-tpl-img img { border-radius: 6px 6px 0 0; box-shadow: 0 6px 16px -8px rgba(15, 23, 42, .35); aspect-ratio: 640 / 905; object-fit: cover; object-position: top; }
.rb-tag { position: absolute; top: 16px; right: 16px; font-size: .68rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; }
.rb-tag-free { background: #10b981; color: #fff; }
.rb-tag-pro { background: linear-gradient(90deg, #fbbf24, #f59e0b); color: #451a03; }
.rb-tpl-body { padding: 10px 12px 12px; }
.rb-tpl-body b { display: block; color: var(--rb-ink); font-size: .95rem; }
.rb-tpl-body span { font-size: .8rem; color: var(--rb-muted); }

/* Two jobs */
.rb-two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.rb-card { border: 1px solid var(--rb-line); border-radius: 16px; padding: 20px; background: #fff; }
.rb-card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.rb-ico { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 1.3rem; }
.rb-card h3 { font-size: 1.08rem; font-weight: 800; margin: 0; }
.rb-card h3 small { display: block; font-size: .8rem; font-weight: 600; color: var(--rb-muted); }
.rb-card p { margin: 0 0 10px; line-height: 1.75; }
.rb-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.rb-list li { position: relative; padding-left: 26px; margin: 0; line-height: 1.6; }
.rb-list li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-size: .7rem; font-weight: 800; background: #e0e7ff; color: #3730a3; }
.rb-card-bio { display: grid; grid-template-columns: 1fr 130px; gap: 14px; align-items: start; }
.rb-card-bio img { border-radius: 6px; border: 1px solid var(--rb-line); box-shadow: 0 10px 22px -12px rgba(15, 23, 42, .35); }

/* Laptop */
.rb-laptop { margin: 4px auto 0; max-width: 760px; }
.rb-laptop-screen { border-radius: 14px 14px 0 0; padding: 10px 10px 0; background: #0f172a; box-shadow: 0 30px 60px -28px rgba(15, 23, 42, .55); }
.rb-laptop-screen img { border-radius: 6px 6px 0 0; }
.rb-laptop-base { height: 16px; margin: 0 -40px; border-radius: 0 0 18px 18px; background: linear-gradient(180deg, #cbd5e1, #94a3b8); }

/* Format guide */
.rb-format { counter-reset: f; list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; }
.rb-format li { counter-increment: f; display: flex; gap: 12px; margin: 0; line-height: 1.6; font-size: .95rem; }
.rb-format li::before { content: counter(f); flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: #0f172a; color: #fff; font-size: .78rem; font-weight: 800; margin-top: 1px; }
.rb-tips { margin-top: 18px; border-radius: 14px; background: #fffbeb; border: 1px solid #fde68a; padding: 14px 16px; }
.rb-tips b { color: #92400e; }

/* Compare */
.rb-compare { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid var(--rb-line); border-radius: 14px; overflow: hidden; font-size: .95rem; }
.rb-compare th, .rb-compare td { padding: 12px 14px; border-bottom: 1px solid var(--rb-line); text-align: left; }
.rb-compare tr:last-child td { border-bottom: 0; }
.rb-compare thead th { background: #f8fafc; font-weight: 700; color: var(--rb-ink); }
.rb-compare thead th:last-child { background: #f5f3ff; color: #5b21b6; }
.rb-compare td:nth-child(2), .rb-compare td:nth-child(3), .rb-compare th:nth-child(2), .rb-compare th:nth-child(3) { text-align: center; }
.rb-yes { color: #15803d; font-weight: 800; }
.rb-no { color: #94a3b8; }

/* FAQ */
.rb-faq details { border: 1px solid var(--rb-line); border-radius: 12px; padding: 0 16px; margin-bottom: 10px; background: #fff; }
.rb-faq summary { cursor: pointer; list-style: none; padding: 14px 0; font-weight: 700; color: var(--rb-ink); display: flex; justify-content: space-between; gap: 12px; }
.rb-faq summary::-webkit-details-marker { display: none; }
.rb-faq summary::after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--rb-muted); }
.rb-faq details[open] summary::after { content: "–"; }
.rb-faq summary h3 { font-size: 1rem; margin: 0; font-weight: 700; }
.rb-faq details p { margin: 0 0 14px; line-height: 1.75; }

/* Final CTA */
.rb-final { margin-top: 18px; border-radius: 22px; padding: 30px 26px; color: #e2e8f0; background: radial-gradient(700px 260px at 100% 0, rgba(124, 58, 237, .45), transparent 60%), #0f172a; display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center; }
.rb-final h2 { color: #fff; margin: 0 0 6px; font-size: 1.5rem; font-weight: 800; }
.rb-final p { margin: 0; color: #cbd5e1; }
.rb-final .rb-btn-primary { background: #fff; color: #0f172a !important; box-shadow: none; }

/* Template preview modal */
.rb-tpl { cursor: pointer; }
.rb-modal { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 24px; }
.rb-modal[hidden] { display: none; }
.rb-modal-backdrop { position: absolute; inset: 0; background: rgba(15, 23, 42, .62); backdrop-filter: blur(2px); cursor: pointer; }
.rb-modal-panel { position: relative; display: flex; width: 100%; max-width: 1040px; height: min(92vh, 900px); background: #fff; border-radius: 20px; overflow: hidden; box-shadow: 0 30px 80px -20px rgba(15, 23, 42, .55); animation: rbIn .18s ease-out; }
@keyframes rbIn { from { opacity: 0; transform: translateY(10px) scale(.985); } to { opacity: 1; transform: none; } }
.rb-modal-view { position: static; flex: 1; min-width: 0; overflow-y: auto; background: #f1f5f9; padding: 22px 64px; }
.rb-modal-paper { max-width: 620px; margin: 0 auto; background: #fff; border-radius: 6px; box-shadow: 0 18px 40px -16px rgba(15, 23, 42, .4); overflow: hidden; }
.rb-modal-paper img { width: 100%; height: auto; display: block; }
.rb-modal-nav { position: absolute; top: 50%; margin-top: -22px; z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 1px solid #e2e8f0; background: #fff; color: #0f172a; font-size: 26px; line-height: 1; box-shadow: 0 8px 20px -8px rgba(15, 23, 42, .35); cursor: pointer; }
.rb-modal-nav:hover { background: #f8fafc; }
.rb-prev { left: 12px; }
.rb-next { right: 332px; }
.rb-modal-side { width: 320px; flex: none; display: flex; flex-direction: column; border-left: 1px solid #e2e8f0; padding: 22px 20px; }
.rb-modal-head { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.rb-modal-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rb-modal-title h3 { margin: 0; font-size: 1.3rem; font-weight: 800; color: #0f172a; }
.rb-modal-title .rb-tag { position: static; }
.rb-modal-count { margin: 2px 0 0; font-size: .8rem; color: #64748b; }
.rb-modal-x { width: 38px; height: 38px; flex: none; border: 0; border-radius: 10px; background: transparent; color: #64748b; font-size: 26px; line-height: 1; cursor: pointer; }
.rb-modal-x:hover { background: #f1f5f9; color: #0f172a; }
.rb-modal-sub { margin: 14px 0 4px; font-weight: 700; color: #1e293b; }
.rb-modal-desc { margin: 0 0 14px; line-height: 1.7; color: #475569; font-size: .95rem; }
.rb-modal-points { font-size: .92rem; }
.rb-modal-actions { margin-top: auto; padding-top: 16px; }
.rb-modal-actions .rb-btn-primary { width: 100%; }
.rb-modal-note { text-align: center; font-size: .8rem; color: #64748b; margin: 8px 0 0; }
.rb-modal-mnav { display: none; gap: 8px; margin-top: 10px; }
.rb-modal-mnav .rb-btn { flex: 1; height: 44px; font-size: .92rem; cursor: pointer; }

/* Responsive */
@media (max-width: 991px) {
  .rb-hero-grid { grid-template-columns: 1fr; padding: 24px 18px 20px; }
  .rb-visual { min-height: 0; display: flex; justify-content: center; padding-top: 6px; }
  .rb-phone { margin: 0; }
  .rb-paper { left: calc(50% - 205px); top: 30px; width: 170px; }
  .rb-float { left: calc(50% - 190px); }
  .rb-templates { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .rb-hero h1 { font-size: 1.65rem; }
  .rb-sec { padding: 20px 16px; }
  .rb-sec h2 { font-size: 1.25rem; }
  .rb-steps-grid, .rb-two, .rb-format, .rb-final { grid-template-columns: 1fr; }
  .rb-shot-phone { max-width: 240px; margin: 0 auto; }
  .rb-templates { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .rb-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rb-stats div:nth-child(3) { border-left: 0; }
  .rb-stats div:nth-child(n + 3) { border-top: 1px solid var(--rb-line); }
  .rb-btn { width: 100%; }
  .rb-laptop-base { margin: 0 -14px; }
  .rb-compare th, .rb-compare td { padding: 10px 8px; font-size: .88rem; }
}
@media (max-width: 767px) {
  .rb-modal { padding: 0; align-items: stretch; }
  .rb-modal-panel { flex-direction: column; height: 100%; max-height: none; border-radius: 0; }
  .rb-modal-view { padding: 12px; }
  .rb-modal-nav { display: none; }
  .rb-modal-side { width: auto; border-left: 0; border-top: 1px solid #e2e8f0; padding: 14px 16px calc(14px + env(safe-area-inset-bottom)); }
  .rb-modal-sub, .rb-modal-desc, .rb-modal-points { display: none; }
  .rb-modal-actions { padding-top: 10px; }
  .rb-modal-mnav { display: flex; }
}
@media (max-width: 420px) {
  .rb-paper { display: none; }
  .rb-float { left: 6px; bottom: 14px; }
  .rb-checks { grid-template-columns: 1fr; }
  .rb-card-bio { grid-template-columns: 1fr; }
  .rb-card-bio img { max-width: 160px; }
}
