/* ═══════════════════════════════════════════════════
   REVITAEL — style.css
   Marca: roxo & lilás · editorial (Fraunces) + UI (Inter) + rótulos (mono)
══════════════════════════════════════════════════════ */

/* ── TOKENS ──────────────────────────────────────── */
:root {
    --font-display:  'Fraunces', 'Source Serif 4', Georgia, serif;
    --font-mono:     'IBM Plex Mono', ui-monospace, monospace;
    --ink:           #1a1030;
    --paper:         #ffffff;
    --paper-2:       #faf5ff;
    --cream:         #f5f3ff;
    --cream-deep:    #ede9fe;
    --lilac:         #c4b5fd;
    --lilac-mid:     #a78bfa;
    --primary:       #6d28d9;
    --primary-hover: #5b21b6;
    --primary-light: #7c3aed;
    --primary-soft:  #ede9fe;
    --primary-glow:  rgba(109, 40, 217, 0.3);
    --on-accent:     #ffffff;
    --accent-link:   #6d28d9;
    --bg:            var(--cream);
    --bg-2:          var(--cream-deep);
    --surface:       var(--paper);
    --surface-2:     var(--paper-2);
    --text:          var(--ink);
    --text-2:        #4c3f6b;
    --text-3:        #6b5a8a;
    --border:        rgba(91, 33, 182, 0.12);
    --border-2:      rgba(91, 33, 182, 0.22);
    --danger:        #dc2626;
    --success:       #059669;
    --warning:       #d97706;
    --radius:        14px;
    --radius-sm:     10px;
    --shadow:        0 1px 0 rgba(91, 33, 182, 0.06), 0 8px 28px rgba(91, 33, 182, 0.08);
    --shadow-lg:     0 16px 48px rgba(91, 33, 182, 0.14);
    --stroke-ui:     rgba(91, 33, 182, 0.85);
}

[data-theme="dark"] {
    --ink:           #f3e8ff;
    --paper:         #1a1028;
    --paper-2:       #221433;
    --cream:         #13081c;
    --cream-deep:    #1a0f26;
    --lilac:         #c4b5fd;
    --lilac-mid:     #a78bfa;
    --primary:       #8b5cf6;
    --primary-hover: #a78bfa;
    --primary-light: #c4b5fd;
    --primary-soft:  rgba(139, 92, 246, 0.14);
    --primary-glow:  rgba(167, 139, 250, 0.35);
    --on-accent:     #ffffff;
    --accent-link:   #c4b5fd;
    --bg:            var(--cream);
    --bg-2:          var(--cream-deep);
    --surface:       var(--paper);
    --surface-2:     var(--paper-2);
    --text:          var(--ink);
    --text-2:        #d8bcff;
    --text-3:        #a78bfa;
    --border:        rgba(167, 139, 250, 0.14);
    --border-2:      rgba(196, 181, 253, 0.28);
    --shadow:        0 4px 28px rgba(0, 0, 0, 0.45);
    --shadow-lg:     0 22px 56px rgba(0, 0, 0, 0.55);
    --stroke-ui:     rgba(196, 181, 253, 0.85);
}

/* ── RESET ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

/* Landing: textura + leitura em camadas (leve, sem pesar LCP) */
#landing {
    position: relative;
    isolation: isolate;
}
#landing::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    opacity: 1;
    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='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
        radial-gradient(circle at 1px 1px, rgba(91, 33, 182, 0.07) 1px, transparent 0);
    background-size: 256px 256px, 9px 9px;
    background-repeat: repeat, repeat;
    mix-blend-mode: multiply;
    opacity: 0.38;
}
[data-theme="dark"] #landing::before {
    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='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
        radial-gradient(circle at 1px 1px, rgba(167, 139, 250, 0.08) 1px, transparent 0);
    mix-blend-mode: screen;
    opacity: 0.55;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    overflow-x: hidden;
    transition: background .3s, color .3s;
    font-feature-settings: 'kern' 1;
}
button { cursor: pointer; font-family: inherit; border: none; }
textarea, input { font-family: inherit; }
a { text-decoration: none; color: inherit; }

/* Modo claro: mesma “atmosfera” do escuro (gradiente + luz, não fundo chapado) */
html[data-theme="light"] body {
    background:
        radial-gradient(ellipse 110% 90% at 90% 0%, rgba(196, 181, 253, 0.4) 0%, transparent 42%),
        radial-gradient(ellipse 80% 60% at 0% 100%, rgba(237, 233, 254, 0.95) 0%, transparent 55%),
        linear-gradient(185deg, #ede9fe 0%, #f5f3ff 38%, #faf8ff 100%);
}
html[data-theme="light"] .nav {
    background: rgba(253, 250, 255, 0.92);
    border-bottom-color: rgba(91, 33, 182, 0.1);
}
html[data-theme="light"] .hero {
    background:
        radial-gradient(ellipse 65% 50% at 78% 38%, rgba(167, 139, 250, 0.24) 0%, transparent 58%),
        linear-gradient(168deg, rgba(245, 243, 255, 0.4) 0%, var(--bg) 55%, #faf5ff 100%);
}
html[data-theme="light"] .hero::before {
    opacity: 0.72;
}
html[data-theme="light"] .hero-blobs::after {
    opacity: 0.13;
}

/* ── SCROLL ANIMATIONS ───────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
.reveal:nth-child(2) { transition-delay: .1s; }
.reveal:nth-child(3) { transition-delay: .2s; }
.reveal:nth-child(4) { transition-delay: .3s; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .blob { animation: none !important; }
    .doc-card { animation: none !important; }
    .doc-float-scene::before,
    .doc-platform { animation: none !important; }
    .doc-card-avatar { animation: none !important; }
    .doc-badge-match, .doc-badge-stars, .doc-badge-chart, .doc-badge-chat { animation: none !important; }
    .sw-pen-svg { animation: none !important; }
    .sw-eraser-svg { animation: none !important; }
    .gradient-text,
    .hero-title-accent { animation: none !important; background: none !important; color: var(--primary) !important; -webkit-text-fill-color: unset !important; }
    .btn-primary::after { display: none !important; }
    .feature-card:hover .feature-icon { transform: none !important; }
    /* Sem animação de entrada, mas mantém hovers nos cards */
    .reveal {
        opacity: 1 !important;
        transform: translateY(0) !important;
        transition: none !important;
    }
    .feature-card.reveal:hover,
    .testimonial-card.reveal:hover {
        transform: translateY(-6px) scale(1.01) !important;
    }
    .magnetic { transition: transform .15s ease !important; }
    .btn-theme:hover { transform: none !important; }
    .cta-blob { animation: none !important; }
    .faq-item:hover { transform: none !important; }
}

/* ── HELPERS ─────────────────────────────────────── */
.hidden { display: none !important; }
/* Linha editorial com gradiente roxo · lilás */
.gradient-text {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 600;
    background: linear-gradient(120deg, var(--primary) 0%, var(--lilac-mid) 55%, var(--primary-light) 100%);
    background-size: 180% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    animation: lilacFlow 7s ease-in-out infinite;
}

.hero-title-accent {
    font-style: italic;
    font-weight: 600;
    background: linear-gradient(115deg, var(--primary) 0%, var(--lilac-mid) 40%, var(--primary-light) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    animation: lilacFlow 8s ease-in-out infinite;
}
@keyframes lilacFlow {
    0%, 100% { background-position: 0% 50%; }
    50%      { background-position: 100% 50%; }
}

/* ── NAV ─────────────────────────────────────────── */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    padding: 0 2rem;
    background: rgba(245, 243, 255, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 2px solid var(--border);
    transition: background .3s, border-color .3s, box-shadow .35s;
}
.nav.scrolled {
    box-shadow: 0 10px 36px rgba(91, 33, 182, 0.1);
}
[data-theme="dark"] .nav {
    background: rgba(19, 8, 28, 0.9);
}
[data-theme="dark"] .nav.scrolled {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}
.nav-inner {
    max-width: 1200px; margin: 0 auto;
    height: 64px; display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
    display: flex; align-items: center; gap: .5rem;
    font-weight: 600; font-size: 1.05rem; color: var(--text);
    letter-spacing: -0.02em;
    transition: transform .3s cubic-bezier(.34, 1.56, .64, 1), opacity .2s;
}
.nav-logo:hover { transform: scale(1.02); }
.nav-logo:active { transform: scale(0.98); }
.logo-mark-icon {
    width: 40px; height: 40px;
    flex-shrink: 0;
    object-fit: contain;
    display: block;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(91, 33, 182, 0.15);
}
.logo-mark-icon svg { width: 36px; height: 36px; display: block; }
.logo-text { font-weight: 700; font-family: var(--font-display); }
.nav-actions { display: flex; align-items: center; gap: .75rem; }

.btn-theme {
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--surface-2); border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    color: var(--text-2);
    transition: background .2s, color .2s, transform .35s cubic-bezier(.34, 1.56, .64, 1), box-shadow .2s;
}
.btn-theme svg { width: 16px; height: 16px; }
.btn-theme:hover {
    background: var(--primary-soft);
    color: var(--primary);
    transform: rotate(-8deg) scale(1.06);
}

.btn-nav-cta {
    padding: .5rem 1.25rem; border-radius: 8px;
    background: var(--primary);
    color: var(--on-accent); font-weight: 600; font-size: .8125rem;
    letter-spacing: 0.02em;
    transition: background .2s, transform .2s;
    border: 2px solid rgba(0, 0, 0, 0.12);
}
[data-theme="dark"] .btn-nav-cta {
    color: var(--on-accent);
    background: var(--primary);
    border-color: transparent;
}
.btn-nav-cta:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 28px var(--primary-glow);
}

/* ── HERO ────────────────────────────────────────── */
.hero {
    min-height: 100vh; display: flex; align-items: center;
    padding: 120px 2rem 80px;
    position: relative; overflow: hidden;
    background: var(--bg);
}
/* Grade editorial + máscara */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    opacity: 0.55;
    background-image:
        linear-gradient(to right, rgba(91, 33, 182, 0.06) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(91, 33, 182, 0.06) 1px, transparent 1px);
    background-size: 52px 52px;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.35) 55%, transparent 100%);
}
[data-theme="dark"] .hero::before {
    background-image:
        linear-gradient(to right, rgba(167, 139, 250, 0.09) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(167, 139, 250, 0.09) 1px, transparent 1px);
}
.hero-blobs { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
/* Raios estilo fundo de cartaz (bem sutis) */
.hero-blobs::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 36%;
    width: 190vmax;
    height: 190vmax;
    transform: translate(-50%, -50%);
    pointer-events: none;
    opacity: 0.07;
    background: repeating-conic-gradient(
        from 0deg,
        rgba(109, 40, 217, 0.18) 0deg 2.5deg,
        transparent 2.5deg 5deg
    );
}
[data-theme="dark"] .hero-blobs::after {
    opacity: 0.11;
    background: repeating-conic-gradient(
        from 0deg,
        rgba(167, 139, 250, 0.15) 0deg 2.5deg,
        transparent 2.5deg 5deg
    );
}
.blob {
    position: absolute; border-radius: 50%; filter: blur(80px);
    animation: blobFloat 8s ease-in-out infinite alternate;
}
.blob-1 {
    width: 420px; height: 420px; top: -80px; left: -80px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.22), transparent 65%);
    animation-delay: 0s;
}
.blob-2 {
    width: 360px; height: 360px; top: 18%; right: -100px;
    background: radial-gradient(circle, rgba(167, 139, 250, 0.2), transparent 70%);
    animation-delay: -3s;
}
.blob-3 {
    width: 280px; height: 280px; bottom: 8%; left: 25%;
    background: radial-gradient(circle, rgba(192, 132, 252, 0.14), transparent);
    animation-delay: -6s;
}
@keyframes blobFloat {
    0%   { transform: translate(0,0) scale(1); }
    100% { transform: translate(16px, 12px) scale(1.03); }
}

