/* ================================================================
   CVPro — Design System
   Landing page + Builder UI
   ================================================================ */

/* ── Google Fonts ─────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,500;0,700;1,500&family=Inter:wght@300;400;500;600;700&display=swap');

/* ── Reset ────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', system-ui, sans-serif;
    background: #0a0a0f;
    color: #e2e0eb;
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; }
ul { list-style: none; }
input, textarea, select { font-family: inherit; }

/* ── Design tokens ────────────────────────────────────────────── */
:root {
    /* Backgrounds */
    --bg-0:   #0a0a0f;
    --bg-1:   #111118;
    --bg-2:   #17171f;
    --bg-3:   #1e1e28;
    --bg-4:   #25252f;

    /* Borders */
    --bdr:    rgba(255,255,255,0.06);
    --bdr-2:  rgba(255,255,255,0.12);
    --bdr-3:  rgba(255,255,255,0.18);

    /* Text */
    --t-1:    #f0eef8;
    --t-2:    #a09cb8;
    --t-3:    #5a5672;

    /* Accent - Gold */
    --gold:        #d4a843;
    --gold-lt:     #e8c06a;
    --gold-dim:    rgba(212,168,67,0.12);
    --gold-border: rgba(212,168,67,0.25);

    /* Accent - Blue (matches PDF 1 navy) */
    --navy:     #002060;
    --navy-lt:  #1a3a8f;

    /* Radius */
    --r-sm: 8px;
    --r-md: 12px;
    --r-lg: 18px;
    --r-xl: 24px;

    /* Shadows */
    --shadow-sm: 0 2px 12px rgba(0,0,0,0.4);
    --shadow-md: 0 8px 32px rgba(0,0,0,0.5);
    --shadow-lg: 0 20px 60px rgba(0,0,0,0.6);
}

/* ── Typography ───────────────────────────────────────────────── */
h1,h2,h3,h4 { font-family: 'Playfair Display', Georgia, serif; line-height: 1.15; color: var(--t-1); }
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 500; }
p  { color: var(--t-2); }
em { font-style: italic; color: var(--gold); }
strong { font-weight: 600; color: var(--t-1); }

/* ── Layout ───────────────────────────────────────────────────── */
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; width: 100%; }

/* ── Buttons ──────────────────────────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 26px; border-radius: var(--r-sm);
    font-size: 0.875rem; font-weight: 600; letter-spacing: 0.01em;
    border: none; cursor: pointer; text-decoration: none;
    transition: all 0.18s ease; white-space: nowrap;
}
.btn-primary {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-lt) 100%);
    color: #1a0e00;
    box-shadow: 0 4px 20px rgba(212,168,67,0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(212,168,67,0.5); }
.btn-primary:active { transform: translateY(0); }
.btn-outline {
    background: transparent; color: var(--t-1);
    border: 1.5px solid var(--bdr-2);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); background: var(--gold-dim); }
.btn-sm { padding: 8px 18px; font-size: 0.8rem; }
.btn-lg { padding: 15px 32px; font-size: 0.95rem; }

/* ── Chip / badge ─────────────────────────────────────────────── */
.chip {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 3px 10px; border-radius: 100px; font-size: 0.72rem; font-weight: 600;
    letter-spacing: 0.04em; text-transform: uppercase;
}
.chip-gold { background: var(--gold-dim); color: var(--gold-lt); border: 1px solid var(--gold-border); }
.chip-green { background: rgba(34,197,94,0.1); color: #4ade80; border: 1px solid rgba(34,197,94,0.25); }

/* ── Navigation ───────────────────────────────────────────────── */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 999;
    height: 66px;
    transition: background 0.3s, border-color 0.3s;
    border-bottom: 1px solid transparent;
}
.nav.scrolled {
    background: rgba(10,10,15,0.94);
    backdrop-filter: blur(20px);
    border-bottom-color: var(--bdr);
}
.nav-inner {
    height: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px;
    display: flex; align-items: center; justify-content: space-between;
}
.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.55rem; font-weight: 700;
    display: flex; align-items: center; gap: 2px;
}
.logo-cv  { color: var(--gold); }
.logo-pro { color: var(--t-1); font-weight: 500; }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
    padding: 6px 14px; border-radius: var(--r-sm);
    font-size: 0.85rem; font-weight: 500; color: var(--t-2);
    transition: color 0.15s, background 0.15s;
}
.nav-links a:hover { color: var(--t-1); background: var(--bg-3); }
.nav-links .nav-cta {
    background: var(--gold-dim); color: var(--gold-lt) !important;
    border: 1px solid var(--gold-border); padding: 7px 18px; margin-left: 6px;
}
.nav-links .nav-cta:hover { background: rgba(212,168,67,0.22) !important; }
.nav-hamburger { display: none; flex-direction: column; gap: 5px; padding: 6px; border: none; background: none; cursor: pointer; }
.nav-hamburger span { display: block; width: 22px; height: 2px; background: var(--t-2); border-radius: 2px; transition: 0.2s; }

