@import url('https://fonts.googleapis.com/css2?family=Lora:wght@400;500;600&family=Inter:wght@400;500;600&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    /* Blue palette */
    --blue-50:  #EFF6FF;
    --blue-100: #DBEAFE;
    --blue-200: #BFDBFE;
    --blue-300: #93C5FD;
    --blue-400: #60A5FA;
    --blue-500: #3B82F6;
    --blue-600: #2563EB;
    --blue-700: #1D4ED8;
    --blue-800: #1E3A8A;
    --blue-900: #172554;

    /* Neutrals */
    --white:    #FFFFFF;
    --gray-50:  #F8FAFC;
    --gray-100: #F1F5F9;
    --gray-200: #E2E8F0;
    --gray-300: #CBD5E1;
    --gray-400: #94A3B8;
    --gray-500: #64748B;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1E293B;
    --gray-900: #0F172A;

    /* Semantic */
    --primary-color: var(--blue-600);
    --border-color:  var(--gray-200);
    --bg-secondary:  var(--blue-50);
    --text-secondary:var(--gray-500);
    --error-color:   #DC2626;
    --success-color: #16A34A;

    /* Type */
    --font-display: 'Lora', Georgia, serif;
    --font-body:    'Inter', system-ui, sans-serif;

    /* Radii */
    --r-sm:  6px;
    --r-md:  10px;
    --r-lg:  16px;
    --r-xl:  22px;
    --r-2xl: 30px;

    /* Shadows */
    --shadow-xs:  0 1px 2px rgba(15,23,42,0.06);
    --shadow-sm:  0 1px 4px rgba(15,23,42,0.07), 0 1px 2px rgba(15,23,42,0.04);
    --shadow-md:  0 4px 16px rgba(15,23,42,0.09), 0 1px 4px rgba(15,23,42,0.05);
    --shadow-lg:  0 12px 40px rgba(15,23,42,0.13), 0 2px 8px rgba(15,23,42,0.07);
    --shadow-blue:0 4px 18px rgba(37,99,235,0.22);

    --space-sm: 8px;
    --space-md: 16px;
    --space-xl: 32px;

}

/* ─────────────────────────────────────────
   BASE
───────────────────────────────────────── */
html { font-size: 17px; scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--gray-800);
    background-color: #EEF4FF;
    background-image:
        radial-gradient(ellipse 70% 50% at 10% 0%,  rgba(96,165,250,0.13) 0%, transparent 60%),
        radial-gradient(ellipse 50% 60% at 90% 90%, rgba(37,99,235,0.09)  0%, transparent 60%),
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%232563EB' fill-opacity='0.025'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    min-height: 100vh;
    line-height: 1.65;
    overflow-x: hidden;
}

body.drawer-open { overflow: hidden; }

/* ─────────────────────────────────────────
   TOPBAR
───────────────────────────────────────── */
.topbar {
    position: sticky;
    top: 0;
    z-index: 200;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow-xs);
}

.topbar-inner {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 62px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.topbar-brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.topbar-logo {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--blue-800);
    letter-spacing: -0.02em;
}

.profile-trigger-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem 0.5rem 0.75rem;
    background: var(--white);
    border: 1.5px solid var(--gray-200);
    border-radius: 999px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gray-700);
    cursor: pointer;
    transition: all 0.18s;
    position: relative;
    box-shadow: var(--shadow-xs);
}

.profile-trigger-btn:hover {
    border-color: var(--blue-400);
    color: var(--blue-700);
    box-shadow: var(--shadow-sm);
}

.profile-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gray-300);
    margin-left: 2px;
    transition: background 0.3s;
}

.profile-status-dot.dot-complete { background: var(--success-color); }

