/* ═══════════════════════════════════════════
   TvorbaStranky — Landing & Newweb CSS
   ═══════════════════════════════════════════ */

/* ── Variables ─────────────────────────── */
:root {
    --primary:       #2563eb;
    --primary2:      #1d4ed8;
    --primary3:      #1e40af;
    --primary-soft:  rgba(37, 99, 235, 0.10);
    --primary-softer:rgba(37, 99, 235, 0.06);

    --bg:            #f8fafc;
    --card:          #ffffff;
    --text:          #0f172a;
    --text-secondary:#475569;
    --text-muted:    #94a3b8;
    --border:        #e2e8f0;
    --border-focus:  #2563eb;

    --success:       #10b981;
    --danger:        #ef4444;
    --warning:       #f59e0b;

    --radius-sm:  8px;
    --radius-md:  12px;
    --radius-lg:  16px;
    --radius-xl:  24px;
    --radius-2xl: 32px;

    --shadow-sm:   0 1px 2px rgba(15,23,42,.06);
    --shadow-md:   0 4px 12px rgba(15,23,42,.08);
    --shadow-lg:   0 8px 24px rgba(15,23,42,.10);
    --shadow-xl:   0 16px 48px rgba(15,23,42,.12);
    --shadow-card: 0 1px 3px rgba(15,23,42,.08), 0 4px 16px rgba(15,23,42,.04);
    --shadow-glow: 0 0 0 4px rgba(37,99,235,.15);

    --transition-fast: 150ms ease;
    --transition:      200ms ease;
    --transition-slow: 300ms ease;

    --container: 1180px;
    --nav-h: 64px;
}

/* ── Reset ──────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
    font-family: 'Inter', system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    font-size: 16px;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button, input, textarea, select {
    font-family: inherit;
    font-size: inherit;
}

/* ── Container ──────────────────────────── */
.lp-container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

/* ── Buttons ────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    border: 2px solid transparent;
    transition: background var(--transition), color var(--transition),
                border-color var(--transition), box-shadow var(--transition),
                transform var(--transition-fast);
    white-space: nowrap;
    text-decoration: none;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}
.btn-primary:hover {
    background: var(--primary2);
    border-color: var(--primary2);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border-color: var(--border);
}
.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-softer);
}

.btn-lg {
    padding: 14px 28px;
    font-size: 15px;
    border-radius: var(--radius-lg);
}
.btn-sm {
    padding: 7px 14px;
    font-size: 13px;
    border-radius: var(--radius-sm);
}

.btn-arrow { transition: transform var(--transition); }
.btn:hover .btn-arrow { transform: translateX(4px); }

/* ── Scroll animation ───────────────────── */
[data-animate] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}
[data-animate].visible {
    opacity: 1;
    transform: none;
}
[data-animate][data-delay="1"] { transition-delay: 0.1s; }
[data-animate][data-delay="2"] { transition-delay: 0.2s; }
[data-animate][data-delay="3"] { transition-delay: 0.3s; }
[data-animate][data-delay="4"] { transition-delay: 0.4s; }

/* ═══════════════════════════════════════════
   NAVBAR
   ═══════════════════════════════════════════ */
.lp-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--nav-h);
    z-index: 100;
    background: rgba(248, 250, 252, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: border-color var(--transition), box-shadow var(--transition);
}
.lp-nav.scrolled {
    border-bottom-color: var(--border);
    box-shadow: 0 1px 12px rgba(15,23,42,.06);
}
.lp-nav__inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 32px;
}
.lp-nav__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 16px;
    color: var(--text);
    flex-shrink: 0;
}
.lp-nav__badge {
    width: 32px; height: 32px;
    background: var(--primary);
    color: #fff;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 12px;
    letter-spacing: 0.5px;
}
.lp-nav__links {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
}
.lp-nav__links a {
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color var(--transition), background var(--transition);
}
.lp-nav__links a:hover {
    color: var(--text);
    background: var(--primary-softer);
}
.lp-nav__cta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

/* Mobile nav toggle */
.lp-nav__toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    color: var(--text);
}
.lp-nav__toggle svg { width: 22px; height: 22px; }

/* ═══════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════ */
.lp-hero {
    padding-top: calc(var(--nav-h) + 72px);
    padding-bottom: 48px;
    text-align: center;
    background: linear-gradient(180deg, #f0f6ff 0%, var(--bg) 60%);
    overflow: hidden;
    position: relative;
}
.lp-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 50% at 50% -10%, rgba(37,99,235,.12) 0%, transparent 70%);
    pointer-events: none;
}
.lp-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--primary-soft);
    color: var(--primary);
    border: 1px solid rgba(37,99,235,.2);
    border-radius: 100px;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 24px;
}
.lp-hero__badge::before {
    content: '';
}
.lp-hero__h1 {
    font-size: clamp(36px, 5vw, 60px);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -1.5px;
    margin-bottom: 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}
