/* Lumina page. Builds on the homepage tokens in ../styles.css */
:root {
    --lp-cta: #5856d6;
    --lp-line: rgba(0, 0, 0, 0.08);
    --lp-nav: rgba(245, 245, 247, 0.8);
    --lp-ring: inset 0 0 0 1px rgba(88, 86, 214, 0.36), 0 18px 40px -16px rgba(88, 86, 214, 0.38);
    --lp-frame: inset 0 0 0 1px rgba(88, 86, 214, 0.28), 0 30px 60px -30px rgba(40, 40, 110, 0.45);
    --lp-fill: #e8e8ed;
}

:root.dark-mode {
    --lp-cta: #5e5ce6;
    --lp-line: rgba(255, 255, 255, 0.1);
    --lp-nav: rgba(0, 0, 0, 0.72);
    --lp-ring: inset 0 0 0 1px rgba(125, 122, 255, 0.5), 0 0 44px -14px rgba(125, 122, 255, 0.42);
    --lp-frame: inset 0 0 0 1px rgba(125, 122, 255, 0.4), 0 0 60px -20px rgba(125, 122, 255, 0.35);
    --lp-fill: #2c2c2e;
}

.lp-wrap {
    max-width: 1128px;
    margin: 0 auto;
    padding-left: max(24px, env(safe-area-inset-left));
    padding-right: max(24px, env(safe-area-inset-right));
}

/* Navigation */
.lp-nav {
    position: sticky;
    top: 0;
    z-index: 10;
    padding-top: env(safe-area-inset-top);
    background: var(--lp-nav);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--lp-line);
}

.lp-nav-in {
    height: 52px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 16px;
}

.lp-back {
    justify-self: start;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 44px;
    font-size: 14px;
    color: var(--text-secondary);
    text-decoration: none;
}

.lp-back:hover {
    color: var(--text-primary);
}

.lp-back svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.lp-nav-name {
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.lp-nav .lp-btn {
    justify-self: end;
}

/* Buttons */
.lp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 48px;
    padding: 0 24px;
    border-radius: 999px;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -0.015em;
    text-decoration: none;
    white-space: nowrap;
    transition: transform 0.4s var(--ease-spring), filter 0.3s ease;
}

.lp-btn:hover {
    filter: brightness(1.08);
}

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

.lp-btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.lp-btn-primary {
    background: var(--lp-cta);
    color: #fff;
}

.lp-btn-secondary {
    background: var(--lp-fill);
    color: var(--text-primary);
}

.lp-btn-sm {
    height: 32px;
    padding: 0 14px;
    font-size: 13px;
}

a:focus-visible,
.lp-track:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
}

/* Hero */
.lp-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 56px;
    align-items: center;
    padding-top: 72px;
    padding-bottom: 88px;
}

.lp-app-icon {
    display: block;
    width: 112px;
    height: 112px;
    margin: -12px 0 4px -12px;
}

.lp-eyebrow {
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--text-secondary);
}

.lp-h1 {
    margin-top: 4px;
    font-size: 64px;
    line-height: 1.03;
    font-weight: 700;
    letter-spacing: -0.045em;
    text-wrap: balance;
}

.lp-lede {
    margin-top: 20px;
    max-width: 30em;
    font-size: 21px;
    line-height: 1.4;
    letter-spacing: -0.02em;
    color: var(--text-secondary);
}

.lp-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

.lp-fine {
    margin-top: 16px;
    font-size: 13px;
    color: var(--text-secondary);
}

.lp-shot {
    height: 580px;
    border-radius: 32px;
    overflow: hidden;
    background: var(--tile-bg);
    box-shadow: var(--lp-frame);
}

.lp-shot img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 62% top;
}

.lp-shot-dark,
:root.dark-mode .lp-shot-light {
    display: none;
}

:root.dark-mode .lp-shot-dark {
    display: block;
}

/* Sections */
.lp-section {
    padding: 72px 0;
    border-top: 1px solid var(--lp-line);
}

.lp-sec-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 28px;
}

.lp-h2 {
    font-size: 40px;
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -0.035em;
    text-wrap: balance;
}

.lp-sec-lede {
    margin-top: 10px;
    font-size: 19px;
    line-height: 1.4;
    letter-spacing: -0.015em;
    color: var(--text-secondary);
}

/* The tools, grouped by theme: four cards, each a short list */
.lp-ink {
    color: var(--indigo);
}

.lp-themes {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-top: 40px;
}

.lp-theme {
    display: flex;
    flex-direction: column;
    padding: 28px 24px 24px;
    border-radius: 28px;
    background: var(--tile-bg);
    box-shadow: var(--tile-shadow);
}

