/*
 * List Your Space Stylesheet (resources/views/frontend/pages/list-your-space.blade.php).
 * Shares design language, tokens, and reveal animations with how-it-works.css.
 */

.lys {
    --lys-ink: #0f172a;
    --lys-ink-2: #334155;
    --lys-muted: #64748b;
    --lys-line: #e2e8f0;
    --lys-soft: #f8fafc;
    --lys-brand: #2563eb;
    --lys-brand-ink: #1d4ed8;
    --lys-brand-soft: #eff6ff;
    --lys-ease: cubic-bezier(0.16, 1, 0.3, 1);
    --lys-shadow: 0 1px 3px rgba(15, 23, 42, 0.05), 0 10px 24px -12px rgba(15, 23, 42, 0.12);
    --lys-shadow-lift: 0 4px 6px rgba(15, 23, 42, 0.05), 0 20px 36px -16px rgba(15, 23, 42, 0.2);

    /* The shared .hiw-btn buttons (how-it-works.css) read these, which are otherwise only set
       on the How it works page. */
    --hiw-ink: var(--lys-ink);
    --hiw-line: var(--lys-line);
    --hiw-brand: var(--lys-brand);
    --hiw-brand-ink: var(--lys-brand-ink);
    --hiw-ease: var(--lys-ease);
    --hiw-shadow: var(--lys-shadow);

    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    color: var(--lys-ink);
}

.lys-wrap {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 768px) {
    .lys-wrap {
        padding: 0 1.5rem;
    }
}

/* ── Hero Section ──────────────────────────────────────────────────────── */

.lys-hero {
    position: relative;
    overflow: hidden;
    padding: 136px 0 84px;
    background:
        radial-gradient(55% 80% at 10% 0%, rgba(37, 99, 235, 0.12), rgba(37, 99, 235, 0) 60%),
        radial-gradient(45% 70% at 90% 12%, rgba(13, 148, 136, 0.12), rgba(13, 148, 136, 0) 60%),
        linear-gradient(180deg, #f5f9ff 0%, #ffffff 100%);
}

.lys-hero__intro {
    max-width: 46rem;
    margin: 0 auto;
    text-align: center;
}

.lys-hero__title {
    margin: 0;
    font-family: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
    font-size: var(--type-title);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--lys-ink);
    text-wrap: balance;
}

.lys-hero__lead {
    margin: 20px 0 0;
    color: var(--lys-ink-2);
    font-size: var(--type-lead);
    line-height: 1.65;
    text-wrap: pretty;
}

/* ── Section Headings ─────────────────────────────────────────────────── */

.lys-section {
    padding: 88px 0;
}

.lys-section--tint {
    border-top: 1px solid var(--lys-line);
    border-bottom: 1px solid var(--lys-line);
    background: var(--lys-soft);
}

.lys-section--last {
    padding-top: 32px;
    padding-bottom: 96px;
}

.lys-head {
    max-width: 44rem;
    margin: 0 auto 52px;
    text-align: center;
}

.lys-head__title {
    margin: 0;
    font-family: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
    font-size: var(--type-section);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.025em;
    text-wrap: balance;
}

/* ── Why list: five cards, the last row centred ────────────────────────── */

.lys-benefits-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.lys-benefit-card {
    display: flex;
    flex: 1 1 280px;
    flex-direction: column;
    max-width: 370px;
    padding: 30px 28px;
    border: 1px solid var(--lys-line);
    border-radius: var(--radius-lg);
    background: #ffffff;
    box-shadow: var(--lys-shadow);
    transition: transform 0.25s var(--lys-ease), box-shadow 0.25s var(--lys-ease), border-color 0.25s var(--lys-ease);
}

.lys-benefit-card:hover {
    transform: translateY(-4px);
    border-color: #bfdbfe;
    box-shadow: var(--lys-shadow-lift);
}

.lys-benefit-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: var(--lys-brand-soft);
    color: var(--lys-brand);
    margin-bottom: 20px;
    transition: transform 0.3s var(--lys-ease), background-color 0.3s var(--lys-ease), color 0.3s var(--lys-ease);
}

