/* =========================================================================
   LANDING PAGE (home.html)
   =========================================================================
   Same quiet language as Settings, Friends and the modal layer
   (account_settings.css, friends.css, deckd_modals.css): white page,
   hairline borders, 8px-radius buttons, soft grey secondary text. The
   one addition is a serif (Fraunces) for headlines only.

   Every visual is a small, static mock of a real deckd screen built
   from the demo photos in static/img/landing-demo/. The only motion is
   the hero deck paging through its slides and a short fade as each
   section scrolls in (home.js), and both switch off for
   prefers-reduced-motion. Mobile first: the two-column layouts kick in
   at 881px. */

.landing-page {
    background: #ffffff;
}

.landing-page .navbar-landing-cta {
    display: flex;
    align-items: center;
    gap: 8px;
}

.landing-page .navbar-landing-btn {
    min-height: 36px;
    padding: 9px 14px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
}

.lp {
    --lp-serif: 'Fraunces', 'Iowan Old Style', Georgia, serif;
    --lp-ink: #1f1f1f;
    --lp-soft: #5c5c5c;
    --lp-muted: #8a8a8a;
    --lp-line: #ececec;
    --lp-line-strong: #d9d9d9;
    --lp-tint: #f7f7f7;
    --lp-ease: cubic-bezier(0.16, 1, 0.3, 1);

    color: var(--lp-ink);
    overflow-x: clip;
}

.lp p {
    margin: 0;
}

