/* The public landing page (templates/landing/index.html.twig). Loaded only there, on top of app.css, whose colour tokens it reuses.
   Everything is scoped under .lp so that, if Turbo leaves this stylesheet in the <head> after a visit, it cannot touch the app.

   Colour: the app's --hw-ink-soft is fine for small UI labels, but this is reading text and needs 4.5:1 on the page background,
   so the page uses its own slightly darker soft colour. Buttons take --hw-on-accent text on the green (white in light, near-black
   in dark). Both are checked in a real browser, light and dark. */

.lp {
    --lp-soft: #55604F;
        --lp-max: 1040px;
    max-width: var(--lp-max);
    margin: 0 auto;
    padding: 0 max(20px, env(safe-area-inset-right)) 48px max(20px, env(safe-area-inset-left));
    color: var(--hw-ink);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
}

:root[data-theme="dark"] .lp {
    --lp-soft: #A7B0A2;
}

/* The footer logo: both are in the page and the one that matches the chosen theme is shown. */
.lp-logo-dark { display: none; }
:root[data-theme="dark"] .lp-logo-light { display: none; }
:root[data-theme="dark"] .lp-logo-dark { display: inline; }

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

/* :where() gives the reset zero specificity. As plain `.lp p` it outranked every single-class rule on a <p> below (.lp-lead, .lp-note,
   .lp-eyebrow, .lp-section-lead, .lp-also, .lp-section-foot) and silently cancelled all of their spacing. */
:where(.lp) :where(h1, h2, h3, p, ul, ol, dl, dd) {
    margin: 0;
    padding: 0;
}

.lp ul,
.lp ol {
    list-style: none;
}

.lp a {
    color: inherit;
}

/* Keyboard focus: a solid ink ring is 3:1 or better against both backgrounds; the coral accent would not be. */
.lp a:focus-visible,
.lp summary:focus-visible,
.lp button:focus-visible {
    outline: 3px solid var(--hw-ink);
    outline-offset: 3px;
    border-radius: 6px;
}

.lp-skip {
    position: absolute;
    left: 12px;
    top: -60px;
    z-index: 10;
    padding: 10px 16px;
    border-radius: 8px;
    background: var(--hw-ink);
    color: var(--hw-bg);
    font-weight: 600;
    text-decoration: none;
}

.lp-skip:focus {
    top: max(12px, env(safe-area-inset-top));
}

/* ---------- header ---------- */
.lp-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: calc(16px + env(safe-area-inset-top)) 0 16px;
}

.lp-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.01em;
    text-decoration: none;
}

.lp-brand img {
    border-radius: 8px;
}

/* ---------- buttons (on top of the app's .btn) ---------- */
.lp .lp-cta {
    min-height: 48px;
    padding: 12px 22px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
}

.lp .lp-cta-small {
    min-height: 44px;
    padding: 10px 18px;
    font-size: 15px;
}

.lp .btn-primary {
    color: var(--hw-on-accent);
}

.lp .lp-cta-quiet {
    border: 1px solid var(--lp-soft);
    background: transparent;
    color: var(--hw-ink);
}

/* ---------- hero ---------- */
.lp-hero {
    display: grid;
    gap: 40px;
    align-items: center;
    padding: 32px 0 24px;
}

.lp-eyebrow {
    margin-bottom: 14px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--lp-soft);
}

.lp h1 {
    font-size: clamp(2.1rem, 6.4vw + 0.4rem, 3.6rem);
    line-height: 1.08;
    font-weight: 700;
    letter-spacing: -0.025em;
    overflow-wrap: break-word;
}

.lp-lead {
    margin-top: 20px;
    max-width: 34em;
    font-size: 18px;
    color: var(--lp-soft);
}

.lp-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.lp-note {
    margin-top: 16px;
    font-size: 14px;
    color: var(--lp-soft);
}

/* A drawn stand-in for the app, in the app's own colours, so it follows dark mode for free. */
.lp-hero-art {
    display: flex;
    justify-content: center;
}

.lp-phone {
    width: min(250px, 78vw);
    aspect-ratio: 9 / 18;
    padding: 9px;
    border-radius: 38px;
    background: var(--hw-ink);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.18);
}

.lp-screen {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    border-radius: 30px;
    background: var(--hw-card);
    color: var(--hw-ink);
}

.lp-s-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 16px 12px;
    border-bottom: 0.5px solid var(--hw-border);
    font-size: 12px;
    font-weight: 600;
}

.lp-s-title {
    display: grid;
    gap: 6px;
    padding: 16px 18px 12px;
}

.lp-s-title b {
    height: 11px;
    border-radius: 6px;
    background: var(--hw-ink);
    opacity: 0.85;
}

.lp-s-title b:last-child {
    width: 60%;
}

.lp-s-verse {
    display: flex;
    gap: 10px;
    padding: 10px 18px;
    font-size: 9px;
    color: var(--lp-soft);
}

.lp-s-verse > span {
    flex: 0 0 26px;
}

.lp-s-verse > div {
    display: grid;
    flex: 1;
    gap: 6px;
}

.lp-s-verse b {
    height: 8px;
    border-radius: 4px;
    background: var(--hw-border);
}

