/* ═══════════════════════════════════════════════════════════
   ContratoExpress — Vibrant Gradient Theme (ToDesktop-inspired)
   ═══════════════════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --bg-gradient: linear-gradient(180deg,
        #0f0c29 0%,
        #131352 12%,
        #1a1a6e 25%,
        #1e3a8a 40%,
        #2563EB 55%,
        #1e3a8a 72%,
        #1a1a6e 85%,
        #0f0c29 100%);
    --bg-dark: #0f0c29;
    --surface: rgba(255, 255, 255, 0.04);
    --surface-2: rgba(255, 255, 255, 0.06);
    --surface-light: rgba(255, 255, 255, 0.85);
    --border: rgba(255, 255, 255, 0.12);
    --border-light: rgba(0, 0, 0, 0.08);
    --border-focus: rgba(37, 99, 235, 0.5);
    --text: #ffffff;
    --text-2: rgba(255, 255, 255, 0.9);
    --text-muted: rgba(255, 255, 255, 0.7);
    --text-light: rgba(255, 255, 255, 0.5);
    --text-dark: #1a1a2e;
    --text-dark-muted: #475569;
    --accent: #2563EB;
    --accent-hover: #1d4ed8;
    --accent-light: #60a5fa;
    --accent-soft: rgba(37, 99, 235, 0.15);
    --accent-glow: rgba(37, 99, 235, 0.25);
    --purple: #7C3AED;
    --purple-soft: rgba(124, 58, 237, 0.15);
    --green: #34D399;
    --green-soft: rgba(52, 211, 153, 0.15);
    --orange: #FB923C;
    --orange-soft: rgba(251, 146, 60, 0.15);
    --red: #F87171;
    --red-soft: rgba(248, 113, 113, 0.12);
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --shadow-xs: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 24px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 12px 48px rgba(0, 0, 0, 0.15);
    --shadow-accent: 0 4px 16px rgba(37, 99, 235, 0.3);
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --glass-bg: rgba(255, 255, 255, 0.12);
    --glass-border: rgba(255, 255, 255, 0.18);
    --glass-blur: blur(16px);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
html, body, #app {
    height: 100%;
    background: var(--bg-gradient);
    background-attachment: fixed;
    color: var(--text);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    max-width: 100vw;
}
body {
    background: var(--bg-gradient);
    background-attachment: fixed;
}
.app-shell { min-height: 100vh; background: transparent; }

/* ═══════════════════════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════════════════════ */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); filter: blur(4px); }
    to { opacity: 1; transform: translateY(0); filter: blur(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.95) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes slideInRight {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes glowPulse {
    0%, 100% { box-shadow: 0 0 20px rgba(37, 99, 235, 0.2); }
    50% { box-shadow: 0 0 40px rgba(37, 99, 235, 0.4), 0 0 80px rgba(37, 99, 235, 0.15); }
}
@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}
@keyframes borderGlow {
    0%, 100% { border-color: rgba(37, 99, 235, 0.3); }
    50% { border-color: rgba(96, 165, 250, 0.6); }
}
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
@keyframes pulseRing {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.5); opacity: 0; }
}
@keyframes dockBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* ═══════════════════════════════════════════════════════════
   HEADER — Floating pill navbar
   ═══════════════════════════════════════════════════════════ */
.app-header {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 50;
    max-width: 700px;
    width: calc(100% - 32px);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 100px;
    padding: 10px 12px 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.08),
        0 1px 4px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    transition: all 0.3s var(--ease);
}
.logo { display: flex; align-items: center; gap: 9px; cursor: pointer; }
.logo-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: linear-gradient(135deg, #2563EB, #7C3AED);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 800;
    color: #fff;
    box-shadow: 0 2px 10px rgba(37, 99, 235, 0.3);
}
.logo-icon.small { width: 24px; height: 24px; font-size: 11px; border-radius: 6px; }
.logo-text { font-size: 15px; font-weight: 700; letter-spacing: -0.3px; color: #1a1a2e; }
.accent { color: var(--accent); }
.header-cta {
    padding: 8px 20px;
    border-radius: 100px;
    background: linear-gradient(135deg, #2563EB, #7C3AED);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s var(--ease);
    box-shadow: 0 2px 10px rgba(37, 99, 235, 0.25);
    border: none;
}
.header-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.4);
}
.header-right { display: flex; align-items: center; gap: 10px; }
.header-nav { display: flex; gap: 24px; margin-left: 8px; }
.nav-link {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-dark-muted);
    text-decoration: none;
    transition: color 0.2s var(--ease);
}
.nav-link:hover { color: var(--text-dark); }
.gen-count {
    font-size: 12px;
    background: rgba(52, 211, 153, 0.12);
    color: #059669;
    padding: 4px 12px;
    border-radius: 100px;
    font-weight: 600;
    border: 1px solid rgba(52, 211, 153, 0.2);
}
.plan-badge {
    padding: 5px 12px;
    border-radius: 8px;
    background: rgba(37, 99, 235, 0.08);
    border: 1px solid rgba(37, 99, 235, 0.15);
    font-size: 12px;
    font-weight: 500;
    color: var(--text-dark-muted);
}

.landing { max-width: 100%; overflow-x: hidden; }

/* ═══════════════════════════════════════════════════════════
   HERO — White text on gradient
   ═══════════════════════════════════════════════════════════ */