.lp-wrap {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* -------------------------------------------------------------------
   Type
   ------------------------------------------------------------------- */

.lp-display {
    margin: 0 0 20px;
    font-family: var(--lp-serif);
    font-size: clamp(40px, 4.6vw, 62px);
    font-weight: 380;
    line-height: 1.04;
    letter-spacing: -0.02em;
    text-wrap: balance;
}

/* "deckd" in the hero heading, set like the logo (.logo in style.css):
   Archivo Black at its only weight, -53 tracking. Scaled down a touch:
   its tall, heavy letters otherwise dwarf the serif "meet" beside it. */
.lp-wordmark {
    font-family: 'Archivo Black', Arial, sans-serif;
    font-size: 0.86em;
    /* A hair lighter than the logo: Archivo Black has no lighter weight,
       so a thin stroke in the page's white shaves the letter edges */
    -webkit-text-stroke: 0.02em #ffffff;
    font-weight: 400;
    letter-spacing: -0.053em;
}

.lp-lede {
    max-width: 33rem;
    color: var(--lp-soft);
    font-size: 18px;
    line-height: 1.6;
}

.lp-heading {
    margin: 0 0 14px;
    font-family: var(--lp-serif);
    font-size: clamp(28px, 3.4vw, 42px);
    font-weight: 400;
    line-height: 1.12;
    letter-spacing: -0.015em;
    text-wrap: balance;
}

.lp-subheading {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.lp-body {
    max-width: 34rem;
    color: var(--lp-soft);
    font-size: 16px;
    line-height: 1.65;
}

/* -------------------------------------------------------------------
   Buttons
   ------------------------------------------------------------------- */

/* Side by side even on phones: two equal halves, and a long label (the
   closing section's) wraps inside its button rather than overflowing.
   From the larger-phone breakpoint up they go back to natural widths. */
.lp-actions {
    display: flex;
    gap: 10px;
    margin-top: 28px;
}

.lp-actions .lp-btn {
    flex: 1 1 0;
    min-width: 0;
    padding: 10px 12px;
    line-height: 1.2;
    text-align: center;
    white-space: normal;
}

.lp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 20px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 500;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    box-sizing: border-box;
    transition: background-color 0.12s ease, border-color 0.12s ease;
}

.lp-btn:active {
    transform: scale(0.98);
}

.lp-btn:focus-visible {
    outline: 2px solid var(--lp-ink);
    outline-offset: 2px;
}

.lp-btn-primary {
    background: var(--lp-ink);
    color: #ffffff;
}

.lp-btn-primary:hover {
    background: #333333;
}

.lp-btn-quiet {
    background: #ffffff;
    border-color: var(--lp-line-strong);
    color: var(--lp-ink);
}

.lp-btn-quiet:hover {
    background: #f5f5f5;
    border-color: #c2c2c2;
}

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

.lp-hero {
    position: relative;
    isolation: isolate;
    padding: 36px 0 32px;
}

/* Mini stars drifting down behind the hero (filled in by home.js). Each
   star carries its own --x/--size/--dur/--delay/--drift/--spin/--o; the
   layer sets --fall to the hero's height and fades out at the bottom so
   nothing spills into the next section. On desktop the layer reaches
   back behind the (see-through, below) 64px icon rail to the page edge. */
.lp-stars {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
    -webkit-mask-image: linear-gradient(#000 65%, transparent);
    mask-image: linear-gradient(#000 65%, transparent);
}

.lp-star {
    position: absolute;
    top: -24px;
    left: var(--x);
    width: var(--size);
    height: var(--size);
    background: var(--colour);
    clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
    opacity: 0;
    animation: lp-star-fall var(--dur) linear var(--delay) infinite;
    will-change: transform, opacity;
}

@keyframes lp-star-fall {
    0% {
        opacity: 0;
        transform: translate(0, 0) rotate(0deg);
    }
    12%,
    80% {
        opacity: var(--o);
    }
    100% {
        opacity: 0;
        transform: translate(var(--drift), var(--fall, 720px)) rotate(var(--spin));
    }
}

/* Desktop icon rail: see-through on the landing page so the stars run
   all the way to the left edge. (At 1024px and below, or on touch, the
   rail becomes the floating bottom pill, which keeps its background.) */
@media (min-width: 1025px) and (hover: hover) {
    .landing-page .deckd-sidebar {
        background: transparent;
    }

    .lp-stars {
        left: -64px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .lp-star {
        animation: none;
        opacity: var(--o);
        transform: translateY(var(--rest)) rotate(var(--spin));
    }
}

.lp-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
}

/* The deck mock: a slim title bar, a 16:9 screen, and a strip of slide
   thumbnails underneath, like the Deck Studio editor. Font sizes inside
   the screen are in cqw so the slides scale like a real deck would. */

.lp-deck {
    margin: 0;
    padding: 10px;
    border: 1px solid var(--lp-line);
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(31, 31, 31, 0.04), 0 16px 40px rgba(31, 31, 31, 0.07);
}

.lp-deck-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 2px 4px 10px;
}

.lp-deck-name {
    font-size: 14px;
    font-weight: 600;
}

.lp-deck-meta {
    color: var(--lp-muted);
    font-size: 13px;
}

.lp-deck-present {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
    padding: 7px 12px;
    border-radius: 999px;
    background: var(--lp-ink);
    color: #ffffff;
    font-size: 12.5px;
    font-weight: 500;
}

/* Same black pill + full-screen corners icon as Deck Studio's real
   .deck-present-button (style.css), scaled down to suit the mock. */
.lp-deck-present svg {
    width: 14px;
    height: 14px;
}

.lp-deck-screen {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 8px;
    background: #f2f2f2;
    container-type: inline-size;
}

.lp-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.7s ease;
}

.lp-slide.is-active {
    opacity: 1;
}

.lp-cover-tiles {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.lp-cover-tiles span {
    position: absolute;
    overflow: hidden;
    border-radius: 0.5cqw;
    background: #ffffff;
}

.lp-cover-tiles img,
.lp-grid-collage img,
.lp-slide-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lp-cover-card {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 30%;
    padding: 2.6cqw 4.6cqw;
    border-radius: 0.8cqw;
    background: #ffffff;
    text-align: center;
    transform: translate(-50%, -50%);
    box-shadow: 0 1cqw 3cqw rgba(31, 31, 31, 0.12);
}

.lp .lp-cover-title {
    font-family: var(--lp-serif);
    font-size: 5cqw;
    font-weight: 400;
    line-height: 1.1;
}

.lp .lp-cover-sub {
    margin-top: 0.6cqw;
    color: var(--lp-muted);
    font-size: 1.8cqw;
}

/* Product slide, shared by the hero deck and the editor mock */

.lp-slide-item,
.lp-editor-slide {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: #ffffff;
}

.lp-slide-photo {
    overflow: hidden;
    background: #ffffff;
}

.lp-slide-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 6cqw 0 4cqw;
}

.lp .lp-slide-title {
    font-family: var(--lp-serif);
    font-size: 3.6cqw;
    font-weight: 400;
    line-height: 1.15;
}

.lp .lp-slide-price {
    margin-top: 1.4cqw;
    font-size: 2.2cqw;
    font-weight: 600;
}

.lp .lp-slide-brand {
    margin-top: 0.8cqw;
    color: var(--lp-muted);
    font-size: 1.5cqw;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.lp-deck-strip {
    display: flex;
    gap: 6px;
    margin-top: 10px;
}

/* Each thumbnail holds a copy of its slide (cloned in by home.js). The
   slides are sized in cqw, so making the thumb its own container is all
   it takes for the copy to render as a true miniature. */
.lp-thumb {
    position: relative;
    flex: 1;
    min-width: 0;
    aspect-ratio: 16 / 9;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--lp-line);
    border-radius: 5px;
    background: #f2f2f2;
    font: inherit;
    cursor: pointer;
    container-type: inline-size;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

button.lp-thumb:hover {
    border-color: var(--lp-line-strong);
}

button.lp-thumb:focus-visible {
    outline: 2px solid var(--lp-ink);
    outline-offset: 2px;
}

.lp-thumb .lp-slide {
    opacity: 1;
    transition: none;
    pointer-events: none;
}

.lp-thumb.is-active,
.lp-thumb.is-active:hover {
    border-color: var(--lp-ink);
    box-shadow: 0 0 0 1px var(--lp-ink);
}

.lp-thumb-more {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--lp-tint);
    color: var(--lp-muted);
    font-size: 12px;
    font-weight: 500;
}

/* -------------------------------------------------------------------
   Sections
   ------------------------------------------------------------------- */

.lp-section {
    padding: 72px 0;
}

.lp-section-tint {
    background: var(--lp-tint);
}

/* "don't spoil the surprise": a one-off confetti pop out of the friend
   view card the first time it scrolls into view (pieces made by home.js,
   clipped to the section, never in the way of clicks). */
.lp-confetti-section {
    position: relative;
}

.lp-confetti {
    position: absolute;
    inset: 0;
    z-index: 2;
    overflow: hidden;
    pointer-events: none;
}

.lp-confetti span {
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 2px;
    will-change: transform, opacity;
}

/* Phones: a steady fall of small pieces (home.js) behind the content
   instead of the burst - the section's own stacking context keeps the
   layer above the grey background but under the text and cards. */
.lp-confetti-section:has(.lp-confetti.is-continuous) {
    isolation: isolate;
}

.lp-confetti.is-continuous {
    z-index: -1;
}

.lp-confetti.is-continuous span {
    top: -10px;
    left: var(--x);
    width: var(--w);
    height: var(--h);
    background: var(--colour);
    opacity: 0;
    animation: lp-confetti-fall var(--dur) linear var(--delay) infinite;
}

@keyframes lp-confetti-fall {
    0% {
        opacity: 0;
        transform: translate(0, 0) rotate(0deg);
    }
    8%,
    88% {
        opacity: 0.9;
    }
    50% {
        transform: translate(var(--drift), calc(var(--fall, 900px) * 0.5)) rotate(calc(var(--spin) * 0.5));
    }
    100% {
        opacity: 0;
        transform: translate(0, var(--fall, 900px)) rotate(var(--spin));
    }
}

.lp-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
    align-items: center;
}

