/* WISE landing page — Choose WISE campaign */

html { scroll-behavior: smooth; }
a { color: inherit; }

.landing-shell {
    background: var(--wz-bg);
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

.landing-shell .wz-topbar {
    background: rgba(250, 250, 250, 0.92);
}

/* ---------- Landing topbar — logo, language, sign up only ---------- */
.landing-topbar {
    padding-top: max(10px, env(safe-area-inset-top));
    padding-bottom: 10px;
    padding-inline:
        max(16px, calc(env(safe-area-inset-left, 0px) + 12px))
        max(16px, calc(env(safe-area-inset-right, 0px) + 12px));
    gap: 10px;
}

.landing-topbar-end {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    min-width: 0;
}

.landing-topbar-signup {
    min-height: 44px;
    min-width: 44px;
    padding: 10px 16px;
    font-size: 0.88rem;
    border-radius: 999px;
    white-space: nowrap;
}

.landing-topbar-end .lang-switcher {
    flex-shrink: 0;
}

.landing-topbar-end .lang-switcher a {
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 480px) {
    .landing-topbar-brand-name {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }

    .landing-topbar-signup {
        padding: 10px 14px;
        font-size: 0.84rem;
    }
}

/* ---------- Hero ---------- */
.landing-hero {
    display: grid;
    place-items: center;
    min-height: calc(100dvh - 72px);
    padding: clamp(48px, 8vw, 96px) 0 clamp(64px, 10vw, 96px);
    text-align: center;
}

.landing-hero-inner {
    display: grid;
    gap: clamp(20px, 3vw, 28px);
    place-items: center;
    max-width: 720px;
    animation: landingHeroIn 900ms cubic-bezier(.2, .8, .2, 1) both;
}

.landing-hero-logo {
    width: clamp(72px, 14vw, 112px);
    height: clamp(72px, 14vw, 112px);
    object-fit: contain;
}

.landing-hero-headline {
    margin: 0;
    font-size: clamp(2.8rem, 8vw, 5.2rem);
    font-weight: 900;
    line-height: 1.02;
    letter-spacing: -0.04em;
    color: var(--wz-ink);
}

.landing-hero-subtitle {
    margin: 0;
    max-width: 520px;
    color: var(--wz-muted);
    font-size: clamp(1.05rem, 2.2vw, 1.35rem);
    font-weight: 400;
    line-height: 1.65;
}

.landing-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    align-items: center;
    margin-top: 8px;
}

.landing-hero-actions .wz-btn-primary {
    min-height: 54px;
    padding: 14px 32px;
    font-size: 1.02rem;
}

.landing-hero-actions .wz-btn-ghost {
    min-height: 54px;
    padding: 14px 26px;
    border-radius: 999px;
    font-size: 0.98rem;
}

.landing-scroll-cue {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: clamp(24px, 4vw, 40px);
    color: var(--wz-faint);
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 160ms ease;
}

.landing-scroll-cue:hover { color: var(--wz-ink); }

.landing-scroll-cue svg {
    width: 16px;
    height: 16px;
    animation: landingBounce 2s ease-in-out infinite;
}

/* ---------- Product reveal ---------- */
.landing-product {
    padding: clamp(48px, 8vw, 88px) 0;
    background: var(--wz-bg-2);
    border-top: 1px solid var(--wz-border);
}

.landing-product-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: clamp(32px, 6vw, 64px);
    align-items: center;
}

.landing-product-copy {
    display: grid;
    gap: 18px;
}

.landing-product-headline {
    margin: 0;
    font-size: clamp(1.9rem, 4.5vw, 3rem);
    font-weight: 900;
    line-height: 1.12;
    letter-spacing: -0.03em;
}

.landing-product-lead {
    margin: 0;
    color: var(--wz-muted);
    font-size: clamp(1rem, 2vw, 1.15rem);
    line-height: 1.8;
    max-width: 36rem;
}

.landing-product-points {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 12px;
}

.landing-product-points li {
    position: relative;
    padding-inline-start: 22px;
    color: var(--wz-ink-soft);
    font-size: 0.96rem;
    line-height: 1.7;
}

.landing-product-points li::before {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    top: 0.62em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--wz-primary);
}

.landing-chat-preview {
    width: 100%;
    max-width: 580px;
    margin-inline: auto;
    animation: landingHeroIn 920ms cubic-bezier(.2, .8, .2, 1) 80ms both;
}

.landing-chat-window {
    display: grid;
    border: 1px solid var(--wz-border);
    border-radius: var(--wz-radius-xl);
    background: var(--wz-surface);
    box-shadow: var(--wz-shadow-lg);
    overflow: hidden;
}

.landing-chat-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--wz-border);
    background: var(--wz-surface);
}

.landing-chat-head img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    flex-shrink: 0;
}

.landing-chat-head-text {
    min-width: 0;
    flex: 1;
}

.landing-chat-head strong {
    display: block;
    font-size: 0.95rem;
    font-weight: 900;
}