.hero-section {
    text-align: center;
    padding: 120px 24px 56px;
    max-width: 720px;
    margin: 0 auto;
    animation: fadeUp 0.6s var(--ease) both;
}
.hero-badge {
    display: inline-block;
    padding: 7px 18px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 24px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(12px);
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.1);
    animation: fadeInScale 0.5s var(--ease) 0.1s both;
}
.hero-h1 {
    font-size: clamp(28px, 5vw, 52px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1.5px;
    margin-bottom: 16px;
    color: #fff;
    animation: fadeUp 0.6s var(--ease) 0.2s both;
}
.hero-highlight {
    background: linear-gradient(135deg, #fff, #c4b5fd, #93c5fd, #fff);
    background-size: 300% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 4s linear infinite;
}
.hero-sub {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 32px;
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeUp 0.6s var(--ease) 0.35s both;
}
.hero-proof {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    margin-bottom: 0;
    animation: fadeUp 0.6s var(--ease) 0.5s both;
}
.proof-price {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    padding: 8px 18px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(12px);
}
.proof-warning {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.7);
    padding: 8px 18px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.hero-micro { font-size: 13px; color: rgba(255, 255, 255, 0.5); margin-top: 16px; }
.hero-micro strong { color: rgba(255, 255, 255, 0.8); }

/* Hero Benefits */
.hero-benefits {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 32px;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeUp 0.6s var(--ease) 0.7s both;
}
.hero-benefit {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 16px 8px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}
.hero-benefit-icon { font-size: 24px; margin-bottom: 2px; }
.hero-benefit strong { font-size: 14px; color: #fff; }
.hero-benefit span:last-child { font-size: 12px; color: rgba(255, 255, 255, 0.5); }
.hide-mobile { }

/* CTA Button */
.cta-primary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 14px 36px;
    border-radius: 100px;
    background: #fff;
    color: #1a1a2e;
    font-size: 16px;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(255, 255, 255, 0.2);
    transition: all 0.35s var(--ease);
    letter-spacing: -0.2px;
    border: none;
    position: relative;
    overflow: hidden;
    animation: fadeInScale 0.5s var(--ease) 0.6s both;
}
.cta-primary::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 30%, rgba(37, 99, 235, 0.08) 50%, transparent 70%);
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
    pointer-events: none;
}
.cta-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    background: #fff;
}
.cta-primary:active {
    transform: translateY(0) scale(0.98);
    transition-duration: 0.1s;
}
.cta-primary.small { padding: 12px 28px; font-size: 14px; }

/* ═══════════════════════════════════════════════════════════
   CONTRACT DOCK — macOS-style dock bar
   ═══════════════════════════════════════════════════════════ */
.dock-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    padding: 20px 24px 72px;
    animation: fadeUp 0.6s var(--ease) 0.7s both;
    position: relative;
}
.dock-label {
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.55);
    white-space: nowrap;
    font-style: italic;
    letter-spacing: 0.2px;
}
.dock-label.left {
    animation: slideInLeft 0.5s var(--ease) 0.9s both;
}
.dock-label.right {
    animation: slideInRight 0.5s var(--ease) 0.9s both;
}
.contract-dock {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 24px;
    background: rgba(15, 15, 40, 0.45);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow:
        0 8px 40px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
    overflow: visible;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.contract-dock::-webkit-scrollbar { display: none; }
.dock-icon {
    width: 52px;
    height: 52px;
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    flex-shrink: 0;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}
.dock-emoji {
    font-size: 24px;
    line-height: 1;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.15));
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.dock-img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.15));
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.dock-icon:hover {
    transform: scale(1.35) translateY(-14px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25), 0 0 20px rgba(255,255,255,0.05);
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.12);
    z-index: 10;
}
.dock-icon:hover .dock-emoji {
    transform: scale(1.08);
}
.dock-icon:active {
    transform: scale(1.2) translateY(-8px);
    transition-duration: 0.1s;
}
.dock-tooltip {
    position: absolute;
    bottom: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%) scale(0.85) translateY(4px);
    background: rgba(10, 10, 30, 0.85);
    color: rgba(255, 255, 255, 0.95);
    padding: 5px 11px;
    border-radius: 7px;
    font-size: 11.5px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.2s var(--ease);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    letter-spacing: 0.1px;
}
.dock-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: rgba(15, 12, 41, 0.9);
}
.dock-icon:hover .dock-tooltip {
    opacity: 1;
    transform: translateX(-50%) scale(1);
}

/* Neighbors scale slightly for macOS dock magnification */
.dock-icon:hover + .dock-icon,
.dock-icon:has(+ .dock-icon:hover) {
    transform: scale(1.15) translateY(-6px);
}
.dock-icon:hover + .dock-icon + .dock-icon,
.dock-icon:has(+ .dock-icon + .dock-icon:hover) {
    transform: scale(1.05) translateY(-2px);
}

/* ═══════════════════════════════════════════════════════════
   VALUE PROPS — On gradient transition area
   ═══════════════════════════════════════════════════════════ */
