/* Trykkfort landing page. Colours and symbols come from the game's answer colours (css/themes.css). */

:root {
    --lp-bg: #0B0B1A;
    --lp-bg-2: #14142B;
    --lp-text: #F5F5FA;
    --lp-muted: #A9A9C2;
    --lp-line: rgba(255, 255, 255, .1);
    --lp-glass: rgba(255, 255, 255, .055);
    --lp-yellow: #FFC93C;
    --lp-red: #D7263D;
    --lp-blue: #1B6EC2;
    --lp-green: #2E8B3E;
    --lp-radius: 1.25rem;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--lp-bg);
    color: var(--lp-text);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
}

.lp {
    position: relative;
    overflow: hidden;
}

/* ---- Background glow ---- */

.lp-glow {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.lp-blob {
    position: absolute;
    width: 42rem;
    height: 42rem;
    border-radius: 50%;
    filter: blur(110px);
    opacity: .35;
    animation: lp-drift 22s ease-in-out infinite alternate;
}

.lp-blob-0 {
    top: -14rem;
    left: -10rem;
    background: var(--lp-red);
}

.lp-blob-1 {
    top: -6rem;
    right: -14rem;
    background: var(--lp-blue);
    animation-delay: -6s;
}

.lp-blob-2 {
    top: 46rem;
    left: 30%;
    background: var(--lp-yellow);
    opacity: .16;
    animation-delay: -11s;
}

.lp-blob-3 {
    top: 90rem;
    right: -12rem;
    background: var(--lp-green);
    opacity: .2;
    animation-delay: -16s;
}

.lp-header,
.lp main,
.lp-footer {
    position: relative;
    z-index: 1;
}

/* ---- Header ---- */

.lp-header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .9rem clamp(1rem, 5vw, 4rem);
    background: rgba(11, 11, 26, .7);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--lp-line);
}

.lp-logo {
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    text-decoration: none;
}

.lp-logo-mark {
    display: grid;
    grid-template-columns: repeat(2, 1rem);
    gap: 3px;
}

    .lp-logo-mark span {
        display: grid;
        place-items: center;
        width: 1rem;
        height: 1rem;
        border-radius: 4px;
        font-size: .55rem;
        line-height: 1;
    }

.lp-logo-text {
    font-size: 1.35rem;
    font-weight: 900;
    letter-spacing: -.02em;
}

.lp-nav {
    display: flex;
    align-items: center;
    gap: clamp(.75rem, 2.5vw, 1.75rem);
}

.lp-nav-link {
    color: var(--lp-muted);
    font-weight: 600;
    text-decoration: none;
}

    .lp-nav-link:hover,
    .lp-nav-link:focus-visible {
        color: var(--lp-text);
    }

/* ---- Buttons ---- */

.lp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    border-radius: 999px;
    font-weight: 800;
    text-decoration: none;
    transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}

    .lp-btn:focus-visible {
        outline: 3px solid var(--lp-text);
        outline-offset: 3px;
    }

.lp-btn-primary {
    background: var(--lp-yellow);
    color: #1C1E21;
    box-shadow: 0 10px 30px -8px rgba(255, 201, 60, .55);
}

    .lp-btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 16px 40px -8px rgba(255, 201, 60, .7);
    }

.lp-btn-ghost {
    border: 1px solid var(--lp-line);
    background: var(--lp-glass);
    color: var(--lp-text);
}

    .lp-btn-ghost:hover {
        background: rgba(255, 255, 255, .1);
        transform: translateY(-2px);
    }

.lp-btn-small {
    padding: .5rem 1.25rem;
}

.lp-btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

/* ---- Hero ---- */

.lp-hero {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    align-items: center;
    gap: clamp(2rem, 5vw, 5rem);
    max-width: 76rem;
    margin: 0 auto;
    padding: clamp(3rem, 8vw, 7rem) clamp(1rem, 5vw, 4rem) clamp(3rem, 6vw, 5rem);
}