.gradient-text {
    background: linear-gradient(135deg, #2563eb, #60a5fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.lp-hero__sub {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

/* Browser mockup */
.lp-hero__visual {
    max-width: 680px;
    margin: 0 auto;
}
.browser-mockup {
    background: #fff;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl), 0 0 0 1px var(--border);
    overflow: hidden;
}
.browser-mockup__bar {
    background: #f1f5f9;
    height: 40px;
    display: flex;
    align-items: center;
    padding: 0 16px;
    gap: 6px;
    border-bottom: 1px solid var(--border);
}
.browser-mockup__bar span {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: #e2e8f0;
}
.browser-mockup__bar span:nth-child(1) { background: #fc6058; }
.browser-mockup__bar span:nth-child(2) { background: #fec02f; }
.browser-mockup__bar span:nth-child(3) { background: #2aca3e; }
.browser-mockup__url {
    flex: 1;
    background: #fff;
    border-radius: 6px;
    height: 24px;
    display: flex;
    align-items: center;
    padding: 0 10px;
    font-size: 12px;
    color: var(--text-muted);
    margin-left: 8px;
    border: 1px solid var(--border);
}
.browser-mockup__body {
    height: 320px;
    background: #fff;
    display: flex;
    flex-direction: column;
    gap: 0;
    overflow: hidden;
}
.browser-mockup__nav-strip {
    height: 48px;
    background: var(--text);
    display: flex;
    align-items: center;
    padding: 0 24px;
    gap: 16px;
}
.browser-mockup__nav-strip span {
    height: 8px;
    border-radius: 4px;
    background: rgba(255,255,255,.2);
}
.browser-mockup__nav-strip span:first-child { width: 80px; background: rgba(255,255,255,.6); }
.browser-mockup__nav-strip span:nth-child(2) { width: 48px; }
.browser-mockup__nav-strip span:nth-child(3) { width: 48px; }
.browser-mockup__nav-strip span:last-child { margin-left: auto; width: 60px; background: var(--primary); border-radius: 4px; }

.browser-mockup__hero-strip {
    flex: 1;
    background: linear-gradient(135deg, #eef2ff 0%, #f0f9ff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 10px;
    padding: 20px;
}
.browser-mockup__hero-strip div:first-child {
    height: 14px; width: 200px;
    background: linear-gradient(90deg, #2563eb, #60a5fa);
    border-radius: 6px;
}
.browser-mockup__hero-strip div:nth-child(2) {
    height: 10px; width: 280px;
    background: #e2e8f0;
    border-radius: 4px;
}
.browser-mockup__hero-strip div:nth-child(3) {
    height: 10px; width: 220px;
    background: #e2e8f0;
    border-radius: 4px;
}
.browser-mockup__hero-strip div:last-child {
    height: 32px; width: 100px;
    background: var(--primary);
    border-radius: 8px;
    margin-top: 4px;
}

.browser-mockup__cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 12px 20px;
}
.browser-mockup__card {
    height: 56px;
    background: var(--bg);
    border-radius: 8px;
    border: 1px solid var(--border);
}

/* ═══════════════════════════════════════════
   BUILDER INPUT
   ═══════════════════════════════════════════ */
.lp-builder {
    padding: 64px 0 80px;
}
.lp-builder__card {
    background: var(--card);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-xl), 0 0 0 1px var(--border);
    padding: 32px;
    max-width: 780px;
    margin: 0 auto;
}
.lp-builder__label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 16px;
    color: var(--text);
}
.lp-builder__icon { font-size: 20px; }
.lp-builder__textarea {
    width: 100%;
    min-height: 120px;
    padding: 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    resize: vertical;
    font-size: 15px;
    line-height: 1.6;
    color: var(--text);
    background: #fafbfc;
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
}
.lp-builder__textarea:focus {
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
    background: #fff;
}
.lp-builder__textarea::placeholder { color: var(--text-muted); }
.lp-builder__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 16px;
    flex-wrap: wrap;
}
.lp-builder__hint {
    font-size: 13px;
    color: var(--text-muted);
}
.lp-builder__error {
    color: var(--danger);
    font-size: 13px;
    font-weight: 500;
    display: none;
}
.lp-builder__error.visible { display: block; }

/* ═══════════════════════════════════════════
   HOW IT WORKS
   ═══════════════════════════════════════════ */
.lp-section {
    padding: 80px 0;
}
.lp-section--alt {
    background: #fff;
}
.lp-section__label {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.4px;
    color: var(--primary);
    background: var(--primary-soft);
    border: 1px solid rgba(37,99,235,.18);
    border-radius: 100px;
    padding: 5px 14px;
    margin-bottom: 16px;
}
.lp-section__title {
    font-size: clamp(30px, 4vw, 48px);
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1.15;
    margin-bottom: 16px;
}
.lp-section__sub {
    font-size: 17px;
    color: var(--text-secondary);
    max-width: 560px;
    line-height: 1.7;
}
.lp-section--center { text-align: center; }
.lp-section--center .lp-section__sub { margin: 0 auto; }

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
}
.step-card {
    background: var(--card);
    border-radius: var(--radius-xl);
    padding: 28px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-card);
    position: relative;
    transition: transform var(--transition), box-shadow var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.step-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}
.step-card__num {
    width: 36px; height: 36px;
    background: var(--primary);
    color: #fff;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 16px;
    margin-bottom: 16px;
}
.step-card__icon {
    font-size: 28px;
    margin-bottom: 12px;
}
.step-card__svg {
    width: 32px; height: 32px;
    color: var(--primary);
    margin-bottom: 14px;
    stroke-width: 1.5;
}
.step-card__title {
    font-weight: 700;
    font-size: 17px;
    margin-bottom: 8px;
}
.step-card__text {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}
/* connector arrow between steps */
.step-card::after {
    content: '→';
    position: absolute;
    right: -18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 20px;
    font-weight: 300;
}
.step-card:last-child::after { display: none; }

/* ═══════════════════════════════════════════
   FEATURES
   ═══════════════════════════════════════════ */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 48px;
}
.feature-card {
    background: var(--card);
    border-radius: var(--radius-lg);
    padding: 24px;
    border: 1px solid var(--border);
    transition: transform var(--transition), box-shadow var(--transition);
}
.feature-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.feature-card__icon {
    width: 44px; height: 44px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 14px;
    background: var(--primary-soft);
}
.feature-card__icon-wrap {
    width: 44px; height: 44px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    background: var(--primary-soft);
}
.feature-card__icon-wrap svg {
    width: 22px; height: 22px;
    color: var(--primary);
    stroke-width: 1.5;
}
.feature-card__title {
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 6px;
}
.feature-card__text {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ═══════════════════════════════════════════
   PRICING
   ═══════════════════════════════════════════ */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 48px;
    align-items: start;
}
.pricing-card {
    background: var(--card);
    border-radius: var(--radius-xl);
    padding: 28px;
    border: 1px solid var(--border);
    position: relative;
    transition: transform var(--transition), box-shadow var(--transition);
}
.pricing-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.pricing-card--featured {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px var(--primary-soft);
    transform: scale(1.02);
}
.pricing-card__badge {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 4px 10px;
    border-radius: 100px;
    margin-bottom: 16px;
}
.pricing-card__name { font-weight: 700; font-size: 18px; margin-bottom: 6px; }
.pricing-card__desc { font-size: 13px; color: var(--text-secondary); margin-bottom: 20px; }
.pricing-card__price {
    font-size: 36px;
    font-weight: 900;
    letter-spacing: -1px;
    color: var(--text);
    margin-bottom: 4px;
}
.pricing-card__price sup { font-size: 18px; font-weight: 600; vertical-align: top; margin-top: 6px; }
.pricing-card__per { font-size: 13px; color: var(--text-muted); margin-bottom: 24px; }
.pricing-card__features {
    list-style: none;
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.pricing-card__features li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-secondary);
}
.pricing-card__features li::before {
    content: '✓';
    color: var(--success);
    font-weight: 700;
    flex-shrink: 0;
}

/* ═══════════════════════════════════════════
   CTA SECTION
   ═══════════════════════════════════════════ */
.lp-cta {
    background: var(--primary-soft);
    border-top: 1px solid rgba(37,99,235,.12);
    border-bottom: 1px solid rgba(37,99,235,.12);
    color: var(--text);
    padding: 72px 0;
    text-align: center;
}
.lp-cta__title {
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 12px;
    color: var(--text);
}
.lp-cta__sub {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 440px;
    margin: 0 auto 28px;
    line-height: 1.7;
}

/* ═══════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════ */
.lp-footer {
    background: #fff;
    border-top: 1px solid var(--border);
    padding: 48px 0 32px;
}
.lp-footer__inner {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 48px;
    margin-bottom: 40px;
}
.lp-footer__brand p {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 10px;
    max-width: 240px;
    line-height: 1.6;
}
.lp-footer__links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.lp-footer__col h4 {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-muted);
    margin-bottom: 12px;
}
.lp-footer__col a {
    display: block;
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    transition: color var(--transition);
}
.lp-footer__col a:hover { color: var(--primary); }
.lp-footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    font-size: 13px;
    color: var(--text-muted);
    flex-wrap: wrap;
    gap: 8px;
}
.lp-footer__bottom a { color: var(--text-secondary); }
.lp-footer__bottom a:hover { color: var(--primary); }

/* ═══════════════════════════════════════════
   AI CHAT MODAL
   ═══════════════════════════════════════════ */
.ai-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 500;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 24px;
}
.ai-modal.active { display: flex; }

@media (min-width: 600px) {
    .ai-modal { align-items: center; padding-bottom: 0; }
}

.ai-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    cursor: pointer;
    animation: backdropIn 0.2s ease;
}
@keyframes backdropIn { from { opacity: 0; } to { opacity: 1; } }

.ai-modal__panel {
    position: relative;
    background: var(--card);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    width: 100%;
    max-width: 580px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-xl);
    animation: panelIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
}
@media (min-width: 600px) {
    .ai-modal__panel {
        border-radius: var(--radius-xl);
        max-height: 80vh;
    }
}
@keyframes panelIn {
    from { opacity: 0; transform: translateY(32px) scale(0.97); }
    to   { opacity: 1; transform: none; }
}

.ai-modal__header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}
.ai-modal__avatar {
    width: 38px; height: 38px;
    background: var(--primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}
.ai-modal__name {
    font-weight: 700;
    font-size: 15px;
    line-height: 1;
}
.ai-modal__status {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}
.ai-modal__close {
    margin-left: auto;
    background: none;
    border: none;
    cursor: pointer;
    width: 32px; height: 32px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--text-muted);
    transition: background var(--transition), color var(--transition);
    flex-shrink: 0;
    line-height: 1;
}
.ai-modal__close:hover { background: var(--bg); color: var(--text); }