/* ─────────────────────────────────────────
   PROFILE BANNER
───────────────────────────────────────── */
.profile-banner {
    background: linear-gradient(90deg, #FEF9C3 0%, #FFF7D6 100%);
    border-bottom: 1px solid #FDE68A;
    transition: max-height 0.4s ease, opacity 0.4s ease, padding 0.3s;
    overflow: hidden;
    max-height: 200px;
    opacity: 1;
}

.profile-banner.banner-done {
    max-height: 0;
    opacity: 0;
    pointer-events: none;
}

.profile-banner-inner {
    max-width: 860px;
    margin: 0 auto;
    padding: 0.8rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    flex-wrap: wrap;
}

.profile-banner-inner svg { color: #92400E; flex-shrink: 0; }

.profile-banner-inner p {
    color: #78350F;
    font-size: 0.9rem;
    line-height: 1.5;
    flex: 1;
    min-width: 200px;
}

.profile-banner-inner p strong { color: #7C2D12; }

.banner-cta {
    background: #92400E;
    color: #FFFBEB;
    border: none;
    padding: 0.5rem 1.1rem;
    border-radius: 999px;
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.18s;
    flex-shrink: 0;
}

.banner-cta:hover { background: #7C2D12; }

/* ─────────────────────────────────────────
   DRAWER OVERLAY
───────────────────────────────────────── */
.drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    z-index: 299;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    backdrop-filter: blur(2px);
}

.drawer-overlay.open {
    opacity: 1;
    pointer-events: all;
}

/* ─────────────────────────────────────────
   PROFILE DRAWER
───────────────────────────────────────── */
.profile-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 380px;
    max-width: 100vw;
    background: var(--white);
    z-index: 300;
    transform: translateX(100%);
    transition: transform 0.32s cubic-bezier(0.32, 0.72, 0, 1);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-lg);
}

.profile-drawer.open { transform: translateX(0); }

.drawer-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.5rem 1.5rem 1.25rem;
    border-bottom: 1px solid var(--gray-100);
    background: var(--blue-50);
    flex-shrink: 0;
}

.drawer-title {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--blue-900);
    line-height: 1.2;
}

.drawer-subtitle {
    font-size: 0.82rem;
    color: var(--gray-500);
    margin-top: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.drawer-close-btn {
    background: var(--white);
    border: 1.5px solid var(--gray-200);
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--gray-600);
    transition: all 0.18s;
    flex-shrink: 0;
}

.drawer-close-btn:hover {
    background: var(--gray-100);
    border-color: var(--gray-300);
    color: var(--gray-900);
}

.drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 0 1.5rem 2rem;
}

.drawer-section {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--gray-100);
}

.drawer-section:last-child { border-bottom: none; }

.drawer-section-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--blue-600);
    margin-bottom: 1rem;
}

.drawer-hint {
    font-size: 0.88rem;
    color: var(--gray-500);
    margin-bottom: 0.85rem;
    line-height: 1.5;
}

/* ─────────────────────────────────────────
   SIGNATURE PAD
───────────────────────────────────────── */
#signature-pad-wrapper {
    position: relative;
    border: 2px dashed var(--gray-300) !important;
    border-radius: var(--r-md) !important;
    background: var(--gray-50) !important;
    overflow: hidden;
    transition: border-color 0.18s;
}

#signature-pad-wrapper:hover { border-color: var(--blue-300) !important; }

#signature-canvas {
    display: block;
    width: 100% !important;
    height: 160px !important;
    cursor: crosshair;
    touch-action: none;
}

.sig-watermark {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 0.95rem;
    color: var(--gray-300);
    pointer-events: none;
    transition: opacity 0.3s;
    font-style: italic;
}

.sig-actions {
    display: flex;
    gap: 0.6rem;
    margin-top: 0.75rem;
}

.sig-actions button { flex: 1; padding: 0.6rem 0.5rem; }

.sig-saved-msg {
    font-size: 0.85rem;
    color: var(--success-color);
    margin-top: 0.6rem;
    font-weight: 500;
}

/* ─────────────────────────────────────────
   MAIN LAYOUT
───────────────────────────────────────── */
.app-main {
    max-width: 860px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem 4rem;
}

.steps-wrapper { display: flex; flex-direction: column; gap: 0; }