.lp-section-intro {
    max-width: 40rem;
    margin-bottom: 48px;
}

/* Hand-drawn arrows from the Decks / Collages labels to their mocks.
   Desktop only: on narrower screens each mock sits right under its text. */
.lp-row-arrow {
    display: none;
    color: var(--lp-soft);
}

/* A row that opens with the section heading (the Decks row): the copy
   starts at the top beside the visual instead of centring against it. */
.lp-row.lp-row-lead {
    align-items: start;
}

.lp-row-lead .lp-heading {
    margin-bottom: 24px;
}

.lp-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    align-items: center;
}

.lp-row + .lp-row {
    margin-top: 52px;
}

/* Shared card look for every mock */

.lp-editor,
.lp-budget,
.lp-share {
    padding: 16px;
    border: 1px solid var(--lp-line);
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(31, 31, 31, 0.04);
}

/* Boards overview: same tile as My Boards (_board_tile.html) - a 4:3
   cover of two stacked photos plus one tall one, hairline gaps, then
   the board name and item count underneath. */

.lp-boards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 14px;
    margin: 0 0 32px;
    padding: 0;
    list-style: none;
}

/* The fifth tile only appears once the grid has five columns (desktop);
   below that it would leave a lone tile on the last row. */
.lp-board-tile.lp-board-tile-wide-only {
    display: none;
}

.lp-board-tile {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.lp-board-cover {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 1px;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border: 1px solid #dcdcdc;
    border-radius: 16px;
    background: #dcdcdc;
}

.lp-board-cover img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    background: #ffffff;
    object-fit: cover;
}

.lp-board-cover img:nth-child(3) {
    grid-column: 2;
    grid-row: 1 / 3;
}

.lp-board-tile-title {
    margin-top: 10px;
    overflow: hidden;
    font-size: 15px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lp-board-tile-count {
    margin-top: 2px;
    color: var(--lp-muted);
    font-size: 13px;
}

/* One open board: a Pinterest-style masonry of photo-only cards, with
   brand and price as small frosted pills on hover (as on Explore and
   board pages). Cropped with a fade so it reads as a longer board. */

.lp-collab-note {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    gap: 2px;
    margin: 4px 22px 4px 0;
    color: var(--lp-soft);
    pointer-events: none;
}

.lp .lp-collab-note p {
    max-width: 13em;
    margin-top: 8px;
    font-family: 'Caveat', 'Segoe Print', 'Bradley Hand', cursive;
    font-size: 32px;
    line-height: 1.05;
    text-align: right;
    text-wrap: balance;
    transform: rotate(-3deg);
}

.lp-collab-arrow {
    flex: 0 0 auto;
    width: 104px;
    height: auto;
}

.lp-board {
    padding: 14px;
    border: 1px solid var(--lp-line);
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(31, 31, 31, 0.04);
}

.lp-board-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 4px 4px 16px;
}

.lp .lp-board-title {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.lp .lp-board-meta {
    margin-top: 2px;
    color: var(--lp-muted);
    font-size: 13px;
}

/* The height cap and fade live on a wrapper: capping the multi-column
   element itself makes the browser spill items into extra off-screen
   columns instead of letting the columns run long. */
.lp-masonry-clip {
    position: relative;
    max-height: 520px;
    overflow: hidden;
}

.lp-masonry {
    column-count: 2;
    column-gap: 10px;
}

.lp-masonry-clip::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 120px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #ffffff);
    pointer-events: none;
}

.lp-pin {
    position: relative;
    margin: 0 0 10px;
    overflow: hidden;
    border-radius: 14px;
    background: #f3f3f3;
    break-inside: avoid;
}

.lp-pin img {
    display: block;
    width: 100%;
    height: auto;
}

/* Hairline so white-background product shots don't melt into the card */
.lp-pin::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: rgba(17, 17, 17, 0);
    box-shadow: inset 0 0 0 1px rgba(17, 17, 17, 0.05);
    pointer-events: none;
    transition: background 0.15s ease;
}

.lp-pin-info {
    position: absolute;
    left: 10px;
    bottom: 10px;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    opacity: 0;
    transition: opacity 0.15s ease;
}

