/* ==========================================================================
   Alogator - paid-acquisition landing pages (LP_ponuka / LP_trh)

   Standalone stylesheet: these pages do not load alogator.css, they have no
   header and no footer, and the only way onwards is the store. Written
   mobile-first - the base rules target a 320-430px phone, every media query
   only adds - and sized with clamp() so the layout grows continuously instead
   of jumping at a breakpoint.
   ========================================================================== */

:root {
    --signal: #E66748;
    --signal-dark: #D4573A;
    --signal-soft: #FDE8E0;
    --graphite: #1A1D1E;
    --ink: #4E4F50;
    /* 4.58:1 on --porcelain, 5.04:1 on white - the prototype's #767778 was
       below the AA floor on both. */
    --conc: #6E6F70;
    --porcelain: #F9F3ED;
    --p200: #F0E8DD;
    --p300: #E8DFD1;
    --live: #3BB273;

    /* The same stack alogator.css uses, from the same Google Fonts request the
       redesign layout makes - the landing pages must not read as a different
       site than the page the visitor lands on next. */
    --lp-font: 'Inter', system-ui, -apple-system, sans-serif;

    /* Fluid scale. The lower bound is the 320px phone, the upper bound is
       reached around 640px - past that the column stops growing, so the type
       must stop growing with it. */
    --lp-column: 520px;
    --lp-gutter: clamp(18px, 5vw, 40px);
    --lp-gap: clamp(8px, 2.2vw, 12px);

    --fs-brand: clamp(22px, 6.2vw, 34px);
    --fs-kicker: clamp(11px, 3vw, 13.5px);
    --fs-h1: clamp(26px, 7.6vw, 44px);
    --fs-sub: clamp(15px, 4.1vw, 19px);
    --fs-stat: clamp(20px, 6vw, 34px);
    --fs-stat-label: clamp(10px, 2.8vw, 13px);
    --fs-job-title: clamp(15px, 4.2vw, 21px);
    --fs-body: clamp(13px, 3.5vw, 17px);
    /* 18.67px is where bold text counts as "large" for WCAG, and white on the
       brand orange only clears the contrast floor above it. Kept as the lower
       bound rather than darkening --signal, which is the same button the whole
       site uses. */
    --fs-cta: clamp(18.7px, 4.6vw, 21px);
    --fs-chip: clamp(13.5px, 3.7vw, 16px);
    --fs-tag: clamp(10px, 2.7vw, 12.5px);
}

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

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

body {
    min-height: 100%;
    background: var(--porcelain);
    color: var(--graphite);
    font-family: var(--lp-font);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* A campaign page must never scroll sideways, whatever a long job title or
       a 30-character profession name does to a 320px screen. */
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

img {
    max-width: 100%;
    height: auto;
}

:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
    box-shadow: 0 0 0 5px var(--graphite);
}

/* --- shell ---------------------------------------------------------------- */

.screen {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    max-width: var(--lp-column);
    /* vh first as the fallback for browsers without svh; svh then wins and
       keeps the first screen clear of the mobile browser's own chrome. */
    min-height: 100vh;
    min-height: 100svh;
    margin: 0 auto;
    padding:
        calc(env(safe-area-inset-top) + 22px)
        var(--lp-gutter)
        calc(env(safe-area-inset-bottom) + 20px);
}

/* The sticky download bar overlays the end of the page; reserve its height so
   the last line is never hidden behind it. */
body.has-sticky .screen {
    padding-bottom: calc(env(safe-area-inset-bottom) + 96px);
}

/* --- brand ---------------------------------------------------------------- */

.brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(8px, 2.4vw, 12px);
    font-size: var(--fs-brand);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.brand img {
    height: clamp(32px, 9vw, 60px);
    width: auto;
}

/* LP_trh leads with the feed, so its wordmark sits smaller than on LP_ponuka. */
.screen--market .brand {
    font-size: clamp(19px, 5.2vw, 30px);
}

.screen--market .brand img {
    height: clamp(30px, 7.6vw, 48px);
}

/* --- headline ------------------------------------------------------------- */

.kick {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: clamp(16px, 4.6vw, 26px);
    color: var(--conc);
    font-size: var(--fs-kicker);
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    text-align: center;
}

.kick i {
    flex: none;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--live);
    animation: lp-pulse 2.4s ease-in-out infinite;
}

@keyframes lp-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.45; }
}

h1 {
    margin-top: clamp(8px, 2.6vw, 12px);
    font-size: var(--fs-h1);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.035em;
    text-align: center;
    text-wrap: balance;
}

/* No italic cut is requested from Google Fonts, exactly as on the rest of the
   redesign site - the hero accents there are synthesised obliques too, and
   loading a real italic here alone would make this headline the odd one out. */
h1 em {
    color: var(--signal);
    font-style: italic;
}

.sub {
    margin-top: clamp(10px, 3vw, 14px);
    color: var(--ink);
    font-size: var(--fs-sub);
    line-height: 1.45;
    text-align: center;
    text-wrap: pretty;
}

.sub b {
    color: var(--graphite);
    font-weight: 700;
}