/* ─────────────────────────────────────────
   CARD
───────────────────────────────────────── */
.card {
    background: var(--white);
    border: 1px solid rgba(37, 99, 235, 0.1);
    border-radius: var(--r-xl);
    padding: 2.25rem 2.25rem;
    box-shadow: 0 2px 12px rgba(37,99,235,0.07), 0 1px 3px rgba(15,23,42,0.05);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--blue-400), var(--blue-600));
    border-radius: var(--r-xl) var(--r-xl) 0 0;
}

/* ─────────────────────────────────────────
   STEP HEADER
───────────────────────────────────────── */
.step-eyebrow {
    display: inline-flex;
    align-items: center;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: var(--blue-500);
    background: var(--blue-50);
    border: 1px solid var(--blue-100);
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    margin-bottom: 0.85rem;
}

h2 {
    font-family: var(--font-display);
    font-size: 1.65rem;
    font-weight: 600;
    color: var(--blue-900);
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: 0.35rem;
}

h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--blue-800);
    margin-bottom: 0.4rem;
}

h4 {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--blue-600);
    margin-bottom: 1rem;
}

p { color: var(--gray-600); line-height: 1.65; }

.step-intro {
    color: var(--gray-500);
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 0.45rem;
}

/* ─────────────────────────────────────────
   FORM INPUTS
───────────────────────────────────────── */
.form-group { margin-bottom: 1rem; }

.form-input,
input[type="text"]:not(.correction-row input),
input[type="email"],
textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--gray-900);
    background: var(--white);
    border: 1.5px solid var(--gray-200);
    border-radius: var(--r-md);
    outline: none;
    transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
    line-height: 1.5;
}

.form-input:hover,
input[type="text"]:hover,
input[type="email"]:hover {
    border-color: var(--gray-300);
    background: var(--gray-50);
}

.form-input:focus,
input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
    border-color: var(--blue-400);
    box-shadow: 0 0 0 3px rgba(96,165,250,0.22);
    background: var(--white);
}

.form-input::placeholder,
input::placeholder,
textarea::placeholder { color: var(--gray-400); }

textarea.form-input { resize: vertical; min-height: 100px; }

/* ─────────────────────────────────────────
   BUTTONS
───────────────────────────────────────── */
.button-primary,
.button-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.6rem;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    border-radius: var(--r-md);
    cursor: pointer;
    border: none;
    transition: all 0.18s;
    text-decoration: none;
    line-height: 1;
}

.button-primary {
    background: var(--blue-600);
    color: var(--white);
    box-shadow: var(--shadow-blue);
    border: 1.5px solid transparent;
}

.button-primary:hover {
    background: var(--blue-700);
    box-shadow: 0 6px 22px rgba(37,99,235,0.3);
    transform: translateY(-1px);
}

.button-primary:active {
    background: var(--blue-800);
    transform: translateY(0);
    box-shadow: none;
}

.button-primary:disabled {
    background: var(--gray-200);
    color: var(--gray-400);
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
    border-color: transparent;
}

.button-secondary {
    background: var(--white);
    color: var(--blue-700);
    border: 1.5px solid var(--blue-200);
    box-shadow: var(--shadow-xs);
}

.button-secondary:hover {
    background: var(--blue-50);
    border-color: var(--blue-400);
    box-shadow: var(--shadow-sm);
}

.button-secondary:active { background: var(--blue-100); }

.btn-full { width: 100%; }

/* ─────────────────────────────────────────
   SERVICE CARDS
───────────────────────────────────────── */
.service-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.service-card {
    border: 2px solid var(--gray-200);
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--r-lg);
    cursor: pointer;
    transition: all 0.22s;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.service-card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--blue-400), var(--blue-600));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s;
}