.ai-modal__messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    scroll-behavior: smooth;
}

.ai-message {
    max-width: 82%;
    padding: 10px 14px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.55;
    animation: msgIn 0.2s ease;
}
@keyframes msgIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: none; }
}
.ai-message--bot {
    background: var(--primary-soft);
    color: var(--text);
    border-bottom-left-radius: 4px;
    align-self: flex-start;
}
.ai-message--user {
    background: var(--primary);
    color: #fff;
    border-bottom-right-radius: 4px;
    align-self: flex-end;
}

.ai-message--action {
    background: transparent;
    padding: 4px 0 2px;
    align-self: flex-start;
}

/* Typing indicator */
.ai-typing {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 12px 14px;
    background: var(--primary-soft);
    border-radius: 16px;
    border-bottom-left-radius: 4px;
    align-self: flex-start;
    animation: msgIn 0.2s ease;
}
.ai-typing span {
    width: 7px; height: 7px;
    background: var(--primary);
    border-radius: 50%;
    animation: typingDot 1.4s infinite;
    opacity: 0.4;
}
.ai-typing span:nth-child(2) { animation-delay: 0.2s; }
.ai-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingDot {
    0%, 60%, 100% { transform: none; opacity: 0.4; }
    30% { transform: translateY(-6px); opacity: 1; }
}

.ai-modal__progress-wrap {
    padding: 10px 20px 8px;
    border-top: 1px solid var(--border);
    flex-shrink: 0;
}
.ai-modal__progress-bar {
    height: 3px;
    background: var(--border);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 6px;
}
.ai-modal__progress-fill {
    height: 100%;
    background: var(--primary);
    border-radius: 4px;
    transition: width 0.4s ease;
}
.ai-modal__progress-label {
    font-size: 11px;
    color: var(--text-muted);
    text-align: right;
}

.ai-modal__input-row {
    display: flex;
    gap: 8px;
    padding: 12px 16px 16px;
    flex-shrink: 0;
}
.ai-modal__input {
    flex: 1;
    padding: 10px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    outline: none;
    font-size: 14px;
    transition: border-color var(--transition), box-shadow var(--transition);
    background: #fafbfc;
}
.ai-modal__input:focus {
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
    background: #fff;
}
.ai-modal__input:disabled { opacity: 0.5; cursor: not-allowed; }

/* ═══════════════════════════════════════════
   WIZARD (newweb page)
   ═══════════════════════════════════════════ */
.page-newweb body,
body.page-newweb {
    background: var(--bg);
}

/* Return-to-web banner */
.ts-return-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .75rem 1.5rem;
    background: #eff6ff;
    border-bottom: 1px solid #bfdbfe;
    font-size: .9rem;
    color: #1e40af;
}
.ts-return-banner a {
    color: #2563eb;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}
.ts-return-banner a:hover { text-decoration: underline; }

.wizard-wrap {
    min-height: 100vh;
    padding: var(--nav-h) 0 0;
    display: flex;
    flex-direction: column;
}
.wizard-header {
    background: var(--card);
    border-bottom: 1px solid var(--border);
    padding: 0 24px;
    height: var(--nav-h);
    display: flex;
    align-items: center;
    gap: 16px;
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 10;
}
.wizard-header__logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 15px;
    color: var(--text);
}
.wizard-header__badge {
    width: 28px; height: 28px;
    background: var(--primary);
    color: #fff;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 11px;
}

.wizard-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    flex: 1;
}
.wizard-progress__item {
    display: flex;
    align-items: center;
    gap: 8px;
}
/* connector line after each item except the last */
.wizard-progress__item:not(:last-child)::after {
    content: '';
    display: block;
    width: 24px;
    height: 2px;
    background: var(--border);
    border-radius: 1px;
    margin: 0 6px;
    flex-shrink: 0;
    transition: background 0.3s;
}
.wizard-progress__item.done:not(:last-child)::after { background: var(--primary); }

.wizard-progress__dot {
    width: 28px; height: 28px;
    border-radius: 50%;
    background: var(--bg-alt, #f1f5f9);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 12px;
    flex-shrink: 0;
    border: 2px solid var(--border);
    transition: background var(--transition), color var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.wizard-progress__item.done .wizard-progress__dot {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}
.wizard-progress__item.active .wizard-progress__dot {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-soft);
}
.wizard-progress__label {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
    white-space: nowrap;
    transition: color var(--transition);
}
.wizard-progress__item.done .wizard-progress__label { color: var(--text-muted); }
.wizard-progress__item.active .wizard-progress__label { color: var(--text); font-weight: 600; }

.wizard-body {
    flex: 1;
    padding: calc(var(--nav-h) + 32px) 24px 100px;
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

.wizard-panel { display: none; animation: fadeSlide 0.3s ease; }
.wizard-panel.active { display: block; }
@keyframes fadeSlide {
    from { opacity: 0; transform: translateX(16px); }
    to   { opacity: 1; transform: none; }
}

.wizard-panel__title {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.6px;
    margin-bottom: 8px;
}
.wizard-panel__sub {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 36px;
    line-height: 1.65;
}

/* ── Wizard inline chat (step 2) ────── */
.wizard-chat {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    max-width: 640px;
    overflow: hidden;
}
.wizard-chat__messages {
    flex: 1;
    min-height: 280px;
    max-height: 460px;
    overflow-y: auto;
    padding: 20px 20px 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    scroll-behavior: smooth;
    font-size: 15px;
}
.wizard-chat__progress-wrap {
    padding: 10px 20px 8px;
    border-top: 1px solid var(--border);
}
.wizard-chat__progress-bar {
    height: 3px;
    background: var(--border);
    border-radius: 99px;
    margin-bottom: 6px;
}
.wizard-chat__progress-fill {
    height: 100%;
    background: var(--primary);
    border-radius: 99px;
    transition: width 0.4s ease;
    width: 0%;
}
.wizard-chat__progress-label {
    font-size: 11px;
    color: var(--text-muted);
    text-align: right;
}
.wizard-chat__input-row {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    border-top: 1px solid var(--border);
}
.wizard-chat__input {
    flex: 1;
    padding: 12px 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-family: inherit;
    background: #fafbfc;
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition);
}
.wizard-chat__input:focus {
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
    background: #fff;
}
.wizard-chat__input:disabled { opacity: 0.5; cursor: not-allowed; }

/* Inputs */
.inp {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    outline: none;
    font-size: 15px;
    color: var(--text);
    background: #fafbfc;
    transition: border-color var(--transition), box-shadow var(--transition);
}
.inp:focus { border-color: var(--primary); box-shadow: var(--shadow-glow); background: #fff; }
.inp-label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 8px;
    color: var(--text);
}
.inp-group { margin-bottom: 20px; }
.inp-group textarea.inp { min-height: 90px; resize: vertical; }
.inp-group textarea.inp[readonly] { background: var(--bg); color: var(--text-secondary); cursor: default; }

/* ── Palettes ───────────────── */
.palettes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}
.palette-card {
    border-radius: var(--radius-lg);
    border: 2px solid var(--border);
    padding: 18px;
    cursor: pointer;
    transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition-fast);
}
.palette-card:hover { border-color: var(--primary); transform: translateY(-2px); }
.palette-card.selected { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.palette-card__swatches {
    display: flex;
    gap: 6px;
    margin-bottom: 12px;
}
.palette-swatch {
    flex: 1;
    height: 40px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(0,0,0,.06);
}
.palette-card__name {
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 4px;
}
.palette-card__mood {
    font-size: 12px;
    color: var(--text-muted);
}

.color-customizer {
    background: var(--card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    padding: 20px;
}
.color-customizer h3 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-secondary);
}
.color-rows {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}
.color-row label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
}
.color-row input[type="color"] {
    width: 100%;
    height: 44px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    cursor: pointer;
    padding: 4px;
    background: var(--card);
}