/* ── Hero ─────────────────────────────────────────────────────── */
.hero {
    min-height: 100vh; display: flex; align-items: center;
    padding: 90px 0 60px; position: relative; overflow: hidden;
}
.hero-noise {
    position: absolute; inset: 0; z-index: 0; pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
    opacity: 0.4;
}
.hero-glow-1, .hero-glow-2 {
    position: absolute; border-radius: 50%; pointer-events: none; filter: blur(100px);
}
.hero-glow-1 {
    width: 700px; height: 700px;
    background: radial-gradient(circle, rgba(212,168,67,0.09), transparent 70%);
    top: -200px; left: -200px;
    animation: float1 12s ease-in-out infinite alternate;
}
.hero-glow-2 {
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(0,32,96,0.15), transparent 70%);
    bottom: -100px; right: -100px;
    animation: float2 9s ease-in-out infinite alternate;
}
@keyframes float1 { from{transform:translate(0,0)} to{transform:translate(40px,30px)} }
@keyframes float2 { from{transform:translate(0,0)} to{transform:translate(-30px,-40px)} }
.hero-inner {
    position: relative; z-index: 1;
    display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
}
.hero-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 5px 14px; border-radius: 100px;
    background: var(--gold-dim); border: 1px solid var(--gold-border);
    font-size: 0.75rem; font-weight: 600; color: var(--gold-lt);
    letter-spacing: 0.04em; text-transform: uppercase;
    margin-bottom: 22px;
}
.hero-eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.4;transform:scale(0.8)} }
.hero-title { margin-bottom: 20px; }
.hero-title em { display: block; }
.hero-sub { font-size: 1.05rem; line-height: 1.7; color: var(--t-2); max-width: 500px; margin-bottom: 34px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 44px; }
.hero-stats { display: flex; gap: 0; }
.hero-stat { padding: 0 24px 0 0; }
.hero-stat:first-child { padding-left: 0; }
.hero-stat:not(:last-child) { border-right: 1px solid var(--bdr-2); margin-right: 24px; }
.hero-stat strong { display: block; font-family: 'Playfair Display', serif; font-size: 1.8rem; color: var(--gold); line-height: 1; }
.hero-stat span { font-size: 0.72rem; color: var(--t-3); text-transform: uppercase; letter-spacing: 0.06em; }

/* ── CV Preview stack ─────────────────────────────────────────── */
.cv-preview-wrap { position: relative; }
.cv-preview-stack { position: relative; height: 480px; }
.cv-sheet {
    position: absolute; background: white; border-radius: 4px;
    box-shadow: var(--shadow-lg); overflow: hidden;
}
.cv-sheet-back {
    width: 240px; height: 320px;
    top: 60px; right: 40px;
    transform: rotate(4deg);
    opacity: 0.6;
    animation: sheet-float-b 6s ease-in-out infinite alternate;
}
.cv-sheet-front {
    width: 260px; height: 360px;
    top: 20px; right: 10px;
    transform: rotate(-1.5deg);
    animation: sheet-float-a 5s ease-in-out infinite alternate;
}
@keyframes sheet-float-a { from{transform:rotate(-1.5deg) translateY(0)} to{transform:rotate(-1.5deg) translateY(-12px)} }
@keyframes sheet-float-b { from{transform:rotate(4deg) translateY(0)} to{transform:rotate(4deg) translateY(-6px)} }