.value-section {
    max-width: 880px;
    margin: 0 auto;
    padding: 64px 24px;
}
.section-title {
    font-size: 28px;
    font-weight: 800;
    text-align: center;
    letter-spacing: -0.6px;
    margin-bottom: 8px;
    color: #fff;
}
.section-sub {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.55);
    text-align: center;
    margin-bottom: 40px;
    line-height: 1.5;
}
.value-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.value-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: all 0.35s var(--ease);
    animation: fadeUp 0.5s var(--ease) both;
}
.value-card:nth-child(1) { animation-delay: 0.1s; }
.value-card:nth-child(2) { animation-delay: 0.2s; }
.value-card:nth-child(3) { animation-delay: 0.3s; }
.value-card:nth-child(4) { animation-delay: 0.4s; }
.value-card:hover {
    transform: translateY(-4px) scale(1.01);
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.12);
}
.value-icon { font-size: 28px; margin-bottom: 12px; display: inline-block; transition: transform 0.35s var(--ease); }
.value-card:hover .value-icon { transform: scale(1.15) translateY(-2px); }
.value-card h3 { font-size: 15px; font-weight: 700; margin-bottom: 6px; letter-spacing: -0.2px; color: #fff; }
.value-card p { font-size: 13px; color: rgba(255, 255, 255, 0.55); line-height: 1.55; }

/* ═══════════════════════════════════════════════════════════
   CONTRACT PREVIEW
   ═══════════════════════════════════════════════════════════ */
/* ═══════════════════════════════════════════════════════════
   MAC WINDOW PREVIEW
   ═══════════════════════════════════════════════════════════ */
.mac-preview-section {
    max-width: 820px;
    margin: 0 auto;
    padding: 64px 24px;
    text-align: center;
}
.mac-cta { margin-top: 32px; }
.mac-window {
    border-radius: 14px;
    overflow: hidden;
    background: #1c1c2e;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.35),
        0 0 0 1px rgba(255, 255, 255, 0.08),
        0 0 80px rgba(37, 99, 235, 0.08);
    margin: 32px 0 24px;
    text-align: left;
    animation: fadeInScale 0.6s var(--ease) both;
}
.mac-titlebar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #252538;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.mac-dots {
    display: flex;
    gap: 7px;
}
.mac-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #3a3a4a;
}
.mac-dot.red { background: #ff5f57; }
.mac-dot.yellow { background: #febc2e; }
.mac-dot.green { background: #28c840; }
.mac-title {
    font-size: 12px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.45);
    letter-spacing: 0.2px;
}
.mac-content {
    display: flex;
    min-height: 320px;
}
.mac-sidebar {
    width: 160px;
    background: rgba(255, 255, 255, 0.03);
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    padding: 12px 8px;
    flex-shrink: 0;
}
.mac-sidebar-item {
    padding: 7px 10px;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    margin-bottom: 2px;
    transition: all 0.2s var(--ease);
    user-select: none;
}
.mac-sidebar-item:hover {
    color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.04);
}
.mac-sidebar-item.active {
    background: rgba(37, 99, 235, 0.2);
    color: #7dd3fc;
    box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.15);
}
.mac-editor {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.mac-typing-area {
    flex: 1;
    padding: 24px 28px;
    font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
}
.typing-line {
    line-height: 1.7;
    animation: fadeIn 0.3s ease both;
}
.typing-line.title {
    font-size: 14px;
    font-weight: 700;
    color: #e2e8f0;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 4px;
}
.typing-line.subtitle {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.3);
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}
.typing-line.clause {
    font-size: 11.5px;
    font-weight: 700;
    color: #7dd3fc;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 4px;
}
.typing-line.body {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.65);
}
.typing-line.gap {
    height: 14px;
}
.typing-line.dim { opacity: 0.4; }
.typing-line.dim2 { opacity: 0.2; }
.typing-line.highlight-field { color: #a5b4fc; }
.typing-line.highlight-value { color: #34d399; font-weight: 600; font-size: 15px; }
.typing-line.highlight-warning { color: #fbbf24; }

/* Staggered line entry */
.typing-line:nth-child(1) { animation-delay: 0.1s; }
.typing-line:nth-child(2) { animation-delay: 0.2s; }
.typing-line:nth-child(3) { animation-delay: 0.3s; }
.typing-line:nth-child(4) { animation-delay: 0.4s; }
.typing-line:nth-child(5) { animation-delay: 0.55s; }
.typing-line:nth-child(6) { animation-delay: 0.7s; }
.typing-line:nth-child(7) { animation-delay: 0.85s; }
.typing-line:nth-child(8) { animation-delay: 1.0s; }
.typing-line:nth-child(9) { animation-delay: 1.2s; }
.typing-line:nth-child(10) { animation-delay: 1.4s; }
.typing-line:nth-child(11) { animation-delay: 1.6s; }
.typing-line:nth-child(12) { animation-delay: 1.75s; }
.typing-line:nth-child(13) { animation-delay: 1.9s; }

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}
.typing-cursor {
    color: #7dd3fc;
    font-weight: 400;
    animation: blink 1s step-end infinite;
    margin-left: 1px;
}

.mac-statusbar {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.03);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 11px;
    color: rgba(255, 255, 255, 0.35);
    font-weight: 500;
}
.status-badge {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
    padding: 2px 8px;
    border-radius: 100px;
    font-size: 10px;
    font-weight: 600;
}

/* Keep old preview classes for form page */
.preview-section { max-width: 680px; margin: 0 auto; padding: 64px 24px; text-align: center; }
.preview-doc { background: #fff; border-radius: var(--radius-xl); padding: 36px 32px; margin: 28px 0; text-align: left; box-shadow: 0 4px 24px rgba(0,0,0,0.08); }
.doc-blur { filter: blur(3px); user-select: none; opacity: 0.5; }

/* ═══════════════════════════════════════════════════════════
   PREVIEW EXPERIENCE (redesigned)
   ═══════════════════════════════════════════════════════════ */
.preview-experience-section {
    max-width: 820px;
    margin: 0 auto;
    padding: 64px 24px;
    text-align: center;
}
.preview-experience {
    margin-top: 32px;
    position: relative;
}
.exp-window {
    border-radius: 16px;
    overflow: hidden;
    background: rgba(20, 20, 40, 0.8);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow:
        0 24px 80px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.06),
        0 0 120px rgba(37, 99, 235, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    text-align: left;
    animation: fadeInScale 0.6s var(--ease) both;
}
.exp-titlebar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.exp-dots { display: flex; gap: 7px; }
.exp-dot { width: 12px; height: 12px; border-radius: 50%; }
.exp-title {
    font-size: 12px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 0.2px;
}
.exp-body {
    display: flex;
    min-height: 280px;
    position: relative;
}
.exp-sidebar {
    width: 160px;
    background: rgba(255, 255, 255, 0.02);
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    padding: 12px 8px;
    flex-shrink: 0;
}
.exp-editor {
    flex: 1;
    position: relative;
    overflow: hidden;
}
.exp-typing {
    padding: 20px 24px;
    font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
}
.exp-fade {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to bottom, transparent, rgba(20, 20, 40, 0.95));
    pointer-events: none;
}
.exp-proof {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.02);
    flex-wrap: wrap;
}
.exp-chip {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    padding: 4px 12px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.exp-chip.accent {
    background: rgba(34, 197, 94, 0.12);
    color: #4ade80;
    border-color: rgba(34, 197, 94, 0.2);
}
.exp-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: -1px;
    padding: 16px 40px;
    border-radius: 0 0 16px 16px;
    background: linear-gradient(135deg, #2563EB, #7C3AED);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    width: 100%;
    justify-content: center;
    box-shadow: 0 8px 32px rgba(37, 99, 235, 0.3);
    transition: all 0.3s var(--ease);
    letter-spacing: -0.2px;
}
.exp-cta:hover {
    box-shadow: 0 12px 40px rgba(37, 99, 235, 0.5);
    transform: translateY(-2px);
}

/* Highlight animation on clauses */
.typing-line.clause-title {
    position: relative;
}
.typing-line.clause-title::before {
    content: '';
    position: absolute;
    left: -12px;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 70%;
    background: #2563EB;
    border-radius: 3px;
    box-shadow: 0 0 8px rgba(37, 99, 235, 0.5);
    animation: glowPulse 2.5s ease-in-out infinite;
}

/* ═══════════════════════════════════════════════════════════
   DOCUMENT SELECTION
   ═══════════════════════════════════════════════════════════ */
.docs-section {
    max-width: 900px;
    margin: 0 auto;
    padding: 72px 24px;
}
.docs-section .section-title { color: #fff; }
.docs-section .section-sub { color: rgba(255, 255, 255, 0.6); }

/* Category Tabs */
.category-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 32px;
    overflow-x: auto;
    padding: 6px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px);
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}
.category-tabs::-webkit-scrollbar { display: none; }
.category-tab {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: none;
    border-radius: 100px;
    background: transparent;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.55);
    transition: all 0.25s var(--ease);
    white-space: nowrap;
    font-family: inherit;
}
.category-tab:hover {
    color: rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.06);
}
.category-tab:active { transform: scale(0.95); transition-duration: 0.1s; }
.category-tab.active {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(8px);
}
.category-tab-icon { font-size: 14px; line-height: 1; }
.category-tab-label { line-height: 1; }
.category-badge {
    font-size: 10px;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    padding: 1px 6px;
    border-radius: 100px;
    line-height: 1.4;
}
.category-tab.active .category-badge {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

/* Contract Cards Grid */
.docs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    animation: fadeIn 0.3s ease;
}
.doc-card {
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: var(--radius-lg);
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    animation: fadeInScale 0.4s var(--ease) both;
}
.doc-card:nth-child(1) { animation-delay: 0.05s; }
.doc-card:nth-child(2) { animation-delay: 0.1s; }
.doc-card:nth-child(3) { animation-delay: 0.15s; }
.doc-card:nth-child(4) { animation-delay: 0.2s; }
.doc-card:nth-child(5) { animation-delay: 0.25s; }
.doc-card:nth-child(6) { animation-delay: 0.3s; }
.doc-card:nth-child(n+7) { animation-delay: 0.35s; }
.doc-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: var(--card-accent, #6366F1);
    opacity: 0;
    transition: opacity 0.3s var(--ease);
}
.doc-card {
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.doc-card:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.08) translateY(-20px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.12), 0 0 30px rgba(255, 255, 255, 0.08);
    z-index: 5;
}
.doc-card:hover::before { opacity: 1; }
.doc-card:active { transform: scale(1.03) translateY(-8px); transition-duration: 0.1s; }