.lp-pin-info span {
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    color: var(--lp-ink);
    font-size: 12.5px;
    font-weight: 500;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.lp-pin:hover::after {
    background: rgba(17, 17, 17, 0.1);
}

.lp-pin:hover .lp-pin-info {
    opacity: 1;
}

/* No hover on touch screens, so show the price straight away there */
@media (hover: none) {
    .lp-pin-info {
        opacity: 1;
    }

    .lp-pin-info span:not(:last-child) {
        display: none;
    }
}

/* Deck editor */

.lp-editor {
    padding: 10px;
}

/* Deck Studio's chrome, squeezed into a mock: an app row (undo/redo,
   Present) over a formatting row (font, size, B/I/U, alignment, and a
   colour dropdown). The dropdown opens a palette (home.js) and the
   picked colour lands on the title via --lp-title-colour. */
.lp-editor {
    --lp-title-colour: var(--lp-ink);
}

.lp-editor-tools {
    position: relative;
    margin: 0 0 10px;
    color: var(--lp-soft);
    font-size: 12.5px;
}

.lp-editor-bar {
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
    padding: 0 2px 8px;
    white-space: nowrap;
}

.lp-editor-format {
    overflow: hidden;
    padding: 8px 6px;
    border-radius: 9px;
    background: var(--lp-tint);
}

.lp-editor-tools svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.lp-editor-spacer {
    flex: 1;
}

.lp-editor-sep {
    flex: none;
    width: 1px;
    height: 18px;
    margin: 0 4px;
    background: var(--lp-line-strong);
}

.lp-editor-tool {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 6px;
    font-family: Georgia, serif;
    font-size: 14px;
}

.lp-editor-tool-faint {
    opacity: 0.4;
}

.lp-editor-font {
    display: inline-flex;
    flex: none;
    align-items: center;
    gap: 6px;
    padding: 4px 8px 4px 10px;
    border: 1px solid var(--lp-line-strong);
    border-radius: 6px;
    background: #ffffff;
    color: var(--lp-ink);
    font-family: var(--lp-serif);
    font-size: 13px;
}

.lp-editor-font svg {
    width: 12px;
    height: 12px;
    color: var(--lp-muted);
}

.lp-editor-size {
    display: inline-flex;
    flex: none;
    align-items: center;
    margin-left: 4px;
    border: 1px solid var(--lp-line-strong);
    border-radius: 6px;
    background: #ffffff;
}

.lp-editor-size span {
    width: 20px;
    color: var(--lp-muted);
    text-align: center;
}

.lp-editor-size b {
    min-width: 22px;
    padding: 4px 0;
    border-right: 1px solid var(--lp-line);
    border-left: 1px solid var(--lp-line);
    color: var(--lp-ink);
    font-weight: 500;
    text-align: center;
}

.lp-editor-colour {
    display: inline-flex;
    flex: none;
    align-items: center;
    gap: 5px;
    padding: 4px 6px 4px 5px;
    border: 1px solid var(--lp-line-strong);
    border-radius: 6px;
    background: #ffffff;
    cursor: pointer;
}

.lp-editor-colour svg {
    width: 12px;
    height: 12px;
    color: var(--lp-muted);
    transition: transform 0.15s ease;
}

.lp-editor.is-palette-open .lp-editor-colour svg {
    transform: rotate(180deg);
}

.lp-editor-swatch {
    flex: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--lp-title-colour);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
}

/* The palette: the same grid of colours as Deck Studio's picker, as a
   popover under the dropdown. */
.lp-palette {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    z-index: 5;
    display: none;
    padding: 12px;
    border: 1px solid var(--lp-line);
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(31, 31, 31, 0.14);
}

.lp-editor.is-palette-open .lp-palette {
    display: block;
}

.lp-palette-label {
    margin: 0 0 8px;
    color: var(--lp-muted);
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.lp-palette-grid {
    display: grid;
    grid-template-columns: repeat(7, 20px);
    gap: 7px;
}

.lp-palette-grid span {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.12s ease;
}

.lp-palette-grid span:hover {
    transform: scale(1.12);
}

.lp-palette-grid span.is-on {
    box-shadow: 0 0 0 2px #ffffff, 0 0 0 3.5px var(--lp-ink);
}

.lp-palette-hex {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    padding: 5px 8px;
    border: 1px solid var(--lp-line-strong);
    border-radius: 7px;
    color: var(--lp-ink);
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 12px;
}

.lp-palette-hex-swatch {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--lp-title-colour);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
}

/* The title being edited picks up the colour chosen in the palette */
.lp .lp-editor .lp-slide-title {
    color: var(--lp-title-colour);
}

/* Phones: drop the extras so each row still fits on one line */
@media (max-width: 519px) {
    .lp-editor-wide-only,
    .lp-editor-size {
        display: none;
    }
}

.lp-editor-slide {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border: 1px solid var(--lp-line);
    border-radius: 8px;
    container-type: inline-size;
}

/* The "selected text box" look from Deck Studio: outline + two handles */
.lp-editing {
    position: relative;
    align-self: flex-start;
    outline: 1.5px solid var(--lp-ink);
    outline-offset: 0.9cqw;
}

.lp-editing::before,
.lp-editing::after {
    content: '';
    position: absolute;
    width: 1.3cqw;
    height: 1.3cqw;
    border: 1.5px solid var(--lp-ink);
    border-radius: 2px;
    background: #ffffff;
}

.lp-editing::before {
    top: calc(-0.9cqw - 0.65cqw - 1px);
    left: calc(-0.9cqw - 0.65cqw - 1px);
}

.lp-editing::after {
    right: calc(-0.9cqw - 0.65cqw - 1px);
    bottom: calc(-0.9cqw - 0.65cqw - 1px);
}

/* Collages */

.lp-collages {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 8px 0 0;
}

.lp-grid-collage,
.lp-story-collage {
    width: 44%;
    max-width: 230px;
    aspect-ratio: 9 / 16;
    border-radius: 12px;
    box-sizing: border-box;
    box-shadow: 0 1px 2px rgba(31, 31, 31, 0.05), 0 14px 32px rgba(31, 31, 31, 0.09);
}

.lp-grid-collage {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1.25fr 1fr 1fr 1.25fr;
    grid-template-areas:
        "a b"
        "a c"
        "d c"
        "d e";
    gap: 4px;
    padding: 4px;
    background: #ffffff;
    border: 1px solid var(--lp-line);
}

