/* ============================================================
   landing.css — marketing/landing page sections.
   Hero, products grid, pricing, builder viz, launch promo.
   ============================================================ */

/* ---------- Hero ---------- */
.hero {
    text-align: center;
    align-items: center;
}
.hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: 0.4em 0.9em;
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--accent);
    background: var(--accent-soft);
    border: 1px solid var(--accent);
    border-radius: var(--radius-full);
    margin-bottom: var(--space-5);
}
.hero h1 {
    font-size: clamp(2.5rem, 6vw, var(--text-4xl));
    max-width: 16ch;
    margin-inline: auto;
    margin-bottom: var(--space-4);
}
.hero__lead {
    max-width: 52ch;
    margin-inline: auto;
    font-size: var(--text-lg);
    color: var(--text-muted);
    margin-bottom: var(--space-6);
}

/* Hero chat input (teaser → register → /chat) */
.hero-chat {
    width: 100%;
    max-width: 640px;
    margin-inline: auto;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: var(--space-3);
    display: flex;
    align-items: flex-end;
    gap: var(--space-2);
    transition: border-color var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}
.hero-chat:focus-within {
    border-color: var(--accent);
    box-shadow: var(--shadow-lg), 0 0 0 4px var(--accent-soft);
}
.hero-chat textarea {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    resize: none;
    color: var(--text);
    font-size: var(--text-base);
    font-family: inherit;
    line-height: var(--leading-normal);
    padding: 0.6em 0.5em;
    max-height: 160px;
}
.hero-chat textarea::placeholder { color: var(--text-faint); }
.hero-chat__send {
    flex-shrink: 0;
    width: 2.6em;
    height: 2.6em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-contrast);
    background: var(--accent);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: background var(--dur-fast), transform var(--dur-fast);
}
.hero-chat__send:hover { background: var(--accent-hover); transform: translateY(-1px); }
.hero__hint {
    margin-top: var(--space-4);
    color: var(--text-faint);
    font-size: var(--text-sm);
}
.hero__chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-2);
    margin-top: var(--space-5);
}
.hero__chip {
    padding: 0.5em 1em;
    font-size: var(--text-sm);
    color: var(--text-muted);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--dur-fast) var(--ease-out);
}
.hero__chip:hover { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }

/* ---------- Products ---------- */
.section--products .section-head { text-align: center; margin-bottom: var(--space-7); }
.section--products .section-lead { margin-inline: auto; }
.product-card {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    padding: var(--space-6);
    overflow: hidden;
    position: relative;
}
.product-card__icon {
    width: 3rem;
    height: 3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    background: var(--accent-soft);
    border: 1px solid var(--accent);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-2);
}
.product-card h3 { font-size: var(--text-xl); }
.product-card p { font-size: var(--text-sm); flex: 1; }
.product-card__link {
    margin-top: var(--space-2);
    font-size: var(--text-sm);
    font-weight: 600;
}

/* ---------- Pricing ---------- */
.section--pricing .section-head { text-align: center; margin-bottom: var(--space-7); }
.section--pricing .section-lead { margin-inline: auto; }
.price-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--space-4);
}
.price-card {
    display: flex;
    flex-direction: column;
    padding: var(--space-5);
    position: relative;
}
.price-card--featured {
    border-color: var(--accent);
    box-shadow: var(--shadow-lg), 0 0 0 1px var(--accent-soft);
}
.price-card__tag {
    position: absolute;
    top: -0.7rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: var(--text-xs);
    font-weight: 700;
    padding: 0.3em 0.8em;
    color: var(--accent-contrast);
    background: var(--accent);
    border-radius: var(--radius-full);
    white-space: nowrap;
}
.price-card__name { font-size: var(--text-sm); font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; }
.price-card__price {
    font-size: var(--text-3xl);
    font-weight: 700;
    color: var(--text);
    margin: var(--space-2) 0 var(--space-1);
}
.price-card__price small { font-size: var(--text-sm); font-weight: 500; color: var(--text-muted); }
.price-card__desc { font-size: var(--text-sm); color: var(--text-muted); min-height: 2.5em; margin-bottom: var(--space-4); }
.price-card ul { display: flex; flex-direction: column; gap: var(--space-2); margin-bottom: var(--space-5); flex: 1; }
.price-card li { font-size: var(--text-sm); color: var(--text-muted); display: flex; gap: var(--space-2); align-items: flex-start; }
.price-card li::before {
    content: '';
    flex-shrink: 0;
    width: 1rem;
    height: 1rem;
    margin-top: 0.15em;
    background: var(--accent);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / contain no-repeat;
}
.price-card .btn { width: 100%; }