/* Dock magnification: neighbors lift slightly */
.docs-grid .doc-card:hover + .doc-card {
    transform: scale(1.03) translateY(-8px);
}
.doc-card-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 11px;
    font-size: 20px;
    flex-shrink: 0;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.doc-card:hover .doc-card-icon { transform: scale(1.1); }
.doc-card-img { width: 32px; height: 32px; object-fit: contain; }
.doc-card-body { flex: 1; }
.doc-card-body h3 { font-size: 14.5px; font-weight: 700; margin-bottom: 4px; color: #fff; }
.doc-card-body p { font-size: 12.5px; color: rgba(255, 255, 255, 0.5); line-height: 1.45; }
.doc-card-meta { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.doc-card-category {
    font-size: 10px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.06);
    padding: 2px 8px;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.doc-card-arrow {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.3);
    transition: all 0.25s var(--ease);
}
.doc-card:hover .doc-card-arrow { color: #fff; transform: translateX(4px); }

/* ═══════════════════════════════════════════════════════════
   HOW IT WORKS
   ═══════════════════════════════════════════════════════════ */
.how-section {
    max-width: 880px;
    margin: 0 auto;
    padding: 64px 24px;
}
.how-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.how-step {
    text-align: center;
    padding: 28px 20px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    transition: all 0.35s var(--ease);
    animation: fadeUp 0.5s var(--ease) both;
}
.how-step:nth-child(1) { animation-delay: 0.1s; }
.how-step:nth-child(2) { animation-delay: 0.25s; }
.how-step:nth-child(3) { animation-delay: 0.4s; }
.how-step:hover {
    border-color: rgba(37, 99, 235, 0.15);
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(37, 99, 235, 0.08);
}
.step-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #fff;
    color: #2563EB;
    font-size: 18px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    border: 1px solid rgba(37, 99, 235, 0.12);
    transition: all 0.35s var(--ease);
}
.how-step:hover .step-circle {
    transform: scale(1.1);
    border-color: rgba(37, 99, 235, 0.3);
}
.step-circle.accent {
    background: #fff;
    color: #7C3AED;
    border: none;
    box-shadow: 0 2px 16px rgba(255, 255, 255, 0.2);
}
.how-step h3 { font-size: 15px; font-weight: 700; margin-bottom: 6px; color: #fff; }
.how-step p { font-size: 13px; color: rgba(255, 255, 255, 0.55); line-height: 1.5; }

/* ═══════════════════════════════════════════════════════════
   PRICING
   ═══════════════════════════════════════════════════════════ */
.pricing-section {
    max-width: 880px;
    margin: 0 auto;
    padding: 64px 24px;
}
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    align-items: start;
}
.price-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-xl);
    padding: 28px 24px;
    text-align: center;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.4s var(--ease);
    animation: fadeUp 0.5s var(--ease) both;
}
.price-card:nth-child(1) { animation-delay: 0.1s; }
.price-card:nth-child(2) { animation-delay: 0.2s; }
.price-card:nth-child(3) { animation-delay: 0.3s; }
.price-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.12);
}
.price-card.popular {
    border: 1px solid rgba(99, 102, 241, 0.4);
    background: rgba(99, 102, 241, 0.12);
    box-shadow: 0 4px 30px rgba(99, 102, 241, 0.2);
    transform: scale(1.04);
    animation: fadeUp 0.5s var(--ease) 0.2s both;
}
.price-card.popular:hover {
    transform: scale(1.04) translateY(-5px);
    box-shadow: 0 12px 48px rgba(99, 102, 241, 0.3);
}
.price-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #2563EB, #7C3AED);
    background-size: 200% 200%;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 16px;
    border-radius: 100px;
    white-space: nowrap;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 12px rgba(37, 99, 235, 0.4);
    animation: gradientShift 3s ease infinite;
}
.price-label {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 8px;
    margin-top: 8px;
}
.price-value {
    font-size: 36px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 20px;
    letter-spacing: -1px;
}
.price-features { list-style: none; text-align: left; margin-bottom: 24px; }
.price-features li {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    line-height: 1.4;
}
.price-features li:last-child { border: none; }
.price-btn {
    display: block;
    width: 100%;
    padding: 12px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s var(--ease);
}
.price-btn.outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
}
.price-btn.outline:hover {
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.08);
}
.price-btn.solid {
    background: linear-gradient(135deg, #2563EB, #7C3AED);
    border: none;
    color: #fff;
    box-shadow: var(--shadow-accent);
}
.price-btn.solid:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(37, 99, 235, 0.4);
}