.landing-chat-head-text > span {
    display: block;
    margin-top: 2px;
    color: var(--wz-muted);
    font-size: 0.78rem;
    font-weight: 600;
    direction: ltr;
    text-align: start;
    unicode-bidi: plaintext;
}

.landing-chat-status {
    flex-shrink: 0;
    padding: 5px 10px;
    border-radius: 999px;
    background: var(--wz-emerald-soft);
    color: var(--wz-emerald);
    font-size: 0.72rem;
    font-weight: 800;
    white-space: nowrap;
}

.landing-chat-status::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-inline-end: 5px;
    border-radius: 50%;
    background: var(--wz-emerald);
    vertical-align: middle;
}

.landing-chat-body {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 24px 22px;
    min-height: 380px;
    max-height: min(54vh, 460px);
    overflow-y: auto;
    overflow-x: hidden;
    background: var(--wz-surface-2);
    scroll-behavior: smooth;
}

.landing-chat-body.is-fading {
    opacity: 0.2;
    transition: opacity 280ms ease;
}

.landing-chat-exchange {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.landing-chat-exchange.is-visible {
    animation: landingExchangeIn 480ms cubic-bezier(.2, .8, .2, 1) both;
}

.landing-chat-msg {
    box-sizing: border-box;
    width: fit-content;
    max-width: min(86%, 21rem);
    padding: 20px 22px;
    border-radius: 20px;
    font-size: 0.94rem;
    line-height: 1.72;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.landing-chat-msg.is-typing {
    min-width: 5.25rem;
    min-height: 3.25rem;
    padding: 20px 22px;
    display: flex;
    align-items: center;
}

.landing-chat-msg.is-reveal {
    animation: landingBubbleIn 420ms cubic-bezier(.2, .8, .2, 1) both;
}

.landing-chat-typing {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    direction: ltr;
}

.landing-chat-typing i {
    display: block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--wz-muted);
    animation: landingTypingDot 1s ease-in-out infinite;
}

.landing-chat-typing i:nth-child(2) { animation-delay: 0.16s; }
.landing-chat-typing i:nth-child(3) { animation-delay: 0.32s; }

.landing-chat-msg p {
    margin: 0;
}

.landing-chat-msg cite {
    display: block;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--wz-border);
    color: var(--wz-muted);
    font-size: 0.78rem;
    font-style: normal;
    font-weight: 700;
    line-height: 1.55;
    direction: ltr;
    text-align: start;
    unicode-bidi: plaintext;
}

.landing-chat-msg.is-user {
    align-self: flex-end;
    margin-inline-start: auto;
    border-end-end-radius: 8px;
    background: var(--wz-primary);
    color: #fff;
    font-weight: 600;
}

.landing-chat-msg.is-bot {
    align-self: flex-start;
    margin-inline-end: auto;
    border-end-start-radius: 8px;
    background: var(--wz-surface);
    border: 1px solid var(--wz-border);
    color: var(--wz-ink-soft);
    box-shadow: var(--wz-shadow-sm);
    transition: width 320ms ease, min-height 320ms ease;
}

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

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

@keyframes landingTypingDot {
    0%, 80%, 100% { opacity: 0.35; transform: translateY(0); }
    40% { opacity: 1; transform: translateY(-3px); }
}

@keyframes landingCaretBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.landing-chat-input {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    border-top: 1px solid var(--wz-border);
    background: var(--wz-surface);
    position: relative;
    min-height: 66px;
}

.landing-chat-input-placeholder,
#landing-chat-typed {
    flex: 1;
    padding: 10px 14px;
    border-radius: 999px;
    background: var(--wz-surface-2);
    font-size: 0.86rem;
    font-weight: 600;
    line-height: 1.5;
    min-height: 42px;
    display: flex;
    align-items: center;
}

.landing-chat-input-placeholder {
    position: absolute;
    inset-inline-start: 20px;
    inset-inline-end: 68px;
    color: var(--wz-faint);
    pointer-events: none;
}

#landing-chat-typed {
    position: relative;
    z-index: 1;
    color: var(--wz-ink);
    background: transparent;
}

#landing-chat-typed.is-active {
    background: var(--wz-surface-2);
}

#landing-chat-typed.is-active::after {
    content: "";
    display: inline-block;
    width: 2px;
    height: 1.1em;
    margin-inline-start: 2px;
    background: var(--wz-primary);
    vertical-align: text-bottom;
    animation: landingCaretBlink 1s step-end infinite;
}

.landing-chat-input i {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--wz-primary);
    color: #fff;
    font-style: normal;
    font-size: 1rem;
    font-weight: 900;
}

/* ---------- Choose moments ---------- */
.landing-choose {
    display: grid;
}

.landing-choose-block {
    display: grid;
    align-content: center;
    padding: clamp(28px, 5vw, 48px) 0;
}

.landing-choose-block:nth-child(odd) { background: var(--wz-surface); }
.landing-choose-block:nth-child(even) { background: var(--wz-bg-2); }

.landing-choose-inner {
    display: grid;
    gap: 10px;
    max-width: 680px;
}