/* ---------- Builder viz ---------- */
.section--builder .section-head { text-align: center; margin-bottom: var(--space-6); }
.section--builder .section-lead { margin-inline: auto; }
.builder-stage {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: var(--space-5);
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    min-height: 420px;
    box-shadow: var(--shadow-lg);
}
@media (max-width: 820px) { .builder-stage { grid-template-columns: 1fr; } }

.builder-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    padding: var(--space-4);
    background: var(--bg-sunken);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}
.builder-form__title { font-size: var(--text-sm); font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; }
.builder-field {
    height: 2.4em;
    border-radius: var(--radius-sm);
    background: var(--surface);
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}
.builder-field:nth-child(2) { width: 92%; }
.builder-field:nth-child(3) { width: 70%; }
.builder-field:nth-child(4) { width: 84%; }
.builder-field::after {
    content: '';
    position: absolute;
    inset: 0.5em 0.6em;
    background: var(--surface-hover);
    border-radius: var(--radius-xs);
    opacity: 0.6;
}

.builder-preview {
    position: relative;
    background: var(--bg-base);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.builder-preview__bar {
    display: flex;
    gap: var(--space-1);
    padding: var(--space-3);
    border-bottom: 1px solid var(--border);
}
.builder-preview__dot { width: 0.7em; height: 0.7em; border-radius: var(--radius-full); background: var(--border-strong); }
.builder-preview__url {
    flex: 1;
    margin-left: var(--space-3);
    height: 1.4em;
    background: var(--surface);
    border-radius: var(--radius-xs);
}
.builder-preview__canvas { flex: 1; padding: var(--space-5); display: flex; flex-direction: column; gap: var(--space-3); }
.builder-block {
    border-radius: var(--radius-sm);
    background: var(--surface);
    border: 1px solid var(--border);
    transition: transform 0.5s var(--ease-out), opacity 0.5s var(--ease-out), border-color 0.5s;
}
.builder-block--hero { height: 5em; }
.builder-block--row { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3); }
.builder-block--col { height: 4em; }
.builder-block--text { height: 0.9em; width: 80%; }
.builder-block--text.short { width: 55%; }
.builder-block--cta { height: 2.2em; width: 8em; background: var(--accent); border-color: transparent; }

/* ---------- Launch promo ---------- */
.section--promo { text-align: center; }
.promo-card {
    width: 100%;
    max-width: 880px;
    margin-inline: auto;
    padding: var(--space-8) var(--space-6);
    background:
        radial-gradient(80% 120% at 50% 0%, var(--accent-soft), transparent 70%),
        var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}
.promo-card h2 { font-size: var(--text-3xl); margin-bottom: var(--space-3); }
.promo-card p { font-size: var(--text-lg); max-width: 48ch; margin: 0 auto var(--space-6); }
.promo-card__actions { display: flex; gap: var(--space-3); justify-content: center; flex-wrap: wrap; }
.promo-strip {
    overflow: hidden;
    border-block: 1px solid var(--border);
    background: var(--bg-sunken);
    padding: var(--space-3) 0;
    margin-bottom: var(--space-6);
}
.promo-strip__track { display: flex; gap: var(--space-6); width: max-content; }
.promo-strip__item { font-size: var(--text-sm); font-weight: 600; color: var(--text-muted); white-space: nowrap; }
.promo-strip__item span { color: var(--accent); }

/* Reduced-height section for footer/promo so snap still feels right */
.snap-section--auto { min-height: auto; }