/* --- stats ---------------------------------------------------------------- */

.stats {
    display: grid;
    /* minmax(0, 1fr) rather than 1fr: a long label must shrink the column, not
       push the grid past the viewport. */
    grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
    gap: var(--lp-gap);
    margin-top: clamp(16px, 5vw, 24px);
}

.stat {
    padding: clamp(10px, 3vw, 16px) clamp(6px, 2vw, 12px);
    border: 1px solid var(--p300);
    border-radius: clamp(12px, 3.2vw, 16px);
    background: #fff;
    text-align: center;
}

.stat b {
    display: block;
    color: var(--signal);
    font-size: var(--fs-stat);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.035em;
}

.stat i {
    display: block;
    margin-top: 5px;
    color: var(--conc);
    font-size: var(--fs-stat-label);
    font-style: normal;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

/* --- job feed ------------------------------------------------------------- */

.feed {
    display: flex;
    flex-direction: column;
    gap: clamp(6px, 1.8vw, 10px);
    margin-top: clamp(12px, 3.4vw, 16px);
}

.job {
    padding: clamp(9px, 2.8vw, 14px) clamp(11px, 3.2vw, 16px);
    border: 1px solid var(--p300);
    border-radius: clamp(13px, 3.4vw, 18px);
    background: #fff;
}

.jtop {
    display: flex;
    align-items: center;
    gap: 9px;
}

.jav {
    display: grid;
    flex: none;
    place-items: center;
    width: clamp(25px, 7vw, 38px);
    height: clamp(25px, 7vw, 38px);
    border-radius: clamp(8px, 2.2vw, 11px);
    color: #fff;
    font-size: clamp(11.5px, 3.2vw, 16px);
    font-weight: 700;
}

.jver {
    display: flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
    color: var(--conc);
    font-size: clamp(11px, 3.1vw, 14px);
    font-weight: 500;
}

.jver i {
    flex: none;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--live);
}

.jt {
    margin-top: clamp(6px, 2vw, 9px);
    font-size: var(--fs-job-title);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.015em;
    overflow-wrap: anywhere;
}

.jbot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: clamp(5px, 1.8vw, 8px);
    margin-top: clamp(6px, 1.9vw, 8px);
}

.fl {
    flex: none;
    font-size: clamp(14px, 3.8vw, 18px);
    line-height: 1;
}

.jcity {
    color: var(--ink);
    font-size: var(--fs-body);
    min-width: 0;
    overflow-wrap: anywhere;
}

.jrate {
    margin-left: auto;
    color: var(--signal);
    font-size: var(--fs-job-title);
    font-weight: 700;
    white-space: nowrap;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(4px, 1.4vw, 6px);
    margin-left: auto;
}

.tag {
    padding: 3px clamp(6px, 2vw, 10px);
    border: 1px solid var(--p300);
    border-radius: 999px;
    background: var(--porcelain);
    color: var(--ink);
    font-size: var(--fs-tag);
    font-weight: 500;
    white-space: nowrap;
}

p.rest {
    margin-top: clamp(9px, 2.8vw, 13px);
    color: var(--ink);
    font-size: var(--fs-sub);
    text-align: center;
    text-wrap: pretty;
}

p.rest b {
    color: var(--graphite);
    font-weight: 700;
}

.strip {
    margin-top: clamp(12px, 3.4vw, 14px);
    padding: clamp(12px, 3.2vw, 16px) clamp(13px, 3.6vw, 18px);
    border-radius: 13px;
    background: var(--signal-soft);
    color: var(--ink);
    font-size: var(--fs-sub);
    text-align: center;
}

/* --- profession chips ----------------------------------------------------- */

.profs {
    margin-top: clamp(13px, 3.6vw, 18px);
}

.profs .lab {
    margin-bottom: 10px;
    color: var(--conc);
    font-size: var(--fs-kicker);
    font-weight: 700;
    letter-spacing: 0.14em;
    text-align: center;
    text-transform: uppercase;
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(6px, 2vw, 9px);
    justify-content: center;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    /* The WCAG 2.2 target-size minimum, held even at the small end of the type
       scale where the chip's own padding would leave it shorter. */
    min-height: 44px;
    padding: 6px clamp(11px, 3.4vw, 17px);
    border: 1px solid var(--p300);
    border-radius: 999px;
    background: #fff;
    color: inherit;
    font-family: inherit;
    font-size: var(--fs-chip);
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.chip b {
    color: var(--signal);
    font-weight: 700;
}

.chip.on {
    border-color: var(--signal);
    background: var(--signal);
    color: #fff;
}

.chip.on b {
    color: #fff;
}

.chip.rest {
    border-style: dashed;
    color: var(--conc);
    cursor: default;
}

/* --- social proof --------------------------------------------------------- */

.social {
    display: flex;
    align-items: center;
    gap: clamp(9px, 2.8vw, 12px);
    margin-top: clamp(14px, 4vw, 18px);
}

.screen--market .social {
    justify-content: center;
}

.avs {
    display: flex;
    flex: none;
}

.avs span {
    display: grid;
    place-items: center;
    width: clamp(30px, 8.4vw, 44px);
    height: clamp(30px, 8.4vw, 44px);
    margin-left: -9px;
    border: 2.5px solid var(--porcelain);
    border-radius: 50%;
    color: #fff;
    font-size: clamp(12px, 3.4vw, 16px);
    font-weight: 700;
}

.avs span:first-child {
    margin-left: 0;
}

.social p {
    color: var(--ink);
    font-size: var(--fs-body);
    line-height: 1.4;
    text-wrap: pretty;
}

.social p b {
    color: var(--graphite);
    font-weight: 700;
}

/* --- call to action ------------------------------------------------------- */

.spacer {
    flex: 1 1 auto;
    min-height: 14px;
    max-height: clamp(48px, 9vh, 96px);
}

.cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: clamp(14px, 3.6vw, 18px);
    padding: clamp(16px, 4.6vw, 23px);
    border: 0;
    border-radius: clamp(14px, 3.8vw, 20px);
    background: var(--signal);
    box-shadow: 0 14px 30px -14px rgba(230, 103, 72, 0.75);
    color: #fff;
    font-family: inherit;
    font-size: var(--fs-cta);
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.12s ease;
}