.service-card:hover {
    border-color: var(--blue-300);
    background: var(--blue-50);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.service-card:hover::after { transform: scaleX(1); }

.service-card.selected {
    border-color: var(--blue-600);
    background: var(--blue-50);
    box-shadow: 0 0 0 4px rgba(37,99,235,0.12);
}

.service-card.selected::after { transform: scaleX(1); }

.service-icon {
    width: 44px;
    height: 44px;
    background: var(--blue-100);
    border-radius: var(--r-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blue-600);
    margin-bottom: 0.25rem;
    transition: background 0.2s;
}

.service-card:hover .service-icon,
.service-card.selected .service-icon {
    background: var(--blue-200);
}

.service-card h3 {
    font-size: 1rem;
    margin: 0;
}

.service-card p {
    font-size: 0.85rem;
    color: var(--gray-500);
    line-height: 1.5;
    flex: 1;
}

.service-tag {
    display: inline-flex;
    align-items: center;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    background: var(--blue-100);
    color: var(--blue-700);
    letter-spacing: 0.02em;
    margin-top: 0.25rem;
    width: fit-content;
}

.service-tag--pro {
    background: linear-gradient(135deg, #EDE9FE, #DDD6FE);
    color: #5B21B6;
}

/* ─────────────────────────────────────────
   FILE UPLOAD ZONE
───────────────────────────────────────── */
.file-upload-zone {
    margin-top: 0.75rem;
    border: 2px dashed var(--gray-300);
    border-radius: var(--r-lg);
    background: var(--gray-50);
    transition: all 0.2s;
    overflow: hidden;
}

.file-upload-zone:hover {
    border-color: var(--blue-400);
    background: var(--blue-50);
}

.file-upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    padding: 2.5rem 1rem;
    cursor: pointer;
    color: var(--gray-500);
    font-size: 1rem;
    font-weight: 500;
    transition: color 0.18s;
}

.file-upload-zone:hover .file-upload-label { color: var(--blue-600); }

.file-upload-label svg { color: var(--gray-400); transition: color 0.18s; }
.file-upload-zone:hover .file-upload-label svg { color: var(--blue-500); }

.file-upload-sub {
    font-size: 0.82rem;
    color: var(--gray-400);
    font-weight: 400;
}

.file-list {
    list-style: none;
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.file-list li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 0.9rem;
    background: var(--blue-50);
    border: 1px solid var(--blue-100);
    border-radius: var(--r-sm);
    font-size: 0.9rem;
    color: var(--blue-700);
    font-weight: 500;
}

.file-list li::before { content: '📄'; }

.error-text {
    color: var(--error-color);
    font-size: 0.88rem;
    margin-top: 0.5rem;
}

/* ─────────────────────────────────────────
   EMAIL BACKUP BOX
───────────────────────────────────────── */
.email-backup-box {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    background: var(--blue-50);
    border: 1px solid var(--blue-200);
    border-radius: var(--r-lg);
    padding: 1.25rem;
}

.email-backup-icon {
    width: 44px;
    height: 44px;
    background: var(--blue-100);
    border-radius: var(--r-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blue-600);
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.required-badge {
    display: inline-flex;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.18rem 0.55rem;
    border-radius: 999px;
    background: #FEF2F2;
    color: #DC2626;
    letter-spacing: 0.02em;
    border: 1px solid #FECACA;
}

/* ─────────────────────────────────────────
   SUMMARY BOX (Step 3)
───────────────────────────────────────── */
.summary-box {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--r-lg);
    padding: 1.25rem 1.5rem;
    margin: 1.25rem 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--gray-200);
    gap: 1rem;
    flex-wrap: wrap;
}

.summary-row:last-child { border-bottom: none; padding-bottom: 0; }
.summary-row:first-child { padding-top: 0; }

.summary-label { color: var(--gray-500); font-size: 0.9rem; }
.summary-row strong { color: var(--gray-900); }

/* ─────────────────────────────────────────
   PAYMENT PLACEHOLDER
───────────────────────────────────────── */
.payment-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2.5rem;
    border: 2px dashed var(--gray-200);
    border-radius: var(--r-lg);
    margin-bottom: 1.5rem;
}

.payment-placeholder p {
    color: var(--gray-400);
    font-size: 0.9rem;
}