.hero-content {
    position: relative; z-index: 3;
    max-width: 600px; flex: 1;
}
.hero-badge {
    display: inline-flex; align-items: center; gap: .6rem;
    flex-wrap: wrap;
    background: transparent;
    color: var(--text-2);
    border: none;
    border-bottom: 1px solid var(--border);
    padding: 0 0 .5rem 0;
    border-radius: 0;
    font-size: .75rem; font-weight: 600; margin-bottom: 1.75rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.hero-badge-index {
    font-family: var(--font-mono);
    font-size: .68rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--text-3);
    text-transform: none;
}
.hero-badge-line {
    width: 1px; height: 12px; background: var(--border-2);
    flex-shrink: 0;
}
.hero-badge .badge-icon {
    stroke: var(--text-3);
    width: 13px; height: 13px;
}
.hero-title {
    font-family: var(--font-display);
    font-optical-sizing: auto;
    font-size: clamp(2.5rem, 5.5vw, 3.75rem);
    font-weight: 600; line-height: 1.12;
    letter-spacing: -0.025em; margin-bottom: 1.35rem;
    color: var(--text);
}
.hero-sub {
    font-size: 1.0625rem; color: var(--text-2); line-height: 1.75;
    margin-bottom: 2.25rem;
    max-width: 34em;
}
.hero-ctas {
    display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem;
}
.hero-note {
    font-size: .8rem; color: var(--text-3);
}

/* Buttons */
.btn-primary {
    padding: .8rem 1.65rem; border-radius: 12px;
    background: linear-gradient(165deg, var(--primary-light) 0%, var(--primary) 45%, var(--primary-hover) 100%);
    color: var(--on-accent); font-weight: 600; font-size: .9375rem;
    box-shadow: var(--shadow), 0 0 0 1px rgba(91, 33, 182, 0.15);
    transition: transform .22s cubic-bezier(.34, 1.56, .64, 1), box-shadow .22s, filter .2s;
    position: relative;
    overflow: hidden;
    border: 2px solid rgba(91, 33, 182, 0.35);
}
.btn-primary::after {
    content: '';
    position: absolute;
    inset: -50%;
    background: linear-gradient(
        105deg,
        transparent 38%,
        rgba(255, 255, 255, 0.22) 48%,
        transparent 58%
    );
    transform: translateX(-120%) rotate(8deg);
    transition: transform .75s ease;
    pointer-events: none;
}
.btn-primary:hover::after {
    transform: translateX(120%) rotate(8deg);
}
[data-theme="dark"] .btn-primary {
    color: var(--on-accent);
    background: linear-gradient(165deg, var(--primary-light) 0%, var(--primary) 50%, #7c3aed 100%);
    border-color: rgba(196, 181, 253, 0.35);
}
.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--shadow-lg), 0 0 32px var(--primary-glow);
    filter: saturate(1.05);
}
[data-theme="dark"] .btn-primary:hover { filter: brightness(1.08) saturate(1.05); }
.btn-primary:active { transform: translateY(0) scale(0.99); }

.btn-outline {
    padding: .8rem 1.65rem; border-radius: 12px;
    background: var(--surface); color: var(--text);
    border: 2px solid var(--border-2);
    font-weight: 600; font-size: .9375rem;
    transition: border-color .25s, background .25s, transform .25s, color .25s, box-shadow .25s;
}
.btn-outline:hover {
    background: var(--primary-soft);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(91, 33, 182, 0.12);
}
[data-theme="dark"] .btn-outline:hover {
    color: var(--ink);
    box-shadow: 0 8px 28px var(--primary-glow);
}

/* Magnetic effect */
.magnetic { transition: transform .3s cubic-bezier(.34,1.56,.64,1); }

