/* ResumeForge design system: purple/blue SaaS, white + light-gray surfaces */
:root {
    --rf-primary: #5b43d6;
    --rf-primary-dark: #4733b3;
    --rf-primary-soft: #efecfc;
    --rf-accent: #2f80ed;
    --rf-ink: #1f2430;
    --rf-muted: #6b7280;
    --rf-line: #e8eaf0;
    --rf-bg: #f6f7fb;
    --rf-card: #ffffff;
    --rf-radius: 14px;
    --rf-shadow: 0 1px 2px rgba(31, 36, 48, .04), 0 8px 24px rgba(31, 36, 48, .06);
    --rf-shadow-lg: 0 12px 40px rgba(91, 67, 214, .18);
    --bs-primary: #5b43d6;
    --bs-primary-rgb: 91, 67, 214;
    --bs-link-color: #5b43d6;
    --bs-link-hover-color: #4733b3;
    --bs-body-font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --bs-body-color: var(--rf-ink);
}
html { scroll-behavior: smooth; }
body { background: #fff; color: var(--rf-ink); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, h5 { font-weight: 700; letter-spacing: -.02em; }
a { text-decoration: none; }

/* Buttons */
.btn { border-radius: 10px; font-weight: 600; padding: .6rem 1.25rem; transition: all .18s ease; }
.btn-lg { padding: .8rem 1.75rem; border-radius: 12px; }
.btn-primary { --bs-btn-bg: var(--rf-primary); --bs-btn-border-color: var(--rf-primary); --bs-btn-hover-bg: var(--rf-primary-dark); --bs-btn-hover-border-color: var(--rf-primary-dark); --bs-btn-active-bg: var(--rf-primary-dark); --bs-btn-active-border-color: var(--rf-primary-dark); --bs-btn-disabled-bg: var(--rf-primary); --bs-btn-disabled-border-color: var(--rf-primary); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: var(--rf-shadow-lg); }
.btn-outline-primary { --bs-btn-color: var(--rf-primary); --bs-btn-border-color: var(--rf-primary); --bs-btn-hover-bg: var(--rf-primary); --bs-btn-hover-border-color: var(--rf-primary); --bs-btn-active-bg: var(--rf-primary); --bs-btn-active-border-color: var(--rf-primary); }
.btn-soft { background: var(--rf-primary-soft); color: var(--rf-primary); border: 0; }
.btn-soft:hover { background: #e3defa; color: var(--rf-primary-dark); }

/* Forms */
.form-control, .form-select { border-radius: 10px; border-color: #dfe2ea; padding: .65rem .9rem; }
.form-control:focus, .form-select:focus { border-color: var(--rf-primary); box-shadow: 0 0 0 .22rem rgba(91, 67, 214, .15); }
.form-label { font-weight: 600; font-size: .875rem; }
.form-check-input:checked { background-color: var(--rf-primary); border-color: var(--rf-primary); }
.hp-field { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Cards */
.rf-card { background: var(--rf-card); border: 1px solid var(--rf-line); border-radius: var(--rf-radius); box-shadow: var(--rf-shadow); }
.rf-card-hover { transition: transform .2s ease, box-shadow .2s ease; }
.rf-card-hover:hover { transform: translateY(-4px); box-shadow: var(--rf-shadow-lg); }

/* Navbar */
.rf-nav { background: rgba(255, 255, 255, .92); backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--rf-line); }
.rf-brand { font-weight: 800; font-size: 1.3rem; color: var(--rf-ink); letter-spacing: -.03em; }
.rf-brand i { color: var(--rf-primary); }
.rf-nav .nav-link { color: #3b4252; font-weight: 500; padding: .5rem .85rem; border-radius: 8px; }
.rf-nav .nav-link:hover, .rf-nav .nav-link.active { color: var(--rf-primary); background: var(--rf-primary-soft); }

/* Hero */
.hero { background: radial-gradient(1200px 500px at 85% -10%, #e4defc 0%, transparent 60%), radial-gradient(900px 400px at -10% 20%, #dbeafe 0%, transparent 55%), #fff; padding: 5rem 0 4rem; overflow: hidden; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.1; }
.hero .lead { color: var(--rf-muted); font-size: 1.15rem; max-width: 560px; }
.gradient-text { background: linear-gradient(90deg, var(--rf-primary), var(--rf-accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--rf-primary); background: var(--rf-primary-soft); padding: .35rem .8rem; border-radius: 999px; }
.section { padding: 4.5rem 0; }
.section-alt { background: var(--rf-bg); }
.section-title { text-align: center; max-width: 680px; margin: 0 auto 3rem; }
.section-title p { color: var(--rf-muted); }

/* Mini resume mockups (pure CSS thumbnails) */
.mock-page { width: 100%; aspect-ratio: 210 / 297; background: #fff; border-radius: 8px; border: 1px solid var(--rf-line); box-shadow: var(--rf-shadow); padding: 12px; display: flex; gap: 8px; overflow: hidden; position: relative; }
.mock-page .bar { height: 6px; background: #e5e7eb; border-radius: 3px; margin-bottom: 5px; }
.mock-page .bar.accent { background: var(--mock-accent, var(--rf-primary)); }
.mock-page .bar.w50 { width: 50%; } .mock-page .bar.w70 { width: 70%; } .mock-page .bar.w90 { width: 90%; }
.mock-side { width: 32%; background: var(--mock-accent, var(--rf-primary)); border-radius: 4px; padding: 8px 6px; }
.mock-side .bar { background: rgba(255, 255, 255, .55); }
.mock-main { flex: 1; padding-top: 4px; }
.mock-head { height: 22px; background: var(--mock-accent, var(--rf-primary)); border-radius: 3px; margin-bottom: 8px; }
.mock-avatar { width: 26px; height: 26px; border-radius: 50%; background: rgba(255, 255, 255, .7); margin: 0 auto 8px; }
.badge-premium { background: linear-gradient(135deg, #f59e0b, #f97316); color: #fff; }
.badge-free { background: #dcfce7; color: #166534; }

/* Steps / features */
.step-num { width: 48px; height: 48px; border-radius: 14px; background: var(--rf-primary); color: #fff; font-weight: 800; display: grid; place-items: center; font-size: 1.2rem; }
.feature-icon { width: 52px; height: 52px; border-radius: 14px; background: var(--rf-primary-soft); color: var(--rf-primary); display: grid; place-items: center; font-size: 1.3rem; }

/* Accordion (FAQ) */
.accordion-item { border: 1px solid var(--rf-line) !important; border-radius: 12px !important; margin-bottom: .75rem; overflow: hidden; }
.accordion-button { font-weight: 600; }
.accordion-button:not(.collapsed) { background: var(--rf-primary-soft); color: var(--rf-primary-dark); box-shadow: none; }
.accordion-button:focus { box-shadow: 0 0 0 .2rem rgba(91, 67, 214, .15); }

/* CTA */
.cta-band { background: linear-gradient(120deg, var(--rf-primary), var(--rf-accent)); color: #fff; border-radius: 24px; padding: 3.5rem 2rem; }

/* Footer */
.rf-footer { background: #12141c; color: #9aa1b2; padding: 4rem 0 2rem; }
.rf-footer a { color: #b9bfce; } .rf-footer a:hover { color: #fff; }
.rf-footer h6 { color: #fff; font-weight: 700; margin-bottom: 1rem; }

/* Pricing */
.price-card.featured { border: 2px solid var(--rf-primary); position: relative; }
.price-card .price { font-size: 2.6rem; font-weight: 800; }

/* Auth layout */
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-aside { background: linear-gradient(150deg, var(--rf-primary), #3b27a8 60%, var(--rf-accent)); color: #fff; padding: 3rem; display: flex; flex-direction: column; justify-content: space-between; }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 2rem 1.25rem; background: #fff; }
.auth-box { width: 100%; max-width: 420px; }
@media (max-width: 900px) { .auth-wrap { grid-template-columns: 1fr; } .auth-aside { display: none; } }

/* Dashboard layout */
.dash { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; background: var(--rf-bg); }
.dash-side { background: #fff; border-right: 1px solid var(--rf-line); padding: 1.25rem 1rem; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; }
.dash-side .nav-link { color: #3b4252; font-weight: 500; border-radius: 10px; padding: .65rem .9rem; display: flex; align-items: center; gap: .75rem; }
.dash-side .nav-link i { width: 20px; text-align: center; color: #8b93a7; }
.dash-side .nav-link:hover { background: var(--rf-bg); }
.dash-side .nav-link.active { background: var(--rf-primary-soft); color: var(--rf-primary); }
.dash-side .nav-link.active i { color: var(--rf-primary); }
.dash-main { padding: 2rem; min-width: 0; }
.dash-top { display: none; }
@media (max-width: 991px) {
    .dash { grid-template-columns: 1fr; }
    .dash-side { position: fixed; left: -280px; width: 260px; z-index: 1040; transition: left .25s ease; }
    .dash-side.open { left: 0; box-shadow: 0 0 0 100vmax rgba(0, 0, 0, .35); }
    .dash-top { display: flex; align-items: center; justify-content: space-between; background: #fff; border-bottom: 1px solid var(--rf-line); padding: .75rem 1rem; position: sticky; top: 0; z-index: 1030; }
    .dash-main { padding: 1.25rem 1rem; }
}
.stat-card { padding: 1.25rem; }
.stat-card .stat-icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--rf-primary-soft); color: var(--rf-primary); font-size: 1.15rem; }
.stat-card .stat-value { font-size: 1.8rem; font-weight: 800; line-height: 1; }

/* Password strength meter */
.pw-meter { height: 5px; background: #eceef4; border-radius: 3px; overflow: hidden; margin-top: .4rem; }
.pw-meter > span { display: block; height: 100%; width: 0; transition: width .2s ease, background .2s ease; }

.error-code { font-size: clamp(5rem, 16vw, 9rem); font-weight: 800; line-height: 1; }
.legal h2 { font-size: 1.25rem; margin-top: 2rem; }
.legal p, .legal li { color: #444b5c; }

/* Library / pickers / dashboard thumbnails and preview modal */
.resume-thumb { width: 100%; aspect-ratio: 210 / 297; object-fit: cover; object-position: top; background: #f3f4f8; border-radius: 8px; border: 1px solid var(--rf-line); display: block; }
.tpl-pick input:checked ~ img { outline: 3px solid var(--rf-primary); }
.tpl-pick .pick-mark { display: none; color: var(--rf-primary); font-size: .8rem; font-weight: 600; }
.tpl-pick input:checked ~ div .pick-mark { display: inline; }
.tpl-pick.locked { opacity: .7; }
.min-w-0 { min-width: 0; }
.tpl-preview-body { background: #e9ebf2; display: flex; justify-content: center; }
.tpl-preview-frame { width: min(100%, 794px); aspect-ratio: 210 / 297; background: #fff; box-shadow: 0 6px 24px rgba(20, 24, 40, .18); }
.tpl-preview-frame iframe { width: 100%; height: 100%; border: 0; }