/* ─────────────────────────────────────────
   LOADING BOX
───────────────────────────────────────── */
.loading-box {
    text-align: center;
    padding: 2rem 1.5rem;
    margin-top: 1.5rem;
    background: var(--blue-50);
    border-radius: var(--r-lg);
    border: 1px solid var(--blue-100);
}

.loading-sub {
    font-size: 0.88rem;
    color: var(--gray-400);
    margin-top: 0.5rem;
}

.spinner {
    width: 44px;
    height: 44px;
    border: 4px solid var(--blue-100);
    border-top-color: var(--blue-500);
    border-radius: 50%;
    animation: spin 0.75s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ─────────────────────────────────────────
   RESULT BOX
───────────────────────────────────────── */
.result-box {
    background: var(--blue-50);
    border: 1px solid var(--blue-100);
    border-radius: var(--r-lg);
    padding: 1.75rem;
    margin-bottom: 1.25rem;
    font-size: 1rem;
    line-height: 1.75;
    color: var(--gray-700);
}

/* ─────────────────────────────────────────
   CHAT SECTION
───────────────────────────────────────── */
.chat-section {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--r-lg);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.chat-history {
    max-height: 250px;
    overflow-y: auto;
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding-right: 0.25rem;
}

.chat-input-row {
    display: flex;
    gap: 0.5rem;
}

/* ─────────────────────────────────────────
   INTENT / CORRECTION
───────────────────────────────────────── */
.intent-container {
    margin-top: 1.5rem;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--r-lg);
    padding: 1.5rem;
}

.correction-window {
    margin-top: 1.5rem;
    border-top: 1px solid var(--gray-200);
    padding-top: 1.5rem;
}

.correction-row {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

/* ─────────────────────────────────────────
   PDF DETAILS GRID
───────────────────────────────────────── */
.pdf-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1rem;
}

.pdf-details-group label { margin-top: 0; }
.pdf-details-group label + label { margin-top: 0.75rem; }

/* ─────────────────────────────────────────
   DIVIDER
───────────────────────────────────────── */
hr {
    border: none;
    border-top: 1px solid var(--gray-100);
    margin: 2rem 0;
}

/* ─────────────────────────────────────────
   BACK BUTTON
───────────────────────────────────────── */
.btn-back {
    font-size: 0.88rem;
    padding: 0.5rem 1rem;
    margin-bottom: 1.25rem;
}

/* ─────────────────────────────────────────
   NOTIFICATION
───────────────────────────────────────── */
#notification-container {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 400;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* ─────────────────────────────────────────
   UTILITY
───────────────────────────────────────── */
.hidden { display: none !important; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ─────────────────────────────────────────
   ACCESSIBILITY
───────────────────────────────────────── */
:focus-visible {
    outline: 3px solid var(--blue-400);
    outline-offset: 3px;
}

/* ─────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────── */
@media (max-width: 680px) {
    html { font-size: 16px; }

    .app-main { padding: 1.25rem 1rem 3rem; }

    .card { padding: 1.5rem 1.25rem; border-radius: var(--r-lg); }
    .card::before { border-radius: var(--r-lg) var(--r-lg) 0 0; }

    h2 { font-size: 1.4rem; }

    .service-cards { grid-template-columns: 1fr 1fr; gap: 0.75rem; }

    .service-card { padding: 1.1rem; }
    .service-icon { width: 38px; height: 38px; }

    .pdf-details-grid { grid-template-columns: 1fr; }

    .profile-drawer { width: 100%; }

    .topbar-inner { padding: 0 1rem; }

    .profile-trigger-btn span { display: none; }

    .email-backup-box { flex-direction: column; gap: 0.75rem; }

    .chat-input-row { flex-direction: column; }
}

@media (max-width: 380px) {
    .service-cards { grid-template-columns: 1fr; }
    .card { padding: 1.25rem 1rem; }
}

/* ═══════════════════════════════════════════════════════
   INDEX.HTML – ERGÄNZENDE STYLES
   (ergänzt bestehende Klassen, überschreibt nichts)
══════════════════════════════════════════════════════════ */
 
/* ── HERO ERGÄNZUNGEN ── */
.hero-badge {
    display: inline-flex;
    align-items: center;
    background: var(--blue-100);
    color: var(--blue-700);
    border: 1px solid var(--blue-200);
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.35rem 1rem;
    letter-spacing: 0.03em;
    margin-bottom: 1.25rem;
}
 
.hero-actions {
    display: flex;
    gap: 1rem;
     justify-content: center;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 1.75rem;
}
 
.btn-ghost {
    background: transparent;
    color: var(--blue-600);
    border: none;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    padding: 0.4rem 0;
    border-bottom: 2px solid transparent;
    transition: border-color 0.18s;
}
.btn-ghost:hover { border-bottom-color: var(--blue-400); }
 
.hero-trust-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
    font-size: 0.82rem;
    color: var(--gray-500);
    font-weight: 500;
}
 