/* ── ICON SYSTEM ─────────────────────────────────── */
.badge-icon {
    width: 14px; height: 14px; flex-shrink: 0;
    stroke: var(--primary);
}
.btn-icon {
    width: 18px; height: 18px; flex-shrink: 0; stroke: var(--on-accent);
}
.btn-outline .btn-icon-outline, .btn-icon-outline {
    width: 18px; height: 18px; flex-shrink: 0; stroke: var(--primary);
}
.btn-primary, .btn-outline {
    display: inline-flex; align-items: center; gap: .55rem;
}
.feature-icon {
    width: 56px; height: 56px; border-radius: 14px;
    background: var(--primary-soft);
    border: 2px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 1.25rem;
    box-shadow: none;
    transition:
        transform .4s cubic-bezier(.34, 1.56, .64, 1),
        box-shadow .35s,
        border-color .35s,
        background .35s;
}
.feature-icon svg {
    width: 26px; height: 26px; stroke: var(--primary); stroke-width: 1.75;
}
.mode-card-icon {
    width: 68px; height: 68px; border-radius: 14px;
    background: var(--primary-soft);
    border: 2px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 1.25rem;
    box-shadow: none;
    transition: transform .35s cubic-bezier(.34, 1.56, .64, 1), border-color .25s, background .25s, box-shadow .35s;
}
.mode-card-icon svg {
    width: 32px; height: 32px; stroke: var(--primary); stroke-width: 1.75;
}
.upload-icon {
    width: 68px; height: 68px; border-radius: 20px;
    background: var(--primary-soft); border: 2px solid var(--border-2);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto .875rem;
    transition: all .2s;
}
.upload-zone:hover .upload-icon, .upload-zone.dragover .upload-icon {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: var(--shadow);
}
.upload-icon svg { width: 30px; height: 30px; stroke: var(--primary); transition: stroke .2s; }
.upload-zone:hover .upload-icon svg,
.upload-zone.dragover .upload-icon svg { stroke: #fff; }

/* ── HERO VISUAL / FLOATING DOCUMENT ────────────── */
.hero-visual {
    flex: 1; display: flex; justify-content: flex-end;
    padding-left: 2rem; position: relative; z-index: 3;
}
.doc-float-scene {
    position: relative;
    width: min(540px, 42vw);
    height: min(620px, 72vh);
    min-width: 320px;
    display: flex; align-items: center; justify-content: center;
}
.doc-float-scene::before {
    content: '';
    position: absolute;
    inset: 8% 6%;
    border-radius: 28px;
    background: radial-gradient(ellipse at 50% 50%, rgba(109, 40, 217, 0.07) 0%, transparent 65%);
    animation: docScenePulse 8s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}
@keyframes docScenePulse {
    0%, 100% { opacity: 0.65; transform: scale(1); }
    50%      { opacity: 1; transform: scale(1.03); }
}
.doc-platform {
    position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%);
    width: min(340px, 78%);
    height: 52px;
    background: radial-gradient(ellipse, rgba(91, 33, 182, 0.18), transparent 72%);
    border-radius: 50%; filter: blur(22px);
    animation: platformPulse 6s ease-in-out infinite alternate;
    z-index: 1;
}
[data-theme="dark"] .doc-platform {
    background: radial-gradient(ellipse, rgba(167, 139, 250, 0.15), transparent 72%);
}
@keyframes platformPulse {
    0%   { opacity: 0.75; transform: translateX(-50%) scaleX(1); }
    100% { opacity: 1; transform: translateX(-50%) scaleX(1.06); }
}
.doc-card {
    width: min(380px, 100%);
    background: var(--surface);
    border-radius: 20px;
    padding: clamp(22px, 2.8vw, 32px);
    border: 2px solid var(--border);
    box-shadow:
        var(--shadow-lg),
        0 0 0 1px rgba(109, 40, 217, 0.06),
        0 0 48px rgba(109, 40, 217, 0.12);
    animation:
        docFloat 6.5s ease-in-out infinite alternate,
        docGlowPulse 5s ease-in-out infinite;
    position: relative;
    z-index: 2;
    will-change: transform;
}
@keyframes docFloat {
    0%   { transform: translateY(0) rotate(-1.8deg) scale(1); }
    100% { transform: translateY(-26px) rotate(1.8deg) scale(1.02); }
}
@keyframes docGlowPulse {
    0%, 100% {
        box-shadow:
            var(--shadow-lg),
            0 0 0 1px rgba(109, 40, 217, 0.07),
            0 0 38px var(--primary-glow);
    }
    50% {
        box-shadow:
            var(--shadow-lg),
            0 0 0 1px rgba(124, 58, 237, 0.2),
            0 0 58px var(--primary-glow);
    }
}
.doc-card-header { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.doc-card-avatar {
    width: 62px; height: 62px; border-radius: 50%; flex-shrink: 0;
    background: linear-gradient(145deg, var(--primary-soft), var(--surface-2));
    border: 2px solid var(--border);
    animation: avatarRing 4s ease-in-out infinite;
}
@keyframes avatarRing {
    0%, 100% { box-shadow: 0 0 0 3px rgba(109, 40, 217, 0.06); }
    50%      { box-shadow: 0 0 0 5px rgba(167, 139, 250, 0.2); }
}
.doc-card-info { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
.doc-name { font-size: 1.05rem; font-weight: 800; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.doc-role { font-size: .8rem; font-weight: 600; color: var(--text-2); }
.doc-location { font-size: .68rem; color: var(--text-3); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
[data-theme="dark"] .doc-name { color: var(--text); }
[data-theme="dark"] .doc-role { color: var(--text-2); }
[data-theme="dark"] .doc-location { color: #a78bfa; }
.doc-divider { height: 1px; background: var(--border); margin: 10px 0; }
[data-theme="dark"] .doc-divider { background: var(--border); }
.doc-section { margin-bottom: 10px; }
.doc-section:last-child { margin-bottom: 0; }
.doc-section-title { font-size: .65rem; font-weight: 700; color: var(--text-3); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 8px; }
[data-theme="dark"] .doc-section-title { color: var(--text-3); }
.doc-job { margin-bottom: 8px; }
.doc-job:last-child { margin-bottom: 0; }
.doc-job-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2px; }
.doc-job-company { font-size: .72rem; font-weight: 700; color: var(--text); }
[data-theme="dark"] .doc-job-company { color: var(--text); }
.doc-job-period { font-size: .6rem; color: #9CA3AF; }
.doc-job-title { font-size: .65rem; color: #6B7280; margin-bottom: 5px; }
[data-theme="dark"] .doc-job-title { color: #8B7AB8; }
.doc-card-body { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.doc-section-label {
    height: 4px; width: 32%; border-radius: 2px;
    background: var(--border-2);
    margin-bottom: 5px; margin-top: 10px;
}
.doc-section-label:first-child { margin-top: 0; }
.doc-line {
    height: 7px; border-radius: 4px; background: var(--surface-2);
    animation: shimmer 2.5s ease-in-out infinite;
}
[data-theme="dark"] .doc-line { background: var(--border); }
.doc-line.full { width: 100%; } .doc-line.wide { width: 72%; }
.doc-line.medium { width: 55%; } .doc-line.short { width: 40%; }
.doc-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.doc-tags span {
    padding: 4px 10px; border-radius: 6px; font-size: .68rem; font-weight: 600;
    background: var(--surface-2); color: var(--text-2); border: 1px solid var(--border);
}
/* Floating badges */
.doc-badge {
    position: absolute; background: white; border-radius: 14px;
    padding: 10px 14px; z-index: 3;
    box-shadow: 0 8px 30px rgba(0,0,0,.12), 0 2px 8px rgba(0,0,0,.06);
}
[data-theme="dark"] .doc-badge { background: var(--surface-2); box-shadow: 0 8px 30px rgba(0,0,0,.5); }
.doc-badge-match {
    top: 60px; right: -20px;
    display: flex; align-items: center; gap: 10px;
    animation: badgeFloat1 5s ease-in-out infinite alternate;
}
.doc-badge-stars {
    bottom: 110px; left: -20px; text-align: center;
    animation: badgeFloat2 6s ease-in-out infinite alternate;
}
.doc-badge-chart {
    bottom: 48px; right: -10px; padding: 10px;
    animation: badgeFloat3 4.5s ease-in-out infinite alternate;
}
@keyframes badgeFloat1 {
    0%   { transform: translateY(0) rotate(0deg) scale(1); }
    100% { transform: translateY(-18px) rotate(-3deg) scale(1.04); }
}
@keyframes badgeFloat2 {
    0%   { transform: translateY(0) rotate(0deg) scale(1); }
    100% { transform: translateY(-14px) rotate(3deg) scale(1.03); }
}
@keyframes badgeFloat3 {
    0%   { transform: translateY(-4px) scale(1); }
    100% { transform: translateY(12px) scale(1.05); }
}
.doc-check-icon {
    width: 30px; height: 30px; border-radius: 50%;
    background: #D1FAE5; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.doc-check-icon svg { width: 16px; height: 16px; }
.doc-badge-label { font-size: .65rem; color: var(--text-3); font-weight: 500; }
.doc-badge-value { font-size: .9rem; font-weight: 800; color: #10B981; }
.doc-stars { color: #a78bfa; font-size: .9rem; letter-spacing: 2px; }
.doc-badge-sublabel { font-size: .6rem; color: var(--text-3); text-align: center; margin-top: 2px; }
.doc-chart-svg { width: 52px; height: 38px; display: block; }
.doc-badge-chat {
    top: 18px; left: -28px;
    display: flex; align-items: center; gap: 10px;
    animation: badgeFloat2 5.5s ease-in-out infinite alternate;
}
.doc-chat-avatar {
    width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0;
    background: var(--primary);
    color: var(--on-accent); font-size: .8rem; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
}
.doc-chat-avatar--brand {
    border-radius: 9px; background: var(--primary-soft);
    padding: 2px; border: 1px solid var(--border-2);
}
.doc-chat-avatar--brand img {
    width: 100%; height: 100%; object-fit: contain; display: block; border-radius: 7px;
}
[data-theme="dark"] .doc-chat-avatar {
    color: var(--on-accent);
}
.doc-chat-label { font-size: .6rem; font-weight: 600; color: var(--text-3); margin-bottom: 3px; }
.doc-chat-typing { display: flex; gap: 3px; align-items: center; }
.doc-typing-dot {
    width: 5px; height: 5px; border-radius: 50%; background: var(--text-3);
    animation: typingBounce 1.4s ease-in-out infinite;
}
.doc-typing-dot:nth-child(2) { animation-delay: .22s; }
.doc-typing-dot:nth-child(3) { animation-delay: .44s; }

@keyframes shimmer { 0%,100% { opacity: .7; } 50% { opacity: 1; } }

/* ── ERROR BUBBLE ──────────────────────────────────── */
.err-card {
    display: flex; flex-direction: column; gap: 10px;
    align-items: flex-start;
}
.err-card-top {
    display: flex; align-items: center; gap: 8px;
    color: #EF4444; font-size: .88rem; font-weight: 500;
}
.btn-retry {
    background: var(--primary); color: var(--on-accent);
    border: none; border-radius: 8px; padding: 7px 16px;
    font-size: .82rem; font-weight: 600; cursor: pointer;
    transition: opacity .2s;
}
.btn-retry:hover { opacity: .85; }

/* Score ring (usado no analisador via JS) */
.score-ring { position: relative; width: 56px; height: 56px; }
.score-ring svg { width: 56px; height: 56px; }
.score-num {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    font-weight: 900; font-size: 1rem; color: var(--primary);
}
.score-label { font-size: .7rem; color: var(--text-3); font-weight: 600; }

/* ── SECTIONS ────────────────────────────────────── */
.section-inner { max-width: 1100px; margin: 0 auto; padding: 0 2rem; }
.section-label {
    display: inline-flex; align-items: center; gap: .65rem;
    font-size: .72rem; font-weight: 600;
    color: var(--text-3); letter-spacing: .12em; text-transform: uppercase;
    margin-bottom: 1rem;
}
.section-index {
    font-family: var(--font-mono);
    font-size: .68rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--text-2);
    opacity: 0.85;
    text-transform: none;
}
.section-label-text { letter-spacing: inherit; }
.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.85rem, 3.5vw, 2.65rem); font-weight: 600;
    letter-spacing: -0.02em; margin-bottom: 3rem; color: var(--text);
    line-height: 1.2;
}

/* Features */
.features { padding: 120px 0; background: var(--bg-2); }
.features-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
.feature-card {
    background: var(--surface); border: 2px solid var(--border);
    border-radius: 20px; padding: 2rem;
    cursor: default;
    transition:
        border-color .35s,
        box-shadow .35s,
        transform .35s cubic-bezier(.34, 1.56, .64, 1);
}
.feature-card:hover {
    border-color: rgba(109, 40, 217, 0.35);
    box-shadow: var(--shadow-lg), inset 4px 0 0 0 var(--primary), 0 0 40px rgba(109, 40, 217, 0.08);
    transform: translateY(-8px) scale(1.015);
}
.feature-card:hover .feature-icon {
    transform: scale(1.08) rotate(-4deg);
    box-shadow: 0 12px 32px var(--primary-glow);
    border-color: rgba(109, 40, 217, 0.25);
    background: var(--surface);
}
[data-theme="dark"] .feature-card:hover {
    box-shadow: var(--shadow-lg), inset 4px 0 0 0 var(--primary-light), 0 0 48px rgba(139, 92, 246, 0.12);
}
/* .feature-icon handled by icon system above */
.feature-card h3 { font-size: 1.2rem; font-weight: 800; margin-bottom: .75rem; }
.feature-card p { font-size: .9rem; color: var(--text-2); margin-bottom: 1.25rem; }
.feature-list { list-style: none; display: flex; flex-direction: column; gap: .5rem; }
.feature-list li {
    font-size: .85rem; color: var(--text-2); padding-left: 1.25rem;
    position: relative;
}
.feature-list li::before {
    content: '✓'; position: absolute; left: 0;
    color: var(--primary); font-weight: 700;
}

/* Steps */
.steps { padding: 120px 0; }
.steps-track { display: flex; align-items: flex-start; gap: 0; }
.step { flex: 1; display: flex; flex-direction: column; gap: .75rem; }
.step-num {
    font-family: var(--font-mono);
    font-size: 2rem; font-weight: 600; letter-spacing: -0.04em;
    color: var(--text);
    opacity: 0.45;
}
.step-body h3 { font-size: 1.1rem; font-weight: 800; margin-bottom: .4rem; }
.step-body p { font-size: .875rem; color: var(--text-2); }
.step-divider {
    flex-shrink: 0; width: 80px; height: 1px;
    background: var(--border-2);
    margin: 1.5rem 1rem 0;
}

/* Final CTA */
.cta-final {
    padding: 120px 0; background: var(--bg-2); position: relative; overflow: hidden;
}
.cta-final .section-label {
    display: flex;
    justify-content: center;
    width: 100%;
}
.cta-blob {
    position: absolute; inset: -100px; border-radius: 50%;
    background: radial-gradient(ellipse at center, rgba(167, 139, 250, 0.18) 0%, transparent 62%);
    pointer-events: none;
    animation: ctaBlobPulse 12s ease-in-out infinite;
}
@keyframes ctaBlobPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50%      { transform: scale(1.06); opacity: 0.85; }
}
.cta-title {
    font-family: var(--font-display);
    font-size: clamp(1.85rem, 3.5vw, 2.65rem); font-weight: 600;
    letter-spacing: -0.02em; margin-bottom: 1rem;
}
.cta-sub { font-size: 1.1rem; color: var(--text-2); margin-bottom: 2.5rem; }

.footer {
    padding: 2rem; text-align: center; font-size: .8rem; color: var(--text-3);
    border-top: 2px solid var(--border);
}
.footer-brand {
    display: inline-flex; align-items: center; vertical-align: middle;
    margin-right: 6px;
}
.footer-brand img {
    width: 16px; height: 16px; object-fit: contain; display: block;
    border-radius: 4px; box-shadow: 0 1px 4px rgba(91, 33, 182, 0.12);
}
.footer-heart {
    display: inline-flex; align-items: center; vertical-align: middle; margin: 0 2px;
}
.footer-heart svg { width: 13px; height: 13px; fill: var(--text-3); }

/* ══════════════════════════════════════════════════
   APP SCREEN
══════════════════════════════════════════════════ */
.app-screen {
    min-height: 100vh; display: flex; flex-direction: column;
    background: var(--bg);
}

/* App Nav */
.app-nav {
    height: 60px; display: flex; align-items: center; justify-content: space-between;
    padding: 0 2rem; border-bottom: 1px solid var(--border);
    background: var(--bg); position: sticky; top: 0; z-index: 50;
}
.btn-back {
    display: flex; align-items: center; gap: .4rem;
    font-size: .875rem; font-weight: 600; color: var(--primary);
    background: none; padding: .4rem .75rem; border-radius: 999px;
    border: 1px solid var(--border); transition: all .2s;
}
.btn-back svg { width: 16px; height: 16px; }
.btn-back:hover { background: var(--primary-soft); }

/* Mode Select */
.mode-select {
    flex: 1; display: flex; flex-direction: column; align-items: center;
    justify-content: center; padding: 3rem 2rem; text-align: center;
}
.mode-title {
    font-family: var(--font-display);
    font-size: 1.85rem; font-weight: 600; margin-bottom: .5rem;
    letter-spacing: -0.02em;
}
.mode-sub { font-size: 1rem; color: var(--text-2); margin-bottom: 3rem; }
.mode-cards { display: flex; gap: 1.5rem; flex-wrap: wrap; justify-content: center; }
.mode-card {
    width: 300px; background: var(--surface); border: 2px solid var(--border);
    border-radius: 16px; padding: 2.25rem 1.75rem;
    display: flex; flex-direction: column; align-items: center; text-align: center;
    cursor: pointer; transition: border-color .25s, box-shadow .25s, transform .25s;
    box-shadow: var(--shadow);
}
.mode-card:hover {
    border-color: rgba(109, 40, 217, 0.4);
    box-shadow: var(--shadow-lg), 0 0 36px rgba(109, 40, 217, 0.12);
    transform: translateY(-6px) scale(1.02);
}
.mode-card:hover .mode-card-icon {
    transform: scale(1.08) rotate(3deg);
    box-shadow: 0 10px 28px var(--primary-glow);
    border-color: rgba(109, 40, 217, 0.35);
    background: var(--surface);
}
/* .mode-card-icon handled by icon system above */
.mode-card h3 { font-size: 1.2rem; font-weight: 800; margin-bottom: .5rem; }
.mode-card p { font-size: .875rem; color: var(--text-2); margin-bottom: 1.5rem; }
.mode-card-cta {
    font-size: .875rem; font-weight: 700; color: var(--primary);
    background: var(--primary-soft); padding: .5rem 1.25rem; border-radius: 999px;
    border: 1px solid var(--border-2);
}

/* ── CREATOR LAYOUT ──────────────────────────────── */
.creator-mode, .analyzer-mode { flex: 1; display: flex; flex-direction: column; }
.creator-layout {
    flex: 1; display: grid; grid-template-columns: 1fr 1fr;
    height: calc(100vh - 60px);
}

/* Chat Panel */
.chat-panel {
    display: flex; flex-direction: column;
    border-right: 1px solid var(--border);
    background: var(--bg);
}
.chat-header {
    padding: 1rem 1.25rem; border-bottom: 1px solid var(--border);
    display: flex; align-items: center; gap: .75rem;
    background: var(--surface);
}
.chat-avatar {
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--primary);
    color: var(--on-accent); display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: .85rem; flex-shrink: 0;
}
.chat-avatar--brand {
    padding: 0; background: var(--primary-soft);
    border-radius: 10px; overflow: hidden; border: 1px solid var(--border-2);
}
.chat-avatar--brand img {
    width: 100%; height: 100%; object-fit: contain; display: block;
}
.chat-name { font-size: .875rem; font-weight: 700; }
.chat-status { font-size: .72rem; color: var(--text-3); display: flex; align-items: center; gap: .35rem; }
.status-dot {
    width: 7px; height: 7px; border-radius: 50%; background: var(--success);
    animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100%{opacity:1}50%{opacity:.4} }

.btn-reset-chat {
    margin-left: auto; background: none; color: var(--text-3); font-size: 1.1rem;
    width: 32px; height: 32px; border-radius: 50%; transition: all .2s;
    border: 1px solid var(--border);
}
.btn-reset-chat:hover { background: var(--surface-2); color: var(--primary); }

.chat-messages {
    flex: 1; overflow-y: auto; padding: 1.25rem; display: flex;
    flex-direction: column; gap: .875rem;
    scrollbar-width: thin; scrollbar-color: var(--border) transparent;
}
.chat-messages::-webkit-scrollbar { width: 4px; }
.chat-messages::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

/* Message bubbles */
.msg {
    display: flex; gap: .625rem; animation: msgIn .35s cubic-bezier(.34,1.2,.64,1);
}
@keyframes msgIn {
    from { opacity: 0; transform: translateY(12px) scale(.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
.msg.user { flex-direction: row-reverse; }
.msg-avatar {
    width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0;
    background: var(--primary);
    color: var(--on-accent); font-size: .65rem; font-weight: 900;
    display: flex; align-items: center; justify-content: center;
}
.msg.user .msg-avatar {
    background: #334155;
    color: #fff; font-size: .6rem; font-weight: 700; letter-spacing: .03em;
}
[data-theme="dark"] .msg.user .msg-avatar {
    background: #64748b;
}
.msg.user .msg-avatar.no-initials {
    background: var(--surface-2); color: var(--text-2); font-size: .65rem;
}
.msg-bubble {
    max-width: 80%; padding: .75rem 1rem; border-radius: 16px;
    font-size: .875rem; line-height: 1.55;
    background: var(--surface); border: 1px solid var(--border); color: var(--text);
}
.msg.user .msg-bubble {
    background: var(--ink);
    color: var(--paper); border-color: transparent;
}
[data-theme="dark"] .msg.user .msg-bubble {
    background: #ebe3d9;
    color: #1c1612;
}
.msg-bubble strong { font-weight: 700; }
.msg-bubble ul { margin: .5rem 0 .5rem 1rem; }
.msg-bubble li { margin-bottom: .25rem; }

/* Typing indicator */
.typing-indicator { display: flex; gap: 4px; align-items: center; padding: 4px 0; }
.typing-dot {
    width: 7px; height: 7px; border-radius: 50%; background: var(--text-3);
    animation: typingBounce 1.2s infinite;
}
.typing-dot:nth-child(2) { animation-delay: .2s; }
.typing-dot:nth-child(3) { animation-delay: .4s; }
@keyframes typingBounce { 0%,100%{transform:translateY(0)}50%{transform:translateY(-5px)} }

.chat-input-area {
    padding: 1rem 1.25rem; border-top: 1px solid var(--border);
    display: flex; gap: .625rem; align-items: flex-end;
    background: var(--surface);
}
.chat-input {
    flex: 1; resize: none; background: var(--bg);
    border: 1px solid var(--border); border-radius: 12px;
    padding: .75rem 1rem; font-size: .875rem; color: var(--text);
    outline: none; max-height: 120px; overflow-y: auto;
    transition: border-color .2s;
}
.chat-input:focus { border-color: var(--primary); }
.chat-input::placeholder { color: var(--text-3); }
.btn-send {
    width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
    background: var(--primary);
    color: var(--on-accent); display: flex; align-items: center; justify-content: center;
    transition: transform .2s, opacity .2s;
}
.btn-send svg { width: 16px; height: 16px; }
.btn-send:hover { transform: scale(1.1); }
.btn-send:disabled { opacity: .4; transform: none; cursor: not-allowed; }

/* Preview Panel */
.preview-panel {
    display: flex; flex-direction: column; background: var(--bg-2);
}
.preview-header {
    padding: 1rem 1.25rem; border-bottom: 1px solid var(--border);
    display: flex; align-items: center; justify-content: space-between;
    gap: .75rem; background: var(--surface); flex-wrap: wrap;
}
.preview-title { font-size: .875rem; font-weight: 700; }
.preview-actions { display: flex; align-items: center; gap: .625rem; flex-wrap: wrap; }
.style-picker { display: flex; gap: .25rem; }
.style-btn {
    padding: .3rem .75rem; border-radius: 999px; font-size: .75rem; font-weight: 600;
    background: none; color: var(--text-3); border: 1px solid var(--border);
    transition: all .2s;
}
.style-btn.active, .style-btn:hover {
    background: var(--primary); color: var(--on-accent); border-color: transparent;
}
.btn-download {
    display: flex; align-items: center; gap: .4rem;
    padding: .4rem 1rem; border-radius: 10px;
    background: var(--primary);
    color: var(--on-accent); font-size: .8rem; font-weight: 700;
    transition: opacity .2s, transform .2s;
}
[data-theme="dark"] .btn-download { color: var(--on-accent); }
.btn-download svg { width: 14px; height: 14px; }
.btn-download:hover { opacity: .9; transform: translateY(-1px); }
.btn-download:disabled { opacity: .35; cursor: not-allowed; transform: none; }

.preview-body {
    flex: 1; overflow-y: auto; padding: 1.5rem;
    display: flex; flex-direction: column; align-items: center;
}
.preview-empty {
    flex: 1; display: flex; flex-direction: column; align-items: center;
    justify-content: center; gap: .75rem; color: var(--text-3); text-align: center;
}
.preview-empty-icon {
    width: 64px; height: 64px; border-radius: 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    opacity: .85;
    box-shadow: 0 8px 24px var(--primary-glow);
}
.preview-empty-icon img { width: 32px; height: 32px; object-fit: contain; display: block; }

/* CV Preview container — visual de documento real */
.cv-preview-wrap {
    width: 100%; max-width: 600px; background: white; color: #1a1a1a;
    box-shadow:
        0 1px 2px rgba(0,0,0,.04),
        0 4px 16px rgba(0,0,0,.08),
        0 16px 48px rgba(0,0,0,.10),
        0 32px 80px rgba(0,0,0,.06);
    border-radius: 12px; overflow: hidden; position: relative;
    animation: docEnter .5s cubic-bezier(.22,1,.36,1);
}
.cv-preview-wrap::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 3px; z-index: 10;
    background: linear-gradient(90deg, var(--primary-light), var(--primary));
}
@keyframes docEnter {
    from { opacity: 0; transform: translateY(22px) scale(.97); }
    to   { opacity: 1; transform: translateY(0)   scale(1); }
}
@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── CV TEMPLATES ────────────────────────────────── */
/* Profissional */
.cv-profissional {
    font-family: 'Inter', sans-serif; font-size: 11px; color: #1a1a1a; background: white;
}
.cv-profissional .cv-header {
    padding: 2rem 2rem 1.5rem; border-bottom: 2px solid #1a1a1a;
}
.cv-profissional .cv-name { font-size: 1.6rem; font-weight: 900; letter-spacing: -0.02em; }
.cv-profissional .cv-role { font-size: .875rem; color: #555; margin-top: .25rem; }
.cv-profissional .cv-contacts { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: .75rem; font-size: .75rem; color: #555; }
.cv-profissional .cv-body { padding: 1.5rem 2rem; display: grid; grid-template-columns: 1fr 2fr; gap: 1.5rem; }
.cv-profissional .cv-section-title { font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; margin-bottom: .75rem; border-bottom: 1px solid #ddd; padding-bottom: .35rem; }
.cv-profissional .cv-section { margin-bottom: 1.25rem; }
.cv-profissional .exp-item { margin-bottom: 1rem; }
.cv-profissional .exp-header { display: flex; justify-content: space-between; align-items: baseline; }
.cv-profissional .exp-role { font-weight: 700; font-size: .825rem; }
.cv-profissional .exp-period { font-size: .72rem; color: #777; }
.cv-profissional .exp-company { font-size: .75rem; color: #555; margin-bottom: .35rem; }
.cv-field-missing { color: var(--text-3) !important; font-style: italic; font-size: 0.92em; }
.exp-company .exp-company-text { display: block; }
.cv-profissional .exp-bullets { padding-left: 1rem; }
.cv-profissional .exp-bullets li { margin-bottom: .2rem; color: #444; }
.cv-profissional .skill-tag { display: inline-block; background: #f3f3f3; padding: .2rem .6rem; border-radius: 4px; font-size: .72rem; margin: .15rem; }
.cv-profissional .cv-linkedin-link,
.cv-minimalista .cv-linkedin-link { color: #0a66c2; text-decoration: underline; }
.cv-moderno .cv-linkedin-link { color: inherit; text-decoration: underline; opacity: .95; }
.cv-profissional .lang-item { display: flex; justify-content: space-between; font-size: .8rem; margin-bottom: .3rem; }

/* Moderno (Lilás) */
.cv-moderno {
    font-family: 'Inter', sans-serif; font-size: 11px; color: #1a1a1a; background: white;
}
.cv-moderno .cv-header {
    background: linear-gradient(145deg, #6d28d9 0%, #3b0764 100%);
    color: #fffef9; padding: 2rem;
}
.cv-moderno .cv-name { font-size: 1.6rem; font-weight: 900; }
.cv-moderno .cv-role { font-size: .875rem; opacity: .88; margin-top: .25rem; }
.cv-moderno .cv-contacts { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: .75rem; font-size: .72rem; opacity: .9; }
.cv-moderno .cv-body { padding: 1.5rem 2rem; display: grid; grid-template-columns: 1fr 2fr; gap: 1.5rem; }
.cv-moderno .cv-section-title { font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #5b21b6; margin-bottom: .75rem; }
.cv-moderno .cv-section { margin-bottom: 1.25rem; }
.cv-moderno .exp-item { margin-bottom: 1rem; padding-left: .75rem; border-left: 2px solid #e2e8f0; }
.cv-moderno .exp-role { font-weight: 700; font-size: .825rem; }
.cv-moderno .exp-period { font-size: .72rem; color: #475569; font-weight: 600; }
.cv-moderno .exp-company { font-size: .75rem; color: #666; margin-bottom: .35rem; }
.cv-moderno .exp-bullets { padding-left: 1rem; }
.cv-moderno .exp-bullets li { margin-bottom: .2rem; color: #444; }
.cv-moderno .skill-tag { display: inline-block; background: #ede9fe; color: #5b21b6; padding: .2rem .6rem; border-radius: 6px; font-size: .72rem; margin: .15rem; font-weight: 600; border: 1px solid #ddd6fe; }
.cv-moderno .lang-item { display: flex; justify-content: space-between; font-size: .8rem; margin-bottom: .3rem; }

/* Minimalista */
.cv-minimalista {
    font-family: 'Inter', sans-serif; font-size: 11px; color: #1a1a1a; background: white;
    padding: 2.5rem;
}
.cv-minimalista .cv-name { font-size: 2rem; font-weight: 900; letter-spacing: -0.03em; margin-bottom: .35rem; }
.cv-minimalista .cv-role { font-size: .9rem; color: #888; margin-bottom: .75rem; }
.cv-minimalista .cv-contacts { display: flex; gap: 1.25rem; flex-wrap: wrap; font-size: .75rem; color: #888; margin-bottom: 2rem; }
.cv-minimalista .cv-section { margin-bottom: 1.75rem; }
.cv-minimalista .cv-section-title { font-size: .65rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #bbb; margin-bottom: .875rem; }
.cv-minimalista .exp-item { margin-bottom: .875rem; }
.cv-minimalista .exp-role { font-weight: 700; font-size: .85rem; }
.cv-minimalista .exp-period { font-size: .72rem; color: #aaa; }
.cv-minimalista .exp-company { font-size: .78rem; color: #777; margin-bottom: .3rem; }
.cv-minimalista .exp-bullets { padding-left: 1rem; }
.cv-minimalista .exp-bullets li { margin-bottom: .2rem; color: #555; }
.cv-minimalista .skill-tag { display: inline-block; border: 1px solid #ddd; padding: .2rem .6rem; border-radius: 4px; font-size: .72rem; margin: .15rem; }
.cv-minimalista .lang-item { display: flex; justify-content: space-between; font-size: .8rem; margin-bottom: .3rem; }

/* ── ANALYZER LAYOUT ─────────────────────────────── */
.analyzer-layout {
    flex: 1; display: grid; grid-template-columns: 1fr 1fr;
    height: calc(100vh - 60px);
}
.upload-panel {
    padding: 2rem; overflow-y: auto; border-right: 1px solid var(--border);
    display: flex; flex-direction: column; gap: 1.5rem;
}
.upload-title { font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; letter-spacing: -0.02em; }
.upload-sub { font-size: .9rem; color: var(--text-2); margin-top: .25rem; }
.upload-zone {
    border: 2px dashed var(--border-2); border-radius: 16px; padding: 2.5rem;
    text-align: center; cursor: pointer; transition: all .2s; position: relative;
}
.upload-zone:hover, .upload-zone.dragover {
    border-color: var(--primary); background: var(--primary-soft);
}
.upload-icon { font-size: 2.5rem; margin-bottom: .75rem; }
.upload-text { font-size: .9rem; color: var(--text-2); line-height: 1.6; }
.upload-link { color: var(--primary); font-weight: 600; cursor: pointer; }
.upload-hint { font-size: .75rem; color: var(--text-3); margin-top: .5rem; }
.upload-success {
    display: flex; align-items: center; justify-content: center; gap: .5rem;
    margin-top: 1rem; padding: .6rem 1rem; background: rgba(16,185,129,.1);
    border: 1px solid #10B981; border-radius: 8px; font-size: .85rem;
    color: var(--text);
}
.upload-success-icon { color: var(--success); font-weight: 700; }
.btn-remove-file {
    background: none; color: var(--text-3); font-size: .875rem;
    margin-left: .5rem; transition: color .2s;
}
.btn-remove-file:hover { color: var(--danger); }

.extracted-preview {
    margin-top: .75rem; padding: .75rem 1rem;
    background: var(--surface-2); border: 1px solid var(--border);
    border-radius: 10px; text-align: left;
}
.extracted-preview-label {
    font-size: .7rem; font-weight: 700; color: var(--primary);
    text-transform: uppercase; letter-spacing: .05em; margin-bottom: .4rem;
}
.extracted-preview-text {
    font-size: .72rem; color: var(--text-2); line-height: 1.55;
    max-height: 90px; overflow: hidden;
    display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical;
    white-space: pre-wrap; word-break: break-word;
}

.form-label-an { display: block; font-size: .875rem; font-weight: 600; margin-bottom: .5rem; color: var(--text); }
.job-textarea {
    width: 100%; min-height: 160px; resize: vertical;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 12px; padding: .875rem 1rem; font-size: .875rem; color: var(--text);
    outline: none; transition: border-color .2s;
}
.job-textarea:focus { border-color: var(--primary); }
.job-textarea::placeholder { color: var(--text-3); }

.btn-analyze {
    padding: .875rem 2rem; border-radius: 999px; width: 100%;
    background: var(--primary);
    color: white; font-size: 1rem; font-weight: 700;
    box-shadow: 0 8px 24px var(--primary-glow);
    display: flex; align-items: center; justify-content: center; gap: .5rem;
    transition: all .2s;
}
.btn-analyze:hover { transform: translateY(-2px); box-shadow: 0 12px 32px var(--primary-glow); }
.btn-spinner {
    width: 18px; height: 18px; border: 2px solid rgba(255,255,255,.4);
    border-top-color: white; border-radius: 50%;
    animation: spin .6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Results */
.results-panel {
    display: flex; flex-direction: column; height: calc(100vh - 60px); overflow: hidden;
}
.score-section {
    padding: 1.5rem; border-bottom: 1px solid var(--border);
    display: flex; gap: 1.5rem; align-items: center; background: var(--surface);
}
.score-circle-wrap { position: relative; flex-shrink: 0; }
.score-svg { width: 100px; height: 100px; }
.score-center {
    position: absolute; inset: 0; display: flex; flex-direction: column;
    align-items: center; justify-content: center;
}
.score-value { font-size: 1.75rem; font-weight: 900; color: var(--primary); }
.score-label-sm { font-size: .65rem; color: var(--text-3); font-weight: 600; }
.score-breakdown { flex: 1; display: flex; flex-direction: column; gap: .5rem; }
.breakdown-item { display: flex; align-items: center; gap: .625rem; font-size: .775rem; }
.breakdown-label { width: 90px; color: var(--text-2); flex-shrink: 0; }
.breakdown-bar {
    flex: 1; height: 6px; background: var(--border); border-radius: 3px; overflow: hidden;
}
.breakdown-fill {
    height: 100%; background: var(--primary);
    border-radius: 3px; transition: width 1s ease;
}
.breakdown-val { width: 36px; text-align: right; color: var(--text-3); flex-shrink: 0; }

.analysis-chat { flex: 1; overflow: hidden; border-top: none; }

/* ── BULLET IMPROVER ─────────────────────────────── */
.bullet-section { padding: 120px 0; background: var(--bg); }
.bullet-sub { font-size: 1rem; color: var(--text-2); margin-bottom: 2rem; }
.bullet-demo { max-width: 700px; }
.bullet-examples { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.bullet-example-tag {
    padding: .3rem .875rem; border-radius: 999px; font-size: .78rem; font-weight: 600;
    background: var(--primary-soft); color: var(--primary); border: 1px solid var(--border-2);
    cursor: pointer; transition: all .2s;
}
.bullet-example-tag:hover { background: var(--primary); color: var(--on-accent); border-color: transparent; }
.bullet-input-wrap { display: flex; gap: .75rem; align-items: flex-end; }
.bullet-textarea {
    flex: 1; resize: none; background: var(--surface); border: 1.5px solid var(--border);
    border-radius: 14px; padding: .875rem 1rem; font-size: .9rem; color: var(--text);
    outline: none; transition: border-color .2s; min-height: 60px;
}
.bullet-textarea:focus { border-color: var(--primary); }
.bullet-textarea::placeholder { color: var(--text-3); }
.btn-bullet-improve {
    padding: .875rem 1.5rem; border-radius: 14px; flex-shrink: 0;
    background: var(--primary);
    color: var(--on-accent); font-weight: 700; font-size: .9rem;
    display: flex; align-items: center; gap: .5rem;
    box-shadow: 0 8px 24px var(--primary-glow);
    border: 2px solid rgba(0, 0, 0, 0.12);
    transition: transform .2s, box-shadow .2s;
}
[data-theme="dark"] .btn-bullet-improve { border-color: rgba(0, 0, 0, 0.25); }
.btn-bullet-improve svg { width: 16px; height: 16px; flex-shrink: 0; }
.btn-bullet-improve:hover { transform: translateY(-2px); box-shadow: 0 12px 32px var(--primary-glow); }
.btn-bullet-improve:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.bullet-result {
    margin-top: 1.25rem; background: var(--surface); border: 1.5px solid var(--border-2);
    border-radius: 16px; padding: 1.25rem 1.5rem;
    animation: slideUp .4s cubic-bezier(.34,1.2,.64,1);
}
.bullet-result-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: .75rem; }
.bullet-result-label {
    font-family: var(--font-mono);
    font-size: .68rem; font-weight: 600; color: var(--primary); text-transform: uppercase; letter-spacing: .1em;
}
.btn-copy-bullet {
    display: flex; align-items: center; gap: .35rem;
    padding: .3rem .75rem; border-radius: 999px; font-size: .75rem; font-weight: 600;
    background: var(--primary-soft); color: var(--primary); border: 1px solid var(--border-2);
    transition: all .2s;
}
.btn-copy-bullet svg { width: 13px; height: 13px; }
.btn-copy-bullet:hover { background: var(--primary); color: var(--on-accent); border-color: transparent; }
.bullet-result-text { font-size: .95rem; color: var(--text); line-height: 1.7; }

/* ── FAQ ──────────────────────────────────────────── */
.faq-section { padding: 120px 0; background: var(--bg-2); }
.faq-list { max-width: 720px; display: flex; flex-direction: column; gap: .5rem; }
.faq-item {
    background: var(--surface); border: 2px solid var(--border); border-radius: 14px; overflow: hidden;
    transition: transform .25s ease, border-color .25s, box-shadow .25s;
}
.faq-item:hover {
    border-color: rgba(109, 40, 217, 0.22);
    box-shadow: 0 8px 28px rgba(91, 33, 182, 0.08);
    transform: translateY(-2px);
}
.faq-question {
    width: 100%; text-align: left; padding: 1.1rem 1.25rem;
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    font-size: .95rem; font-weight: 600; color: var(--text);
    background: none; transition: color .2s;
}
.faq-question svg { width: 18px; height: 18px; flex-shrink: 0; stroke: var(--text-3); transition: transform .3s; }
.faq-question:hover { color: var(--primary); }
.faq-item.open .faq-question { color: var(--primary); }
.faq-item.open .faq-question svg { transform: rotate(180deg); stroke: var(--primary); }
.faq-answer {
    max-height: 0; overflow: hidden; font-size: .875rem; color: var(--text-2); line-height: 1.7;
    padding: 0 1.25rem; transition: max-height .35s ease, padding .35s ease;
}
.faq-item.open .faq-answer { max-height: 200px; padding: 0 1.25rem 1.1rem; }

/* ── ABOUT ────────────────────────────────────────── */
.about-section { padding: 80px 0; background: var(--bg); }
.about-card {
    display: flex; align-items: flex-start; gap: 2rem;
    background: var(--surface); border: 2px solid var(--border);
    border-radius: 24px; padding: 2.5rem;
    max-width: 780px;
}
.about-avatar {
    width: 80px; height: 80px; border-radius: 50%; flex-shrink: 0;
    background: var(--primary);
    display: flex; align-items: center; justify-content: center;
    color: var(--on-accent); font-weight: 900; font-size: 1.3rem;
    box-shadow: 0 8px 24px var(--primary-glow);
}
.about-body { flex: 1; }
.about-tag {
    font-family: var(--font-mono);
    font-size: .68rem; font-weight: 600; color: var(--primary); text-transform: uppercase; letter-spacing: .12em; margin-bottom: .5rem;
}
.about-name { font-size: 1.5rem; font-weight: 900; margin-bottom: .75rem; }
.about-desc { font-size: .9rem; color: var(--text-2); line-height: 1.75; margin-bottom: 1.25rem; }
.about-links { display: flex; gap: .75rem; flex-wrap: wrap; }
.about-link {
    display: inline-flex; align-items: center; gap: .4rem;
    padding: .4rem 1rem; border-radius: 999px; font-size: .8rem; font-weight: 600;
    background: var(--primary-soft); color: var(--primary); border: 1px solid var(--border-2);
    transition: all .2s;
}
.about-link svg { width: 14px; height: 14px; }
.about-link:hover { background: var(--primary); color: var(--on-accent); border-color: transparent; transform: translateY(-1px); }

/* ── KEYWORD HIGHLIGHT ───────────────────────────── */
.kw-highlight {
    background: rgba(15,23,42,.08); color: var(--primary);
    border-radius: 4px; padding: 0 3px; font-weight: 600;
    font-size: .9em;
}

/* ── BUTTON PULSE ────────────────────────────────── */
@keyframes btnPulse {
    0%   { transform: scale(1);    box-shadow: 0 0 0 0   var(--primary-glow); }
    40%  { transform: scale(1.05); box-shadow: 0 0 0 8px rgba(15,23,42,0); }
    100% { transform: scale(1);    box-shadow: 0 0 0 0   rgba(15,23,42,0); }
}
.btn-pulse { animation: btnPulse .45s cubic-bezier(.22,1,.36,1); }

/* ── STREAMING CURSOR ────────────────────────────── */
.stream-cursor {
    display: inline-block;
    animation: blink .65s step-end infinite;
    color: var(--primary);
    font-size: .9em;
    margin-left: 1px;
    vertical-align: baseline;
}
@keyframes blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0; }
}

/* ── IMPROVE CV BANNER ────────────────────────────── */
.improve-cv-bar {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    padding: .875rem 1.5rem; border-bottom: 1px solid var(--border);
    background: var(--surface-2);
    flex-wrap: wrap;
}
.improve-cv-text {
    display: flex; align-items: center; gap: .5rem;
    font-size: .825rem; font-weight: 600; color: var(--text-2);
}
.improve-cv-text svg { width: 15px; height: 15px; stroke: var(--primary); flex-shrink: 0; }
.btn-improve-cv {
    display: inline-flex; align-items: center; gap: .4rem;
    padding: .5rem 1.1rem; border-radius: 999px; font-size: .8rem; font-weight: 700;
    background: var(--primary);
    color: white; box-shadow: 0 4px 14px var(--primary-glow);
    transition: opacity .2s, transform .2s; white-space: nowrap;
}
.btn-improve-cv svg { width: 13px; height: 13px; }
.btn-improve-cv:hover { opacity: .9; transform: translateY(-1px); }

/* ── SHARE ────────────────────────────────────────── */
.share-bar {
    padding: .75rem 1.5rem; border-bottom: 1px solid var(--border);
    background: var(--surface); display: flex; justify-content: flex-end;
}
.btn-share-score {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .5rem 1.25rem; border-radius: 999px; font-size: .825rem; font-weight: 700;
    background: var(--primary);
    color: white; box-shadow: 0 4px 16px var(--primary-glow);
    transition: opacity .2s, transform .2s;
}
.btn-share-score svg { width: 15px; height: 15px; }
.btn-share-score:hover { opacity: .9; transform: translateY(-1px); }
.share-modal {
    position: fixed; inset: 0; z-index: 200;
    display: flex; align-items: center; justify-content: center;
}
.share-modal-overlay {
    position: absolute; inset: 0; background: rgba(0,0,0,.55);
    backdrop-filter: blur(6px); cursor: pointer;
}
.share-modal-box {
    position: relative; background: var(--bg); border-radius: 24px;
    padding: 2rem; width: 420px; max-width: calc(100vw - 2rem);
    max-height: calc(100vh - 4rem); overflow-y: auto;
    box-shadow: 0 40px 80px rgba(0,0,0,.3);
    animation: slideUp .4s cubic-bezier(.34,1.2,.64,1);
}
.share-modal-close {
    position: absolute; top: 1rem; right: 1rem; background: var(--surface-2);
    border: 1px solid var(--border); border-radius: 50%; width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center; color: var(--text-3);
    transition: all .2s;
}
.share-modal-close svg { width: 14px; height: 14px; }
.share-modal-close:hover { background: var(--danger); color: white; border-color: transparent; }
.share-modal-title { font-size: 1.1rem; font-weight: 800; margin-bottom: 1.25rem; }
.share-card {
    background: linear-gradient(145deg, #6d28d9 0%, #1a1030 100%);
    border-radius: 18px; padding: 1.75rem; margin-bottom: 1.25rem;
    color: var(--on-accent); position: relative; overflow: hidden;
}
.share-card::before {
    content: ''; position: absolute; top: -40px; right: -40px;
    width: 160px; height: 160px; border-radius: 50%;
    background: rgba(167, 139, 250, 0.35);
}
.share-card-logo {
    display: flex; align-items: center; gap: .5rem;
    font-size: .85rem; font-weight: 800; opacity: .9; margin-bottom: 1.5rem;
}
.share-card-mark { border-radius: 10px; object-fit: contain; flex-shrink: 0; }
.share-card-score-wrap { display: flex; align-items: baseline; gap: .25rem; margin-bottom: .25rem; }
.share-card-score { font-size: 4rem; font-weight: 900; line-height: 1; }
.share-card-score-label { font-size: 1.2rem; font-weight: 700; opacity: .7; }
.share-card-text { font-size: .85rem; opacity: .8; margin-bottom: 1.25rem; }
.share-card-bars { display: flex; gap: .5rem; margin-bottom: 1.25rem; }
.share-card-bar-wrap { flex: 1; }
.share-card-bar-label { font-size: .6rem; opacity: .7; margin-bottom: .3rem; }
.share-card-bar-track { height: 5px; background: rgba(255,255,255,.2); border-radius: 3px; overflow: hidden; }
.share-card-bar-fill { height: 100%; background: white; border-radius: 3px; }
.share-card-footer { font-size: .72rem; opacity: .6; text-align: right; }
.share-modal-actions { display: flex; gap: .75rem; }
.btn-download-share, .btn-copy-share {
    flex: 1; padding: .75rem; border-radius: 12px; font-weight: 700; font-size: .875rem;
    display: flex; align-items: center; justify-content: center; gap: .5rem;
    transition: all .2s;
}
.btn-download-share svg, .btn-copy-share svg { width: 15px; height: 15px; }
.btn-download-share {
    background: var(--primary);
    color: white; box-shadow: 0 4px 16px var(--primary-glow);
}
.btn-download-share:hover { opacity: .9; transform: translateY(-1px); }
.btn-copy-share {
    background: var(--surface-2); color: var(--text); border: 1px solid var(--border);
}
.btn-copy-share:hover { border-color: var(--primary); color: var(--primary); }

/* ── COUNTER ─────────────────────────────────────── */
.counter-highlight { color: var(--primary); font-weight: 700; }

/* ── TESTIMONIALS ────────────────────────────────── */
.testimonials { padding: 120px 0; background: var(--bg-2); }
.testimonials-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
.testimonial-card {
    background: var(--surface); border: 2px solid var(--border);
    border-radius: 20px; padding: 2rem;
    display: flex; flex-direction: column;
    transition: border-color .3s, box-shadow .3s, transform .3s;
}
.testimonial-card:hover {
    border-color: rgba(109, 40, 217, 0.3);
    box-shadow: var(--shadow-lg), inset 4px 0 0 0 var(--primary), 0 0 32px rgba(109, 40, 217, 0.08);
    transform: translateY(-7px) scale(1.02);
}
[data-theme="dark"] .testimonial-card:hover {
    box-shadow: var(--shadow-lg), inset 4px 0 0 0 var(--primary-light), 0 0 40px rgba(139, 92, 246, 0.1);
}
.testimonial-stars { color: #a78bfa; font-size: .85rem; letter-spacing: 2px; margin-bottom: .875rem; }
.testimonial-quote {
    font-size: .875rem; color: var(--text-2); line-height: 1.75;
    font-style: italic; flex: 1; margin-bottom: 1.5rem;
}
.testimonial-author { display: flex; align-items: center; gap: .75rem; }
.testimonial-avatar {
    width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    color: var(--on-accent); font-weight: 800; font-size: .8rem;
}
.testimonial-name { font-size: .875rem; font-weight: 700; }
.testimonial-role { font-size: .72rem; color: var(--text-3); margin-top: 2px; }

/* ── CHAT PROGRESS ───────────────────────────────── */
.chat-progress-wrap {
    padding: .5rem 1.25rem; border-bottom: 1px solid var(--border);
    display: flex; align-items: center; gap: .75rem;
    background: var(--surface);
}
.chat-progress-track {
    flex: 1; height: 5px; background: var(--border); border-radius: 3px; overflow: hidden;
}
.chat-progress-fill {
    height: 100%; width: 0%;
    background: var(--primary);
    border-radius: 3px; transition: width .5s cubic-bezier(.4,0,.2,1);
}
.chat-progress-label { font-size: .7rem; color: var(--text-3); font-weight: 600; white-space: nowrap; }

/* ── SAVED CV BANNER ─────────────────────────────── */
.saved-cv-banner {
    background: var(--primary-soft); border-bottom: 2px solid var(--border-2);
    padding: .75rem 1.5rem;
}
.saved-cv-content { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.saved-cv-icon {
    width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
}
.saved-cv-icon img { width: 22px; height: 22px; object-fit: contain; display: block; }
.saved-cv-text { flex: 1; min-width: 0; }
.saved-cv-title { font-size: .875rem; font-weight: 700; }
.saved-cv-sub { font-size: .75rem; color: var(--text-3); margin-top: 2px; }
.saved-cv-btns { display: flex; gap: .5rem; flex-shrink: 0; }
.btn-saved-continue {
    padding: .4rem 1rem; border-radius: 999px;
    background: var(--primary);
    color: white; font-size: .8rem; font-weight: 700;
    transition: opacity .2s, transform .2s;
}
.btn-saved-continue:hover { opacity: .9; transform: translateY(-1px); }
.btn-saved-discard {
    padding: .4rem 1rem; border-radius: 999px;
    background: none; color: var(--text-3); border: 1px solid var(--border);
    font-size: .8rem; font-weight: 600; transition: all .2s;
}
.btn-saved-discard:hover { color: var(--danger); border-color: var(--danger); }

/* ── RESPONSIVE ──────────────────────────────────── */
@media (max-width: 900px) {
    .features-grid { grid-template-columns: 1fr; }
    .testimonials-grid { grid-template-columns: 1fr; }
    .bullet-input-wrap { flex-direction: column; }
    .btn-bullet-improve { width: 100%; justify-content: center; }
    .about-card { flex-direction: column; align-items: center; text-align: center; }
    .about-links { justify-content: center; }
    .hero { flex-direction: column; padding-top: 100px; text-align: center; }
    .hero-visual { padding-left: 0; padding-top: 2rem; justify-content: center; }
    .hero-ctas { justify-content: center; }
    .steps-track { flex-direction: column; }
    .step-divider { width: 2px; height: 40px; margin: 0 1.5rem; }
    .creator-layout, .analyzer-layout { grid-template-columns: 1fr; height: auto; }
    .chat-panel { height: min(60vh, 500px); border-right: none; border-bottom: 1px solid var(--border); }
    .preview-panel { height: min(60vh, 500px); }
    /* Analisador no mobile: com height:auto no painel, flex:1 no chat colapsava — área de mensagem ficava irreconhecível */
    .results-panel {
        min-height: calc(100vh - 60px);
        height: auto;
        overflow: visible;
    }
    .results-panel .analysis-chat.chat-panel {
        flex: 1 1 auto;
        min-height: clamp(260px, 56vh, 520px);
        height: auto;
        max-height: none;
        display: flex;
        flex-direction: column;
        overflow: hidden;
        border-right: none;
        border-bottom: none;
        border-top: 1px solid var(--border);
    }
    .results-panel .analysis-chat .chat-messages {
        flex: 1 1 auto;
        min-height: 0;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
    }
    .results-panel .analysis-chat .msg-bubble {
        font-size: .9375rem;
        line-height: 1.62;
        max-width: 94%;
    }
    .score-section { flex-direction: column; }
    .cv-mockup { width: 280px; }
    .doc-float-scene {
        width: min(100%, 420px);
        height: min(560px, 62vh);
        min-width: 0;
    }
    .doc-badge-match { right: 0; }
    .doc-badge-stars { left: 0; }
    .doc-badge-chart { right: 0; }
}
@media (max-width: 540px) {
    .hero-title { font-size: 2.2rem; }
    .mode-cards { flex-direction: column; align-items: center; }
    .preview-header { flex-direction: column; align-items: stretch; }
    .nav-inner { padding: 0; }
}

/* ══════════════════════════════════════════════════════
   NOVAS FEATURES — Edição, ATS, Tradução, Histórico
   ══════════════════════════════════════════════════════ */

/* Preview title wrap */
.preview-title-wrap { display: flex; align-items: center; gap: .625rem; flex-wrap: wrap; }

/* Dica de edição */
.edit-hint {
    font-size: .7rem; color: var(--primary); display: flex;
    align-items: center; gap: .25rem; font-weight: 600;
    background: var(--primary-soft); padding: .2rem .6rem;
    border-radius: 999px;
}
.edit-hint svg { width: 11px; height: 11px; stroke: currentColor; flex-shrink: 0; }

/* Botões outline pequenos (Copiar texto / PT→EN) */
.btn-outline-sm {
    display: flex; align-items: center; gap: .35rem;
    padding: .35rem .8rem; border-radius: 999px;
    border: 1.5px solid var(--border); background: none; color: var(--text-2);
    font-size: .72rem; font-weight: 600; transition: all .2s; white-space: nowrap;
    cursor: pointer;
}
.btn-outline-sm:hover { border-color: var(--primary); color: var(--primary); }
.btn-outline-sm svg { width: 12px; height: 12px; stroke: currentColor; flex-shrink: 0; }
.btn-outline-sm:disabled { opacity: .45; cursor: not-allowed; }

/* Campos editáveis no preview do CV */
.cv-editable {
    outline: none; cursor: text; border-radius: 3px;
    transition: background .15s, outline .15s;
    min-width: 4px; display: inline-block;
}
.cv-editable:hover { background: rgba(15,23,42,.06); }
.cv-editable:focus {
    background: rgba(15,23,42,.08);
    outline: 2px solid rgba(15,23,42,.25);
    outline-offset: 1px;
}
.cv-contact-sep { opacity: .5; margin: 0 .1rem; user-select: none; }

/* ── ATS PANEL ─────────────────────────────────────── */
.ats-panel {
    border-top: 2px solid var(--border); background: var(--surface);
}
.ats-toggle {
    width: 100%; display: flex; align-items: center; justify-content: space-between;
    padding: 1rem 1.5rem; background: none; cursor: pointer; text-align: left; gap: 1rem;
    transition: background .2s;
}
.ats-toggle:hover { background: var(--primary-soft); }
.ats-toggle-left { display: flex; align-items: center; gap: .875rem; }
.ats-icon {
    width: 38px; height: 38px; border-radius: 12px; flex-shrink: 0;
    background: var(--primary);
    display: flex; align-items: center; justify-content: center;
}
.ats-icon svg { width: 18px; height: 18px; stroke: #fff; }
[data-theme="dark"] .ats-icon svg { stroke: var(--on-accent); }
.ats-title { font-size: .875rem; font-weight: 700; }
.ats-sub { font-size: .72rem; color: var(--text-2); margin-top: .1rem; }
.ats-chevron { width: 18px; height: 18px; stroke: var(--text-3); flex-shrink: 0; transition: transform .25s; }
.ats-chevron.open { transform: rotate(180deg); }
.ats-body {
    display: none; flex-direction: column; gap: .875rem;
    padding: 0 1.5rem 1.5rem;
}
.ats-body.open { display: flex; }
.ats-textarea {
    width: 100%; min-height: 72px; resize: vertical; font-size: .8rem;
    background: var(--bg); border: 1px solid var(--border); border-radius: 10px;
    padding: .75rem; color: var(--text); outline: none; transition: border-color .2s;
    font-family: inherit;
}
.ats-textarea:focus { border-color: var(--primary); }
.ats-textarea::placeholder { color: var(--text-3); }
.btn-ats {
    align-self: flex-start; padding: .6rem 1.5rem; border-radius: 999px;
    background: var(--primary);
    color: white; font-size: .8rem; font-weight: 700;
    display: flex; align-items: center; gap: .5rem; transition: transform .2s;
}
.btn-ats:hover { transform: translateY(-1px); }
.btn-ats:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.ats-result {
    background: var(--bg); border: 1px solid var(--border);
    border-radius: 14px; padding: 1rem 1.25rem;
    display: flex; flex-direction: column; gap: 1rem;
}
.ats-score-row { display: flex; justify-content: space-between; align-items: center; }
.ats-score-label { font-size: .8rem; font-weight: 600; }
.ats-score-val { font-size: 1.5rem; font-weight: 900; }
.ats-kw-section { display: flex; flex-direction: column; gap: .4rem; }
.ats-kw-title { font-size: .68rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.ats-kw-title.present { color: #10B981; }
.ats-kw-title.missing { color: #EF4444; }
.ats-kw-title.suggest { color: var(--primary); }
.ats-kw-list { display: flex; flex-wrap: wrap; gap: .3rem; }
.ats-kw-tag { font-size: .72rem; padding: .2rem .65rem; border-radius: 6px; font-weight: 600; }
.ats-kw-tag.present { background: rgba(16,185,129,.15); color: #10B981; }
.ats-kw-tag.missing { background: rgba(239,68,68,.12); color: #EF4444; }
.ats-suggestions { display: flex; flex-direction: column; gap: .35rem; }
.ats-suggestion-item {
    font-size: .78rem; color: var(--text-2); padding: .4rem .75rem;
    background: var(--primary-soft); border-radius: 8px;
    border-left: 3px solid var(--primary); line-height: 1.4;
}

/* ── ATS CURSOS RECOMENDADOS ─────────────────────────── */
.ats-kw-title.courses { color: var(--text-2); }
.ats-courses-section { margin-top: .5rem; }
.ats-courses-list { display: flex; flex-direction: column; gap: .4rem; }
.course-item {
    display: flex; align-items: center; justify-content: space-between;
    gap: .75rem; padding: .45rem .75rem; border-radius: 8px;
    background: var(--bg-2); border: 1px solid var(--border);
}
.course-kw {
    font-size: .78rem; font-weight: 700; color: var(--text);
    flex-shrink: 0;
}
.course-links { display: flex; gap: .375rem; flex-wrap: wrap; }
.course-link {
    display: inline-flex; align-items: center; gap: .3rem;
    padding: .25rem .6rem; border-radius: 6px; font-size: .72rem; font-weight: 700;
    color: white; text-decoration: none;
    background: var(--primary); opacity: .85;
    transition: opacity .15s, transform .15s;
}
.course-link:hover { opacity: 1; transform: translateY(-1px); }
.course-link svg { width: 11px; height: 11px; }

/* ── BULLET FLOAT BUTTON ─────────────────────────────── */
.bullet-float-btn {
    position: absolute; z-index: 300;
    display: inline-flex; align-items: center; gap: .35rem;
    padding: .3rem .75rem; border-radius: 999px;
    font-size: .72rem; font-weight: 700;
    background: var(--primary);
    color: white; box-shadow: 0 4px 14px var(--primary-glow);
    cursor: pointer; transition: opacity .15s, transform .15s;
    pointer-events: all;
}
.bullet-float-btn svg { width: 12px; height: 12px; flex-shrink: 0; }
.bullet-float-btn:hover { opacity: .92; transform: translateY(-1px); }
.bullet-float-btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }

/* ── HISTÓRICO DE ANÁLISES ──────────────────────────── */
.analysis-history { display: flex; flex-direction: column; gap: .625rem; }
.history-title {
    font-size: .7rem; font-weight: 800; letter-spacing: .08em;
    text-transform: uppercase; color: var(--text-3);
}
.history-list { display: flex; flex-direction: column; gap: .4rem; }
.history-card {
    display: flex; align-items: center; gap: .875rem;
    padding: .7rem 1rem; background: var(--bg);
    border: 1px solid var(--border); border-radius: 12px;
    cursor: pointer; transition: all .2s;
}
.history-card:hover { border-color: var(--primary); background: var(--primary-soft); }
.history-score-badge {
    width: 42px; height: 42px; border-radius: 50%; border: 2.5px solid;
    display: flex; align-items: center; justify-content: center;
    font-size: .875rem; font-weight: 900; flex-shrink: 0;
}
.history-info { flex: 1; min-width: 0; }
.history-job { font-size: .8rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.history-date { font-size: .7rem; color: var(--text-3); margin-top: .15rem; }
.history-arrow { color: var(--text-3); flex-shrink: 0; }

/* ══════════════════════════════════════════════════════
   FEATURES: Top Bar, Warmup, Mobile Tabs, Foto, Share
   ══════════════════════════════════════════════════════ */

/* 1. Barra de progresso global */
.top-bar {
    position: fixed; top: 0; left: 0; height: 3px; width: 0%;
    z-index: 99999; background: var(--primary);
    opacity: 0; pointer-events: none; transition: none;
    box-shadow: 0 0 6px rgba(15, 23, 42, 0.25);
}

/* 2. Banner warm-up servidor */
.warmup-banner {
    background: var(--surface-2);
    border-bottom: 1px solid var(--border);
    padding: .5rem 1.25rem;
}
.warmup-inner {
    display: flex; align-items: center; gap: .75rem; max-width: 700px;
    font-size: .78rem; color: var(--text-2);
}
.warmup-close {
    margin-left: auto; background: none; color: var(--text-3);
    font-size: .8rem; padding: .1rem .3rem; transition: color .2s;
}
.warmup-close:hover { color: var(--text); }

/* 3. Tabs mobile Chat / Preview */
.mobile-tabs {
    display: none; /* visível só no mobile via media query */
    background: var(--surface); border-bottom: 1px solid var(--border);
}
.mobile-tab {
    flex: 1; display: flex; align-items: center; justify-content: center; gap: .5rem;
    padding: .75rem; font-size: .875rem; font-weight: 600; color: var(--text-3);
    background: none; border-bottom: 2px solid transparent; transition: all .2s;
}
.mobile-tab svg { width: 16px; height: 16px; }
.mobile-tab.active { color: var(--primary); border-bottom-color: var(--primary); }
@keyframes mobileTabPulse {
    0%, 100% { color: var(--text-3); }
    50% { color: var(--primary); }
}
.mobile-tab.mobile-tab-pulse {
    animation: mobileTabPulse 0.7s ease-in-out 3;
    border-bottom-color: var(--primary);
}

/* 4. Foto no CV */
.btn-photo { cursor: pointer; }
.cv-photo-wrap {
    width: 64px; height: 64px; border-radius: 50%; overflow: hidden;
    border: 3px solid rgba(255,255,255,.5); flex-shrink: 0;
    background: rgba(255,255,255,.2);
}
.cv-photo-wrap img { width: 100%; height: 100%; object-fit: cover; }
.cv-photo-wrap-sq {
    width: 60px; height: 60px; border-radius: 8px; overflow: hidden;
    border: 2px solid #ddd; flex-shrink: 0;
}
.cv-photo-wrap-sq img { width: 100%; height: 100%; object-fit: cover; }

/* 5. Modal compartilhar link */
.sharelink-modal {
    position: fixed; inset: 0; z-index: 9000;
    display: flex; align-items: center; justify-content: center;
}
.sharelink-modal.hidden { display: none; }
.sharelink-overlay { position: absolute; inset: 0; background: rgba(0,0,0,.55); backdrop-filter: blur(4px); }
.sharelink-box {
    position: relative; background: var(--surface); border-radius: 20px;
    padding: 2rem; width: 480px; max-width: calc(100vw - 2rem);
    border: 1px solid var(--border); z-index: 1;
    display: flex; flex-direction: column; align-items: center; gap: 1rem;
    animation: modalIn .3s cubic-bezier(.34,1.2,.64,1);
}
.sharelink-close {
    position: absolute; top: 1rem; right: 1rem;
    background: none; color: var(--text-3); width: 28px; height: 28px;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    transition: all .2s;
}
.sharelink-close:hover { background: var(--surface-2); color: var(--text); }
.sharelink-close svg { width: 16px; height: 16px; }
.sharelink-icon {
    width: 56px; height: 56px; border-radius: 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
}
.sharelink-icon img { width: 28px; height: 28px; object-fit: contain; display: block; }
.sharelink-title { font-size: 1.25rem; font-weight: 800; text-align: center; }
.sharelink-sub { font-size: .85rem; color: var(--text-2); text-align: center; }
.sharelink-input-wrap {
    display: flex; gap: .5rem; width: 100%;
}
.sharelink-input {
    flex: 1; background: var(--bg); border: 1px solid var(--border);
    border-radius: 10px; padding: .65rem 1rem; font-size: .78rem;
    color: var(--text-2); outline: none; cursor: text;
}
.btn-copy-sharelink {
    padding: .65rem 1.25rem; border-radius: 10px;
    background: var(--primary);
    color: #fff; font-size: .85rem; font-weight: 700; white-space: nowrap;
    transition: transform .2s;
}
[data-theme="dark"] .btn-copy-sharelink { color: var(--on-accent); }
.btn-copy-sharelink:hover { transform: translateY(-1px); }

/* 5b. Viewer de CV compartilhado */
.cv-viewer {
    position: fixed; inset: 0; z-index: 8000;
    background: var(--bg); display: flex; flex-direction: column;
}
.cv-viewer.hidden { display: none; }
.cv-viewer-nav {
    display: flex; align-items: center; justify-content: space-between;
    padding: .875rem 1.5rem; background: var(--surface);
    border-bottom: 1px solid var(--border);
}
.cv-viewer-logo { display: flex; align-items: center; gap: .5rem; font-weight: 800; font-size: 1rem; }
.cv-viewer-mark { border-radius: 9px; object-fit: contain; flex-shrink: 0; }
.btn-viewer-download {
    display: flex; align-items: center; gap: .4rem;
    padding: .5rem 1.25rem; border-radius: 10px;
    background: var(--primary);
    color: #fff; font-size: .85rem; font-weight: 700;
}
[data-theme="dark"] .btn-viewer-download { color: var(--on-accent); }
.btn-viewer-download svg { width: 16px; height: 16px; }
.cv-viewer-body {
    flex: 1; overflow-y: auto; padding: 2rem;
    display: flex; justify-content: center;
}

/* Tablet/phone: abas Chat / Preview (até 900px = layout empilhado) */
@media (max-width: 900px) {
    .mobile-tabs { display: flex; }
    .creator-layout { grid-template-columns: 1fr !important; }
    .creator-layout .chat-panel,
    .creator-layout .preview-panel { display: none; }
    .creator-layout .show-panel { display: flex !important; flex-direction: column; }
    .btn-fab-download:not(.hidden) { display: flex; }
}

/* ── PDF EDIT TOAST ─────────────────────────────── */
.pdf-toast {
    position: fixed;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    z-index: 999;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: var(--card-bg, #fff);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    padding: 16px 42px 20px 16px;
    max-width: 340px;
    width: calc(100vw - 32px);
    opacity: 0;
    transition: opacity .35s, transform .35s;
    overflow: hidden;
    pointer-events: none;
}
.pdf-toast:not(.hidden) {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: all;
}
.pdf-toast-icon {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--surface);
    border: 1px solid var(--border-2);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: toastIconWiggle 1.2s ease-in-out .5s 2;
}
.pdf-toast-icon img { width: 22px; height: 22px; object-fit: contain; display: block; }
@keyframes toastIconWiggle {
    0%,100% { transform: rotate(0deg); }
    25%      { transform: rotate(-12deg); }
    75%      { transform: rotate(12deg); }
}
.pdf-toast-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary, #0f0720);
    margin-bottom: 4px;
}
.pdf-toast-msg {
    font-size: 12px;
    color: var(--text-secondary, #5a5078);
    line-height: 1.5;
}
.pdf-toast-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: var(--text-secondary, #5a5078);
    opacity: .6;
    transition: opacity .2s;
}
.pdf-toast-close:hover { opacity: 1; }
.pdf-toast-close svg { width: 14px; height: 14px; }
.pdf-toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: var(--primary);
    border-radius: 0 0 16px 16px;
    width: 100%;
    transform-origin: left;
}
@keyframes toastProgress {
    from { transform: scaleX(1); }
    to   { transform: scaleX(0); }
}

/* Botão flutuante de download — só aparece no mobile quando CV está pronto */
.btn-fab-download {
    display: none;
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 200;
    align-items: center;
    gap: .55rem;
    padding: .875rem 2rem;
    border-radius: 999px;
    background: var(--primary);
    color: var(--on-accent);
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 8px 32px var(--primary-glow), 0 2px 8px rgba(0,0,0,.2);
    border: 2px solid rgba(0, 0, 0, 0.15);
    cursor: pointer;
    white-space: nowrap;
    transition: transform .2s, box-shadow .2s;
}
.btn-fab-download svg { width: 18px; height: 18px; stroke: var(--on-accent); flex-shrink: 0; }
.btn-fab-download:active { transform: translateX(-50%) scale(.97); }

/* ── SCROLL WRITE DEMO ──────────────────────────────── */
.swrite-section {
    height: 580vh;
    position: relative;
    background: var(--bg);
}
.swrite-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
    padding: 0 24px;
    overflow: hidden;
}
.swrite-header {
    text-align: center;
    will-change: opacity, transform;
}
.swrite-title {
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 3vw, 2.25rem);
    font-weight: 600;
    line-height: 1.25;
    margin: 8px 0 0;
    color: var(--text);
}
.swrite-scene {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    will-change: opacity, transform;
}
.swrite-paper {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 6px rgba(0,0,0,.04), 0 8px 28px rgba(0,0,0,.09), 0 24px 56px rgba(0,0,0,.07);
    width: min(480px, 92vw);
    padding: 28px 32px 24px;
    position: relative;
    transform-origin: top center;
    will-change: transform, opacity;
    overflow: hidden;
}
[data-theme="dark"] .swrite-paper {
    background: #1e1929;
    box-shadow: 0 2px 8px rgba(0,0,0,.25), 0 8px 32px rgba(0,0,0,.3), 0 24px 64px rgba(0,0,0,.22);
}
.swrite-paper::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-light), var(--primary));
    border-radius: 14px 14px 0 0;
}

/* ── CV line reveal via clip-path ── */
.sw-line {
    clip-path: inset(0 100% 0 0);
    transition: clip-path 1.8s cubic-bezier(.25,0,.1,1);
    will-change: clip-path;
}
.sw-line.typed { clip-path: inset(0 0% 0 0); }

.sw-name.sw-line   { transition-duration: 1.5s; }
.sw-div.sw-line    { transition-duration: 0.8s; }
.sw-skills.sw-line { transition-duration: 2.4s; }
.sw-bullet.sw-line { transition-duration: 2.0s; }

/* ── CV content typography ── */
.sw-name {
    font-size: 1.2rem; font-weight: 700;
    color: var(--text);
    margin-bottom: 2px;
}
.sw-role {
    font-size: .8rem; font-weight: 500;
    color: var(--primary);
    margin-bottom: 4px;
}
.sw-contact {
    font-size: .68rem;
    color: var(--text-3);
    margin-bottom: 10px;
    line-height: 1.5;
}
.sw-div {
    height: 1px;
    background: var(--border);
    margin: 7px 0;
}
.sw-sec {
    font-size: .62rem; font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--primary);
    margin: 9px 0 5px;
}
.sw-employer {
    font-size: .8rem; font-weight: 600;
    color: var(--text);
    display: flex; justify-content: space-between;
    margin-bottom: 1px;
}
.sw-period {
    font-size: .7rem; font-weight: 400;
    color: var(--text-3);
}
.sw-jobtitle {
    font-size: .72rem; font-style: italic;
    color: var(--text-3);
    margin-bottom: 3px;
}
.sw-bullet {
    font-size: .7rem;
    color: var(--text-3);
    padding-left: 6px;
    margin-bottom: 2px;
    line-height: 1.5;
}
.sw-skills {
    display: flex; flex-wrap: wrap; gap: 5px;
    margin-bottom: 4px;
}
.sw-skill {
    background: var(--primary-soft);
    color: var(--primary);
    border-radius: 999px;
    padding: 2px 9px;
    font-size: .66rem; font-weight: 600;
}
[data-theme="dark"] .sw-skill { background: rgba(148,163,184,.15); }

/* ── Pen cursor ── */
.swrite-cursor {
    position: absolute;
    z-index: 20;
    pointer-events: none;
    opacity: 0;
    transition: opacity .3s;   /* only opacity — left/top driven by RAF */
}
.swrite-cursor.active { opacity: 1; }
.sw-pen-svg {
    width: 52px; height: 52px;
    display: block;
    transform-origin: 8% 92%;   /* pivot = nib tip */
    transform: rotate(-22deg);
    filter: drop-shadow(0 4px 14px rgba(15,23,42,.2));
    animation: swPenRock 1.8s ease-in-out infinite;
}
@keyframes swPenRock {
    0%, 100% { transform: rotate(-22deg); }
    50%       { transform: rotate(-18deg); }
}

/* ── Eraser ── */
.swrite-eraser {
    position: absolute;
    z-index: 21;
    pointer-events: none;
    opacity: 0;
    transition: opacity .25s;
}
.swrite-eraser.active { opacity: 1; }
.sw-eraser-svg {
    width: 60px; height: 28px;
    display: block;
    filter: drop-shadow(0 3px 10px rgba(244,63,94,.45));
    animation: swEraserRock .9s ease-in-out infinite;
}
@keyframes swEraserRock {
    0%, 100% { transform: rotate(-4deg) translateY(0px); }
    50%       { transform: rotate( 4deg) translateY(-1px); }
}

/* ── Done badge ── */
.sw-done {
    display: flex; align-items: center; gap: 7px;
    background: rgba(16,185,129,.08);
    border: 1px solid rgba(16,185,129,.25);
    border-radius: 999px;
    padding: 6px 16px 6px 10px;
    font-size: .78rem; font-weight: 600;
    color: #10B981;
    opacity: 0;
    transform: translateY(6px) scale(.95);
    transition: opacity .4s, transform .4s cubic-bezier(.22,1,.36,1);
}
.sw-done svg { width: 22px; height: 22px; flex-shrink: 0; }
.sw-done.show { opacity: 1; transform: translateY(0) scale(1); }

/* mobile */
@media (max-width: 600px) {
    .swrite-paper { padding: 20px 18px 16px; }
    .sw-bullet { display: none; }
}

/* ── CARTA DE APRESENTAÇÃO ──────────────────────────── */
.carta-panel {
    border-top: 1px solid var(--border);
    background: var(--surface);
}
.carta-toggle {
    width: 100%; display: flex; align-items: center;
    justify-content: space-between; gap: 1rem;
    padding: 1rem 1.25rem; border: none; background: none;
    cursor: pointer; color: var(--text); text-align: left;
    transition: background .15s;
}
.carta-toggle:hover { background: var(--surface-2); }
.carta-toggle-left { display: flex; align-items: center; gap: .875rem; }
.carta-icon {
    width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0;
    background: var(--primary);
    display: flex; align-items: center; justify-content: center;
}
.carta-icon svg { width: 18px; height: 18px; stroke: white; }
.carta-title { font-size: .88rem; font-weight: 600; color: var(--text); }
.carta-sub   { font-size: .75rem; color: var(--text-3); margin-top: 2px; }
.carta-chevron {
    width: 18px; height: 18px; flex-shrink: 0; color: var(--text-3);
    transition: transform .25s;
}
.carta-chevron.open { transform: rotate(180deg); }

.carta-body {
    padding: 0 1.25rem 1.25rem;
    display: flex; flex-direction: column; gap: .75rem;
}
.carta-textarea {
    width: 100%; padding: .75rem 1rem; border-radius: var(--radius-sm);
    border: 1.5px solid var(--border); background: var(--bg);
    color: var(--text); font-size: .82rem; font-family: inherit;
    resize: vertical; min-height: 70px;
    transition: border-color .2s;
    box-sizing: border-box;
}
.carta-textarea:focus { outline: none; border-color: var(--primary); }
.carta-textarea::placeholder { color: var(--text-3); }

.btn-carta-gen {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .6rem 1.25rem; border-radius: var(--radius-sm);
    background: var(--primary);
    color: white; font-size: .82rem; font-weight: 600;
    border: none; cursor: pointer; align-self: flex-start;
    transition: opacity .15s, transform .15s;
}
.btn-carta-gen:hover:not(:disabled) { opacity: .9; transform: translateY(-1px); }
.btn-carta-gen:disabled { opacity: .6; cursor: not-allowed; }
.btn-carta-gen svg { width: 15px; height: 15px; }

.carta-result {
    background: var(--bg); border: 1.5px solid var(--border);
    border-radius: var(--radius-sm); overflow: hidden;
}
.carta-result-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: .6rem 1rem; border-bottom: 1px solid var(--border);
    background: var(--surface);
}
.carta-result-label { font-size: .78rem; font-weight: 600; color: var(--text-2); }
.btn-copy-carta {
    display: inline-flex; align-items: center; gap: .35rem;
    padding: .3rem .75rem; border-radius: 6px; border: 1px solid var(--border);
    background: var(--bg); color: var(--text-2); font-size: .72rem; font-weight: 600;
    cursor: pointer; transition: background .15s, color .15s;
}
.btn-copy-carta:hover { background: var(--primary-soft); color: var(--primary); }
.btn-copy-carta svg  { width: 12px; height: 12px; }

.carta-text {
    padding: 1.25rem 1.25rem 1rem;
    font-size: .82rem; line-height: 1.75;
    color: var(--text); white-space: pre-wrap;
    font-family: 'Georgia', serif;
}