.cta:focus-visible {
    box-shadow: 0 14px 30px -14px rgba(230, 103, 72, 0.75), 0 0 0 5px var(--graphite);
}

.cta:hover {
    background: var(--signal-dark);
}

.cta:active {
    background: var(--signal-dark);
    transform: translateY(1px);
}

.cta svg {
    flex: none;
    width: clamp(18px, 5vw, 22px);
    height: clamp(18px, 5vw, 22px);
}

.stores {
    display: flex;
    gap: clamp(8px, 2.4vw, 12px);
    margin-top: clamp(9px, 2.6vw, 12px);
}

.store {
    display: flex;
    flex: 1 1 0;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-width: 0;
    min-height: 48px;
    padding: clamp(10px, 3vw, 14px) clamp(10px, 3vw, 16px);
    border-radius: clamp(12px, 3.4vw, 16px);
    background: var(--graphite);
    color: #fff;
    transition: background 0.15s ease;
}

.store:hover {
    background: #2A2E30;
}

.store svg {
    flex: none;
    width: clamp(18px, 5vw, 22px);
    height: clamp(18px, 5vw, 22px);
}

.store[data-store="apple"] svg {
    fill: #fff;
}

.store span {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.05;
}

.store small {
    text-transform: uppercase;
    font-size: clamp(8px, 2.3vw, 10px);
    font-weight: 500;
    letter-spacing: 0.09em;
    opacity: 0.72;
}

.store b {
    font-size: clamp(13px, 3.7vw, 16.5px);
    font-weight: 700;
    white-space: nowrap;
}

.foot {
    margin-top: clamp(14px, 4vw, 18px);
    color: var(--signal);
    font-size: clamp(10px, 2.8vw, 13px);
    font-weight: 700;
    letter-spacing: 0.16em;
    text-align: center;
    text-transform: uppercase;
}

/* --- sticky download bar -------------------------------------------------- */

.sticky {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 40;
    padding:
        10px var(--lp-gutter)
        calc(env(safe-area-inset-bottom) + 10px);
    border-top: 1px solid var(--p300);
    background: rgba(249, 243, 237, 0.94);
    backdrop-filter: saturate(160%) blur(12px);
    -webkit-backdrop-filter: saturate(160%) blur(12px);
    transform: translateY(110%);
    visibility: hidden;
    transition: transform 0.22s ease, visibility 0.22s;
}

.sticky.on {
    transform: translateY(0);
    visibility: visible;
}

.sticky .cta {
    max-width: calc(var(--lp-column) - 2 * var(--lp-gutter));
    margin: 0 auto;
    padding: clamp(14px, 4vw, 17px);
    box-shadow: none;
    font-size: clamp(18.7px, 4.2vw, 19px);
}

/* --- narrow phones -------------------------------------------------------- */

/* Below 360px the two store buttons still fit side by side, but only by
   squeezing "Google Play" to the edge of its pill. Stacking them keeps both
   labels comfortable and both targets full width on the narrowest phones. */
@media (max-width: 359px) {
    .stores {
        flex-direction: column;
    }

    .avs span {
        margin-left: -12px;
    }
}

/* --- from tablet up ------------------------------------------------------- */

@media (min-width: 560px) {
    :root {
        --lp-column: 640px;
    }
}

@media (min-width: 900px) {
    :root {
        --lp-column: 720px;
    }

    /* Desktop has room for the whole feed card on one line, so the tags stop
       wrapping under the city. */
    .jbot {
        flex-wrap: nowrap;
    }
}

/* --- short viewports ------------------------------------------------------ */

/* A landscape phone or a small laptop cannot centre this much content; switch
   from centred to top-aligned and let the page scroll instead of squeezing. */
@media (max-height: 760px) {
    .screen {
        justify-content: flex-start;
    }

    .spacer {
        max-height: none;
    }
}

/* --- motion / contrast preferences ---------------------------------------- */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .sticky {
        transition: visibility 0.01ms;
    }
}