.lp-eyebrow {
    display: inline-block;
    margin: 0 0 1.25rem;
    padding: .3rem .9rem;
    border: 1px solid var(--lp-line);
    border-radius: 999px;
    background: var(--lp-glass);
    color: var(--lp-muted);
    font-size: .875rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.lp-title {
    margin: 0;
    font-size: clamp(2.6rem, 6.5vw, 5rem);
    font-weight: 900;
    line-height: 1.02;
    letter-spacing: -.035em;
}

.lp-gradient-text {
    display: block;
    background: linear-gradient(90deg, var(--lp-yellow), #FF7A45 30%, #FF4D7D 55%, #6C8CFF 80%, #4ADE80);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.lp-lead {
    max-width: 34rem;
    margin: 1.5rem 0 2rem;
    color: var(--lp-muted);
    font-size: clamp(1.1rem, 1.6vw, 1.3rem);
}

.lp-cta {
    display: flex;
    flex-wrap: wrap;
    gap: .9rem;
}

.lp-cta-center {
    justify-content: center;
}

.lp-hint {
    margin: 1.25rem 0 0;
    color: var(--lp-muted);
    font-size: .95rem;
}

/* ---- Hero illustration ---- */

.lp-hero-visual {
    position: relative;
    min-height: 26rem;
    perspective: 1200px;
}

.lp-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 88%;
    padding: 1.25rem;
    border: 1px solid var(--lp-line);
    border-radius: var(--lp-radius);
    background: linear-gradient(160deg, #46178F, #2A0E5C);
    box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8);
    transform: rotateY(-10deg) rotateX(4deg);
    animation: lp-float 7s ease-in-out infinite;
}

.lp-screen-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgba(255, 255, 255, .75);
    font-size: .8rem;
    font-weight: 700;
}

.lp-timer {
    display: grid;
    place-items: center;
    width: 2.2rem;
    height: 2.2rem;
    border: 3px solid var(--lp-yellow);
    border-radius: 50%;
    color: #FFFFFF;
    font-weight: 900;
}

.lp-screen-question {
    margin: .75rem 0 1rem;
    font-size: clamp(1.05rem, 2vw, 1.35rem);
    font-weight: 800;
    line-height: 1.25;
    text-align: center;
}

.lp-screen-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .5rem;
}

.lp-tile {
    padding: .7rem .8rem;
    border-radius: .6rem;
    font-size: .9rem;
    font-weight: 800;
}

.lp-screen-count {
    margin: .75rem 0 0;
    color: rgba(255, 255, 255, .7);
    font-size: .8rem;
    text-align: center;
}

.lp-phone {
    position: absolute;
    right: 0;
    bottom: -1rem;
    width: 11rem;
    height: 20rem;
    padding: 2rem .7rem .9rem;
    border: 3px solid #2B2B44;
    border-radius: 2rem;
    background: #101024;
    box-shadow: 0 40px 70px -25px rgba(0, 0, 0, .9);
    animation: lp-float 7s ease-in-out -3.5s infinite;
}

.lp-phone-notch {
    position: absolute;
    top: .6rem;
    left: 50%;
    width: 3.5rem;
    height: .45rem;
    border-radius: 999px;
    background: #2B2B44;
    transform: translateX(-50%);
}

.lp-phone-bar {
    display: block;
    height: .35rem;
    margin-bottom: .7rem;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--lp-yellow) 62%, rgba(255, 255, 255, .12) 62%);
}

.lp-phone-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 1fr;
    gap: .45rem;
    height: calc(100% - 1.05rem);
}

    .lp-phone-grid span {
        display: grid;
        place-items: center;
        border-radius: .7rem;
        font-size: 1.6rem;
    }

.lp-phone-tap {
    animation: lp-tap 3.5s ease-in-out infinite;
}

.lp-toast {
    position: absolute;
    right: 7rem;
    bottom: 3rem;
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    padding: .65rem 1.1rem;
    border: 1px solid var(--lp-line);
    border-radius: 999px;
    background: rgba(20, 20, 43, .92);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, .8);
    font-size: .95rem;
    animation: lp-pop 3.5s ease-in-out infinite;
}

.lp-toast-check {
    display: grid;
    place-items: center;
    width: 1.6rem;
    height: 1.6rem;
    border-radius: 50%;
    background: var(--lp-green);
    font-weight: 900;
}

/* ---- Sections ---- */

.lp-section {
    max-width: 76rem;
    margin: 0 auto;
    padding: clamp(3rem, 7vw, 6rem) clamp(1rem, 5vw, 4rem);
}

.lp-section-title {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    letter-spacing: -.03em;
    line-height: 1.1;
}

.lp-section-lead {
    max-width: 40rem;
    margin: 1rem 0 0;
    color: var(--lp-muted);
    font-size: 1.15rem;
}

.lp-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin: 2.5rem 0 0;
    padding: 0;
    list-style: none;
}

.lp-step,
.lp-feature {
    padding: 1.75rem;
    border: 1px solid var(--lp-line);
    border-radius: var(--lp-radius);
    background: var(--lp-glass);
    transition: transform .2s ease, border-color .2s ease;
}

    .lp-step:hover,
    .lp-feature:hover {
        transform: translateY(-4px);
        border-color: rgba(255, 255, 255, .22);
    }

    .lp-step h3,
    .lp-feature h3 {
        margin: 1rem 0 .4rem;
        font-size: 1.25rem;
        font-weight: 800;
    }

    .lp-step p,
    .lp-feature p {
        margin: 0;
        color: var(--lp-muted);
    }