.lp-grid-collage span {
    overflow: hidden;
    border-radius: 6px;
}

.lp-story-collage {
    display: block;
    margin-left: -6%;
    margin-bottom: 28px;
    object-fit: cover;
    transform: rotate(3deg);
}

/* Budgets */

.lp-budget {
    padding: 20px;
}

.lp-budget-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding-bottom: 14px;
}

.lp-budget-head span {
    color: var(--lp-muted);
    font-size: 13.5px;
}

.lp-budget-head strong {
    font-family: var(--lp-serif);
    font-size: 32px;
    font-weight: 400;
    letter-spacing: -0.01em;
}

.lp-combos {
    margin: 0;
    padding: 0;
    list-style: none;
}

.lp-combos li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-top: 1px solid var(--lp-line);
}

.lp-combo-imgs {
    display: inline-flex;
    flex: 0 0 auto;
}

.lp-combo-imgs img {
    width: 34px;
    height: 34px;
    margin-left: -10px;
    border: 2px solid #ffffff;
    border-radius: 8px;
    background: #ffffff;
    object-fit: cover;
    box-shadow: 0 0 0 1px var(--lp-line);
}

.lp-combo-imgs img:first-child {
    margin-left: 0;
}

.lp-combo-label {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    color: var(--lp-soft);
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lp-combo-total {
    font-size: 14px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.lp .lp-budget-foot {
    padding-top: 12px;
    border-top: 1px solid var(--lp-line);
    color: var(--lp-muted);
    font-size: 12.5px;
}

/* Sharing */

.lp-points {
    display: grid;
    gap: 10px;
    max-width: 34rem;
    margin: 22px 0 0;
    padding: 0;
    list-style: none;
}

.lp-points li {
    position: relative;
    padding-left: 18px;
    color: var(--lp-soft);
    font-size: 15px;
    line-height: 1.6;
}

.lp-points li::before {
    content: '';
    position: absolute;
    top: 0.68em;
    left: 2px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--lp-ink);
}

.lp-share {
    padding: 18px;
}

.lp-share-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 14px;
}

.lp-share-owner {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #e9d6c8;
    color: var(--lp-ink);
    font-size: 15px;
    font-weight: 600;
}

.lp-share-who {
    flex: 1;
    min-width: 0;
}

.lp-share-viewing {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 5px;
    padding: 4px 9px;
    border: 1px solid var(--lp-line-strong);
    border-radius: 999px;
    color: var(--lp-soft);
    font-size: 12px;
    font-weight: 500;
}

.lp-share-viewing svg {
    width: 14px;
    height: 14px;
}

.lp .lp-share-title {
    font-size: 16px;
    font-weight: 600;
}

.lp .lp-share-meta {
    margin-top: 2px;
    color: var(--lp-muted);
    font-size: 13px;
}

.lp-avatars {
    display: inline-flex;
}

.lp-avatars span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin-left: -7px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    color: var(--lp-ink);
    font-size: 12px;
    font-weight: 600;
    overflow: hidden;
}

.lp-avatars img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Item cards, as on the board page: rounded white card with a soft
   shadow, photo on top, name + price below, the Viewer Eye button in
   the photo's corner, and who's getting it underneath. */
.lp-share-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 0 0 14px;
    padding: 0;
    list-style: none;
}

.lp-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.07), 0 0 0 1px rgba(0, 0, 0, 0.03);
}

.lp-card-photo {
    position: relative;
    aspect-ratio: 1;
}

.lp-card-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lp-card-eye {
    position: absolute;
    top: 7px;
    right: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(228, 228, 228, 0.95);
    color: #33322f;
}

.lp-card-eye svg {
    width: 15px;
    height: 15px;
}

.lp-card-info {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 10px 12px;
}

.lp-card-info .lp-tag {
    align-self: stretch;
    margin-top: auto;
    padding: 4px 7px;
    font-size: 11px;
    line-height: 1.25;
    white-space: normal;
}

/* Phones: three cards to a row leaves each one narrow, so drop the
   tags' little icons to give the words the room. */
@media (max-width: 519px) {
    .lp-share-cards {
        gap: 7px;
    }

    .lp-card-info {
        padding: 8px 7px 9px;
    }

    .lp-card-info .lp-tag {
        padding: 4px 6px;
        font-size: 10.5px;
    }

    .lp-card-info .lp-tag svg,
    .lp-card-info .lp-tag-av {
        display: none;
    }
}

.lp-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    justify-self: start;
    padding: 4px 9px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

.lp-tag-taken {
    background: var(--lp-tint);
    color: var(--lp-soft);
}

/* Profile photos in the owner avatar and the "bought" tag */
.lp-share-owner,
.lp-tag-av {
    overflow: hidden;
}

.lp-share-owner img,
.lp-tag-av img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lp-tag-mine {
    background: var(--lp-ink);
    color: #ffffff;
}

.lp-tag-mine svg {
    width: 13px;
    height: 13px;
}

.lp-tag-anon {
    border: 1px solid var(--lp-line-strong);
    background: #ffffff;
    color: var(--lp-soft);
}

.lp-tag-av {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    margin-left: -3px;
    border-radius: 50%;
    background: var(--lp-tint);
    color: var(--lp-ink);
    font-size: 10.5px;
    font-weight: 600;
}

.lp .lp-share-foot {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-top: 14px;
    border-top: 1px solid var(--lp-line);
    color: var(--lp-muted);
    font-size: 13px;
}