/* Mini CV preview inside sheet - exact replica of PDF 1 */
.mini-cv-1 {
    padding: 16px 18px;
    font-family: 'Times New Roman', serif;
    font-size: 6px; line-height: 1.4; color: #111;
}
.m1-header { text-align: center; margin-bottom: 8px; }
.m1-name { font-size: 11px; font-weight: bold; color: #002060; letter-spacing: 0.5px; margin-bottom: 2px; }
.m1-email { font-size: 6.5px; color: #0563c1; }
.m1-rule { height: 1.5px; background: #002060; margin: 4px 0; }
.m1-section { margin-bottom: 7px; }
.m1-sh { font-size: 8px; font-weight: bold; color: #002060; margin-bottom: 1px; }
.m1-sh-rule { height: 1px; background: #002060; margin-bottom: 4px; }
.m1-row { display: flex; justify-content: space-between; gap: 4px; margin-bottom: 3px; }
.m1-left { flex: 1; }
.m1-degree { font-size: 6.5px; font-weight: bold; }
.m1-inst { font-size: 5.5px; color: #444; font-style: italic; }
.m1-date { font-size: 5.5px; color: #555; text-align: right; white-space: nowrap; font-style: italic; }
.m1-chip-wrap { display: flex; gap: 2px; margin-top: 2px; }
.m1-chip { background: #eef2f7; border: 0.5px solid #c8d4e8; color: #002060; font-size: 4.5px; padding: 1px 3px; border-radius: 2px; }
.m1-pub { font-size: 5.5px; color: #333; margin-bottom: 2px; line-height: 1.4; }

/* Mini CV 2 - PDF 2 style (cleaner serif) */
.mini-cv-2 {
    padding: 14px 16px;
    font-family: 'Times New Roman', serif;
    font-size: 6px; line-height: 1.4; color: #111;
}
.m2-name { font-size: 13px; font-weight: bold; color: #000; margin-bottom: 2px; }
.m2-contact { font-size: 5.5px; color: #555; margin-bottom: 6px; }
.m2-email { color: #0563c1; }
.m2-rule { height: 1px; background: #000; margin-bottom: 5px; }
.m2-sh { font-size: 8px; font-weight: bold; color: #000; margin-bottom: 3px; }
.m2-bullet { font-size: 6px; font-weight: bold; color: #000; display: flex; gap: 3px; margin-bottom: 2px; }
.m2-org { font-size: 5.5px; color: #444; margin-bottom: 2px; }
.m2-sub { font-size: 5px; color: #666; margin-bottom: 4px; }
.m2-pub { font-size: 5.5px; color: #333; margin-bottom: 2px; line-height: 1.4; }

/* ── Section ──────────────────────────────────────────────────── */
.section { padding: 90px 0; }
.section-alt { background: var(--bg-1); }
.section-dark { background: var(--bg-0); }
.section-head { text-align: center; margin-bottom: 56px; }
.section-tag {
    display: inline-block; font-size: 0.7rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.1em; color: var(--gold);
    background: var(--gold-dim); border: 1px solid var(--gold-border);
    padding: 4px 12px; border-radius: 100px; margin-bottom: 14px;
}
.section-title { margin-bottom: 14px; }
.section-sub { color: var(--t-2); max-width: 520px; margin: 0 auto; font-size: 1rem; line-height: 1.7; }

/* ── Process steps ────────────────────────────────────────────── */
.steps { display: flex; align-items: flex-start; gap: 0; position: relative; }
.steps::before {
    content: ''; position: absolute;
    top: 28px; left: 28px; right: 28px; height: 1px;
    background: linear-gradient(90deg, transparent, var(--bdr-2) 20%, var(--bdr-2) 80%, transparent);
}
.step { flex: 1; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 12px; position: relative; z-index: 1; }
.step-num {
    width: 56px; height: 56px; border-radius: 50%;
    border: 1.5px solid var(--bdr-2); background: var(--bg-2);
    display: flex; align-items: center; justify-content: center;
    font-family: 'Playfair Display', serif; font-size: 1.2rem; font-weight: 700; color: var(--gold);
    margin-bottom: 16px; transition: border-color 0.2s, background 0.2s;
}
.step:hover .step-num { border-color: var(--gold-border); background: var(--gold-dim); }
.step h3 { font-size: 0.9rem; font-weight: 600; font-family: 'Inter', sans-serif; margin-bottom: 8px; color: var(--t-1); }
.step p { font-size: 0.8rem; color: var(--t-3); line-height: 1.5; }

/* ── Template gallery ─────────────────────────────────────────── */
.tpl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.tpl-card {
    background: var(--bg-2); border: 1.5px solid var(--bdr);
    border-radius: var(--r-lg); overflow: hidden;
    transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
    position: relative;
}
.tpl-card:hover { transform: translateY(-5px); border-color: var(--bdr-2); box-shadow: var(--shadow-md); }
.tpl-card.featured { border-color: var(--gold-border); }
.tpl-badge {
    position: absolute; top: 12px; right: 12px; z-index: 5;
    background: linear-gradient(135deg, var(--gold), var(--gold-lt));
    color: #1a0e00; font-size: 0.62rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: 0.06em;
    padding: 3px 9px; border-radius: 100px;
}
.tpl-preview {
    height: 220px; background: #f5f5f5;
    border-bottom: 1px solid var(--bdr); overflow: hidden; position: relative;
}
.tpl-source-tag {
    position: absolute; top: 8px; left: 8px; z-index: 5;
    font-size: 0.58rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.06em; padding: 2px 7px; border-radius: 100px; color: white;
}
.tpl-info { padding: 18px 20px 22px; }
.tpl-label {
    font-size: 0.68rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.06em; margin-bottom: 6px; color: var(--t-3);
}
.tpl-info h3 { font-size: 1.05rem; font-family: 'Playfair Display', serif; color: var(--t-1); margin-bottom: 7px; }
.tpl-info p { font-size: 0.8rem; color: var(--t-2); line-height: 1.55; margin-bottom: 14px; }
.tpl-meta { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.tpl-meta span {
    font-size: 0.68rem; font-weight: 600;
    padding: 2px 8px; border-radius: 4px;
    background: var(--bg-3); color: var(--t-2); border: 1px solid var(--bdr);
}
.tpl-meta .ats-high { color: #4ade80; border-color: rgba(74,222,128,0.2); background: rgba(74,222,128,0.07); }

/* ── Inline CV previews (real designs, no placeholders) ───────── */
/* CV1 Classic Preview */
.tp-classic {
    padding: 14px 16px; font-family: 'Times New Roman', serif;
    font-size: 6px; color: #111; height: 100%;
}
.tpc-name { font-size: 11px; font-weight: bold; text-align: center; color: #002060; letter-spacing: 0.5px; margin-bottom: 2px; }
.tpc-email { font-size: 6px; text-align: center; color: #0563c1; margin-bottom: 5px; }
.tpc-rule-h { height: 1.5px; background: #002060; margin: 3px 0 6px; }
.tpc-sh { font-size: 8px; font-weight: bold; color: #002060; margin-bottom: 1px; }
.tpc-sh-r { height: 1px; background: #002060; margin-bottom: 4px; }
.tpc-section { margin-bottom: 7px; }
.tpc-row { display: flex; justify-content: space-between; gap: 4px; }
.tpc-left { flex: 1; }
.tpc-deg { font-size: 6.5px; font-weight: bold; margin-bottom: 1px; }
.tpc-inst { font-size: 5.5px; color: #444; font-style: italic; margin-bottom: 1px; }
.tpc-desc { font-size: 5px; color: #555; }
.tpc-date { font-size: 5.5px; color: #555; text-align: right; white-space: nowrap; font-style: italic; }
.tpc-chips { display: flex; gap: 2px; flex-wrap: wrap; margin-top: 2px; }
.tpc-chip { background: #eef2f7; border: 0.5px solid #c8d4e8; color: #002060; font-size: 4.5px; padding: 1px 3px; border-radius: 2px; }
.tpc-pub { font-size: 5.5px; color: #333; margin-bottom: 2px; line-height: 1.4; }

/* CV2 Modern Preview */
.tp-modern {
    padding: 14px 16px; font-family: 'Times New Roman', serif;
    font-size: 6px; color: #111; height: 100%;
}
.tpm-name { font-size: 12px; font-weight: bold; color: #000; margin-bottom: 2px; }
.tpm-addr { font-size: 5.5px; color: #555; margin-bottom: 1px; }
.tpm-email { font-size: 5.5px; color: #0563c1; margin-bottom: 5px; }
.tpm-rule { height: 1px; background: #000; margin-bottom: 5px; }
.tpm-sh { font-size: 8px; font-weight: bold; color: #000; margin-bottom: 3px; }
.tpm-bullet-row { display: flex; gap: 3px; margin-bottom: 2px; }
.tpm-role { font-size: 6.5px; font-weight: bold; color: #000; }
.tpm-dates { font-size: 5.5px; color: #555; }
.tpm-org { font-size: 5.5px; color: #444; margin-bottom: 1px; }
.tpm-sub { font-size: 5px; color: #666; margin-bottom: 4px; padding-left: 8px; }
.tpm-pub { font-size: 5.5px; color: #333; margin-bottom: 2px; line-height: 1.4; }

/* CV3 Executive */
.tp-exec { height: 100%; font-family: sans-serif; }
.tpe-hdr { background: linear-gradient(135deg, #0f1a2e, #1a2d4a); padding: 10px 12px; }
.tpe-name { font-size: 10px; font-weight: 900; color: white; letter-spacing: 0.5px; text-transform: uppercase; }
.tpe-title { font-size: 5.5px; color: rgba(255,255,255,0.6); margin-top: 2px; }
.tpe-gold-bar { height: 2.5px; background: linear-gradient(90deg,#d4a843,#e8c06a,#d4a843); }
.tpe-body { padding: 8px 12px; }
.tpe-sh { font-size: 6px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; color: #d4a843; border-left: 2px solid #d4a843; padding-left: 4px; margin-bottom: 3px; }
.tpe-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 6px; margin-bottom: 4px; }
.tpe-role { font-size: 6.5px; font-weight: bold; color: #111; }
.tpe-org { font-size: 5.5px; color: #d4a843; }
.tpe-date { font-size: 5px; background: rgba(212,168,67,0.1); border: 0.5px solid rgba(212,168,67,0.3); color: #8B6914; padding: 1px 5px; border-radius: 2px; white-space: nowrap; }

/* CV4 Nordic */
.tp-nordic { height: 100%; font-family: sans-serif; }
.tpn-hdr { background: #003153; padding: 10px 12px; display: flex; justify-content: space-between; align-items: flex-end; }
.tpn-name { font-size: 12px; font-weight: 900; color: white; letter-spacing: -0.3px; }
.tpn-contact { text-align: right; }
.tpn-c { font-size: 5px; color: rgba(255,255,255,0.55); line-height: 1.6; }
.tpn-body { display: flex; gap: 0; padding: 8px 10px; }
.tpn-main { flex: 1; }
.tpn-side { width: 75px; border-left: 1px solid #eee; padding-left: 8px; }
.tpn-sh { display: flex; align-items: center; gap: 4px; font-size: 6px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.8px; color: #003153; margin-bottom: 4px; }
.tpn-sh::before { content: ''; display: inline-block; width: 8px; height: 2px; background: #c0392b; flex-shrink: 0; }
.tpn-entry { margin-bottom: 5px; }
.tpn-role { font-size: 6.5px; font-weight: bold; color: #111; }
.tpn-meta { font-size: 5.5px; color: #c0392b; margin: 1px 0; }
.tpn-desc { font-size: 5px; color: #666; }
.tpn-skill { margin-bottom: 4px; }
.tpn-skill-name { font-size: 5.5px; color: #333; margin-bottom: 1.5px; }
.tpn-bar { height: 2px; background: #eee; border-radius: 1px; }
.tpn-bar-fill { height: 100%; background: #003153; border-radius: 1px; }

/* CV5 Creative */
.tp-creative { height: 100%; font-family: sans-serif; }
.tpcr-accent { height: 4px; background: linear-gradient(90deg, #d4a843, #e8c06a); }
.tpcr-hdr { background: #faf7f0; padding: 10px 12px; border-bottom: 0.5px solid #f0e8d0; display: flex; justify-content: space-between; align-items: flex-start; }
.tpcr-name { font-size: 12px; font-weight: 900; color: #1a1200; letter-spacing: -0.3px; }
.tpcr-title { font-size: 5.5px; color: #8B6914; font-weight: 600; margin: 1px 0; }
.tpcr-tags { display: flex; gap: 2px; flex-wrap: wrap; margin-top: 3px; }
.tpcr-tag { font-size: 4.5px; background: #f5ead5; border: 0.5px solid #e4c06e; color: #8B6914; padding: 1px 4px; border-radius: 8px; }
.tpcr-initials { width: 28px; height: 28px; border-radius: 6px; background: linear-gradient(135deg,#d4a843,#e8c06a); display: flex; align-items: center; justify-content: center; font-size: 9px; font-weight: 700; color: white; flex-shrink: 0; }
.tpcr-body { padding: 8px 12px; }
.tpcr-sh { display: flex; align-items: center; gap: 4px; font-size: 6px; font-weight: 800; text-transform: uppercase; color: #1a1200; margin-bottom: 4px; }
.tpcr-dot { width: 6px; height: 6px; border-radius: 50%; background: #d4a843; flex-shrink: 0; }
.tpcr-tl { border-left: 1.5px solid #f0e0b0; padding-left: 7px; }
.tpcr-item { position: relative; margin-bottom: 5px; }
.tpcr-item::before { content: ''; position: absolute; left: -10px; top: 2px; width: 5px; height: 5px; border-radius: 50%; background: #d4a843; border: 1.5px solid white; box-shadow: 0 0 0 1px #d4a843; }
.tpcr-role { font-size: 6.5px; font-weight: bold; color: #111; }
.tpcr-meta { font-size: 5.5px; color: #888; }

/* CV6 Editorial */
.tp-editorial { height: 100%; font-family: sans-serif; }
.tped-mast { background: #0d0d1a; padding: 12px; border-bottom: 2px solid #d4a843; }
.tped-ey { font-size: 5px; text-transform: uppercase; letter-spacing: 2px; color: #d4a843; margin-bottom: 3px; }
.tped-name { font-size: 14px; font-weight: 900; color: white; letter-spacing: -0.5px; line-height: 1; text-transform: uppercase; }
.tped-sub { font-size: 5.5px; color: rgba(255,255,255,0.45); margin-top: 4px; }
.tped-body { display: flex; }
.tped-main { flex: 1; padding: 8px 10px; border-right: 1px solid #f0f0f0; }
.tped-side { width: 65px; padding: 8px; background: #f8f8f8; }
.tped-sh { font-size: 6px; font-weight: 900; text-transform: uppercase; letter-spacing: 0.8px; color: #0d0d1a; border-bottom: 1.5px solid #0d0d1a; padding-bottom: 2px; margin-bottom: 4px; }
.tped-row { display: flex; gap: 5px; margin-bottom: 4px; }
.tped-dt { font-size: 5px; color: #999; white-space: nowrap; width: 25px; }
.tped-role { font-size: 6px; font-weight: bold; color: #111; }
.tped-org { font-size: 5.5px; color: #d4a843; }
.tped-stag { display: inline-block; background: #0d0d1a; color: white; font-size: 5px; padding: 1.5px 5px; border-radius: 2px; margin: 0 1.5px 1.5px 0; }
.tped-stat strong { font-size: 11px; color: #0d0d1a; display: block; font-weight: 900; line-height: 1; }
.tped-stat span { font-size: 5px; color: #888; }
.tped-stat { margin-bottom: 5px; }

/* ── Features grid ────────────────────────────────────────────── */
.features { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.feature {
    background: var(--bg-2); border: 1px solid var(--bdr);
    border-radius: var(--r-md); padding: 26px 22px;
    transition: border-color 0.2s, transform 0.2s;
}
.feature:hover { border-color: var(--bdr-2); transform: translateY(-3px); }
.feature-icon { font-size: 1.6rem; margin-bottom: 14px; }
.feature h3 { font-size: 0.95rem; font-family: 'Inter', sans-serif; font-weight: 600; color: var(--t-1); margin-bottom: 8px; }
.feature p { font-size: 0.82rem; color: var(--t-2); line-height: 1.6; }

/* ── Pricing card ─────────────────────────────────────────────── */
.pricing-wrap {
    display: grid; grid-template-columns: 1fr 380px; gap: 48px;
    background: var(--bg-2); border: 1.5px solid var(--gold-border);
    border-radius: var(--r-xl); padding: 52px;
    align-items: center;
}
.pricing-left h2 { margin-bottom: 14px; }
.pricing-left p { font-size: 1rem; line-height: 1.7; margin-bottom: 28px; }
.pricing-box {
    background: var(--bg-3); border: 1px solid var(--bdr-2);
    border-radius: var(--r-lg); padding: 32px; text-align: center;
}
.price-big { font-family: 'Playfair Display', serif; font-size: 4.5rem; color: var(--gold); line-height: 1; }
.price-label { font-size: 0.78rem; color: var(--t-3); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 24px; display: block; }
.price-features { text-align: left; }
.price-feature { font-size: 0.85rem; color: var(--t-2); padding: 7px 0; border-bottom: 1px solid var(--bdr); display: flex; align-items: center; gap: 10px; }
.price-feature:last-child { border-bottom: none; }
.price-feature-check { color: var(--gold); font-size: 1rem; flex-shrink: 0; }

/* ── Testimonials ─────────────────────────────────────────────── */
.testimonials { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.testimonial {
    background: var(--bg-2); border: 1px solid var(--bdr);
    border-radius: var(--r-md); padding: 26px;
}
.testi-stars { color: var(--gold); font-size: 0.82rem; letter-spacing: 2px; margin-bottom: 14px; }
.testi-text { font-size: 0.87rem; color: var(--t-2); line-height: 1.65; font-style: italic; margin-bottom: 20px; }
.testi-author { display: flex; align-items: center; gap: 12px; }
.testi-avatar {
    width: 38px; height: 38px; border-radius: 50%;
    background: linear-gradient(135deg, var(--gold), var(--navy-lt));
    display: flex; align-items: center; justify-content: center;
    font-size: 0.75rem; font-weight: 700; color: white; flex-shrink: 0;
}
.testi-author strong { display: block; font-size: 0.87rem; color: var(--t-1); font-weight: 600; }
.testi-author span { font-size: 0.75rem; color: var(--t-3); }

/* ── CTA section ──────────────────────────────────────────────── */
.cta-section {
    text-align: center; padding: 100px 0;
    background: linear-gradient(135deg, #0a0800, #060d18);
    position: relative; overflow: hidden;
}
.cta-glow {
    position: absolute; inset: 0;
    background: radial-gradient(ellipse 60% 60% at 50% 50%, rgba(212,168,67,0.06), transparent);
    pointer-events: none;
}
.cta-section h2 { margin-bottom: 16px; }
.cta-section p { font-size: 1rem; margin-bottom: 32px; }

/* ── Trust bar ────────────────────────────────────────────────── */
.trust-bar {
    background: var(--bg-1); border-top: 1px solid var(--bdr);
    border-bottom: 1px solid var(--bdr); padding: 14px 0;
}
.trust-inner { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.trust-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--t-3); margin-right: 8px; }
.trust-item { display: flex; align-items: center; gap: 6px; font-size: 0.8rem; color: var(--t-2); font-weight: 500; }
.trust-sep { color: var(--bdr-2); margin: 0 4px; }

/* ── Footer ───────────────────────────────────────────────────── */
.footer { background: var(--bg-1); border-top: 1px solid var(--bdr); padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand p { font-size: 0.84rem; color: var(--t-3); line-height: 1.65; margin-top: 12px; max-width: 220px; }
.footer-col h4 { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--t-2); margin-bottom: 14px; font-family: 'Inter', sans-serif; }
.footer-col a { display: block; font-size: 0.84rem; color: var(--t-3); margin-bottom: 9px; transition: color 0.15s; }
.footer-col a:hover { color: var(--t-1); }
.footer-bottom { border-top: 1px solid var(--bdr); padding-top: 22px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.footer-bottom p { font-size: 0.78rem; color: var(--t-3); }
.footer-badges { display: flex; gap: 8px; }
.footer-badges span { font-size: 0.7rem; color: var(--t-3); background: var(--bg-3); border: 1px solid var(--bdr); padding: 3px 9px; border-radius: 100px; }

/* ── Builder page ─────────────────────────────────────────────── */

/* FIX: was "overflow: hidden" which blocked all scrolling on mobile */
.builder-body { overflow-x: hidden; }

.builder-layout { display: flex; height: calc(100vh - 66px); margin-top: 66px; }

/* Sidebar */
.sidebar {
    width: 370px; flex-shrink: 0; background: var(--bg-1);
    border-right: 1px solid var(--bdr);
    display: flex; flex-direction: column; overflow: hidden;
}
.sidebar-top { padding: 16px 20px 0; border-bottom: 1px solid var(--bdr); flex-shrink: 0; }
.sidebar-top-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.sidebar-top-row h2 { font-size: 1rem; font-family: 'Inter', sans-serif; font-weight: 600; color: var(--t-1); }
.autosave { font-size: 0.7rem; color: var(--t-3); font-family: monospace; }

/* Progress segments */
.progress-segs { display: flex; gap: 3px; padding-bottom: 16px; }
.progress-seg { flex: 1; height: 3px; border-radius: 2px; background: var(--bg-4); transition: background 0.3s; }
.progress-seg.done { background: var(--gold); }
.progress-seg.active { background: var(--gold-lt); }

/* Step tabs */
.step-tabs { display: flex; overflow-x: auto; scrollbar-width: none; background: var(--bg-1); flex-shrink: 0; border-bottom: 1px solid var(--bdr); }
.step-tabs::-webkit-scrollbar { display: none; }
.step-tab {
    flex-shrink: 0; padding: 10px 14px;
    font-size: 0.74rem; font-weight: 600; color: var(--t-3);
    border: none; background: none; cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: color 0.15s, border-color 0.15s;
    white-space: nowrap;
}
.step-tab:hover { color: var(--t-2); }
.step-tab.active { color: var(--gold-lt); border-bottom-color: var(--gold); }

/* Form area */
.form-area { flex: 1; overflow-y: auto; padding: 18px 20px 80px; scrollbar-width: thin; scrollbar-color: var(--bg-4) transparent; }
.form-area::-webkit-scrollbar { width: 4px; }
.form-area::-webkit-scrollbar-thumb { background: var(--bg-4); border-radius: 2px; }

/* Form elements */
.form-step { display: none; }
.form-step.active { display: block; }
.form-sect-title {
    font-size: 0.68rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.08em; color: var(--t-3);
    margin: 18px 0 12px; display: flex; align-items: center; gap: 8px;
}
.form-sect-title::after { content: ''; flex: 1; height: 1px; background: var(--bdr); }
.form-group { margin-bottom: 12px; }
.form-label { display: block; font-size: 0.72rem; font-weight: 600; color: var(--t-2); margin-bottom: 5px; text-transform: uppercase; letter-spacing: 0.04em; }
.form-input, .form-select, .form-textarea {
    width: 100%; background: var(--bg-2); border: 1px solid var(--bdr-2);
    border-radius: var(--r-sm); padding: 9px 12px;
    color: var(--t-1); font-size: 0.875rem;
    outline: none; transition: border-color 0.15s, box-shadow 0.15s;
    -webkit-appearance: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
    border-color: var(--gold); box-shadow: 0 0 0 3px rgba(212,168,67,0.1);
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--t-3); }
.form-textarea { resize: vertical; min-height: 68px; line-height: 1.5; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.form-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%235a5672' d='M5 6L0 0h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: calc(100% - 12px) center;
    padding-right: 30px; cursor: pointer;
}

/* Template selector in form */
.tpl-sel-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.tpl-sel-item {
    border: 2px solid var(--bdr); border-radius: var(--r-sm);
    padding: 10px 8px; cursor: pointer; background: var(--bg-2);
    text-align: center; transition: border-color 0.15s, background 0.15s;
}
.tpl-sel-item:hover { border-color: var(--bdr-2); }
.tpl-sel-item.active { border-color: var(--gold); background: var(--gold-dim); }
.tpl-sel-item-swatch { height: 4px; border-radius: 2px; margin-bottom: 6px; }
.tpl-sel-item-name { font-size: 0.7rem; font-weight: 600; color: var(--t-2); }
.tpl-sel-item.active .tpl-sel-item-name { color: var(--gold-lt); }
.tpl-desc-box { background: var(--bg-3); border: 1px solid var(--bdr); border-radius: var(--r-sm); padding: 10px 12px; font-size: 0.78rem; color: var(--t-2); line-height: 1.5; }

/* Repeatable blocks */
.block-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; }
.block-item { background: var(--bg-2); border: 1px solid var(--bdr); border-radius: var(--r-sm); overflow: hidden; }
.block-header { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; background: var(--bg-3); border-bottom: 1px solid var(--bdr); cursor: pointer; user-select: none; }
.block-header-left { display: flex; align-items: center; gap: 8px; }
.block-num { font-size: 0.68rem; font-weight: 700; color: var(--t-3); text-transform: uppercase; letter-spacing: 0.06em; }
.block-title-preview { font-size: 0.78rem; color: var(--t-2); font-weight: 500; }
.block-header-right { display: flex; align-items: center; gap: 6px; }
.block-toggle { font-size: 0.7rem; color: var(--t-3); }
.block-del { width: 22px; height: 22px; border-radius: 50%; background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.2); color: #ef4444; font-size: 13px; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background 0.15s; flex-shrink: 0; }
.block-del:hover { background: rgba(239,68,68,0.22); }
.block-body { padding: 12px; }
.block-body.collapsed { display: none; }
.btn-add-block { width: 100%; padding: 8px; background: transparent; border: 1px dashed var(--bdr-2); border-radius: var(--r-sm); color: var(--t-3); font-size: 0.8rem; font-weight: 500; cursor: pointer; transition: border-color 0.15s, color 0.15s; margin-top: 4px; }
.btn-add-block:hover { border-color: var(--gold-border); color: var(--gold-lt); }

/* Tags */
.tags-wrap { min-height: 40px; background: var(--bg-2); border: 1px solid var(--bdr-2); border-radius: var(--r-sm); padding: 5px; display: flex; flex-wrap: wrap; gap: 4px; cursor: text; transition: border-color 0.15s; }
.tags-wrap:focus-within { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(212,168,67,0.1); }
.tag-pill { display: flex; align-items: center; gap: 4px; background: var(--gold-dim); border: 1px solid var(--gold-border); color: var(--gold-lt); font-size: 0.75rem; font-weight: 500; padding: 2px 8px; border-radius: 4px; }
.tag-x { cursor: pointer; opacity: 0.7; line-height: 1; font-size: 1rem; }
.tag-x:hover { opacity: 1; }
.tag-input { border: none; background: transparent; color: var(--t-1); font-size: 0.84rem; outline: none; min-width: 100px; flex: 1; padding: 2px; }

/* Sidebar footer */
.sidebar-footer { padding: 12px 20px; border-top: 1px solid var(--bdr); background: var(--bg-1); flex-shrink: 0; }
.sidebar-footer-note { font-size: 0.7rem; color: var(--t-3); text-align: center; margin-top: 6px; }

/* Step nav buttons */
.step-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 20px; }
.btn-step { padding: 9px 20px; border-radius: var(--r-sm); font-size: 0.83rem; font-weight: 600; border: none; cursor: pointer; transition: 0.15s; }
.btn-step-prev { background: var(--bg-3); color: var(--t-2); border: 1px solid var(--bdr); }
.btn-step-prev:hover { color: var(--t-1); border-color: var(--bdr-2); }
.btn-step-next { background: linear-gradient(135deg,var(--gold),var(--gold-lt)); color: #1a0e00; font-weight: 700; }
.btn-step-next:hover { box-shadow: 0 4px 16px rgba(212,168,67,0.4); }

/* Preview panel */
.preview-panel { flex: 1; background: #22222a; overflow-y: auto; display: flex; flex-direction: column; align-items: center; padding: 24px; }
.preview-bar { width: 100%; max-width: 740px; display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; flex-shrink: 0; }
.preview-bar-label { font-size: 0.72rem; color: var(--t-3); font-family: monospace; }
.preview-bar-actions { display: flex; gap: 8px; }
.preview-page {
    width: 100%; max-width: 740px; background: white;
    border-radius: 4px; box-shadow: 0 24px 64px rgba(0,0,0,0.6);
    min-height: 1046px; position: relative; overflow: hidden;
}
.preview-watermark {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%,-50%) rotate(-30deg);
    font-size: 72px; font-weight: 900; color: rgba(200,200,200,0.08);
    pointer-events: none; user-select: none; white-space: nowrap; z-index: 100;
    font-family: 'Playfair Display', serif;
}

/* ── Payment modal ────────────────────────────────────────────── */
.modal-overlay {
    position: fixed; inset: 0; z-index: 2000;
    background: rgba(0,0,0,0.82); backdrop-filter: blur(8px);
    display: flex; align-items: center; justify-content: center; padding: 20px;
    opacity: 0; pointer-events: none; transition: opacity 0.25s;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal-box {
    background: var(--bg-2); border: 1px solid var(--bdr-2);
    border-radius: var(--r-xl); padding: 36px;
    max-width: 480px; width: 100%; max-height: 90vh; overflow-y: auto;
    transform: translateY(20px); transition: transform 0.25s;
    position: relative;
}
.modal-overlay.open .modal-box { transform: translateY(0); }
.modal-close { position: absolute; top: 16px; right: 16px; width: 30px; height: 30px; border-radius: 50%; background: var(--bg-3); border: 1px solid var(--bdr); color: var(--t-2); font-size: 18px; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.modal-close:hover { color: var(--t-1); }
.modal-title { font-size: 1.5rem; color: var(--t-1); margin-bottom: 4px; }
.modal-sub { font-size: 0.82rem; color: var(--t-3); margin-bottom: 24px; }
.modal-section-label { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--t-3); margin-bottom: 8px; }

/* Currency row */
.currency-row { display: flex; gap: 10px; margin-bottom: 18px; align-items: stretch; }
.currency-row select { flex: 1; }
.price-pill { background: var(--gold-dim); border: 1px solid var(--gold-border); border-radius: var(--r-sm); padding: 8px 16px; text-align: center; flex-shrink: 0; }
.price-pill-amount { font-family: 'Playfair Display', serif; font-size: 1.7rem; color: var(--gold); line-height: 1; display: block; }
.price-pill-label { font-size: 0.62rem; color: var(--t-3); text-transform: uppercase; letter-spacing: 0.04em; }

/* Format picker */
.format-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-bottom: 20px; }
.format-opt { border: 2px solid var(--bdr); border-radius: var(--r-sm); padding: 12px 6px; text-align: center; cursor: pointer; background: var(--bg-3); transition: 0.15s; }
.format-opt:hover { border-color: var(--bdr-2); }
.format-opt.active { border-color: var(--gold); background: var(--gold-dim); }
.format-opt-icon { font-size: 1.3rem; display: block; margin-bottom: 4px; }
.format-opt-name { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--t-2); }
.format-opt.active .format-opt-name { color: var(--gold-lt); }

/* Payment method tabs */
.pay-tabs { display: flex; gap: 6px; margin-bottom: 18px; }
.pay-tab-btn { flex: 1; padding: 9px 6px; border: 2px solid var(--bdr); border-radius: var(--r-sm); text-align: center; cursor: pointer; background: var(--bg-3); transition: 0.15s; font-size: 0.72rem; font-weight: 700; color: var(--t-3); text-transform: uppercase; letter-spacing: 0.04em; }
.pay-tab-btn:hover { border-color: var(--bdr-2); color: var(--t-2); }
.pay-tab-btn.active { border-color: var(--gold); background: var(--gold-dim); color: var(--gold-lt); }
.pay-tab-icon { display: block; font-size: 1.1rem; margin-bottom: 3px; }

/* Card form */
.pay-panel { display: none; }
.pay-panel.active { display: block; }
.stripe-wrap { background: var(--bg-3); border: 1px solid var(--bdr-2); border-radius: var(--r-sm); padding: 12px; margin-bottom: 12px; transition: border-color 0.15s; }
.stripe-wrap.focused { border-color: var(--gold); }
#card-errors { font-size: 0.78rem; color: #f87171; margin-top: 6px; min-height: 18px; }

/* Pay button */
.btn-pay {
    width: 100%; padding: 14px; border: none; border-radius: var(--r-sm);
    background: linear-gradient(135deg,var(--gold),var(--gold-lt));
    color: #1a0e00; font-size: 0.95rem; font-weight: 700;
    cursor: pointer; margin-top: 6px; transition: 0.15s;
    display: flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-pay:hover { box-shadow: 0 6px 22px rgba(212,168,67,0.45); transform: translateY(-1px); }
.btn-pay:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
.pay-secure-note { font-size: 0.7rem; color: var(--t-3); text-align: center; margin-top: 10px; }
.pay-secure-note a { color: var(--t-2); }
.pay-warning { background: rgba(212,168,67,0.07); border: 1px solid var(--gold-border); border-radius: var(--r-sm); padding: 10px 12px; font-size: 0.78rem; color: var(--gold-lt); margin-bottom: 14px; display: none; }
.pay-warning.show { display: block; }

/* ── Reveal animations ────────────────────────────────────────── */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
[data-reveal].visible { opacity: 1; transform: none; }
[data-reveal-delay="1"] { transition-delay: 0.1s; }
[data-reveal-delay="2"] { transition-delay: 0.2s; }
[data-reveal-delay="3"] { transition-delay: 0.3s; }

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .hero-inner { grid-template-columns: 1fr; }
    .cv-preview-wrap { display: none; }
    .tpl-grid { grid-template-columns: repeat(2,1fr); }
    .features { grid-template-columns: repeat(2,1fr); }
    .pricing-wrap { grid-template-columns: 1fr; padding: 36px; }
    .testimonials { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }

    /* FIX: allow full page scroll on tablet/mobile */
    .builder-body { overflow-y: auto; }
    .builder-layout { flex-direction: column; height: auto; }
    .sidebar { width: 100%; height: auto; overflow: visible; }
    .preview-panel { min-height: 600px; }
}
@media (max-width: 768px) {
    .nav-links { display: none; flex-direction: column; gap: 4px; position: fixed; top: 66px; left: 0; right: 0; background: rgba(10,10,15,0.97); padding: 20px; border-bottom: 1px solid var(--bdr); backdrop-filter: blur(20px); }
    .nav-links.open { display: flex; }
    .nav-hamburger { display: flex; }
    .tpl-grid { grid-template-columns: 1fr; }
    .features { grid-template-columns: 1fr; }
    .steps { flex-direction: column; align-items: center; }
    .steps::before { display: none; }
    .hero-stats { flex-wrap: wrap; gap: 16px; }
    .footer-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }

    /* Tighten modal padding on small screens */
    .modal-box { padding: 24px 20px; }
}