.lp-step-number {
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: .8rem;
    font-size: 1.3rem;
    font-weight: 900;
}

.lp-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-top: 2.5rem;
}

.lp-feature-icon {
    display: grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    border-radius: .9rem;
    background: rgba(255, 255, 255, .08);
    font-size: 1.5rem;
    font-weight: 900;
}

/* ---- Join card ---- */

.lp-join-card {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: clamp(1.75rem, 4vw, 3rem);
    border: 1px solid rgba(255, 201, 60, .35);
    border-radius: calc(var(--lp-radius) * 1.4);
    background:
        radial-gradient(ellipse at top right, rgba(255, 201, 60, .18), transparent 60%),
        var(--lp-bg-2);
}

.lp-join-steps {
    margin: 1.25rem 0 0;
    padding-left: 1.4rem;
    color: var(--lp-muted);
    font-size: 1.1rem;
}

    .lp-join-steps li + li {
        margin-top: .35rem;
    }

/* ---- Final call to action ---- */

.lp-final {
    max-width: 52rem;
    margin: 0 auto;
    padding: clamp(3rem, 7vw, 6rem) clamp(1rem, 5vw, 4rem) clamp(4rem, 8vw, 7rem);
    text-align: center;
}

    .lp-final .lp-section-lead {
        margin: 1rem auto 2rem;
    }

.lp-final-title {
    margin: 0;
    font-size: clamp(2.4rem, 6vw, 4.5rem);
    font-weight: 900;
    letter-spacing: -.035em;
    line-height: 1.05;
}

/* ---- Footer ---- */

.lp-footer {
    padding: 2.5rem clamp(1rem, 5vw, 4rem) 3rem;
    border-top: 1px solid var(--lp-line);
    color: var(--lp-muted);
    font-size: .95rem;
    text-align: center;
}

    .lp-footer p {
        margin: .2rem 0;
    }

.lp-footer-brand {
    color: var(--lp-text);
    font-size: 1.1rem;
    font-weight: 900;
}

.lp-footer-link {
    color: var(--lp-text);
    font-weight: 700;
    text-decoration-color: rgba(255, 255, 255, .35);
    text-underline-offset: .2em;
}

    .lp-footer-link:hover,
    .lp-footer-link:focus-visible {
        text-decoration-color: currentColor;
    }

.lp-footer-copy {
    margin-top: .9rem;
    font-size: .85rem;
}

/* ---- Animations ---- */

@keyframes lp-float {
    0%, 100% {
        translate: 0 0;
    }

    50% {
        translate: 0 -12px;
    }
}

@keyframes lp-tap {
    0%, 55%, 100% {
        transform: scale(1);
        box-shadow: none;
    }

    62% {
        transform: scale(.9);
    }

    70% {
        transform: scale(1.04);
        box-shadow: 0 0 0 4px rgba(255, 255, 255, .85);
    }
}

@keyframes lp-pop {
    0%, 60% {
        opacity: 0;
        transform: translateY(10px) scale(.9);
    }

    72%, 95% {
        opacity: 1;
        transform: none;
    }

    100% {
        opacity: 0;
    }
}

@keyframes lp-drift {
    from {
        transform: translate(0, 0) scale(1);
    }

    to {
        transform: translate(4rem, 3rem) scale(1.15);
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .lp-blob,
    .lp-screen,
    .lp-phone,
    .lp-phone-tap,
    .lp-toast {
        animation: none;
    }

    .lp-toast {
        opacity: 1;
    }
}

/* ---- Small screens ---- */

@media (max-width: 960px) {
    .lp-hero {
        grid-template-columns: 1fr;
    }

    .lp-hero-visual {
        min-height: 22rem;
        max-width: 34rem;
    }

    .lp-steps,
    .lp-features {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 620px) {
    .lp-nav-link {
        display: none;
    }

    .lp-steps,
    .lp-features {
        grid-template-columns: 1fr;
    }

    .lp-hero-visual {
        min-height: 19rem;
    }

    .lp-screen {
        width: 92%;
        transform: none;
    }

    .lp-phone {
        width: 8.5rem;
        height: 15rem;
        bottom: -2rem;
    }

    .lp-toast {
        right: 4.5rem;
        bottom: 1rem;
    }

    .lp-btn-large {
        width: 100%;
    }
}