/* ── SECTION EYEBROW ── */
.section-eyebrow {
    display: inline-flex;
    align-items: center;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: var(--blue-500);
    background: var(--blue-50);
    border: 1px solid var(--blue-100);
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    margin-bottom: 0.85rem;
}
 
/* ── NO-LOGIN SEKTION ── */
.no-login-section { background: var(--white); padding: 5rem 1.5rem; }
 
.no-login-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
}
 
.no-login-text h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}
 
.no-login-text > p { margin-bottom: 2rem; }
 
.no-login-reasons { display: flex; flex-direction: column; gap: 1.5rem; }
 
.reason-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}
 
.reason-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    background: var(--blue-50);
    border-radius: var(--r-md);
    display: flex;
    align-items: center;
    justify-content: center;
}
 
.reason-item strong {
    display: block;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 0.3rem;
}
 
.reason-item p { margin: 0; font-size: 0.92rem; }
 
/* Vergleichskarte */
.comparison-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-radius: var(--r-xl);
    overflow: hidden;
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-md);
}
 
.comparison-col {
    padding: 1.75rem 1.5rem;
}
 
.comparison-col.bad { background: #FFF5F5; }
.comparison-col.good { background: var(--blue-50); border-left: 1px solid var(--blue-100); }
 
.comparison-label {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    display: inline-block;
    margin-bottom: 1.25rem;
}
 
.comparison-label--bad  { background: #FEE2E2; color: #991B1B; }
.comparison-label--good { background: var(--blue-100); color: var(--blue-700); }
 
.comparison-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}
 
.comparison-col.bad  ul li { color: #7F1D1D; font-size: 0.9rem; }
.comparison-col.good ul li { color: var(--blue-800); font-size: 0.9rem; font-weight: 500; }
 
/* ── SERVICES – STEP DETAIL TAG ── */
.step-detail {
    display: inline-flex;
    align-items: center;
    font-size: 0.75rem;
    font-weight: 600;
    background: var(--blue-50);
    color: var(--blue-600);
    border: 1px solid var(--blue-100);
    border-radius: 999px;
    padding: 0.2rem 0.7rem;
    margin-top: 0.75rem;
}
 
/* ── PROCESS STEPS ── */
.process-steps {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    gap: 0;
    align-items: start;
    margin-top: 2rem;
}
 
.process-step {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--r-lg);
    padding: 1.75rem;
    box-shadow: var(--shadow-sm);
}
 
.process-number {
    width: 40px;
    height: 40px;
    background: var(--blue-600);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}
 
.process-step h3 { margin-bottom: 0.6rem; font-size: 1rem; }
.process-step p { font-size: 0.9rem; }
 
.process-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: var(--blue-300);
    padding: 0 1rem;
    padding-top: 3rem;
}
 
/* ── FEATURES GRID – ICON ── */
.feature-icon {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
    display: block;
}
 
/* ── ZIELGRUPPEN – ERWEITERUNGEN ── */
.user-card-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    display: block;
}
 
.user-list {
    list-style: none;
    margin: 1rem 0 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
 
.user-list li {
    font-size: 0.92rem;
    color: var(--gray-600);
    padding-left: 1.2rem;
    position: relative;
}
 
.user-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--blue-500);
    font-weight: 700;
}
 