/* ── Fonts ──────────────────── */
.fonts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}
.font-card {
    border-radius: var(--radius-md);
    border: 2px solid var(--border);
    padding: 16px 18px;
    cursor: pointer;
    transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition-fast);
}
.font-card:hover { border-color: var(--primary); transform: translateY(-1px); }
.font-card.selected { border-color: var(--primary); background: var(--primary-softer); box-shadow: 0 0 0 3px var(--primary-soft); }
.font-card__name {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-muted);
    margin-bottom: 6px;
}
.font-card__preview {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text);
}

/* ── Page builder ───────────── */
.pages-builder {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}
.page-item {
    background: var(--card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.page-item__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    user-select: none;
}
.page-item__name {
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.page-item__name::before {
    content: '📄';
    font-size: 14px;
}
.page-item__actions { display: flex; align-items: center; gap: 6px; }
.page-item__toggle {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 12px;
    padding: 2px 6px;
    transition: color var(--transition);
}
.page-item__toggle:hover { color: var(--text); }
.page-item__remove {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 18px;
    line-height: 1;
    padding: 2px 4px;
    border-radius: 4px;
    transition: color var(--transition), background var(--transition);
}
.page-item__remove:hover { color: var(--danger); background: rgba(239,68,68,.08); }

.page-item__sections {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-height: 40px;
}
.section-block {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: var(--bg);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: grab;
    transition: background var(--transition), box-shadow var(--transition), opacity var(--transition-fast);
    user-select: none;
}
.section-block:hover { background: #fff; box-shadow: var(--shadow-sm); }
.section-block.dragging { opacity: 0.4; cursor: grabbing; }
.section-block.drag-over { background: var(--primary-soft); border-color: var(--primary); }
.section-block__handle {
    color: var(--text-muted);
    font-size: 14px;
    cursor: grab;
    flex-shrink: 0;
}
.section-block__icon { font-size: 14px; flex-shrink: 0; }
.section-block__label { flex: 1; }
.section-block__remove {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1;
    padding: 0 2px;
    opacity: 0;
    transition: opacity var(--transition), color var(--transition);
    flex-shrink: 0;
}
.section-block:hover .section-block__remove { opacity: 1; }
.section-block__remove:hover { color: var(--danger); }

.page-item__add-section {
    margin: 0 12px 12px;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.section-type-btn {
    padding: 5px 10px;
    border: 1.5px dashed var(--border);
    border-radius: var(--radius-sm);
    background: none;
    font-size: 12px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: border-color var(--transition), color var(--transition), background var(--transition);
}
.section-type-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-softer);
}

/* Add page button row */
.add-page-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    border: 2px dashed var(--border);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: border-color var(--transition);
    background: none;
    width: 100%;
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 600;
}
.add-page-row:hover { border-color: var(--primary); color: var(--primary); }

/* ── Wizard nav ─────────────── */
.wizard-nav {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: rgba(255,255,255,.95);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--border);
    padding: 16px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    z-index: 10;
    box-shadow: 0 -2px 16px rgba(0,0,0,.05);
}
.wizard-nav__spacer { flex: 1; }

/* ── Generating step (step 6) ───────── */
.generating-wrap {
    text-align: center;
    padding: 48px 0 32px;
}
.generating-icon {
    display: inline-block;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: #fff;
    background: var(--primary, #2563eb);
    padding: 8px 18px;
    border-radius: 999px;
    margin-bottom: 20px;
    animation: genBob 2s ease-in-out infinite;
}
@keyframes genBob {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-8px); }
}
/* ── Generation progress steps ────────── */
.gen-steps {
    max-width: 380px;
    margin: 16px auto 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    text-align: left;
}
.gen-step {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    font: 500 14px/1.4 'Inter', sans-serif;
    color: var(--text-secondary, #64748b);
    border-radius: 8px;
    transition: all .3s ease;
    overflow: hidden;
    max-height: 44px;
}
.gen-step__icon { flex-shrink: 0; width: 18px; height: 18px; }
.gen-step__spinner { display: none; }
.gen-step__check { display: none; }
.gen-step__label { flex: 1; }

/* Active step: spinner visible, highlighted */
.gen-step--active {
    color: var(--text-primary, #1e293b);
    background: var(--bg-card, rgba(37,99,235,.04));
    font-weight: 600;
}
.gen-step--active .gen-step__spinner { display: block; }
.gen-step--active .gen-step__check { display: none; }

/* Done step: green check */
.gen-step--done {
    color: var(--success, #22c55e);
}
.gen-step--done .gen-step__spinner { display: none; }
.gen-step--done .gen-step__check { display: block; }

/* Collapsed done step: shrinks and fades out */
.gen-step--collapsed {
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    opacity: 0;
    margin: 0;
}

/* Timer */
.gen-timer {
    font: 500 13px/1 'Inter', sans-serif;
    color: #94a3b8;
    margin-top: -4px;
    margin-bottom: 12px;
    display: none;
}

/* Legacy gen-phases (hidden, kept for backwards compat) */
.gen-phases {
    display: none;
    flex-direction: column;
    gap: 10px;
    margin: 28px auto 0;
    max-width: 380px;
    text-align: left;
}
.gen-phase {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: var(--text-muted);
    font-weight: 500;
    transition: color var(--transition);
}
.gen-phase__dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--border);
    flex-shrink: 0;
    transition: background var(--transition);
}
.gen-phase.active {
    color: var(--primary);
}
.gen-phase.active .gen-phase__dot {
    background: var(--primary);
    animation: phasePulse 1.2s ease-in-out infinite;
}
.gen-phase.done {
    color: var(--success);
}
.gen-phase.done .gen-phase__dot {
    background: var(--success);
}
@keyframes phasePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(37,99,235,.4); }
    50%       { box-shadow: 0 0 0 6px rgba(37,99,235,0); }
}
.gen-hosting-url {
    margin-top: 24px;
    font-size: 15px;
    color: var(--text-secondary);
}
.gen-hosting-url a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}
.gen-hosting-url a:hover { text-decoration: underline; }

/* ── Auth Gate overlay ──────────────── */
.auth-gate {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: rgba(15,23,42,.55);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.auth-gate[hidden] { display: none !important; }
.auth-gate__card {
    background: var(--card);
    border-radius: var(--radius-xl);
    padding: 40px 36px;
    max-width: 440px;
    width: 100%;
    text-align: center;
    box-shadow: var(--shadow-xl);
}
.auth-gate__title {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 10px;
    letter-spacing: -0.4px;
}
.auth-gate__sub {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 28px;
}
.auth-gate__actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}
.auth-gate__skip {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 13px;
    color: var(--text-muted);
    padding: 6px;
    transition: color var(--transition);
}
.auth-gate__skip:hover { color: var(--primary); }

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */
@media (max-width: 900px) {
    .steps-grid    { grid-template-columns: 1fr; }
    .step-card::after { display: none; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .pricing-grid  { grid-template-columns: 1fr; }
    .pricing-card--featured { transform: none; }
    .palettes-grid { grid-template-columns: 1fr; }
    .fonts-grid    { grid-template-columns: repeat(2, 1fr); }
    .color-rows    { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .lp-nav__links { display: none; }
    .lp-nav__toggle { display: flex; }
    .lp-nav__cta .btn-outline { display: none; }

    .lp-hero { padding-top: calc(var(--nav-h) + 40px); }
    .lp-hero__sub { font-size: 16px; }
    .lp-builder__footer { flex-direction: column; align-items: stretch; }
    .lp-builder__footer .btn { width: 100%; justify-content: center; }

    .features-grid { grid-template-columns: 1fr; }

    .lp-footer__inner { grid-template-columns: 1fr; gap: 24px; }
    .lp-footer__links  { grid-template-columns: repeat(2, 1fr); }

    .wizard-progress__label { display: none; }
    .wizard-progress__item { gap: 0; }
    .wizard-progress__dot { width: 26px; height: 26px; font-size: 11px; }
    .wizard-progress__item:not(:last-child)::after { width: 16px; margin: 0 3px; }
    .wizard-body { padding-top: calc(var(--nav-h) + 24px); }
}

/* ═══════════════════════════════════════════
   WIZARD ENHANCEMENTS (v2)
   ═══════════════════════════════════════════ */

/* ── Step badge & header right ──────────── */
.wizard-header__right {
    width: 180px;
    flex-shrink: 0;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}
.wizard-step-badge {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 100px;
    padding: 4px 12px;
    white-space: nowrap;
}

/* ── Brief tips row ─────────────────────── */
.brief-tips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 16px;
}
.brief-tip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    background: var(--primary-softer);
    border: 1px solid rgba(37,99,235,.15);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
    color: var(--primary);
    cursor: default;
    user-select: none;
}