.lp-theme-top {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.lp-theme-name {
    font-size: 24px;
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.lp-theme-count {
    flex-shrink: 0;
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--indigo-soft);
    color: var(--indigo);
    font-size: 13px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.lp-theme-blurb {
    margin-top: 8px;
    font-size: 15px;
    line-height: 1.4;
    color: var(--text-secondary);
}

/* Two-line blurbs in the narrow four-column cards: keep the lists level */
@media (min-width: 1020px) {
    .lp-theme-blurb {
        min-height: 2.8em;
    }
}

.lp-theme-tools {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--lp-line);
}

.lp-tool {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.015em;
    color: inherit;
    text-decoration: none;
}

.lp-tool:hover {
    color: var(--indigo);
}

.lp-theme-tools img {
    display: block;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    clip-path: inset(4% round 24%);
}

/* Clear of the sticky nav when a tool scrolls the page here */
#highlights {
    scroll-margin-top: 76px;
}

/* Highlights carousel */
.lp-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 12px;
    scrollbar-width: none;
    border-radius: 28px;
}

.lp-track::-webkit-scrollbar {
    display: none;
}

.lp-card {
    flex: 0 0 640px;
    max-width: 100%;
    margin: 0;
    scroll-snap-align: start;
    border-radius: 28px;
    overflow: hidden;
    background: var(--tile-bg);
    box-shadow: var(--tile-shadow);
}

.lp-card img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
}

.lp-arrows {
    display: flex;
    gap: 10px;
}

.lp-arrow {
    width: 44px;
    height: 44px;
    padding: 0;
    border: none;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.lp-arrow:disabled {
    opacity: 0.35;
    cursor: default;
}

.lp-arrow svg {
    position: relative;
    z-index: 1;
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.lp-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 24px;
}

/* Each chip carries its feature's icon color as --chip (darkened for white text) and --chip-glow */
.lp-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 34px;
    padding: 0 14px 0 7px;
    border-radius: 999px;
    background: var(--tile-bg);
    box-shadow: var(--tile-shadow);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: -0.01em;
    text-decoration: none;
    transition: background-color 0.35s ease, color 0.35s ease, box-shadow 0.35s ease;
}

.lp-chip img {
    display: block;
    width: 20px;
    height: 20px;
}

/* The icons are cut from the feature cards with a dark fringe at their edges:
   a circle just inside the edge hides it */
.lp-chip img {
    clip-path: circle(44%);
}

.lp-chip:hover {
    color: var(--chip, var(--indigo));
}

:root.dark-mode .lp-chip:hover {
    color: var(--chip-glow, var(--indigo));
}

.lp-chip[aria-current="true"],
:root.dark-mode .lp-chip[aria-current="true"] {
    background: var(--chip, var(--lp-cta));
    color: #fff;
    box-shadow: 0 8px 20px -8px var(--chip-glow, var(--lp-cta));
}

/* Hero: a quiet link beside the download button, and what buying means */
.lp-link {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    min-height: 44px;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -0.015em;
    color: var(--indigo);
    text-decoration: none;
}

.lp-link:hover {
    text-decoration: underline;
}

.lp-link svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.lp-perks {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    margin-top: 18px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
}

.lp-perks li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.lp-perks svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: var(--indigo);
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Licence: four tiles and the price */
.lp-glyph {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--indigo-soft);
    color: var(--indigo);
}

.lp-glyph svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.lp-perk-grid {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-top: 40px;
}

.lp-perk {
    padding: 24px;
    border-radius: 28px;
    background: var(--tile-bg);
    box-shadow: var(--tile-shadow);
}