.landing-choose-headline {
    margin: 0;
    font-size: clamp(1.65rem, 4vw, 2.35rem);
    font-weight: 900;
    line-height: 1.14;
    letter-spacing: -0.03em;
    color: var(--wz-ink);
}

.landing-choose-body {
    margin: 0;
    color: var(--wz-muted);
    font-size: clamp(0.94rem, 1.8vw, 1.05rem);
    font-weight: 400;
    line-height: 1.65;
    max-width: 520px;
}

/* ---------- How it works — journey timeline ---------- */
.landing-how {
    padding: clamp(48px, 8vw, 88px) 0;
    background: var(--wz-bg-2);
    border-top: 1px solid var(--wz-border);
    border-bottom: 1px solid var(--wz-border);
}

.landing-how-wrap {
    display: grid;
    gap: clamp(28px, 5vw, 48px);
}

.landing-how-head {
    display: grid;
    gap: 14px;
    max-width: 680px;
    text-align: center;
    margin-inline: auto;
}

.landing-how-headline {
    margin: 0;
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.035em;
}

.landing-how-lead {
    margin: 0;
    color: var(--wz-muted);
    font-size: clamp(1.02rem, 2vw, 1.2rem);
    line-height: 1.75;
    max-width: 560px;
    margin-inline: auto;
}

.landing-journey {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0;
    max-width: 820px;
    margin-inline: auto;
}

.landing-journey-step {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: clamp(20px, 4vw, 32px);
    position: relative;
    padding-bottom: clamp(28px, 5vw, 40px);
}

.landing-journey-step:not(:last-child)::after {
    content: "";
    position: absolute;
    inset-inline-start: 35px;
    top: 72px;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--wz-border-strong), transparent);
}

.landing-journey-marker {
    display: grid;
    place-items: center;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--wz-primary);
    color: #fff;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.landing-journey-num {
    font-size: 1.35rem;
    font-weight: 900;
    letter-spacing: -0.04em;
    font-variant-numeric: tabular-nums;
}

.landing-journey-card {
    display: grid;
    gap: 10px;
    padding: clamp(22px, 3vw, 28px) clamp(24px, 4vw, 32px);
    border: 1px solid var(--wz-border);
    border-radius: var(--wz-radius-lg);
    background: var(--wz-surface);
    box-shadow: var(--wz-shadow-sm);
}

.landing-journey-title {
    margin: 0;
    font-size: clamp(1.25rem, 2.5vw, 1.55rem);
    font-weight: 900;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.landing-journey-body {
    margin: 0;
    color: var(--wz-muted);
    font-size: clamp(0.96rem, 1.8vw, 1.05rem);
    line-height: 1.8;
}

.landing-how-foot {
    display: grid;
    gap: 20px;
    place-items: center;
    text-align: center;
    padding-top: clamp(8px, 2vw, 16px);
}

@media (max-width: 640px) {
    .landing-journey-step {
        grid-template-columns: 1fr;
        gap: 14px;
        padding-bottom: 32px;
    }

    .landing-journey-step:not(:last-child)::after {
        display: none;
    }

    .landing-journey-marker {
        width: 52px;
        height: 52px;
    }

    .landing-journey-num {
        font-size: 1.1rem;
    }
}

/* ---------- Finale CTA (dark) ---------- */
.landing-finale {
    padding: clamp(48px, 8vw, 96px) 0;
    background: #000;
    color: #fff;
}

.landing-finale-inner {
    display: grid;
    gap: 24px;
    place-items: center;
    text-align: center;
}

.landing-finale-logo {
    width: clamp(56px, 10vw, 80px);
    height: clamp(56px, 10vw, 80px);
    object-fit: contain;
    filter: invert(1);
}

.landing-finale-headline {
    margin: 0;
    font-size: clamp(2.4rem, 6vw, 4rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.landing-finale-lead {
    margin: 0;
    max-width: 440px;
    color: rgba(255, 255, 255, 0.65);
    font-size: clamp(1rem, 2vw, 1.15rem);
    line-height: 1.7;
}

.landing-finale .wz-btn-primary {
    background: #fff;
    color: #000;
    box-shadow: none;
}

.landing-finale .wz-btn-primary:hover {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 8px 32px rgba(255, 255, 255, 0.15);
}

button.wz-navlink {
    background: transparent;
    cursor: pointer;
    font-family: inherit;
}

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

@keyframes landingMsgIn {
    from { opacity: 0; transform: translateY(10px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

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

@media (max-width: 900px) {
    .landing-product-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .landing-chat-preview {
        max-width: 100%;
    }

    .landing-journey { max-width: 100%; }
}

@media (max-width: 640px) {
    .landing-hero-actions { flex-direction: column; width: 100%; }
    .landing-hero-actions .wz-btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    .landing-hero-inner,
    .landing-chat-preview,
    .landing-chat-exchange.is-visible {
        animation: none;
    }
    .landing-scroll-cue svg { animation: none; }
    .landing-chat-typing i { animation: none; }
    #landing-chat-typed.is-active::after { animation: none; }
}