/* ── AI Rec Card ────────────────────────── */
.ai-rec-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: linear-gradient(135deg, #eef2ff 0%, #f0f9ff 100%);
    border: 1.5px solid rgba(37,99,235,.2);
    border-radius: var(--radius-lg);
    padding: 14px 18px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}
.ai-rec-card[hidden] { display: none; }
.ai-rec-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), #60a5fa);
}
.ai-rec-card__icon {
    font-size: 28px;
    flex-shrink: 0;
    line-height: 1;
}
.ai-rec-card__body { flex: 1; }
.ai-rec-card__label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--primary);
    margin-bottom: 3px;
}
.ai-rec-card__text {
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    line-height: 1.4;
}
.ai-rec-card__badge {
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
    background: rgba(37,99,235,.12);
    border-radius: 100px;
    padding: 4px 10px;
    white-space: nowrap;
    flex-shrink: 0;
}

/* ── Palettes section label ─────────────── */
.palettes-section-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-muted);
    margin-bottom: 12px;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.palettes-section-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

/* Selected palette grid (1-col highlighted) */
.palettes-grid--selected {
    grid-template-columns: 1fr;
    margin-bottom: 8px;
}
.palettes-grid--selected .palette-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
}
.palettes-grid--selected .palette-card__swatches {
    flex-shrink: 0;
    margin-bottom: 0;
    gap: 4px;
}
.palettes-grid--selected .palette-swatch {
    height: 28px;
    width: 28px;
    flex: none;
    border-radius: 50%;
}

/* AI badge on palette card */
.palette-card__ai-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 11px;
    font-weight: 700;
    color: var(--primary);
    background: rgba(37,99,235,.12);
    border-radius: 100px;
    padding: 2px 8px;
}

/* ── Color customizer details/summary ───── */
.color-customizer-wrap {
    margin-top: 20px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    overflow: hidden;
}
.color-customizer-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    list-style: none;
    background: var(--card);
    transition: color var(--transition), background var(--transition);
    user-select: none;
}
.color-customizer-toggle::-webkit-details-marker { display: none; }
.color-customizer-toggle:hover { color: var(--primary); background: var(--primary-softer); }
.color-customizer-wrap[open] .color-customizer-toggle { border-bottom: 1px solid var(--border); }
.color-customizer-wrap .color-customizer {
    border: none;
    border-radius: 0;
}

/* ── Body font row ──────────────────────── */
.body-font-row {
    margin-bottom: 8px;
    max-width: 380px;
}
.body-font-select {
    font-size: 14px;
    cursor: pointer;
}

/* ── Horizontal page builder ────────────── */
.pages-builder--horizontal {
    display: flex;
    flex-direction: row;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 16px;
}
.pages-builder--horizontal::-webkit-scrollbar {
    height: 4px;
}
.pages-builder--horizontal::-webkit-scrollbar-track { background: var(--border); border-radius: 2px; }
.pages-builder--horizontal::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 2px; }

.page-card {
    flex: 0 0 220px;
    min-width: 220px;
    background: var(--card);
    border-radius: var(--radius-lg);
    border: 1.5px solid var(--border);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    transition: border-color var(--transition), box-shadow var(--transition);
}
.page-card:hover { border-color: var(--primary); box-shadow: var(--shadow-md); }

.page-card__header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
}
.page-card__icon { font-size: 16px; flex-shrink: 0; }
.page-card__name {
    flex: 1;
    font-weight: 700;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.page-card__slug {
    font-size: 10px;
    color: var(--text-muted);
    font-family: 'Courier New', monospace;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-shrink: 0;
    max-width: 80px;
    opacity: .7;
}
.page-card__remove {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 18px;
    line-height: 1;
    padding: 0 2px;
    border-radius: 4px;
    transition: color var(--transition), background var(--transition);
    flex-shrink: 0;
}
.page-card__remove:hover { color: var(--danger); background: rgba(239,68,68,.08); }

/* ── Page card drag-and-drop ────────────── */
.page-card__drag-handle {
    cursor: grab;
    color: var(--text-muted);
    opacity: .45;
    flex-shrink: 0;
    padding: 2px 3px;
    border-radius: 3px;
    line-height: 1;
    transition: opacity .15s, color .15s;
}
.page-card__drag-handle:hover { opacity: 1; color: var(--primary); }
.page-card[draggable="true"] { cursor: default; }
.page-card--dragging { opacity: .4; transform: rotate(2deg); box-shadow: var(--shadow-lg); }
.page-card--drag-over { border-color: var(--primary); box-shadow: 0 0 0 2px var(--primary); background: rgba(37,99,235,.04); }

.page-card__sections {
    padding: 10px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-height: 80px;
}
.page-card__section-tag {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 8px;
    background: var(--bg);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: background var(--transition), border-color var(--transition), color var(--transition);
}
.page-card__section-tag:hover {
    background: rgba(239,68,68,.06);
    border-color: var(--danger);
    color: var(--danger);
}
.page-card__section-tag:hover::after {
    content: ' ×';
    font-weight: 700;
}

.page-card__add-sections {
    padding: 6px 10px 10px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    position: relative;
}

.page-card__add-sections .section-search-input {
    width: 100%;
    padding: 7px 12px;
    border: 1.5px dashed var(--border);
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: var(--text);
    background: transparent;
    cursor: text;
    transition: border-color var(--transition);
    box-sizing: border-box;
}
.page-card__add-sections .section-search-input:focus {
    outline: none;
    border-color: var(--primary);
    border-style: solid;
}
.section-search-dropdown {
    position: fixed;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    z-index: 9999;
    max-height: 200px;
    overflow-y: auto;
    min-width: 180px;
}
.section-search-option {
    padding: 8px 12px;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.1s;
}
.section-search-option:hover {
    background: var(--primary-softer, #eff6ff);
    color: var(--primary);
}
.section-add-btn {
    display: block;
    text-align: left;
    padding: 4px 8px;
    border: 1.5px dashed var(--border);
    border-radius: var(--radius-sm);
    background: none;
    font-size: 11px;
    color: var(--text-muted);
    cursor: pointer;
    transition: border-color var(--transition), color var(--transition), background var(--transition);
}
.section-add-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-softer);
}

/* Section search/filter */
.section-search-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}
.section-search-input {
    flex: 1;
    max-width: 340px;
    padding: 8px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 14px;
    font-family: inherit;
    background: var(--surface);
    color: var(--text);
    transition: border-color var(--transition);
    outline: none;
}
.section-search-input:focus { border-color: var(--primary); background: #fff; }
.section-search-hint {
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap;
}

/* Add page card button */
.add-page-card {
    flex: 0 0 100px;
    min-width: 100px;
    height: auto;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 2px dashed var(--border);
    border-radius: var(--radius-lg);
    background: none;
    cursor: pointer;
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 600;
    transition: border-color var(--transition), color var(--transition), background var(--transition);
    text-align: center;
    line-height: 1.3;
    align-self: flex-start;
    padding: 16px 12px;
    scroll-snap-align: start;
}
.add-page-card:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-softer); }