.lp-perk-t,
.lp-split-t {
    margin-top: 14px;
    font-size: 19px;
    line-height: 1.3;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.lp-perk-d {
    margin-top: 6px;
    font-size: 15px;
    line-height: 1.45;
    color: var(--text-secondary);
}

.lp-price {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    margin-top: 20px;
    padding: 18px 24px;
    border-radius: 20px;
    background: var(--tile-bg);
    box-shadow: var(--tile-shadow);
}

.lp-price strong {
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -0.015em;
    color: var(--text-primary);
}

.lp-tba {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 28px;
    padding: 0 12px;
    border-radius: 999px;
    background: var(--indigo-soft);
    color: var(--indigo);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.lp-tba-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.lp-price-d {
    font-size: 15px;
    color: var(--text-secondary);
}

/* Why Lumina isn't on the Mac App Store */
#why,
#licence {
    scroll-margin-top: 76px;
}

.lp-why-h {
    max-width: 15em;
}

.lp-body {
    font-size: 19px;
    line-height: 1.5;
    letter-spacing: -0.012em;
    color: var(--text-secondary);
}

.lp-body strong {
    font-weight: 600;
    color: var(--text-primary);
}

.lp-why-intro {
    max-width: 38em;
    margin-top: 20px;
}

/* Every tool twice: in the sandbox, with the ones that couldn't work dimmed, and sold directly */
.lp-sb {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-top: 48px;
}

.lp-sb-card {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 32px;
    border-radius: 28px;
    background: var(--tile-bg);
    box-shadow: var(--tile-shadow);
}

.lp-sb-card.is-on {
    box-shadow: var(--lp-ring);
}

.lp-sb-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.lp-sb-label {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.lp-sb-name {
    margin-top: 4px;
    font-size: 24px;
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--text-primary);
}

.lp-sb-count {
    flex-shrink: 0;
    font-size: 15px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: var(--text-secondary);
}

.is-on .lp-sb-count {
    color: var(--indigo);
}

.lp-sb-grid {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 14px 10px;
}

.lp-sb-tool {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    line-height: 1.2;
    font-weight: 600;
    letter-spacing: 0;
    text-align: center;
    color: var(--text-secondary);
}

.lp-sb-tool img {
    display: block;
    width: 48px;
    height: 48px;
    clip-path: inset(4% round 24%);
}

.lp-sb-tool.is-off img {
    filter: grayscale(1);
    opacity: 0.22;
}

.lp-sb-tool.is-off span {
    opacity: 0.45;
    text-decoration: line-through;
}

.lp-sb-foot {
    padding-top: 20px;
    border-top: 1px solid var(--lp-line);
    font-size: 15px;
    line-height: 1.45;
    color: var(--text-secondary);
}

/* The reasons, as spec-sheet rows */
.lp-reasons {
    list-style: none;
    margin-top: 72px;
}

.lp-reason {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 32px;
    padding: 28px 0;
    border-top: 1px solid var(--lp-line);
}

.lp-reason:last-child {
    border-bottom: 1px solid var(--lp-line);
}

.lp-reason-t {
    font-size: 19px;
    line-height: 1.3;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.lp-reason-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.lp-reason-icons img {
    display: block;
    width: 36px;
    height: 36px;
    clip-path: inset(4% round 24%);
}

.lp-reason-d {
    font-size: 19px;
    line-height: 1.5;
    letter-spacing: -0.012em;
    color: var(--text-secondary);
}

.lp-reason-d strong {
    font-weight: 600;
    color: var(--text-primary);
}

.lp-split {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-top: 72px;
}

.lp-split-tile {
    padding: 36px;
    border-radius: 28px;
    background: var(--tile-bg);
    box-shadow: var(--tile-shadow);
}

.lp-split-t {
    margin-top: 18px;
    font-size: 24px;
    letter-spacing: -0.03em;
}

.lp-split-tile .lp-body {
    margin-top: 12px;
    font-size: 17px;
}

/* Install steps */
.lp-steps {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.lp-step {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 28px;
    border-radius: 28px;
    background: var(--tile-bg);
    box-shadow: var(--tile-shadow);
}

.lp-step-n {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--indigo-soft);
    color: var(--indigo);
    font-size: 15px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    font-variant-numeric: tabular-nums;
}

.lp-step-t {
    font-size: 21px;
    line-height: 1.25;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.lp-step-d {
    font-size: 15px;
    line-height: 1.45;
    color: var(--text-secondary);
}

.lp-path {
    align-self: flex-start;
    margin-top: 2px;
    padding: 6px 10px;
    border-radius: 10px;
    background: var(--lp-fill);
    font-size: 13px;
    font-weight: 600;
}

.lp-note {
    margin-top: 20px;
    font-size: 15px;
    color: var(--text-secondary);
}

/* Closing call to action */
.lp-final {
    padding-bottom: 24px;
}

.lp-cta-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 56px 32px;
    border-radius: 32px;
    background: var(--tile-bg);
    box-shadow: var(--lp-ring);
}

.lp-cta-icon {
    display: block;
    width: 96px;
    height: 96px;
    margin: -10px 0 4px;
}

.lp-cta-tile .lp-ctas {
    justify-content: center;
    margin-top: 28px;
}

.lp-foot {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    padding-top: 28px;
    padding-bottom: calc(48px + env(safe-area-inset-bottom));
    font-size: 13px;
    color: var(--text-secondary);
}

.lp-foot a {
    color: var(--text-primary);
    font-weight: 600;
    text-decoration: none;
}

.lp-foot a:hover {
    text-decoration: underline;
}

@media (prefers-reduced-motion: no-preference) {
    .lp-track {
        scroll-behavior: smooth;
    }
}

@media (max-width: 1019px) {
    .lp-themes,
    .lp-perk-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .lp-sb {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 599px) {
    .lp-themes {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 767px) {
    .lp-wrap {
        padding-left: max(20px, env(safe-area-inset-left));
        padding-right: max(20px, env(safe-area-inset-right));
    }

    .lp-back-label {
        display: none;
    }

    .lp-hero {
        grid-template-columns: minmax(0, 1fr);
        gap: 36px;
        padding-top: 40px;
        padding-bottom: 56px;
    }

    .lp-h1 {
        font-size: 44px;
    }

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

    .lp-hero .lp-btn {
        flex: 1 1 auto;
    }

    .lp-shot {
        height: 440px;
        border-radius: 26px;
    }

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

    .lp-h2 {
        font-size: 30px;
    }

    .lp-card {
        flex-basis: 86%;
        border-radius: 22px;
    }

    .lp-arrows {
        display: none;
    }

    .lp-steps,
    .lp-perk-grid,
    .lp-split {
        grid-template-columns: minmax(0, 1fr);
    }

    .lp-body,
    .lp-reason-d {
        font-size: 17px;
    }

    .lp-sb-card,
    .lp-split-tile {
        padding: 24px;
    }

    .lp-sb-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .lp-reasons,
    .lp-split {
        margin-top: 48px;
    }

    .lp-reason {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
        padding: 24px 0;
    }
}