/* ═══════════════════════════════════════════════════════════
   OBJECTION BREAKER
   ═══════════════════════════════════════════════════════════ */
.objection-section { max-width: 680px; margin: 0 auto; padding: 40px 24px; }
.objection-card {
    display: flex;
    gap: 14px;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 20px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
}
.objection-card strong { color: rgba(255, 255, 255, 0.9); }
.objection-icon { font-size: 24px; flex-shrink: 0; }

/* ═══════════════════════════════════════════════════════════
   FINAL CTA
   ═══════════════════════════════════════════════════════════ */
.final-cta {
    text-align: center;
    padding: 96px 24px;
    position: relative;
}
.final-cta h2 {
    font-size: clamp(26px, 4vw, 40px);
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 14px;
    line-height: 1.15;
    color: #fff;
    position: relative;
}
.final-cta .hero-highlight {
    background: linear-gradient(135deg, #818CF8, #C084FC, #818CF8);
    background-size: 300% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 4s linear infinite;
}
.final-cta p { font-size: 16px; color: rgba(255, 255, 255, 0.55); margin-bottom: 32px; position: relative; }
.final-cta .cta-primary {
    font-size: 17px;
    padding: 16px 44px;
    background: linear-gradient(135deg, #4F46E5, #7C3AED);
    color: #fff;
    position: relative;
    box-shadow: 0 4px 24px rgba(79, 70, 229, 0.4), 0 0 60px rgba(79, 70, 229, 0.12);
}
.final-cta .cta-primary:hover {
    box-shadow: 0 8px 40px rgba(79, 70, 229, 0.5), 0 0 100px rgba(79, 70, 229, 0.15);
}

/* ═══════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════ */
.landing-footer {
    max-width: 880px;
    margin: 0 auto;
    text-align: center;
    padding: 32px 24px 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.7);
}
.landing-footer p { font-size: 12px; color: rgba(255, 255, 255, 0.35); }

/* ═══════════════════════════════════════════════════════════
   FORM PAGE
   ═══════════════════════════════════════════════════════════ */
/* Override gradient bg for form pages */
.form-container {
    max-width: 100%;
    margin: 0;
    padding: 0 32px 80px;
    background: #f8f9fb;
    position: relative;
    z-index: 2;
    min-height: 100vh;
}

/* Split layout */
.contract-split {
    display: flex;
    gap: 32px;
    align-items: flex-start;
}
.split-form {
    flex: 1;
    min-width: 0;
}
.split-preview {
    flex: 1;
    position: sticky;
    top: 80px;
    min-width: 0;
}
.live-preview-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}
.live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22c55e;
    animation: glowPulse 2s ease-in-out infinite;
    box-shadow: 0 0 6px rgba(34, 197, 94, 0.4);
}
.live-preview-wrapper {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    background: #fff;
}
.live-preview-frame {
    width: 100%;
    height: 85vh;
    border: none;
    display: block;
    pointer-events: none;
}
.preview-watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-35deg);
    font-size: 64px;
    font-weight: 900;
    color: rgba(0, 0, 0, 0.06);
    letter-spacing: 12px;
    pointer-events: none;
    user-select: none;
    white-space: nowrap;
    text-transform: uppercase;
}
.form-content, .preview-content { padding-top: 24px; animation: fadeIn 0.3s var(--ease) both; }
.btn-back {
    background: none;
    border: none;
    color: #64748b;
    cursor: pointer;
    font-size: 13px;
    font-family: inherit;
    font-weight: 500;
    padding: 4px 0;
    margin-bottom: 16px;
    margin-top: 24px;
    transition: color 0.2s;
}
.btn-back:hover { color: #1e293b; }
.form-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e2e8f0;
}
.form-icon {
    font-size: 26px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eef2ff;
    border-radius: 13px;
    flex-shrink: 0;
    border: 1px solid #e0e7ff;
}
.form-title { font-size: 20px; font-weight: 800; letter-spacing: -0.5px; color: #1e293b; }
.form-desc { font-size: 13px; color: #64748b; margin-top: 2px; }
.progress-track {
    background: #e2e8f0;
    border-radius: 100px;
    height: 4px;
    margin-bottom: 28px;
    overflow: hidden;
}
.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #2563EB, #7C3AED);
    border-radius: 100px;
    transition: width 0.5s var(--ease);
    box-shadow: 0 0 10px rgba(37, 99, 235, 0.3);
}

/* Field groups */
.form-group-block { margin-bottom: 28px; animation: fadeUp 0.4s var(--ease) both; }
.group-header { margin-bottom: 10px; padding-left: 4px; }
.group-title { font-size: 14px; font-weight: 700; color: #1e293b; }
.group-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-lg);
    padding: 24px 24px 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.group-card:focus-within {
    border-color: #93b4f8;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 0 0 3px rgba(37, 99, 235, 0.1);
}
.fields-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 18px; }
.field-group { display: flex; flex-direction: column; }
.field-group.full-width { grid-column: 1 / -1; }
.field-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    margin-bottom: 6px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.field-input {
    width: 100%;
    padding: 11px 14px;
    border-radius: 9px;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #1e293b;
    font-size: 14px;
    font-family: inherit;
    font-weight: 500;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.field-input::placeholder { color: #94a3b8; font-weight: 400; }
.field-input:hover {
    border-color: #cbd5e1;
    background: #fafbfc;
}
.field-input:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
    background: #fff;
}
.field-textarea { resize: vertical; min-height: 80px; line-height: 1.55; }

/* Bottom bar */
.form-bottom-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    padding: 18px 24px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-lg);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.field-count { font-size: 13px; color: #64748b; font-weight: 500; }
.btn-generate {
    padding: 11px 28px;
    border-radius: 10px;
    border: none;
    background: linear-gradient(135deg, #2563EB, #7C3AED);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    box-shadow: var(--shadow-accent);
    transition: all 0.3s var(--ease);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.btn-generate:disabled {
    background: #e2e8f0;
    color: #94a3b8;
    cursor: not-allowed;
    box-shadow: none;
    border: 1px solid #e2e8f0;
}
.btn-generate:not(:disabled):hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(37, 99, 235, 0.4);
}

/* Preview */
.preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 14px;
}
.preview-title { font-size: 19px; font-weight: 800; letter-spacing: -0.4px; color: #1e293b; }
.preview-desc { font-size: 13px; color: #64748b; margin-top: 2px; }
.preview-actions { display: flex; gap: 8px; }
.btn-edit {
    padding: 9px 18px;
    border-radius: 9px;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #334155;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-edit:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}
.btn-print {
    padding: 9px 18px;
    border-radius: 9px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(135deg, #2563EB, #7C3AED);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    box-shadow: var(--shadow-accent);
    transition: all 0.3s var(--ease);
}
.btn-print:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(37, 99, 235, 0.4);
}
.preview-frame-wrapper {
    background: #fff;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.preview-frame { width: 100%; height: 800px; border: none; }
.preview-tip {
    text-align: center;
    margin-top: 14px;
    padding: 12px 18px;
    border-radius: var(--radius);
    background: #f0f4ff;
    font-size: 13px;
    color: #475569;
    border: 1px solid #e2e8f0;
}
.preview-tip strong { color: #1e293b; }
.not-found { padding: 60px 0; text-align: center; color: rgba(255, 255, 255, 0.6); }
.not-found a { color: var(--accent-light); text-decoration: none; font-weight: 600; }

/* ═══════════════════════════════════════════════════════════
   AUTH + PAYWALL
   ═══════════════════════════════════════════════════════════ */
.auth-wrapper {
    min-height: 100vh;
    background: #f8f9fb;
}
.auth-page {
    max-width: 360px;
    margin: 0 auto;
    padding: 20px;
    animation: fadeUp 0.5s var(--ease) both;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.auth-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 32px 28px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.03);
}
.auth-title {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 6px;
    color: #1e293b;
}
.auth-desc {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 28px;
    line-height: 1.5;
}
.auth-field { margin-bottom: 18px; }
.auth-field label {
    font-size: 12px;
    font-weight: 700;
    color: #475569;
    display: block;
    margin-bottom: 6px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}
.auth-input {
    width: 100%;
    padding: 12px 16px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #1e293b;
    font-size: 14px;
    font-family: inherit;
    font-weight: 500;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.auth-input::placeholder { color: #94a3b8; }
.auth-input:hover { border-color: #cbd5e1; background: #fff; }
.auth-input:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
    background: #fff;
}
.auth-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 20px;
}
.auth-success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #16a34a;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 20px;
}
.auth-form { display: flex; flex-direction: column; }
.btn-auth {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: none;
    background: #2563EB;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(37, 99, 235, 0.25);
    transition: all 0.3s var(--ease);
    margin-top: 6px;
    position: relative;
    overflow: hidden;
}
.btn-auth::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 30%, rgba(255,255,255,0.12) 50%, transparent 70%);
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
    pointer-events: none;
}
.btn-auth:hover {
    transform: translateY(-1px);
    background: #1d4ed8;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.35);
}
.btn-auth:active {
    transform: translateY(0);
    transition-duration: 0.1s;
}
.btn-auth:disabled {
    background: #e2e8f0;
    color: #94a3b8;
    cursor: wait;
    box-shadow: none;
}
.btn-auth:disabled::after { display: none; }
.auth-toggle { text-align: center; margin-top: 24px; font-size: 13px; color: #64748b; }
.auth-toggle a { color: #2563EB; font-weight: 700; text-decoration: none; cursor: pointer; }
.auth-toggle a:hover { text-decoration: underline; }
.auth-info { margin-top: 24px; display: flex; flex-direction: column; gap: 10px; }
.auth-info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #475569;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px 16px;
}

/* Paywall */
.paywall-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    animation: fadeIn 0.2s var(--ease) both;
}
.paywall-card {
    background: rgba(15, 12, 41, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-xl);
    padding: 36px 32px;
    max-width: 420px;
    width: 90%;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4);
    text-align: center;
    backdrop-filter: blur(20px);
}
.paywall-card.wide { max-width: 520px; }
.paywall-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    font-size: 20px;
    cursor: pointer;
    transition: color 0.2s;
}
.paywall-close:hover { color: #fff; }
.paywall-title { font-size: 20px; font-weight: 800; margin-bottom: 8px; color: #fff; }
.paywall-desc { font-size: 14px; color: rgba(255, 255, 255, 0.6); margin-bottom: 24px; line-height: 1.5; }

/* Plan selection in paywall */
.paywall-plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 20px; }
.pw-plan {
    background: rgba(255, 255, 255, 0.06);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    padding: 16px 12px;
    cursor: pointer;
    transition: all 0.3s var(--ease);
    position: relative;
    text-align: center;
}
.pw-plan:hover { border-color: rgba(96, 165, 250, 0.3); }
.pw-plan.selected {
    border-color: var(--accent);
    background: rgba(37, 99, 235, 0.12);
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.2);
}
.pw-plan.popular { border-color: rgba(96, 165, 250, 0.25); }
.pw-plan-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #2563EB, #7C3AED);
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    padding: 2px 10px;
    border-radius: 100px;
    white-space: nowrap;
    letter-spacing: 0.5px;
}
.pw-plan-name { font-size: 12px; font-weight: 600; color: rgba(255, 255, 255, 0.6); margin-bottom: 4px; margin-top: 4px; }
.pw-plan-price { font-size: 22px; font-weight: 800; color: #fff; margin-bottom: 2px; }
.pw-plan-desc { font-size: 11px; color: rgba(255, 255, 255, 0.4); }
.pw-plan-credits { font-size: 12px; color: rgba(255, 255, 255, 0.6); font-weight: 500; }

.paywall-price {
    font-size: 36px;
    font-weight: 800;
    background: linear-gradient(135deg, #60a5fa, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 4px;
}
.paywall-price-label { font-size: 13px; color: rgba(255, 255, 255, 0.6); margin-bottom: 24px; }
.pw-buy,
.paywall-btn {
    width: 100%;
    padding: 13px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(135deg, #2563EB, #7C3AED);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    box-shadow: var(--shadow-accent);
    transition: all 0.3s var(--ease);
    margin-bottom: 10px;
}
.pw-buy:hover,
.paywall-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(37, 99, 235, 0.4);
}
.paywall-cancel {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
    font-family: inherit;
    cursor: pointer;
    padding: 8px;
    transition: color 0.2s;
}
.paywall-cancel:hover { color: #fff; }

/* ═══════════════════════════════════════════════════════════
   UTILITY
   ═══════════════════════════════════════════════════════════ */
.credit-info {
    font-size: 13px;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 6px;
}
.back-btn {
    background: none;
    border: none;
    color: #64748b;
    cursor: pointer;
    font-size: 13px;
    font-family: inherit;
    font-weight: 500;
    transition: color 0.2s;
}
.back-btn:hover { color: #1e293b; }
.back-btn:hover { color: #fff; }
.user-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    /* Layout */
    .value-grid { grid-template-columns: 1fr; }
    .how-steps { grid-template-columns: 1fr; }
    .pricing-grid { grid-template-columns: 1fr; max-width: 320px; margin: 0 auto; }
    .price-card.popular { transform: none; }
    .price-card.popular:hover { transform: none; }
    .hero-proof { flex-direction: column; align-items: center; }
    .docs-grid { grid-template-columns: 1fr; gap: 12px; }
    .category-tabs { overflow-x: auto; width: 100%; border-radius: 14px; -webkit-overflow-scrolling: touch; }

    /* Form page */
    .split-preview { display: none; }
    .contract-split { flex-direction: column; gap: 0; }
    .form-container { max-width: 100%; padding: 0 20px 60px; }
    .form-header { flex-direction: column; align-items: flex-start; gap: 12px; }
    .form-bottom-actions { flex-direction: column; gap: 12px; padding: 16px; }
    .fields-grid { grid-template-columns: 1fr; gap: 14px; }
    .group-card { padding: 20px 16px 16px; }

    /* Paywall */
    .paywall-overlay { padding: 16px; }
    .paywall-plans { grid-template-columns: 1fr; max-width: 100%; margin: 0 auto 20px; }
    .paywall-card.wide { max-width: 100%; }

    /* Mac preview */
    .mac-sidebar { display: none; }
    .mac-typing-area { padding: 14px 12px; overflow-wrap: break-word; word-break: break-word; }
    .mac-statusbar { flex-wrap: wrap; gap: 8px; font-size: 11px; }
    .typing-line { white-space: normal; word-break: break-word; }

    /* Dock */
    .dock-section { flex-direction: column; gap: 12px; padding: 16px 16px 40px; }
    .dock-label { display: none; }
    .contract-dock { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }

    /* Header - compact on mobile */
    .app-header { max-width: calc(100% - 32px); padding: 6px 10px 6px 14px; }
    .logo-icon { width: 28px; height: 28px; font-size: 13px; border-radius: 7px; }
    .logo-text { font-size: 14px; }
    .header-cta { padding: 7px 16px; font-size: 13px; }
    .header-right { overflow: hidden; }
    .plan-badge { display: none; }

    /* Hide dock on mobile */
    .hide-mobile { display: none !important; }

    /* Hero benefits */
    .hero-benefits { gap: 10px; margin-top: 28px; }

    /* Disable hover effects on touch */
    .doc-card:hover { transform: none !important; box-shadow: none; }
    .doc-card:active { transform: scale(0.97) !important; }
    .doc-card:hover + .doc-card { transform: none !important; }
    .price-card:hover { transform: none; }

    /* Hero */
    .hero-section { padding: 100px 24px 32px; }
    .hero-h1 { font-size: 26px; line-height: 1.2; letter-spacing: -0.8px; }
    .hero-sub { font-size: 14px; line-height: 1.6; margin-bottom: 24px; }
    .hero-badge { margin-bottom: 16px; }
    .cta-primary { padding: 14px 32px; font-size: 15px; }
    .mac-cta { margin-top: 28px; }
    .mac-preview-section { padding: 40px 16px; }
    .preview-experience-section { padding: 40px 16px; }
    .exp-sidebar { display: none; }
    .exp-typing { padding: 16px; font-size: 12px; }
    .exp-proof { gap: 6px; padding: 10px 12px; }
    .exp-chip { font-size: 11px; padding: 3px 10px; }
    .exp-cta { font-size: 14px; padding: 14px 24px; }
    .exp-window { border-radius: 14px; }
    .exp-cta { border-radius: 0 0 14px 14px; }
    .dock-section { padding: 12px 16px 32px; }

    /* Preview */
    .preview-frame { height: 500px; }
    .preview-section { padding: 40px 16px; }

    /* Auth */
    .auth-page { padding-top: 80px; margin-top: 0; min-height: auto; }
    .auth-card, .paywall-card { padding: 28px 20px; }
}

@media (max-width: 480px) {
    /* Header */
    .app-header { top: 10px; max-width: calc(100% - 24px); }
    .header-cta { padding: 6px 12px; font-size: 11px; }
    .logo-text { font-size: 13px; }
    .logo-icon { width: 26px; height: 26px; font-size: 12px; }

    /* Hero */
    .hero-section { padding: 76px 16px 24px; }
    .hero-h1 { font-size: 22px; }
    .hero-sub { font-size: 13px; margin-bottom: 20px; }
    .hero-badge { font-size: 11px; padding: 5px 12px; margin-bottom: 14px; }
    .hero-micro { font-size: 11px; }
    .cta-primary { padding: 12px 24px; font-size: 14px; }
    .hero-benefits { gap: 8px; margin-top: 24px; }
    .hero-benefit { padding: 12px 6px; }
    .hero-benefit-icon { font-size: 20px; }
    .hero-benefit strong { font-size: 12px; }
    .hero-benefit span:last-child { font-size: 10px; }

    /* Form */
    .form-container { padding: 0 16px 48px; }
    .form-title { font-size: 18px; }
    .form-icon { width: 42px; height: 42px; font-size: 22px; border-radius: 10px; }
    .btn-back { margin-top: 16px; }
    .progress-track { margin-bottom: 20px; }

    /* Preview */
    .preview-header { flex-direction: column; align-items: flex-start; gap: 10px; }
    .preview-frame { height: 400px; }
    .preview-doc { padding: 20px 14px; }

    /* Sections */
    .final-cta { padding: 40px 16px; }
    .section-title { font-size: 20px; }
    .objection-section { padding: 24px 16px; }

    /* Dock */
    .dock-icon { width: 42px; height: 42px; border-radius: 10px; }
    .dock-emoji { font-size: 18px; }
    .contract-dock { gap: 8px; padding: 10px 14px; }

    /* Cards */
    .gen-count { font-size: 11px; padding: 4px 10px; }
    .mac-window { margin: 0; border-radius: 12px; }
}