/* Add page inline input */
.add-page-input-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    max-width: 400px;
}
.add-page-input-wrap[hidden] { display: none; }
.add-page-input-wrap .inp {
    font-size: 14px;
    padding: 8px 12px;
}

/* ── Step 5 — Image upload ──────────────── */
.wizard-optional-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2px 10px;
    vertical-align: middle;
    margin-left: 8px;
    letter-spacing: 0.02em;
}
.img-upload-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}
@media (max-width: 540px) { .img-upload-grid { grid-template-columns: 1fr; } }
.img-upload-card {
    border: 1.5px dashed var(--border);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: var(--surface);
    transition: border-color 0.2s;
}
.img-upload-card:has(.img-upload-card__done),
.img-upload-card:has(.img-upload-card__preview-img) {
    border-color: var(--primary);
    border-style: solid;
}
.img-upload-card__preview-img {
    max-height: 56px;
    max-width: 100%;
    border-radius: 6px;
    object-fit: contain;
}
.img-upload-card__preview {
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    border-radius: 8px;
}
.img-upload-card__icon {
    width: 32px;
    height: 32px;
    color: var(--text-muted);
    opacity: 0.5;
}
.img-upload-card__done {
    font-size: 28px;
    color: var(--primary);
}
.img-upload-card__body {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.img-upload-card__label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}
.img-upload-card__hint {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 8px;
}
.img-upload-card__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    background: var(--primary);
    color: #fff;
    cursor: pointer;
    transition: background 0.15s;
    border: none;
    width: fit-content;
}
.img-upload-card__btn:hover { background: var(--primary-dark, #1d4ed8); }
.img-upload-card__remove {
    background: none;
    border: none;
    font-size: 12px;
    color: var(--text-muted);
    cursor: pointer;
    padding: 2px 0;
    text-align: left;
}
.img-upload-card__remove:hover { color: #ef4444; }
.img-upload-photos {
    border: 1.5px dashed var(--border);
    border-radius: 12px;
    padding: 20px;
    background: var(--surface);
    margin-bottom: 16px;
}
.img-upload-photos__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}
.img-upload-photos__label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}
.img-upload-photos__hint {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}
.img-upload-photos__grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 4px;
}
.img-photo-thumb {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    background: var(--bg);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    font-size: 24px;
    overflow: hidden;
}
.img-photo-thumb__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}
.img-photo-thumb__remove {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ef4444;
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.img-upload-status {
    font-size: 13px;
    padding: 8px 12px;
    border-radius: 8px;
    margin-top: 8px;
}
.img-upload-status--ok      { background: #dcfce7; color: #166534; }
.img-upload-status--error   { background: #fee2e2; color: #991b1b; }
.img-upload-status--warn    { background: #fef9c3; color: #854d0e; }
.img-upload-status--loading { background: var(--surface); color: var(--text-muted); }
.img-upload-status[hidden]  { display: none; }

/* ── Wizard nav right ───────────────────── */
.wizard-nav__center {
    flex: 1;
    display: flex;
    justify-content: center;
}
.wizard-nav__right {
    display: flex;
    align-items: center;
    gap: 12px;
}
.wizard-nav__hint {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

/* ── Generating — hide header + nav ─────── */
body.is-generating .wizard-header {
    display: none;
}
body.is-generating .wizard-nav {
    display: none;
}
body.is-generating .wizard-body {
    padding-top: 24px;
    padding-bottom: 24px;
}
body.is-generating .wizard-wrap {
    padding-top: 0;
}

/* ── Generating panel full-screen ───────── */
.wizard-panel--gen {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.wizard-panel--gen.active {
    display: flex;
}
.wizard-panel--gen .generating-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 24px 32px;
}

/* ── Wopro facts bar ────────────────────── */
.wopro-facts {
    background: var(--text);
    color: #fff;
    padding: 20px 28px;
    border-radius: var(--radius-lg);
    margin: 0 auto;
    max-width: 640px;
    width: 100%;
}
.wopro-facts__inner {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
.wopro-facts__label {
    font-size: 13px;
    font-weight: 700;
    color: rgba(255,255,255,.6);
    white-space: nowrap;
    flex-shrink: 0;
    padding-top: 2px;
}
.wopro-facts__text {
    font-size: 13px;
    font-weight: 500;
    color: rgba(255,255,255,.9);
    line-height: 1.5;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* ── Auth gate emoji ────────────────────── */
.auth-gate__emoji {
    font-size: 48px;
    margin-bottom: 8px;
    line-height: 1;
}

/* ── Page card section count badge ─────── */
.page-card__sec-count {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-muted);
    background: var(--bg-alt, #f1f5f9);
    border: 1px solid var(--border);
    border-radius: 100px;
    padding: 2px 7px;
    white-space: nowrap;
    flex-shrink: 0;
    margin-left: auto;
    margin-right: 4px;
}

/* Section tag — × icon on hover */
.page-card__section-tag:hover::before {
    content: '× ';
    font-weight: 700;
    color: var(--danger);
}
.page-card__section-tag:hover::after { content: none; }

#briefCounter {
    margin-left: auto;
}

/* ── Responsive for new elements ────────── */
@media (max-width: 768px) {
    .wizard-header__right { display: none; }
    .wizard-nav__hint { display: none; }
    .pages-builder--horizontal { gap: 8px; }
    .page-card { flex: 0 0 180px; min-width: 180px; }
    .add-page-card { flex: 0 0 80px; min-width: 80px; }
    .wopro-facts { border-radius: var(--radius-md); }
    .ai-rec-card__badge { display: none; }
}

/* ── Resume generation banner ────────────── */
.ts-resume-banner {
    position: fixed;
    bottom: calc(60px + 0.75rem);
    left: 1rem;
    background: #1e293b;
    color: #f1f5f9;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    box-shadow: 0 4px 20px rgba(0,0,0,.35);
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 999;
    font-size: 0.875rem;
    max-width: 400px;
    animation: tsSlideUp .3s ease;
}
.ts-resume-banner__actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-shrink: 0;
}
.ts-resume-banner__dismiss {
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 0 0.25rem;
    font-size: 1.1rem;
    line-height: 1;
    transition: color .15s;
}
.ts-resume-banner__dismiss:hover { color: #f1f5f9; }

/* ── Generation error actions ────────────── */
.gen-error-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 1.5rem;
}
.gen-error-actions .btn { font-size: 0.875rem; }

@keyframes tsSlideUp {
    from { transform: translateY(12px); opacity: 0; }
    to   { transform: none; opacity: 1; }
}

@media (max-width: 480px) {
    .ts-resume-banner {
        left: 0.5rem;
        right: 0.5rem;
        max-width: calc(100% - 1rem);
        bottom: calc(56px + 0.5rem);
    }
}

/* ═══════════════════════════════════════════
   HERO ACTIONS
   ═══════════════════════════════════════════ */
.lp-hero__actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 28px;
    flex-wrap: wrap;
    justify-content: center;
}
@media (max-width: 600px) {
    .lp-hero__actions { flex-direction: column; width: 100%; }
    .lp-hero__actions .btn { width: 100%; justify-content: center; }
}

/* ═══════════════════════════════════════════
   VIDEO SECTION
   ═══════════════════════════════════════════ */
.lp-video__wrap {
    max-width: 100%;
    margin: 48px auto 0;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border);
}
.lp-video__wrap iframe,
.lp-video__wrap video {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}
.lp-video__placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    cursor: pointer;
    position: relative;
}
.lp-video__play {
    width: 72px; height: 72px;
    background: rgba(255,255,255,0.15);
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition), transform var(--transition);
}
.lp-video__play svg {
    width: 32px; height: 32px;
    color: #fff;
    margin-left: 4px;
}
.lp-video__placeholder:hover .lp-video__play {
    background: rgba(255,255,255,0.25);
    transform: scale(1.08);
}
.lp-video__overlay-text {
    color: rgba(255,255,255,0.5);
    font-size: 14px;
    letter-spacing: 0.3px;
}

/* ═══════════════════════════════════════════
   CREDITS SECTION
   ═══════════════════════════════════════════ */
.credits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 48px;
}
.credit-card {
    background: var(--card);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    box-shadow: var(--shadow-card);
    transition: transform var(--transition), box-shadow var(--transition);
}
.credit-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}
.credit-card--featured {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37,99,235,.1), var(--shadow-card);
}
.credit-card__amount {
    font-size: 42px;
    font-weight: 800;
    letter-spacing: -1.5px;
    color: var(--text);
    line-height: 1;
}
.credit-card--featured .credit-card__amount { color: var(--primary); }
.credit-card__label {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 8px;
}
.credit-card__title {
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
}
.credit-card__text {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    flex: 1;
    margin-top: 4px;
}
.credit-card__tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 700;
    background: #dcfce7;
    color: #166534;
    margin-top: 12px;
    align-self: flex-start;
}
.credit-card__tag--price {
    background: var(--primary-soft);
    color: var(--primary);
}

