/* Landing for Yandex.Direct traffic: resources/views/landing/index.blade.php.
   Page-level styles only; the blocks shared with the in-account help page
   live in lp-components.css. */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--lp-font);
    font-size: 17px;
    line-height: 1.55;
    color: var(--lp-ink);
    background: var(--lp-bg);
    overflow-x: hidden;
}

img { max-width: 100%; }

.lp-wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }

/* ---------- header ---------- */

/* ---------- site navbar: mirrors the home page (style.css .navbar-custom, sticky state) ---------- */
.gw-nav {
    position: sticky; top: 0; z-index: 999;
    background: #5d9cec; padding: 10px 0;
    font-family: 'Varela Round', sans-serif;
}
.gw-nav__in {
    max-width: 1170px; margin: 0 auto; padding: 0 15px;
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
}
.gw-nav__logo {
    color: #fff; text-decoration: none; font-weight: 700; font-size: 22px;
    letter-spacing: 1px; text-transform: uppercase; line-height: 30px; padding: 10px 0;
}
.gw-nav__menu { list-style: none; margin: 0; padding: 0; display: flex; }
.gw-nav__menu a {
    display: block; padding: 10px 15px; margin: 5px 0;
    color: rgba(255,255,255,.75); font-size: 15px; line-height: 20px; text-decoration: none;
}
.gw-nav__menu a:hover, .gw-nav__menu a:focus { color: #fff; }
.gw-nav__toggle {
    display: none; background: none; border: 0; padding: 9px 10px; cursor: pointer;
}
.gw-nav__toggle span { display: block; width: 22px; height: 2px; background: #fff; border-radius: 1px; }
.gw-nav__toggle span + span { margin-top: 4px; }
@media (max-width: 767px) {
    .gw-nav__toggle { display: block; }
    .gw-nav__menu { display: none; flex-direction: column; width: 100%; }
    .gw-nav--open .gw-nav__menu { display: flex; }
}

/* ---------- sections ---------- */
.lp-section { position: relative; padding: 72px 0; overflow: hidden; }
.lp-section:nth-of-type(even) { background: var(--lp-bg-alt); }
.lp-kicker {
    margin: 0 0 8px; font-size: 14px; font-weight: 700; letter-spacing: .08em;
    text-transform: uppercase; color: var(--lp-accent-dark);
}
.lp-h1, .lp-h2 { margin: 0 0 16px; line-height: 1.2; letter-spacing: -.01em; }
.lp-h1 { font-size: clamp(28px, 4.2vw, 44px); }
.lp-h2 { font-size: clamp(26px, 3.4vw, 36px); }
.lp-lead { margin: 0 0 28px; color: var(--lp-muted); max-width: 640px; }

/* parallax decoration */
.lp-parallax { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.lp-blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .35; will-change: transform; }
.lp-blob--1 { width: 460px; height: 460px; background: #9cc3f5; top: -120px; right: -120px; }
.lp-blob--2 { width: 360px; height: 360px; background: #c7b8ee; bottom: -140px; left: -120px; }
.lp-blob--3 { width: 420px; height: 420px; background: #b9e0f0; top: 10%; right: -160px; }
.lp-section > .lp-wrap { position: relative; z-index: 1; }

/* reveal on scroll (landing.js adds .is-visible) */
.lp-reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.lp-reveal.is-visible { opacity: 1; transform: none; }
.no-js .lp-reveal { opacity: 1; transform: none; }

/* ---------- 1. guest ---------- */
.lp-guest { padding-top: 48px; }
.lp-guest__grid { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; }

.lp-flow { list-style: none; margin: 0; padding: 0; counter-reset: flow; }
.lp-flow li { counter-increment: flow; }
.lp-flow button {
    display: flex; align-items: center; gap: 12px; width: 100%;
    padding: 10px 12px; margin: 0 0 4px;
    font: inherit; font-size: 16px; text-align: left; color: var(--lp-muted);
    background: none; border: 0; border-radius: 12px; cursor: pointer;
    transition: background .25s, color .25s;
}
.lp-flow button::before {
    content: counter(flow);
    flex: 0 0 28px; height: 28px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 14px; font-weight: 700;
    background: var(--lp-line); color: var(--lp-muted);
    transition: background .25s, color .25s;
}
.lp-flow li.is-active button { background: #fff; color: var(--lp-ink); box-shadow: 0 4px 18px rgba(31,45,58,.08); }
.lp-flow li.is-active button::before { background: var(--lp-accent); color: #fff; }
.lp-flow li.is-done button::before { background: #cfe0f8; color: var(--lp-accent-dark); }
.lp-flow button:focus-visible { outline: 2px solid var(--lp-accent); outline-offset: 2px; }

.lp-guest__phone { display: flex; flex-direction: column; align-items: center; }

.lp-phone__viewport {
    position: absolute; top: 40px; left: 0;
    width: 390px; height: 844px;
    transform-origin: 0 0;           /* top, height and scale set by landing.js */
}
.lp-frame {
    position: absolute; top: 0; left: 0; width: 390px; height: 100%;
    border: 0; background: #fff;
    opacity: 0; transition: opacity .45s ease;
    pointer-events: none;
}
.lp-frame.is-current { opacity: 1; }

/* final screen: the page the browser opens after login */
.lp-online { padding-top: 10px; background: #fff; font-family: var(--lp-font); }
.lp-online__bar {
    margin: 0 14px 14px; padding: 10px 14px; border-radius: 12px;
    background: #eef1f5; font-size: 17px; color: #333; text-align: center;
}
.lp-online__lock { font-size: 13px; }
.lp-online__shot { display: block; width: 100%; height: auto; }

/* incoming SMS banner */
.lp-sms {
    position: absolute; z-index: 6; top: 10px; left: 12px; right: 12px;
    display: flex; gap: 12px; align-items: flex-start;
    padding: 14px 16px; border-radius: 22px;
    background: rgba(245,245,247,.97);
    box-shadow: 0 10px 30px rgba(0,0,0,.18);
    font-family: var(--lp-font); color: #111;
    transform: translateY(-140%); opacity: 0;
    transition: transform .45s cubic-bezier(.2,.9,.3,1.2), opacity .3s;
}
.lp-sms.is-shown { transform: none; opacity: 1; }
.lp-sms__icon {
    flex: 0 0 42px; height: 42px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    background: #34c759; font-size: 22px;
}
.lp-sms__body { flex: 1; min-width: 0; }
.lp-sms__head { display: flex; justify-content: space-between; font-size: 17px; }
.lp-sms__head span { color: #888; font-size: 15px; }
.lp-sms__text { font-size: 17px; line-height: 1.3; }

/* tap marker */
.lp-tap {
    position: absolute; z-index: 7; width: 54px; height: 54px; margin: -27px 0 0 -27px;
    border-radius: 50%; background: rgba(93,156,236,.45); border: 3px solid rgba(255,255,255,.9);
    opacity: 0; transform: scale(.4); pointer-events: none;
}
.lp-tap.is-tapping { animation: lp-tap .55s ease-out; }
@keyframes lp-tap {
    0%   { opacity: 0; transform: scale(.4); }
    30%  { opacity: 1; transform: scale(1); }
    100% { opacity: 0; transform: scale(1.5); }
}

/* ---------- 2. hardware ---------- */
.lp-hw__grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.lp-card__img {
    position: relative; height: 160px; margin: -8px -8px 20px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 12px; background: var(--lp-bg-alt); overflow: hidden;
}
.lp-card__img img { max-height: 140px; width: auto; object-fit: contain; mix-blend-mode: multiply; } /* white product backgrounds blend into the card */
.lp-card__img span { display: none; font-size: 26px; font-weight: 800; color: #9aabbd; }
.lp-card__img.is-empty img { display: none; }
.lp-card__img.is-empty span { display: block; }

/* ---------- 3. steps ---------- */
.lp-steps .lp-timeline__num { box-shadow: 0 0 0 6px var(--lp-bg-alt); }

/* ---------- CTA ---------- */
.lp-cta {
    padding: 72px 0; text-align: center; color: #fff;
    background: linear-gradient(135deg, #5d9cec, #3f6fd1);
}
.lp-cta h2 { margin: 0 0 12px; font-size: clamp(26px, 3.6vw, 38px); line-height: 1.2; }
.lp-cta p { margin: 0 0 28px; opacity: .9; }
.lp-btn {
    display: inline-block; padding: 16px 36px; border-radius: 999px;
    background: #fff; color: #2f5fb8; font-weight: 700; font-size: 18px; text-decoration: none;
    box-shadow: 0 10px 30px rgba(0,0,0,.18); transition: transform .2s, box-shadow .2s;
}
.lp-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(0,0,0,.22); }
.lp-cta__alt { display: block; margin-top: 18px; color: #fff; opacity: .85; }
.lp-btn--primary { background: linear-gradient(135deg, #5d9cec, #3f6fd1); color: #fff; font-size: 17px; padding: 14px 30px; }

/* price + CTA on the first screen */
.lp-offer { margin-top: 24px; }
.lp-offer__prices { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px 28px; }
.lp-offer__prices li { display: flex; flex-direction: column; }
.lp-offer__prices span { font-size: 14px; color: var(--lp-muted); }
.lp-offer__prices b { font-size: clamp(22px, 2.6vw, 28px); color: var(--lp-ink); }
.lp-offer__note { margin: 4px 0 18px; color: var(--lp-muted); }
.lp-offer__title { margin: 0 0 8px; font-weight: 700; color: var(--lp-ink); }
@media (max-width: 959px) {
    /* under the centred step caption on phones */
    .lp-offer { text-align: center; }
    .lp-offer__prices { justify-content: center; }
}

/* ---------- breakpoints ---------- */
@media (min-width: 768px) {
    .lp-section { padding: 96px 0; }
    .lp-hw__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1100px) {
    .lp-hw__grid { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 960px) {
    .lp-guest__grid { grid-template-columns: 1.1fr 1fr; gap: 64px; }
    .lp-phone { --w: 320px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .lp-reveal { opacity: 1; transform: none; transition: none; }
    .lp-frame, .lp-sms { transition: none; }
}

/* guest block layout: on phones the flow list goes under the mockup,
   on desktop it sits under the intro next to the phone */
.lp-guest__grid { grid-template-areas: "text" "phone" "flow"; }
.lp-guest__text { grid-area: text; }
.lp-guest__phone { grid-area: phone; }
.lp-guest__flow { grid-area: flow; }
.lp-guest__text .lp-lead { margin-bottom: 0; }
@media (min-width: 960px) {
    .lp-guest__grid {
        grid-template-areas: "text phone" "flow phone";
        grid-template-rows: auto 1fr;
        row-gap: 28px;
    }
    .lp-guest__text { align-self: end; }
    .lp-guest__flow { align-self: start; }
}

/* Phones: the mockup and the current step must fit one screen, so the
   step list collapses to the active caption only. */
@media (max-width: 959px) {
    .lp-phone { --w: min(240px, 64vw); }
    .lp-guest__grid { gap: 28px; }
    .lp-guest__flow { margin-top: -8px; }
    .lp-flow { position: relative; min-height: 64px; }
    .lp-flow li { position: absolute; left: 0; right: 0; top: 0; opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
    .lp-flow li.is-active { opacity: 1; visibility: visible; }
    .lp-flow li:first-child:not(.is-done):not(.is-active) { opacity: 1; visibility: visible; } /* before playback starts */
    .lp-flow button { justify-content: center; text-align: center; }
    .lp-guest__phone { order: 0; }
}

.lp-footer { padding: 20px 0 28px; font-size: 12px; color: var(--lp-muted); background: var(--lp-bg-alt); }
.lp-footer a { color: inherit; }

