/* =========================================
   LANDING PAGE — Editorial Lifestyle
   ========================================= */

/* --- Token definitions on wrapper --- */
.lp-wrapper {
    --cream:      #faf8f5;
    --ink:        #1c1a18;
    --stone:      #79746e;
    --teal:       #4c6d70;
    --teal-deep:  #3b5557;
    --border:     #e8e2db;
    --white:      #ffffff;
    --ff-display: 'Cormorant Garamond', Georgia, serif;
    --ff-ui:      'DM Sans', system-ui, sans-serif;
}

/* --- Page scaffold --- */
.lp-wrapper {
    min-height: 100vh;
    background: var(--cream);
    font-family: var(--ff-ui);
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ── Hero ───────────────────────────────── */
.lp-hero {
    position: relative;
    height: 255px;
    overflow: hidden;
}

.lp-hero-img {
    width: 100%;
    height: 106%;
    object-fit: cover;
    object-position: center top;
    display: block;
    animation: heroReveal 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes heroReveal {
    from { opacity: 0; transform: scale(1.05); }
    to   { opacity: 1; transform: scale(1); }
}

/* Wordmark on hero */
.lp-wordmark {
    position: absolute;
    top: 18px;
    left: 20px;
    font-family: var(--ff-ui);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: rgba(0, 0, 0, 0.9);
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
    z-index: 10;
    animation: fadeUp 0.6s 0.2s ease both;
}

/* Subtle top shade only — keeps wordmark readable, no bottom fade */
.lp-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.1) 0%,
        transparent 28%
    );
    pointer-events: none;
}

/* ── Content card ───────────────────────── */
.lp-card {
    position: relative;
    z-index: 2;
    background: var(--white);
    border-radius: 24px 24px 0 0;
    margin-top: -24px;
    padding: 30px 22px 56px;
    min-height: calc(100vh - 266px);
    animation: cardRise 0.6s 0.1s cubic-bezier(0.22, 1, 0.36, 1) both;
    box-shadow: 0 -8px 32px rgba(28, 26, 24, 0.14);
}

@keyframes cardRise {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Headline ───────────────────────────── */
.lp-headline {
    margin-bottom: 20px;
    animation: fadeUp 0.5s 0.2s ease both;
}

.lp-headline h1 {
    font-family: var(--ff-display);
    font-size: 42px;
    font-weight: 600;
    line-height: 1.1;
    color: var(--ink);
    margin: 0 0 8px;
    letter-spacing: -0.01em;
}

.lp-headline h1 em {
    font-style: italic;
    font-weight: 400;
    color: var(--teal);
}

.lp-headline p {
    font-size: 13px;
    color: var(--stone);
    font-weight: 300;
    margin: 0;
    line-height: 1.6;
}

/* ── Auth row ───────────────────────────── */
.lp-auth {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    animation: fadeUp 0.5s 0.25s ease both;
}

.lp-btn-login {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--ink);
    color: var(--white);
    text-decoration: none;
    font-family: var(--ff-ui);
    font-size: 12px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 6px;
    letter-spacing: 0.04em;
    transition: background 0.18s;
    line-height: 1;
    white-space: nowrap;
}

.lp-btn-login i {
    font-size: 10px;
    opacity: 0.8;
}

.lp-btn-login:hover,
.lp-btn-login:focus {
    background: var(--teal);
    color: var(--white);
    text-decoration: none;
}

.lp-guest-text {
    font-size: 12px;
    color: var(--stone);
    font-weight: 300;
    line-height: 1;
}

.lp-logged-in {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12.5px;
    color: var(--teal);
    font-weight: 500;
}

.lp-logged-in svg {
    flex-shrink: 0;
    width: 14px;
    height: 14px;
}

/* ── Divider ────────────────────────────── */
.lp-rule {
    border: none;
    border-top: 1px solid var(--border);
    margin: 0 0 24px;
    animation: fadeUp 0.5s 0.3s ease both;
}

/* ── Form ───────────────────────────────── */
.lp-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    animation: fadeUp 0.5s 0.32s ease both;
}

/* ── Question block ─────────────────────── */
.lp-q {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.lp-q-label {
    font-family: var(--ff-display);
    font-size: 22px;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.2;
}

.lp-q-note {
    font-size: 11px;
    color: var(--stone);
    font-weight: 300;
    letter-spacing: 0.01em;
    margin-top: -2px;
}

/* ── Stepper ────────────────────────────── */
.lp-stepper {
    display: grid;
    grid-template-columns: 60px 1fr 60px;
    align-items: stretch;
    background: var(--cream);
    border: 1.5px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    height: 64px;
}

.lp-step-btn {
    border: none;
    background: transparent;
    font-size: 26px;
    font-weight: 300;
    color: var(--teal);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--ff-ui);
    line-height: 1;
    transition: background 0.15s, color 0.15s;
    user-select: none;
    -webkit-user-select: none;
    padding: 0;
}

.lp-step-btn:hover  { background: var(--teal); color: white; }
.lp-step-btn:active { opacity: 0.75; }

.lp-step-input {
    border: none;
    background: transparent;
    text-align: center;
    font-family: var(--ff-ui);
    font-size: 32px;
    font-weight: 400;
    color: var(--ink);
    width: 100%;
    padding: 0;
    -moz-appearance: textfield;
    appearance: textfield;
    outline: none;
    pointer-events: none;
    caret-color: transparent;
    line-height: 1;
}

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

/* ── Submit ─────────────────────────────── */
.lp-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--teal);
    color: white;
    border: none;
    width: 100%;
    padding: 17px 24px;
    border-radius: 12px;
    font-family: var(--ff-ui);
    font-size: 14.5px;
    font-weight: 500;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: background 0.18s, transform 0.15s;
    margin-top: 4px;
}

.lp-submit:hover:not(:disabled) {
    background: var(--teal-deep);
    transform: translateY(-1px);
}

.lp-submit:active:not(:disabled) { transform: translateY(0); }

.lp-submit:disabled {
    opacity: 0.72;
    cursor: not-allowed;
}

.lp-submit-arrow {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    transition: transform 0.18s;
}

.lp-submit:hover:not(:disabled) .lp-submit-arrow {
    transform: translateX(4px);
}

.lp-submit.loading .lp-submit-arrow { display: none; }

/* Loading spinner */
.lp-spinner {
    display: none;
    width: 15px;
    height: 15px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.65s linear infinite;
    flex-shrink: 0;
}

.lp-submit.loading .lp-spinner { display: block; }

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ── Shared entrance animation ──────────── */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}