@media (max-width: 900px) {
    .credits-grid { grid-template-columns: 1fr; max-width: 440px; margin-left: auto; margin-right: auto; }
}

/* ═══════════════════════════════════════════
   LEGAL PAGES (VOP / GDPR / Cookies)
   ═══════════════════════════════════════════ */
.legal-wrap {
    padding: calc(var(--nav-h) + 56px) 0 80px;
    min-height: calc(100vh - 200px);
}
.legal-doc {
    max-width: 760px;
    margin: 0 auto;
}
.legal-doc__title {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
    letter-spacing: -0.8px;
    margin-bottom: 8px;
    color: var(--text);
}
.legal-doc__updated {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 40px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}
.legal-doc h2 {
    font-size: 18px;
    font-weight: 700;
    margin: 32px 0 10px;
    color: var(--text);
}
.legal-doc h3 {
    font-size: 15px;
    font-weight: 700;
    margin: 20px 0 8px;
    color: var(--text);
}
.legal-doc p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 12px;
}
.legal-doc ul {
    margin: 0 0 12px 0;
    padding-left: 24px;
}
.legal-doc ul li {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 4px;
}
.legal-doc a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.legal-doc a:hover { color: var(--primary2); }


/* ═══════════════════════════════════════════
   CONTACT FORM
   ═══════════════════════════════════════════ */
.lp-contact__inner {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 64px;
    align-items: start;
    margin-top: 0;
}
.lp-contact__desc {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 24px;
}
.lp-contact__info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.lp-contact__info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-secondary);
}
.lp-contact__info-item svg {
    width: 18px; height: 18px;
    color: var(--primary);
    flex-shrink: 0;
}
.lp-contact__form {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 32px;
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.lp-contact__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.lp-contact__field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.lp-contact__label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
}
.lp-contact__input,
.lp-contact__textarea {
    font-family: inherit;
    font-size: 14px;
    color: var(--text);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
    resize: none;
}
.lp-contact__input:focus,
.lp-contact__textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37,99,235,.1);
}
.lp-contact__input::placeholder,
.lp-contact__textarea::placeholder {
    color: var(--text-muted);
}