.lp-share-foot svg {
    width: 16px;
    height: 16px;
}

/* Exports */

/* The five download formats as a row of file tiles: a little page
   with a folded corner and its coloured type tag, name underneath. */
.lp-formats {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    max-width: 460px;
    margin: 28px 0 0;
    padding: 0;
    list-style: none;
}

.lp-formats li {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 16px 4px 12px;
    border: 1px solid var(--lp-line);
    border-radius: 12px;
    background: #ffffff;
    color: var(--lp-ink);
    font-size: 13px;
    font-weight: 500;
    transition: box-shadow 0.2s var(--lp-ease);
}

.lp-formats li:hover {
    box-shadow: 0 10px 22px rgba(31, 31, 31, 0.08);
}

.lp-file {
    position: relative;
    width: 34px;
    height: 42px;
    border: 1.5px solid var(--lp-line-strong);
    border-radius: 4px 11px 4px 4px;
    background:
        linear-gradient(var(--lp-line-strong), var(--lp-line-strong)) 7px 9px / 13px 1.5px no-repeat,
        linear-gradient(var(--lp-line-strong), var(--lp-line-strong)) 7px 14px / 17px 1.5px no-repeat,
        #ffffff;
}

/* The folded corner */
.lp-file::before {
    content: '';
    position: absolute;
    top: -1.5px;
    right: -1.5px;
    width: 11px;
    height: 11px;
    border-bottom-left-radius: 3px;
    background: linear-gradient(225deg, transparent 50%, var(--lp-line-strong) 50%);
}

.lp-file .lp-format {
    position: absolute;
    bottom: 6px;
    left: -8px;
}

/* Excel export mock: the sheet, a shop window that opens on top, and a
   cursor + click ripple. Geometry is fixed in px (30px title bar, 28px
   formula bar, 20px column letters, 26px rows), so the cursor's target
   - the "Clover bracelet" link in A4 - always sits at 74px, 169px.
   Without .lp-motion (reduced motion) it rests on the finished frame:
   link clicked, shop page open. With motion it loops every 9s, paused
   until the mock has scrolled into view (.is-visible from home.js). */
.lp-xl {
    --lp-xl-green: #217346;
    position: relative;
    padding-bottom: 36px;
}

.lp-xl-window {
    overflow: hidden;
    border: 1px solid var(--lp-line-strong);
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 12px 32px rgba(31, 31, 31, 0.08);
    font-family: Calibri, Carlito, 'Segoe UI', Arial, sans-serif;
}

.lp-xl-titlebar {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 30px;
    padding: 0 10px;
    background: var(--lp-xl-green);
    color: #ffffff;
    font-size: 12px;
}

.lp-xl-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 3px;
    background: #ffffff;
    color: var(--lp-xl-green);
    font-size: 10.5px;
    font-weight: 700;
}

.lp-xl-formula {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 28px;
    padding: 0 8px;
    border-bottom: 1px solid #e1e1e1;
    color: var(--lp-ink);
    font-size: 11.5px;
}

.lp-xl-ref {
    width: 40px;
    padding: 2px 5px;
    border: 1px solid #e1e1e1;
    color: var(--lp-soft);
    font-size: 11px;
}

.lp-xl-fx {
    color: var(--lp-muted);
    font-family: Georgia, serif;
    font-style: italic;
}

.lp-xl-formula-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lp-xl-grid {
    display: grid;
    grid-template-columns: 26px minmax(0, 2.1fr) minmax(0, 0.9fr) minmax(0, 1fr) minmax(0, 0.7fr);
    grid-template-rows: 20px;
    grid-auto-rows: 26px;
    font-size: 11.5px;
}

.lp-xl-grid > span {
    display: flex;
    align-items: center;
    min-width: 0;
    overflow: hidden;
    border-right: 1px solid #e6e6e6;
    border-bottom: 1px solid #e6e6e6;
    white-space: nowrap;
}

.lp-xl-corner,
.lp-xl-col,
.lp-xl-num {
    justify-content: center;
    background: #f3f3f3;
    color: #6b6b6b;
    font-size: 10.5px;
}

.lp-xl-cell {
    padding: 0 6px;
    color: var(--lp-ink);
}

.lp-xl-heading,
.lp-xl-board {
    grid-column: span 4;
    font-weight: 700;
}

.lp-xl-heading {
    font-size: 13px;
}

.lp-xl-grid > .lp-xl-th {
    background: #1f1f1f;
    border-color: #1f1f1f;
    color: #ffffff;
    font-weight: 700;
}

.lp-xl-link {
    color: #0563c1;
    text-decoration: underline;
}

.lp-xl-cell.lp-xl-tick {
    justify-content: center;
    font-size: 13px;
}

/* A4 once the cursor is on it: Excel's green selected-cell box */
.lp-xl-target {
    position: relative;
}

.lp-xl-target::after {
    content: '';
    position: absolute;
    inset: -1px;
    border: 2px solid var(--lp-xl-green);
    opacity: 1;
}

.lp-xl-shop {
    position: absolute;
    top: 136px;
    right: -14px;
    width: min(62%, 320px);
    overflow: hidden;
    border: 1px solid var(--lp-line-strong);
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 22px 50px rgba(31, 31, 31, 0.2);
}

.lp-xl-shop-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 9px;
    background: #f1f1f1;
    border-bottom: 1px solid #e4e4e4;
}

.lp-xl-dots {
    display: inline-flex;
    flex: none;
    gap: 4px;
}

.lp-xl-dots i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #d4d4d4;
}

