/* UK Law Explorer: landing page. Loaded after site.css. */

/* ---------- Hero ---------- */

.hero {
    padding-top: var(--space-8);
    text-align: center;
    overflow: hidden;
}

.app-icon {
    width: 96px;
    height: 96px;
    margin: 0 auto var(--space-5);
    border-radius: 22px;
    box-shadow: 0 6px 16px -6px rgba(23, 25, 30, 0.35);
}

.hero h1 {
    margin: 0;
    font-size: clamp(44px, 7vw, 76px);
    line-height: 1.06;
    font-weight: 700;
    letter-spacing: -0.025em;
}

.tagline {
    margin: var(--space-3) 0 0;
    font-size: clamp(22px, 2.8vw, 30px);
    line-height: 1.2;
    font-weight: 600;
    letter-spacing: -0.01em;
    text-wrap: balance;
}

.intro {
    max-width: 34em;
    margin: var(--space-4) auto 0;
    color: var(--ink-2);
    font-size: 19px;
    line-height: 1.5;
    text-wrap: balance;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: var(--space-3) var(--space-6);
    margin-top: var(--space-6);
}

.store-badge {
    display: inline-block;
    line-height: 0;
    border-radius: 10px;
}

.store-badge img {
    height: 50px;
    width: auto;
}

.more-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 18px;
    font-weight: 600;
}

.more-link svg {
    width: 8px;
    height: 13px;
    margin-top: 1px;
}

/* Three facts under the actions: a short line of figures, not a banner. */
.facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 760px;
    margin: var(--space-7) auto 0;
    padding: 0;
    list-style: none;
}

.facts li {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 var(--space-5);
    border-left: 1px solid var(--line);
}

.facts li:first-child {
    border-left: 0;
}

.facts strong {
    font-size: 30px;
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.facts span {
    max-width: 15em;
    margin-top: 6px;
    color: var(--ink-2);
    font-size: 14px;
    line-height: 1.4;
    text-wrap: balance;
}

/* The phones get their own band, so the hero copy ends before the screens begin. */
.stage {
    margin-top: var(--space-8);
    padding-top: var(--space-8);
    background: var(--mist);
}

.requirement {
    margin: var(--space-5) 0 0;
    color: var(--ink-2);
    font-size: 14px;
}

/* Three iPhone screens, the reader in front. */
.devices {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    height: clamp(360px, 56vw, 560px);
}

.screen {
    border-radius: 7.5% / 4.2%;
    background: #fff;
    box-shadow:
        0 2px 6px rgba(23, 25, 30, 0.08),
        0 28px 56px -24px rgba(23, 25, 30, 0.35);
}

.devices .screen {
    flex: none;
    width: clamp(180px, 25vw, 290px);
    animation: rise 1.1s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.devices .side {
    width: clamp(150px, 21vw, 250px);
    margin-top: 64px;
    animation-delay: 0.12s;
}

.devices .side:first-child {
    margin-right: -1%;
}

.devices .side:last-child {
    margin-left: -1%;
}

.devices .front {
    position: relative;
    z-index: 1;
}

@keyframes rise {
    from {
        transform: translateY(60px);
    }
    to {
        transform: none;
    }
}

/* ---------- Feature sections ---------- */

.feature {
    padding: var(--space-9) 0;
}

.feature.mist {
    background: var(--mist);
}

.feature.night {
    background: var(--night);
    color: var(--night-ink);
}

.feature h2 {
    margin: 0 0 var(--space-4);
    font-size: clamp(36px, 4.8vw, 52px);
    line-height: 1.12;
    font-weight: 700;
    letter-spacing: -0.022em;
    text-wrap: balance;
}

.feature .copy {
    max-width: 34em;
    margin: 0;
    color: var(--ink-2);
    font-size: 20px;
    line-height: 1.5;
    text-wrap: pretty;
}

.feature .copy strong {
    color: var(--ink);
    font-weight: 600;
}

.feature.night .copy {
    color: var(--night-ink-2);
}

.feature.night .copy strong {
    color: var(--night-ink);
}

/* Find: centred copy, an iPad that runs off the bottom of the section. */
.find {
    padding-bottom: 0;
    overflow: hidden;
    text-align: center;
}

.find .copy {
    margin: 0 auto;
}

.find-device {
    width: min(560px, 82%);
    height: clamp(300px, 46vw, 520px);
    margin: var(--space-8) auto 0;
    overflow: hidden;
    border-radius: 28px 28px 0 0;
    box-shadow: 0 -2px 30px -10px rgba(23, 25, 30, 0.18);
}

.find-device img {
    width: 100%;
}

/* Read and Save: copy beside the screen. */
.split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: var(--space-7) var(--space-8);
}

.split .media {
    justify-self: center;
}

.split .screen {
    width: 420px;
    max-width: 100%;
    border-radius: 18px;
}

.read .screen {
    box-shadow: none;
}

.save .media {
    order: -1;
}

/* ---------- Features (spec list) ---------- */

.specs h2 {
    margin-bottom: var(--space-7);
}

.specs dl {
    margin: 0;
    border-top: 1px solid var(--line);
}

.spec {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: var(--space-2) var(--space-6);
    padding: var(--space-5) 0;
    border-bottom: 1px solid var(--line);
}

.spec dt {
    font-size: 20px;
    line-height: 1.3;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.spec dd {
    max-width: 38em;
    margin: 0;
}

.spec ul {
    margin: var(--space-2) 0 0;
    padding-left: 1.1em;
}

.spec li {
    margin-bottom: 2px;
}

/* ---------- Close ---------- */

.close {
    padding: var(--space-9) 0;
    background: var(--paper);
    text-align: center;
}

.close .app-icon {
    width: 80px;
    height: 80px;
    border-radius: 18px;
}

.close h2 {
    margin: 0;
    font-size: clamp(32px, 4.4vw, 48px);
    line-height: 1.12;
    font-weight: 700;
    letter-spacing: -0.022em;
    text-wrap: balance;
}

.close .actions {
    margin-top: var(--space-5);
}

.close .requirement {
    margin-top: var(--space-4);
}

@media (max-width: 734px) {
    .hero {
        padding-top: var(--space-7);
    }

    .app-icon {
        width: 76px;
        height: 76px;
        border-radius: 17px;
    }

    .intro {
        font-size: 17px;
    }


    .devices .side {
        margin-top: 40px;
    }

    .devices .side:first-child {
        margin-right: -6%;
    }

    .devices .side:last-child {
        margin-left: -6%;
    }

    .feature {
        padding: var(--space-8) 0;
    }

    .find {
        padding-bottom: 0;
    }

    .feature .copy {
        font-size: 18px;
    }

    .find-device {
        border-radius: 18px 18px 0 0;
    }

    .split {
        grid-template-columns: 1fr;
    }

    .save .media {
        order: 0;
    }

    .spec {
        grid-template-columns: 1fr;
    }

    .spec dt {
        font-size: 18px;
    }

    .facts li {
        padding: 0 var(--space-2);
    }

    .facts strong {
        font-size: 22px;
    }

    .facts span {
        font-size: 13px;
    }

    .stage {
        margin-top: var(--space-7);
        padding-top: var(--space-7);
    }
}