/* ── PREISE ── */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.25rem;
    margin-top: 2.5rem;
    align-items: stretch;
}
 
.pricing-card {
    background: var(--white);
    border: 1.5px solid var(--gray-200);
    border-radius: var(--r-xl);
    padding: 2rem 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    box-shadow: var(--shadow-sm);
    position: relative;
    transition: all 0.2s;
}
 
.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--blue-200);
}
 
.pricing-card--featured {
    border-color: var(--blue-500);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.1), var(--shadow-md);
}
 
.pricing-badge {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--blue-600);
    color: var(--white);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.25rem 0.85rem;
    border-radius: 999px;
    white-space: nowrap;
}
 
.pricing-icon { font-size: 1.75rem; }
 
.pricing-name {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--blue-900);
}
 
.pricing-desc {
    font-size: 0.85rem;
    color: var(--gray-500);
    line-height: 1.45;
    margin-bottom: 0.5rem;
}
 
.pricing-price {
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
    margin: 0.5rem 0;
}
 
.pricing-amount {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 600;
    color: var(--blue-800);
}
 
.pricing-unit {
    font-size: 0.85rem;
    color: var(--gray-400);
}
 
.pricing-includes {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    margin: 0.5rem 0 1rem;
    flex: 1;
}
 
.pricing-includes li {
    font-size: 0.88rem;
    color: var(--gray-600);
}
 
.pricing-footnote {
    text-align: center;
    margin-top: 2rem;
    font-size: 0.85rem;
    color: var(--gray-400);
}
 
/* ── TESTIMONIALS – DRITTE KARTE ── */
.testimonials {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
    margin-top: 1.5rem;
}
 
/* ── TRUST PILLARS – VIERTE SÄULE ── */
.trust-pillars-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}
 
/* ── RESPONSIVE ERGÄNZUNGEN ── */
@media (max-width: 900px) {
    .no-login-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .comparison-card { grid-template-columns: 1fr; }
    .comparison-col.good { border-left: none; border-top: 1px solid var(--blue-100); }
    .process-steps { grid-template-columns: 1fr; }
    .process-arrow { display: none; }
    .no-login-text h2 { font-size: 1.5rem; }
}
 
@media (max-width: 600px) {
    .hero-actions { flex-direction: column; align-items: flex-start; }
    .pricing-grid { grid-template-columns: 1fr; }
    .hero-trust-row { gap: 0.6rem; }
}

/* === Footer-Disclaimer – elegante Minimal-Version === */
.footer-disclaimer {
  max-width: 550px;              /* noch schmaler */
  margin: 0.75rem auto 0.5rem;   /* zentriert, etwas Luft oben & unten */
  font-size: 0.82rem;
  color: #6b7280;
  line-height: 1.4;
  text-align: center;
  font-style: italic;            /* leicht edel wirkend */
  opacity: 0.85;                 /* dezenter Look */
}

/* kleines Symbol davor, aber sanft getönt */
.footer-disclaimer::before {
  opacity: 0.6;
  margin-right: 4px;
  font-size: 0.85rem;
}

/* Footer etwas kompakter halten */
.main-footer {
  padding-bottom: 0.5rem;
}

/* ==========================================================================
   FOOTER STYLES
   ========================================================================== */

.main-footer {
    background: var(--bg-secondary);
    padding: var(--space-xl) 0;
    border-top: 1px solid var(--gray-200);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-links {
    display: flex;
    gap: var(--space-xl);
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.875rem;
    transition: color var(--transition-base);
}

.footer-links a:hover {
    color: var(--primary-color);
}

@media (max-width: 768px) {
 .footer-container {
        flex-direction: column;
        gap: var(--space-md);
        text-align: center;
    }
    
    .footer-links {
        flex-direction: column;
        gap: var(--space-sm);
    }
}
.case-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

@media (max-width: 576px) {
    .hero-button {
        display: block;
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
    }
}