.lp-xl-url {
    display: flex;
    flex: 1;
    align-items: center;
    gap: 4px;
    min-width: 0;
    overflow: hidden;
    padding: 3px 8px;
    border-radius: 999px;
    background: #ffffff;
    color: var(--lp-soft);
    font-size: 10.5px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lp-xl-url svg {
    flex: none;
    width: 10px;
    height: 10px;
}

.lp-xl-shop-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 12px;
}

.lp-xl-shop-body img {
    display: block;
    width: 100%;
    aspect-ratio: 1;
    border-radius: 6px;
    object-fit: cover;
    background: #f6f6f6;
}

.lp .lp-xl-shop-brand {
    color: var(--lp-muted);
    font-size: 9.5px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.lp .lp-xl-shop-title {
    margin-top: 3px;
    color: var(--lp-ink);
    font-family: var(--lp-serif);
    font-size: 15px;
    line-height: 1.15;
}

.lp .lp-xl-shop-price {
    margin-top: 4px;
    color: var(--lp-ink);
    font-size: 12px;
    font-weight: 600;
}

.lp-xl-shop-btn {
    display: inline-block;
    margin-top: 10px;
    padding: 5px 12px;
    border-radius: 999px;
    background: var(--lp-ink);
    color: #ffffff;
    font-size: 10.5px;
    font-weight: 500;
}

/* Cursor: 22px, its fingertip (hand) / tip (arrow) lands on A4 */
.lp-xl-cursor {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 3;
    width: 22px;
    height: 22px;
    transform: translate(64px, 166px);
    pointer-events: none;
}

.lp-xl-cursor svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    fill: #ffffff;
    stroke: #111111;
    stroke-width: 1.4;
    stroke-linejoin: round;
    filter: drop-shadow(0 1px 1.5px rgba(0, 0, 0, 0.3));
}

.lp-xl-arrow {
    opacity: 0;
}

.lp-xl-ripple {
    position: absolute;
    top: 151px;
    left: 56px;
    z-index: 2;
    width: 36px;
    height: 36px;
    border: 2px solid var(--lp-xl-green);
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
}

/* The loop (motion allowed only) */
.lp-motion .lp-xl-cursor {
    animation: lp-xl-cursor 9s infinite;
}

.lp-motion .lp-xl-arrow {
    animation: lp-xl-arrow 9s infinite;
}

.lp-motion .lp-xl-hand {
    animation: lp-xl-hand 9s infinite;
}

.lp-motion .lp-xl-target::after {
    animation: lp-xl-select 9s infinite;
}

.lp-motion .lp-xl-ripple {
    animation: lp-xl-ripple 9s infinite;
}

.lp-motion .lp-xl-shop {
    animation: lp-xl-shop 9s infinite;
}

.lp-motion .lp-xl :is(.lp-xl-cursor, .lp-xl-arrow, .lp-xl-hand, .lp-xl-target, .lp-xl-ripple, .lp-xl-shop),
.lp-motion .lp-xl .lp-xl-target::after {
    animation-play-state: paused;
}

.lp-motion .lp-xl.is-visible :is(.lp-xl-cursor, .lp-xl-arrow, .lp-xl-hand, .lp-xl-target, .lp-xl-ripple, .lp-xl-shop),
.lp-motion .lp-xl.is-visible .lp-xl-target::after {
    animation-play-state: running;
}

@keyframes lp-xl-cursor {
    0% {
        opacity: 0;
        transform: translate(250px, 290px);
    }
    6% {
        opacity: 1;
        transform: translate(250px, 290px);
        animation-timing-function: cubic-bezier(0.45, 0, 0.2, 1);
    }
    26%,
    30% {
        opacity: 1;
        transform: translate(64px, 166px) scale(1);
    }
    32% {
        transform: translate(64px, 166px) scale(0.8);
    }
    35%,
    80% {
        opacity: 1;
        transform: translate(64px, 166px) scale(1);
        animation-timing-function: cubic-bezier(0.45, 0, 0.2, 1);
    }
    92%,
    100% {
        opacity: 0;
        transform: translate(250px, 290px);
    }
}

@keyframes lp-xl-arrow {
    0%,
    24% {
        opacity: 1;
    }
    25%,
    82% {
        opacity: 0;
    }
    83%,
    100% {
        opacity: 1;
    }
}

@keyframes lp-xl-hand {
    0%,
    24% {
        opacity: 0;
    }
    25%,
    82% {
        opacity: 1;
    }
    83%,
    100% {
        opacity: 0;
    }
}

@keyframes lp-xl-select {
    0%,
    30% {
        opacity: 0;
    }
    31%,
    84% {
        opacity: 1;
    }
    86%,
    100% {
        opacity: 0;
    }
}

@keyframes lp-xl-ripple {
    0%,
    31% {
        opacity: 0;
        transform: scale(0.2);
    }
    32% {
        opacity: 0.7;
        transform: scale(0.3);
    }
    42%,
    100% {
        opacity: 0;
        transform: scale(1.6);
    }
}

@keyframes lp-xl-shop {
    0%,
    35% {
        opacity: 0;
        transform: translateY(14px) scale(0.94);
    }
    44%,
    82% {
        opacity: 1;
        transform: none;
    }
    90%,
    100% {
        opacity: 0;
        transform: translateY(8px) scale(0.98);
    }
}

.lp-format {
    padding: 2px 4px;
    border-radius: 3px;
    background: var(--c);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
    color: #ffffff;
    font-size: 8.5px;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1.2;
}

/* Closing call to action */

.lp-close {
    padding: 88px 0 96px;
    text-align: center;
}

.lp-close-title {
    margin-bottom: 28px;
}