.lp-s-verse b.short {
    width: 55%;
}

.lp-s-verse.chorus b {
    background: var(--hw-muted);
}

.lp-s-bar {
    display: flex;
    justify-content: space-around;
    margin-top: auto;
    padding: 14px 8px 18px;
    border-top: 0.5px solid var(--hw-border);
    font-size: 17px;
    color: var(--lp-soft);
}

/* ---------- sections ---------- */
.lp-section {
    margin-top: 72px;
}

.lp h2 {
    font-size: clamp(1.5rem, 3.4vw + 0.7rem, 2.1rem);
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.lp h3 {
    font-size: 17px;
    line-height: 1.35;
    font-weight: 600;
}

.lp-section-lead {
    margin-top: 12px;
    max-width: 36em;
    font-size: 17px;
    color: var(--lp-soft);
}

.lp-grid {
    display: grid;
    gap: 14px;
    margin-top: 28px;
}

.lp-card {
    padding: 22px;
    border: 0.5px solid var(--hw-border);
    border-radius: 16px;
    background: var(--hw-card);
}

.lp-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin-bottom: 14px;
    border-radius: 12px;
    background: var(--hw-bg);
    font-size: 22px;
    color: var(--hw-ink);
}

.lp-card p {
    margin-top: 6px;
    color: var(--lp-soft);
}

.lp-also {
    margin-top: 22px;
    color: var(--lp-soft);
}

/* ---------- worship group steps ---------- */
.lp-steps {
    display: grid;
    gap: 18px;
    margin-top: 28px;
}

.lp-steps li {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.lp-step-n {
    display: inline-flex;
    flex: 0 0 38px;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--hw-accent);
    color: var(--hw-on-accent);
    font-weight: 700;
}

.lp-steps p {
    margin-top: 2px;
    color: var(--lp-soft);
}

.lp-section-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    column-gap: 10px; /* the note moves to its own line as a whole when it does not fit, instead of breaking mid-sentence under the link */
    margin-top: 24px;
}

.lp-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px; /* a standalone call to action, not a link inside a sentence: it was 20px tall, under the 24px WCAG 2.2 minimum */
    font-weight: 600;
    text-underline-offset: 3px;
}

.lp-muted {
    font-size: 14px;
    color: var(--lp-soft);
}

.lp-section-foot .lp-muted {
    margin-left: 0;
}

/* ---------- books ---------- */
.lp-books {
    display: grid;
    gap: 10px;
    margin-top: 22px;
}

.lp-books li {
    display: flex;
}

.lp-books a {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 56px;
    padding: 12px 18px;
    border: 0.5px solid var(--hw-border);
    border-radius: 14px;
    background: var(--hw-card);
    font-family: var(--font-voice);
    font-size: 18px;
    text-decoration: none;
    transition: transform 100ms var(--ease-out);
}

.lp-books a:active {
    transform: scale(0.985);
}

.lp-books i {
    color: var(--lp-soft);
}

/* ---------- install ---------- */
.lp #install .install-card {
    margin-top: 20px;
}

.lp-platforms {
    display: grid;
    gap: 14px;
    margin-top: 22px;
}

.lp-platforms dt {
    font-weight: 600;
}

.lp-platforms dd {
    color: var(--lp-soft);
}

/* ---------- FAQ ---------- */
.lp-faq {
    margin-top: 22px;
    border-top: 0.5px solid var(--hw-border);
}

.lp-faq details {
    border-bottom: 0.5px solid var(--hw-border);
}

.lp-faq summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 56px;
    padding: 12px 0;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
}

.lp-faq summary::-webkit-details-marker {
    display: none;
}

.lp-faq summary::after {
    content: '+';
    font-size: 22px;
    font-weight: 400;
    color: var(--lp-soft);
}

.lp-faq details[open] summary::after {
    content: '\2013';
}

.lp-faq details p {
    padding: 0 0 18px;
    max-width: 40em;
    color: var(--lp-soft);
}

/* ---------- footer ---------- */
.lp-footer {
    display: grid;
    justify-items: start;
    gap: 18px;
    margin-top: 80px;
    padding-top: 32px;
    border-top: 0.5px solid var(--hw-border);
}

.lp-footer img {
    display: block;
    height: auto;
}

.lp-footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 22px;
}

.lp-footer-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    text-underline-offset: 3px;
}

/* ---------- wider screens ---------- */
@media (min-width: 640px) {
    .lp-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .lp-books {
        grid-template-columns: repeat(2, 1fr);
    }

    .lp-platforms {
        grid-template-columns: repeat(2, 1fr);
        gap: 28px;
    }
}

@media (min-width: 880px) {
    .lp-hero {
        grid-template-columns: 1.15fr 0.85fr;
        gap: 56px;
        padding: 56px 0 24px;
    }

    .lp-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .lp-steps {
        grid-template-columns: repeat(3, 1fr);
        gap: 28px;
    }

    .lp-steps li {
        flex-direction: column;
    }

    .lp-section {
        margin-top: 96px;
    }

    .lp-books {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (prefers-reduced-motion: reduce) {
    .lp *,
    .lp *::before,
    .lp *::after {
        transition: none !important;
    }
}