@media (max-width: 900px) {
    .lp-contact__inner { grid-template-columns: 1fr; gap: 36px; }
    .lp-contact__row { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════
   FAQ
   ═══════════════════════════════════════════ */
.faq-list {
    max-width: 820px;
    margin: 48px auto 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.faq-item {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: border-color var(--transition);
}
.faq-item.open {
    border-color: var(--primary);
}
.faq-item__question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 24px;
    background: none;
    border: none;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    text-align: left;
    cursor: pointer;
    transition: background var(--transition);
}
.faq-item__question:hover { background: var(--bg); }
.faq-item.open .faq-item__question { background: var(--bg); }
.faq-item__chevron {
    width: 20px; height: 20px;
    color: var(--text-muted);
    flex-shrink: 0;
    transition: transform .25s ease;
}
.faq-item.open .faq-item__chevron { transform: rotate(180deg); }
.faq-item__answer {
    display: none;
    padding: 0 24px 20px;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    border-top: 1px solid var(--border);
    padding-top: 16px;
}
.faq-item.open .faq-item__answer { display: block; }

/* ═══════════════════════════════════════════════
   WIZARD: Analyze loading + Followup screens
   ═══════════════════════════════════════════════ */

/* Analyze loading spinner */
.wizard-analyze {
    text-align: center;
    padding: 80px 0 60px;
}
.wizard-analyze__spinner {
    margin: 0 auto 24px;
}
.wizard-analyze__spinner svg {
    display: block;
    margin: 0 auto;
}

/* Followup forms */
.followup-form {
    max-width: 560px;
    margin: 24px auto 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.followup-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.followup-field label {
    font: 600 14px/1.3 'Inter', sans-serif;
    color: var(--text-primary);
}
.followup-input {
    font: 400 15px/1.5 'Inter', sans-serif;
    padding: 10px 14px;
    border: 1.5px solid var(--border, #e2e8f0);
    border-radius: 8px;
    background: var(--bg-card, #fff);
    color: var(--text-primary);
    transition: border-color .15s;
    width: 100%;
    box-sizing: border-box;
}
.followup-input:focus {
    outline: none;
    border-color: var(--primary, #2563eb);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .1);
}
.followup-input::placeholder {
    color: var(--text-muted, #94a3b8);
}
textarea.followup-input {
    resize: vertical;
    min-height: 60px;
}
select.followup-input {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394a3b8' d='M2 4l4 4 4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}
.followup-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
@media (max-width: 600px) {
    .followup-row {
        grid-template-columns: 1fr;
    }
}
/* ── Colors Step ──────────────────────── */
.colors-picker {
    max-width: 560px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.colors-picker__grid {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}
.color-pick {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.color-pick label {
    font: 600 13px/1 'Inter', sans-serif;
    color: var(--text-secondary, #64748b);
}
.color-pick input[type="color"] {
    width: 64px;
    height: 64px;
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    padding: 4px;
    cursor: pointer;
    background: #fff;
    transition: border-color .15s, box-shadow .15s;
}
.color-pick input[type="color"]:hover {
    border-color: var(--primary, #2563eb);
    box-shadow: 0 0 0 3px rgba(37,99,235,.1);
}
.color-pick__hex {
    font: 500 12px/1 'Inter', monospace;
    color: var(--text-muted, #94a3b8);
}
.colors-preview {
    display: flex;
    flex-direction: column;
    gap: 12px;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
}
.colors-preview__gradient {
    height: 48px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    transition: background .3s;
}
.colors-preview__btns {
    display: flex;
    gap: 10px;
    padding: 12px 16px;
}
.colors-preview__btn {
    padding: 8px 20px;
    border-radius: 8px;
    font: 600 13px/1 'Inter', sans-serif;
    cursor: default;
}
.colors-preview__btn--primary { color: #fff; }
.colors-preview__btn--outline { border: 2px solid; background: transparent; }

/* ── Font Step ────────────────────────── */
.font-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
    max-width: 640px;
    margin: 0 auto 24px;
}
.font-card {
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 14px 12px;
    text-align: center;
    cursor: pointer;
    transition: border-color .15s, box-shadow .15s, transform .15s;
    background: #fff;
}
.font-card:hover {
    border-color: var(--primary, #2563eb);
    transform: translateY(-2px);
}
.font-card--selected {
    border-color: var(--primary, #2563eb);
    box-shadow: 0 0 0 3px rgba(37,99,235,.12);
    background: rgba(37,99,235,.03);
}
.font-card__sample {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 4px;
    color: var(--text-primary, #1e293b);
}
.font-card__desc {
    font: 400 12px/1.3 'Inter', sans-serif;
    color: var(--text-muted, #94a3b8);
}
.font-live-preview {
    max-width: 560px;
    margin: 0 auto;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    background: #fff;
}
.font-live-preview__heading {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 8px;
    transition: font-family .3s;
    color: var(--text-primary, #1e293b);
}
.font-live-preview__text {
    font: 400 15px/1.6 'Inter', sans-serif;
    color: var(--text-secondary, #64748b);
}

/* ── Pages Editor Step ────────────────── */
.pages-editor {
    max-width: 640px;
    margin: 0 auto;
}
.pages-loading {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    padding: 40px 0;
    font: 400 14px/1 'Inter', sans-serif;
    color: var(--text-muted, #94a3b8);
}
.pages-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.page-card {
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
    overflow: hidden;
}
.page-card__header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}
.page-card__drag {
    cursor: grab;
    color: #94a3b8;
    font-size: 16px;
    user-select: none;
}
.page-card__title {
    flex: 1;
    font: 600 15px/1.3 'Inter', sans-serif;
    color: var(--text-primary, #1e293b);
}
.page-card__remove {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 18px;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
}
.page-card__remove:hover { color: #ef4444; }
.page-card__sections {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 10px 14px;
}
.section-tag {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    font: 500 12px/1.3 'Inter', sans-serif;
    background: rgba(37,99,235,.06);
    color: var(--primary, #2563eb);
    cursor: pointer;
    transition: background .15s;
}
.section-tag:hover {
    background: rgba(37,99,235,.1);
}
.section-tag__remove {
    margin-left: 4px;
    font-size: 14px;
    font-weight: 700;
    opacity: .4;
    cursor: pointer;
}
.section-tag__remove:hover { opacity: 1; color: #ef4444; }
.section-tag--dragging {
    opacity: .4;
    border: 1px dashed var(--primary, #2563eb);
}

/* Page card drag */
.page-card--dragging { opacity: .5; border-style: dashed; }

/* Add section button */
.page-card__add-wrap {
    padding: 6px 14px 10px;
}
.page-card__add-btn {
    background: none;
    border: 1.5px dashed #cbd5e1;
    border-radius: 6px;
    padding: 6px 14px;
    font: 500 13px/1 'Inter', sans-serif;
    color: #94a3b8;
    cursor: pointer;
    width: 100%;
    transition: border-color .15s, color .15s;
}
.page-card__add-btn:hover {
    border-color: var(--primary, #2563eb);
    color: var(--primary, #2563eb);
}

/* Section picker dropdown */
.section-picker {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 10px 14px;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
    max-height: 200px;
    overflow-y: auto;
}
.section-picker__item {
    padding: 4px 10px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font: 400 12px/1.3 'Inter', sans-serif;
    background: #fff;
    color: var(--text-primary, #1e293b);
    cursor: pointer;
    transition: border-color .15s, background .15s;
}
.section-picker__item:hover {
    border-color: var(--primary, #2563eb);
    background: rgba(37,99,235,.04);
    color: var(--primary, #2563eb);
}
.section-picker__close {
    padding: 4px 12px;
    border: none;
    border-radius: 6px;
    font: 600 12px/1.3 'Inter', sans-serif;
    background: #e2e8f0;
    color: #64748b;
    cursor: pointer;
    margin-left: auto;
}
.section-picker__close:hover { background: #cbd5e1; }

/* ── Fullscreen Generate ──────────────── */
.gen-fullscreen {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: linear-gradient(180deg, #f8fafc 0%, #e2e8f0 100%);
    position: relative;
}
.gen-center {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 24px;
    max-width: 480px;
    width: 100%;
}
.gen-logo {
    font: 800 14px/1 'Inter', sans-serif;
    color: #94a3b8;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 16px;
}
.gen-title {
    font: 700 clamp(1.5rem, 4vw, 2rem)/1.2 'Inter', sans-serif;
    color: #1e293b;
    margin-bottom: 8px;
}
.gen-timer {
    font: 700 clamp(2rem, 6vw, 3rem)/1 'Inter', sans-serif;
    color: var(--primary, #2563eb);
    margin-bottom: 8px;
}
.gen-status {
    font: 400 15px/1.5 'Inter', sans-serif;
    color: #64748b;
    margin-bottom: 20px;
}
.gen-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #1e293b;
    color: rgba(255,255,255,.85);
    padding: 14px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
    font: 400 13px/1.4 'Inter', sans-serif;
    z-index: 100;
}
.gen-bottom-bar__label {
    font-weight: 700;
    color: rgba(255,255,255,.5);
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.05em;
    flex-shrink: 0;
}
.gen-bottom-bar__text {
    transition: opacity .3s;
}

/* ── Wizard common (wiz-) ─────────────── */
.wiz-textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid var(--border, #e2e8f0);
    border-radius: 10px;
    font: 400 15px/1.6 'Inter', sans-serif;
    color: var(--text-primary, #1e293b);
    resize: vertical;
    min-height: 120px;
    transition: border-color .15s;
    background: #fff;
}
.wiz-textarea:focus { outline: none; border-color: var(--primary, #2563eb); box-shadow: 0 0 0 3px rgba(37,99,235,.08); }
.wiz-textarea::placeholder { color: var(--text-muted, #94a3b8); }
.wiz-textarea-footer { display: flex; align-items: center; justify-content: space-between; padding: 8px 0 0; }
.wiz-error { font: 400 13px/1.4 'Inter', sans-serif; color: #ef4444; display: none; }
.wiz-error.visible { display: block; }
.wiz-counter { font: 400 12px/1 'Inter', sans-serif; color: var(--text-muted, #94a3b8); margin-left: auto; }
.wiz-input {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--border, #e2e8f0);
    border-radius: 8px;
    font: 400 15px/1.5 'Inter', sans-serif;
    color: var(--text-primary);
    background: #fff;
    transition: border-color .15s;
}
.wiz-input:focus { outline: none; border-color: var(--primary, #2563eb); box-shadow: 0 0 0 3px rgba(37,99,235,.08); }

/* ── Q&A Interview ──────────────────────── */
.qa-history {
    max-width: 560px;
    margin: 16px auto 0;
    max-height: 300px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.qa-pair {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.qa-pair__q {
    font: 500 14px/1.5 'Inter', sans-serif;
    color: var(--text-secondary, #64748b);
    padding: 8px 12px;
    background: var(--bg-secondary, #f1f5f9);
    border-radius: 10px 10px 10px 2px;
}
.qa-pair__a {
    font: 400 14px/1.5 'Inter', sans-serif;
    color: var(--text-primary, #1e293b);
    padding: 8px 12px;
    background: var(--primary-bg, rgba(37,99,235,.06));
    border-radius: 10px 10px 2px 10px;
    align-self: flex-end;
    max-width: 85%;
}
.qa-current {
    max-width: 560px;
    margin: 20px auto 0;
}
.qa-question {
    font: 600 16px/1.5 'Inter', sans-serif;
    color: var(--text-primary, #1e293b);
    padding: 14px 16px;
    background: var(--bg-secondary, #f1f5f9);
    border-radius: 12px;
    margin-bottom: 12px;
}
.qa-answer-wrap {
    display: flex;
    gap: 8px;
}
.qa-answer-input {
    flex: 1;
}
.qa-answer-btn {
    flex-shrink: 0;
    white-space: nowrap;
}
.qa-loading {
    max-width: 560px;
    margin: 24px auto 0;
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    font: 400 14px/1 'Inter', sans-serif;
    color: var(--text-muted, #94a3b8);
}

.followup-optional {
    font-weight: 400;
    font-size: 13px;
    color: var(--text-muted, #94a3b8);
}