.lp-close .lp-lede {
    margin: 0 auto;
}

/* -------------------------------------------------------------------
   Footer
   ------------------------------------------------------------------- */

.lp-footer {
    padding: 44px 0 28px;
    border-top: 1px solid #ececec;
    color: #5c5c5c;
    font-size: 14px;
}

.lp-footer p {
    margin: 0;
}

.lp-footer-inner {
    display: flex;
    flex-direction: column;
    gap: 36px;
}

.lp-footer-logo {
    margin-bottom: 6px !important;
    color: #1f1f1f;
    font-family: 'Archivo Black', Arial, sans-serif;
    font-size: 22px;
    font-weight: 400;
    letter-spacing: -0.053em;
}

.lp-footer-brand p:last-child {
    max-width: 22rem;
    line-height: 1.55;
}

.lp-footer-cols {
    display: flex;
    flex-wrap: wrap;
    gap: 28px 64px;
}

.lp-footer-head {
    margin-bottom: 12px !important;
    color: #1f1f1f;
    font-size: 13px;
    font-weight: 600;
}

.lp-footer ul {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.lp-footer a,
.lp-footer button {
    padding: 0;
    border: none;
    background: none;
    color: inherit;
    font: inherit;
    text-decoration: none;
    cursor: pointer;
}

.lp-footer .lp-footer-social {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.lp-footer a:hover,
.lp-footer button:hover {
    color: #1f1f1f;
}

.lp-footer span {
    color: #9a9a9a;
}

.lp-footer-base {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px 24px;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #ececec;
    font-size: 13px;
}

/* .lp-footer prefix so the desktop ".lp-wrap { padding: 0 40px }" rule
   further down doesn't flatten this back to zero */
.lp-footer .lp-footer-base {
    padding-top: 16px;
}

.lp-footer-base a {
    color: inherit;
    text-decoration: none;
}

.lp-footer-base a:hover {
    color: var(--lp-ink);
    text-decoration: underline;
}

/* -------------------------------------------------------------------
   Scroll fade (home.js adds .lp-motion to <html> when it's allowed)
   ------------------------------------------------------------------- */

.lp-motion [data-reveal] {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.7s var(--lp-ease), transform 0.7s var(--lp-ease);
}

.lp-motion [data-reveal].is-visible {
    opacity: 1;
    transform: none;
}

/* -------------------------------------------------------------------
   Larger phones and up
   ------------------------------------------------------------------- */

@media (min-width: 520px) {
    .lp-masonry {
        column-count: 3;
    }

    .lp-actions {
        flex-wrap: wrap;
    }

    .lp-actions .lp-btn {
        flex: 0 0 auto;
        padding: 0 20px;
        line-height: 1;
        white-space: nowrap;
    }

    .lp-actions-center {
        justify-content: center;
    }

}

/* -------------------------------------------------------------------
   Desktop
   ------------------------------------------------------------------- */

@media (min-width: 881px) {
    .lp-wrap {
        padding: 0 40px;
    }

    .lp-hero {
        padding: 72px 0 112px;
    }

    .lp-hero-grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
        gap: 64px;
        align-items: center;
    }

    .lp-lede {
        font-size: 20px;
    }

    .lp-section {
        padding: 112px 0;
    }

    .lp-split {
        grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
        gap: 80px;
    }

    .lp-split-flip .lp-split-copy {
        order: 2;
    }

    .lp-section-intro {
        margin-bottom: 72px;
    }

    .lp-row-lead .lp-heading {
        margin-bottom: 72px;
    }

    .lp-subheading-arrowed {
        position: relative;
        display: flex;
        align-items: center;
    }

    .lp-row-arrow {
        display: block;
    }

    /* Decks: stretches from the word across the 80px column gap, stopping
       just short of the editor mock. */
    .lp-row-arrow-right {
        flex: 1 1 auto;
        height: 46px;
        margin: 0 -72px 0 14px;
    }

    /* Collages (flipped row): sits in the gap to the left of the word,
       pointing back at the collage. */
    .lp-row-arrow-left {
        position: absolute;
        top: 50%;
        right: calc(100% + 8px);
        width: 96px;
        height: 77px;
        transform: translateY(-36%);
    }

    /* The editor mock's top lines up with the heading's second line. */
    .lp-row-lead .lp-row-visual {
        margin-top: 64px;
    }

    .lp-boards {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 24px;
        margin-bottom: 40px;
    }

    /* Hangs over the board card's top edge a little (z-index above) */
    .lp-collab-note {
        margin-bottom: -34px;
    }

    .lp .lp-collab-note p {
        max-width: 20em;
        font-size: 41px;
    }

    .lp-collab-arrow {
        width: 132px;
    }

    .lp-board {
        padding: 20px;
    }

    .lp-masonry-clip {
        max-height: 720px;
    }

    .lp-masonry {
        column-count: 5;
        column-gap: 15px;
    }

    .lp-pin {
        margin-bottom: 14px;
        border-radius: 18px;
    }

    .lp-board-tile.lp-board-tile-wide-only {
        display: flex;
    }

    .lp-row {
        grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
        gap: 80px;
    }

    .lp-row + .lp-row {
        margin-top: 80px;
    }

    .lp-row-flip .lp-row-copy {
        order: 2;
    }

    .lp-close {
        padding: 128px 0 136px;
    }

    .lp-footer-inner {
        flex-direction: row;
        justify-content: space-between;
    }
}

@media (prefers-reduced-motion: reduce) {
    .lp-slide,
    .lp-thumb {
        transition: none;
    }
}
