/* ══════════════════════════════════════════════════════
   Landing — Single-column donation page
   ══════════════════════════════════════════════════════ */

.landing {
    max-width: 900px;
    margin: 0 auto;
    padding: 1rem 1.5rem 3rem;
}

/* ══════════════════════════════════════════════════════
   AccountNudge component
   ══════════════════════════════════════════════════════ */
.account-nudge {
    margin-bottom: 1rem;
}

.account-nudge-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    padding: 1.25rem 1.5rem;
    border-radius: 1.5rem;
    background: var(--color-cream, #faf7f2);
    border: 1px solid var(--color-sand, #e8e0d4);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.account-nudge-content {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    min-width: 0;
}

.account-nudge-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(39, 174, 96, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.account-nudge-icon svg {
    width: 18px;
    height: 18px;
    color: #27ae60;
}

.account-nudge-content strong {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: #18181b;
    line-height: 1.3;
}

.account-nudge-content span {
    display: block;
    font-size: 0.875rem;
    color: var(--color-muted, #595959);
    line-height: 1.3;
}

.account-nudge-actions {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-shrink: 0;
}

.account-nudge-btn {
    padding: 0.6rem 1.25rem;
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    white-space: nowrap;
}

.account-nudge-btn.primary {
    background: var(--color-primary, #00885b);
    color: #fff;
}

.account-nudge-btn.primary:hover {
    background: #006644;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 136, 90, 0.25);
}

.account-nudge-btn.secondary {
    background: transparent;
    color: var(--color-muted, #595959);
    border: 1.5px solid var(--color-sand, #e8e0d4);
}

.account-nudge-btn.secondary:hover {
    color: var(--color-primary, #00885b);
    border-color: var(--color-primary, #00885b);
}

/* Connected variant */
.account-nudge--connected .account-nudge-inner {
    background: var(--color-green-light, #e6f5ee);
    border-color: rgba(0, 136, 90, 0.15);
}

.account-nudge-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #27ae60;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
}

/* ── Left column: donation form ── */
.landing-form {
    background: #fff;
    border-radius: 1.5rem;
    padding: 2.5rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.landing-form-title {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-charcoal, #1a1a1a);
    margin: 0 0 0.5rem;
    line-height: 1.2;
}

.landing-form-subtitle {
    font-size: 1.1rem;
    color: var(--color-muted, #595959);
    margin: 0 0 2rem;
    line-height: 1.6;
}

/* Section dividers inside the form */
.landing-section {
    margin-top: 1.75rem;
    padding-top: 1.75rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.landing-section-title {
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #18181b;
    margin: 0 0 0.4rem;
}

.landing-section-desc {
    font-size: 0.88rem;
    color: #334155;
    margin: 0 0 1.25rem;
    line-height: 1.5;
}

/* Form errors */
.form-error-message {
    color: #e74c3c;
    font-size: 0.78rem;
    margin-top: 0.25rem;
}

/* ── Amount hero block ── */
.landing-amount-block {
    background: linear-gradient(135deg, #f0fdf4 0%, #f8fafb 100%);
    border: 1.5px solid rgba(39, 174, 96, 0.12);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.25rem;
    text-align: center;
}

.landing-amount-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 1rem;
}

.landing-amount-input-wrap {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.landing-amount-input {
    width: 160px;
    font-size: 2.5rem;
    font-weight: 700;
    color: #18181b;
    text-align: center;
    border: none;
    border-bottom: 3px solid #27ae60;
    background: transparent;
    padding: 0.25rem 0;
    outline: none;
    font-family: inherit;
    transition: font-size 0.2s cubic-bezier(0.4, 0, 0.2, 1),
                width 0.2s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.2s,
                transform 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    -moz-appearance: textfield;
}

.landing-amount-input::-webkit-outer-spin-button,
.landing-amount-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.landing-amount-input::placeholder {
    color: #d1d5db;
    font-weight: 400;
}

.landing-amount-input:focus {
    border-bottom-color: #219a52;
}

.landing-amount-currency {
    font-size: 1.5rem;
    font-weight: 600;
    color: #64748b;
    user-select: none;
}

.landing-amount-equiv {
    font-size: 0.82rem;
    color: #64748b;
    margin: 0.25rem 0 0;
}

/* Quick amount chips */
.landing-amount-quick {
    display: flex;
    justify-content: center;
    gap: 0.4rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.landing-amount-chip {
    padding: 0.4rem 1rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 100px;
    background: #fff;
    color: #334155;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
    line-height: 1;
}

.landing-amount-chip:hover {
    border-color: #27ae60;
    color: #27ae60;
    transform: translateY(-1px);
}

.landing-amount-chip.active {
    border-color: #27ae60;
    background: #27ae60;
    color: #fff;
    box-shadow: 0 2px 8px rgba(39, 174, 96, 0.25);
    transform: translateY(-1px);
}

/* ── Project cards ── */
.landing-projects {
    margin-bottom: 1.25rem;
}

.landing-project-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.landing-project-card {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    width: 100%;
    padding: 0.75rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    background: #fafafa;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: left;
    font-family: inherit;
}

.landing-project-card:hover {
    border-color: rgba(39, 174, 96, 0.4);
    background: #fff;
}

.landing-project-card.selected {
    border-color: #27ae60;
    background: rgba(39, 174, 96, 0.03);
    box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.08);
}

/* Image */
.landing-project-img {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
}

.landing-project-img--fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(39, 174, 96, 0.06);
}

.landing-project-img--fallback svg {
    width: 22px;
    height: 22px;
    color: #94a3b8;
}

/* Info */
.landing-project-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.landing-project-name {
    font-size: 0.88rem;
    font-weight: 600;
    color: #18181b;
    line-height: 1.3;
}

.landing-project-excerpt {
    font-size: 0.75rem;
    color: #64748b;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Project amount (top-right) */
.landing-project-amount {
    display: flex;
    align-items: baseline;
    gap: 0.2rem;
    flex-shrink: 0;
    margin-left: auto;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.landing-project-amount-value {
    font-size: 1.15rem;
    font-weight: 700;
    color: #27ae60;
    line-height: 1;
    transition: color 0.2s;
}

.landing-project-amount-unit {
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
}

.landing-project-amount-value.boosted {
    color: #18181b;
}

.landing-project-amount-unit.boosted {
    color: #18181b;
}


/* Check icon */
.landing-project-check {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.landing-project-check svg {
    width: 13px;
    height: 13px;
    color: transparent;
    transition: all 0.2s;
}

.landing-project-card:hover .landing-project-check {
    border-color: #27ae60;
}

.landing-project-card.selected .landing-project-check {
    background: #27ae60;
    border-color: #27ae60;
    box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.15);
}

.landing-project-card.selected .landing-project-check svg {
    color: #fff;
}

/* Company fields */
.landing-company-fields {
    display: none;
    padding-top: 1rem;
    border-top: 1px dashed #e2e8f0;
    margin-top: 1rem;
}

.landing-company-fields.visible {
    display: block;
}

/* Submit button */
.landing-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: 100%;
    padding: 1rem;
    border-radius: 100px;
    font-size: 1rem;
    font-weight: 600;
    background: var(--color-primary, #00885b);
    color: #fff;
    border: none;
    cursor: pointer;
    font-family: inherit;
    box-shadow: 0 4px 16px rgba(0, 136, 90, 0.25);
    transition: all 0.3s;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 1.5rem;
}

.landing-submit:hover:not(:disabled) {
    box-shadow: 0 6px 24px rgba(39, 174, 96, 0.35);
    transform: translateY(-1px);
}

.landing-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.landing-submit svg {
    width: 18px;
    height: 18px;
}

/* Prefilled badge */
.landing-prefilled {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.75rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(39, 174, 96, 0.08);
    color: #27ae60;
    margin-bottom: 1rem;
}

.landing-prefilled svg {
    width: 14px;
    height: 14px;
}

/* ── Flash messages ── */
.landing-flash {
    max-width: 1100px;
    margin: 0 auto 1rem;
    padding: 0 1.5rem;
}

.landing-flash .alert {
    padding: 0.75rem 1rem;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 500;
}

/* ══════════════════════════════════════════════════════
   Responsive
   ══════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    .landing {
        padding: 0.75rem 1rem 2rem;
    }

    .landing-form {
        padding: 1.5rem;
        border-radius: 16px;
    }

    .landing-form-title {
        font-size: 1.25rem;
    }

    .landing-amount-block {
        padding: 1.25rem;
    }

    .landing-amount-input {
        font-size: 2rem;
        width: 120px;
    }

    .landing-amount-currency {
        font-size: 1.2rem;
    }

    .landing-amount-chip {
        padding: 0.35rem 0.85rem;
        font-size: 0.8rem;
    }

    .landing-project-card {
        gap: 0.5rem;
        padding: 0.6rem;
        overflow: hidden;
    }

    .landing-project-img {
        width: 38px;
        height: 38px;
    }

    .landing-project-amount-value {
        font-size: 0.9rem;
    }

    .landing-project-name {
        font-size: 0.82rem;
    }

    .landing-project-excerpt {
        display: none;
    }

    .account-nudge-inner {
        flex-direction: column;
        text-align: center;
    }

    .account-nudge-content {
        flex-direction: column;
    }
}
