/**
 * Landing Page — Interactive Prompt Section
 *
 * Styles for the Google-style input prompt prepended above the v4.1 marketing content.
 * Does NOT contain v4.1 styles (those come via runtime extraction).
 * Load order: Tailwind → app.css → v4.1 extracted styles → this file.
 */

/* Override app.css viewport lock (height: 100%; overflow: hidden) which
   prevents scrolling. The landing page needs normal scroll behavior. */
html, body {
    height: auto;
    overflow: visible;
}

/* ========== Interactive Prompt ========== */

.landing-prompt {
    min-height: calc(100dvh - 10rem);
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    position: relative;
    padding: 2rem;
}

.landing-prompt-inner {
    max-width: 640px;
    width: 100%;
    text-align: center;
}

.landing-headline {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: #0A0A0A;
    margin-bottom: 1.5rem;
}

/* Input group — matches the app's .textarea-grow-wrap + border container */
.landing-input-group {
    border: 1px solid #9CA3AF; /* gray-400 — matches real app */
    border-radius: 1rem; /* rounded-2xl */
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.landing-input-group:focus-within {
    border-color: #4B5563; /* gray-600 */
    box-shadow: 0 0 0 1px #4B5563;
}

.landing-input-group textarea {
    width: 100%;
    resize: none;
    border: none;
    outline: none;
    padding: 0.75rem 1rem;
    font-size: 1rem; /* text-base — prevents Safari auto-zoom */
    line-height: 1.5;
    background: transparent;
    border-radius: 1rem 1rem 0 0;
    font-family: inherit;
    min-height: 44px;
    max-height: 200px;
}

.landing-input-group textarea::placeholder {
    color: #9CA3AF; /* gray-400 */
}

/* Typewriter overlay — positioned over textarea, left-aligned like real input */
.landing-typewriter {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    line-height: 1.5;
    font-family: inherit;
    color: #6B7280; /* gray-500 — darker for legibility */
    pointer-events: none;
    white-space: nowrap;
    overflow: hidden;
    text-align: left;
}

/* Button row inside the input group */
.landing-input-buttons {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0.5rem 0.75rem;
    border-top: none;
}

/* Send button — matches app's send button style */
.landing-send-btn {
    border-radius: 9999px;
    height: 2rem;
    padding: 0 0.875rem;
    font-size: 0.875rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: background-color 0.15s ease, box-shadow 0.15s ease;
    background: #000;
    color: #fff;
}

.landing-send-btn:hover:not(:disabled) {
    background: #1F2937; /* gray-800 */
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

.landing-send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ========== Suggestion Chips ========== */

.landing-chips {
    margin-top: 0.5rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.landing-chips.visible {
    opacity: 1;
}

/* ========== Chips Wrapper ========== */
.landing-chips-wrapper {
    position: relative;
    margin-top: 1.5rem;
}

/* ========== Hero Promise (soft tinted pill, brand teal) ========== */
/* Sits above the H1, scopes the "free to use" promise to the entire hero
   (text input + chips). Uses the landing-page brand tokens (teal primary
   + light teal wash) so the pill integrates with the rest of the page
   palette (watercolor hero/footer, teal CTAs, etc.) rather than introducing
   a competing accent color. */
.landing-promise-pill {
    display: flex;
    justify-content: center;
    margin-bottom: 1.25rem;
    pointer-events: none;
}

.landing-promise-pill span {
    display: inline-block;
    background: var(--color-primary-light); /* #E0F0EF */
    color: var(--color-primary);            /* #1A6B6A */
    border-radius: 999px;
    padding: 0.4375rem 0.9375rem;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.005em;
    white-space: nowrap;
}

/* ========== Below-Fold Hint Delayed Reveal ========== */
/* Only the above-fold hints (transition zone + gradient orbs) fade in.
   v4.1 content stays visible for anchor links and page refresh. */

.landing-transition,
.gradient-bg {
    opacity: 0;
    transition: opacity 1.2s ease;
}

body.fold-hints-visible .landing-transition,
body.fold-hints-visible .gradient-bg {
    opacity: 1;
}

/* ========== Transition Zone ========== */

.landing-transition {
    background: transparent;
    padding: 1rem 2rem 1.5rem;
    text-align: center;
    position: relative;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.landing-transition-logo {
    height: 32px;
    width: auto;
    border-radius: 8px;
    margin: 0;
    display: block;
}

.landing-chevron {
    color: #6B7280; /* gray-500 */
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: bounceDown 2s ease-in-out infinite;
}

.landing-chevron-label {
    font-size: 1rem;
    color: #374151; /* gray-700 — higher contrast on cream bg than the default gray-500 */
    font-weight: 500;
    line-height: 1;
}
.landing-chevron-label-accent {
    color: var(--color-primary);
    font-weight: 600;
}
.landing-chevron-sublabel {
    font-size: 0.8125rem;
    color: #6B7280; /* gray-500 */
    font-weight: 400;
    line-height: 1.3;
    margin-top: 0.375rem;
}

@keyframes bounceDown {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(6px); }
}

/* ========== v4.1 Gradient Orb Override ========== */
/* v4.1 default: position: fixed; z-index: -1 (invisible behind body bg).
   Override: relative + height: 0 puts the container in normal flow at the top
   of the v4.1 content (right before <nav>). Takes no space, but orbs inside
   (position: absolute) render and bleed visually. Scrolls with the page. */
.gradient-bg {
    position: relative;
    height: 0;
    overflow: visible;
    z-index: 0;
}

.gradient-orb {
    opacity: 0.65;
}

/* Center horizontally, bleed upward into transition zone */
.gradient-orb-1 {
    left: calc(50% - 300px); /* center the 600px orb */
    right: auto;
    top: -200px;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.22) 0%, rgba(124, 58, 237, 0.14) 100%);
}

/* Reposition with top (bottom doesn't work in a 0-height container) */
.gradient-orb-2 {
    top: 80vh;
    bottom: auto;
}

.gradient-orb-3 {
    top: 40vh;
}

/* ========== Nav Override ========== */
/* v4.1's nav starts hidden; fades in when user scrolls past the prompt */

nav {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

nav.nav-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

/* ========== Activation Card (post-confirm welcome) ========== */
/* Renders over .landing-prompt after an outbound-brief recipient confirms.
   .landing-prompt is position: relative so the overlay's inset: 0 anchors
   to the hero section, not the viewport. */

.activation-overlay {
    position: absolute;
    inset: 0;
    background: rgba(243, 244, 246, 0.55);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    z-index: 10;
}

.activation-card {
    background: white;
    border: 1px solid rgba(26, 107, 106, 0.18);
    border-radius: 16px;
    /* Teal-family shadow stack matches the watercolor icon's blue-green glow */
    box-shadow:
        0 12px 32px rgba(26, 107, 106, 0.14),
        0 4px 12px rgba(15, 60, 60, 0.08),
        inset 0 0 0 1px rgba(255, 255, 255, 0.6);
    padding: 1.5rem 1.75rem;
    max-width: 440px;
    width: 100%;
    text-align: center;
}

.activation-icon {
    width: 44px;
    height: 44px;
    border-radius: 9999px;
    background: url('/static/landing/images/blue-watercolor.webp') center/cover;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.875rem;
    box-shadow: 0 4px 12px rgba(26, 107, 106, 0.25);
}

.activation-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #0A0A0A;
    margin-bottom: 0.375rem;
    letter-spacing: -0.01em;
}

.activation-body {
    font-size: 0.9375rem;
    color: #4B5563;
    line-height: 1.5;
    margin: 0 0 1.25rem 0;
}

.activation-actions {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.activation-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 9999px;
    padding: 0.5rem 1rem;
    text-decoration: none;
    cursor: pointer;
}

.activation-btn-primary {
    background: #000;
    color: white;
    border: none;
}

.activation-btn-secondary {
    background: white;
    color: #4B5563;
    border: 1px solid #E5E7EB;
}

/* ========== Returning-User Banner ========== */
/* Purple→pink gradient pill shown above the headline when a returning user
   lands on /. Clicking takes them to /chat. */

.returning-user-banner {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    background: linear-gradient(135deg, #7C3AED, #EC4899);
    border-radius: 9999px;
    padding: 0.375rem 0.375rem 0.375rem 1.125rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.2);
    text-decoration: none;
    cursor: pointer;
}

.returning-user-greeting {
    font-size: 0.875rem;
    color: white;
    font-weight: 500;
}

.returning-user-cta {
    display: inline-flex;
    align-items: center;
    height: 2rem;
    padding: 0 0.875rem;
    background: #000;
    color: #fff;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
}

/* ========== Responsive ========== */

@media (max-width: 600px) {
    .landing-prompt {
        padding: 1.5rem 1.25rem;
    }

    .landing-headline {
        margin-bottom: 2rem;
    }
}