.lys-benefit-card__icon svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.lys-benefit-card:hover .lys-benefit-card__icon {
    transform: scale(1.08) rotate(-5deg);
    background: var(--lys-brand);
    color: #ffffff;
}

.lys-benefit-card__body {
    margin: 0;
    color: var(--lys-ink);
    font-size: var(--type-body);
    font-weight: 500;
    line-height: 1.6;
}

/* ── How it works: three steps ─────────────────────────────────────────── */

.lys-steps {
    display: grid;
    gap: 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}

@media (min-width: 860px) {
    .lys-steps {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.lys-step-box {
    position: relative;
    padding: 36px 30px;
    border: 1px solid var(--lys-line);
    border-radius: var(--radius-xl);
    background: #ffffff;
    box-shadow: var(--lys-shadow);
    transition: transform 0.25s var(--lys-ease), border-color 0.25s var(--lys-ease), box-shadow 0.25s var(--lys-ease);
}

.lys-step-box:hover {
    transform: translateY(-4px);
    border-color: #bfdbfe;
    box-shadow: var(--lys-shadow-lift);
}

.lys-step-box__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    background: var(--lys-brand);
    color: #ffffff;
    font-family: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 20px;
    box-shadow: 0 6px 16px -4px rgba(37, 99, 235, 0.5);
}

.lys-step-box__title {
    margin: 0;
    font-family: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
    font-size: var(--type-card);
    font-weight: 700;
    line-height: 1.3;
    color: var(--lys-ink);
    letter-spacing: -0.015em;
}

.lys-step-box__body {
    margin: 10px 0 0;
    color: var(--lys-ink-2);
    font-size: var(--type-body);
    line-height: 1.6;
}

/* ── Sign-up card ──────────────────────────────────────────────────────── */

.lys-cta-card {
    position: relative;
    overflow: hidden;
    padding: 56px 36px;
    border-radius: var(--radius-xl);
    background:
        radial-gradient(70% 90% at 100% 0%, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0) 65%),
        radial-gradient(60% 80% at 0% 100%, rgba(13, 148, 136, 0.25), rgba(13, 148, 136, 0) 65%),
        linear-gradient(135deg, #1d4ed8 0%, #2563eb 55%, #1e40af 100%);
    color: #ffffff;
    text-align: center;
    box-shadow: 0 24px 50px -20px rgba(37, 99, 235, 0.65);
}

@media (min-width: 768px) {
    .lys-cta-card {
        padding: 72px 56px;
    }
}

.lys-cta-card h2 {
    max-width: 36rem;
    margin: 0 auto;
    font-family: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
    font-size: var(--type-section);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.025em;
    color: #ffffff;
}

.lys-cta-card p {
    max-width: 36rem;
    margin: 16px auto 0;
    font-size: var(--type-lead);
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.9);
}

.lys-cta-card__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin-top: 32px;
}

/* ── Reveal Animations (via hiw-js) ────────────────────────────────────── */

.hiw-js [data-reveal] {
    transition: opacity 0.55s var(--lys-ease), transform 0.55s var(--lys-ease);
}

.hiw-js [data-reveal]:not(.is-visible) {
    opacity: 0;
    transform: translateY(20px);
}

.hiw-js .lys-benefit-card:nth-child(2),
.hiw-js .lys-step-box:nth-child(2) {
    transition-delay: 0.08s;
}

.hiw-js .lys-benefit-card:nth-child(3),
.hiw-js .lys-step-box:nth-child(3) {
    transition-delay: 0.16s;
}

.hiw-js .lys-benefit-card:nth-child(4) {
    transition-delay: 0.24s;
}

.hiw-js .lys-benefit-card:nth-child(5) {
    transition-delay: 0.32s;
}

@media (prefers-reduced-motion: reduce) {
    .lys *,
    .lys *::before,
    .lys *::after {
        animation: none !important;
        transition: none !important;
    }
}
