/* Product-first pages (home, Horizon); every class is opt-in under .sc-page. */

.sc-page {
    --sc-bg: #09090b;
    --sc-tile: #0e0e11;
    --sc-line: #27272A;
    --sc-line-strong: #3f3f46;
    --sc-muted: #A1A1AA;
    --sc-fg-soft: #d4d4d8;
    --sc-fg: #FAFAFA;
    --sc-ease: cubic-bezier(.2, .7, .2, 1);
    /* Pulls the page under MainLayout's pt-4 so the background meets the header. */
    margin-top: -1rem;
    padding-bottom: 96px;
    background: var(--sc-bg);
    color: var(--sc-fg);
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    line-height: 1.5;
    overflow-x: clip;
}

:where(.sc-page) :is(h1, h2, h3, h4, p, figure, ul, ol, dl, dd) {
    margin: 0;
}

:where(.sc-page) :is(ul, ol) {
    padding: 0;
    list-style: none;
}

:where(.sc-page) a {
    color: inherit;
    text-decoration: none;
}

:where(.sc-page) :is(h1, h2, h3, h4) {
    color: inherit;
    font-weight: 400;
    line-height: 1.15;
}

.sc-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
}

.sc-section {
    padding-top: 112px;
}

.sc-gotu {
    font-family: "Gotu", serif;
}

.sc-muted {
    color: var(--sc-muted);
}

/* Buttons, badge, eyebrow, section heading */

.sc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border: 1px solid transparent;
    border-radius: 1em;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color .2s, border-color .2s, box-shadow .2s;
}

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

.sc-btn-primary {
    background: var(--sc-fg);
    color: #09090b;
}

.sc-btn-primary:hover {
    background: #e4e4e7;
    box-shadow: 0 0 24px rgba(250, 250, 250, .18);
}

.sc-btn-secondary {
    background: rgba(255, 255, 255, .02);
    border-color: var(--sc-line);
    color: var(--sc-fg);
    font-weight: 500;
}

.sc-btn-secondary:hover {
    background: rgba(255, 255, 255, .05);
    border-color: var(--sc-line-strong);
}

.sc-btn-lg {
    padding: 12px 24px;
    font-size: 16px;
}

.sc-btn-sm {
    padding: 7px 14px;
    font-size: 13px;
}

.sc-btn-block {
    width: 100%;
}

.sc-btn-icon {
    width: 16px;
    height: 16px;
    flex: none;
}

.sc-badge {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: 100%;
    padding: 5px 12px 5px 5px;
    border: 1px solid var(--sc-line);
    border-radius: 999px;
    background: rgba(255, 255, 255, .04);
    color: var(--sc-fg-soft);
    font-size: 13px;
    line-height: 1.3;
    text-align: left;
    transition: border-color .2s;
}

a.sc-badge:hover {
    border-color: var(--sc-line-strong);
}

.sc-badge-tag {
    flex: none;
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--sc-fg);
    color: #09090b;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .02em;
}

.sc-eyebrow {
    color: var(--sc-muted);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.sc-section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    margin-bottom: 28px;
}

.sc-section-title {
    margin-top: 8px;
    font-family: "Gotu", serif;
    font-size: clamp(26px, 3vw, 34px);
}

.sc-section-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--sc-fg-soft);
    font-size: 14px;
    white-space: nowrap;
    transition: color .2s;
}

.sc-section-link:hover {
    color: var(--sc-fg);
}

/* Tiles and chips */

.sc-tile {
    position: relative;
    isolation: isolate;
    display: block;
    min-width: 0;
    padding: 20px;
    border: 1px solid var(--sc-line);
    border-radius: 14px;
    background: var(--sc-tile);
    color: var(--sc-fg);
    overflow: hidden;
    transition: border-color .2s, box-shadow .2s;
}

.sc-tile:hover {
    border-color: color-mix(in srgb, var(--sc-accent, var(--sc-fg)) 45%, var(--sc-line));
    box-shadow: 0 0 30px color-mix(in srgb, var(--sc-accent, var(--sc-fg)) 14%, transparent);
}

/* A title link that covers its whole tile, leaving the tile's own buttons clickable above it. */
.sc-tile-link::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
}

.sc-tile-link:focus-visible {
    outline: none;
}

.sc-tile:has(.sc-tile-link:focus-visible) {
    outline: 2px solid var(--sc-fg);
    outline-offset: 2px;
}

.sc-tile-actions {
    position: relative;
    z-index: 2;
}

.sc-tile-featured {
    border-color: var(--sc-muted);
    background: linear-gradient(180deg, rgba(255, 255, 255, .05), var(--sc-tile) 60%);
}

.sc-tile-name {
    font-family: "Gotu", serif;
    font-size: 19px;
    line-height: 1.3;
}

.sc-tile-text {
    margin-top: 6px;
    color: var(--sc-muted);
    font-size: 14px;
    line-height: 1.55;
}

.sc-dot::before {
    content: "";
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-right: 9px;
    border-radius: 50%;
    background: var(--sc-accent, var(--sc-fg));
    vertical-align: middle;
}

.sc-tag {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 8px;
    border: 1px solid var(--sc-line);
    border-radius: 999px;
    color: var(--sc-muted);
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 10.5px;
    letter-spacing: .06em;
    line-height: 1.4;
    text-transform: uppercase;
    vertical-align: middle;
}

.sc-chip-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
}

.sc-chips {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.sc-chips-label {
    color: var(--sc-muted);
    font-size: 13px;
}

.sc-chip {
    padding: 3px 10px;
    border: 1px solid var(--sc-line);
    border-radius: 999px;
    color: var(--sc-fg-soft);
    font-size: 12px;
    line-height: 1.4;
}

/* Screenshot frame, and the hero tilt that follows the mouse */

.sc-shot-frame {
    position: relative;
    border: 1px solid var(--sc-line-strong);
    border-radius: 10px;
    background: #000;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .6), 0 0 60px rgba(250, 250, 250, .05);
    overflow: hidden;
}

.sc-shot-frame img,
.sc-shot-frame video {
    display: block;
    width: 100%;
    height: auto;
}

.sc-shot-tilt {
    perspective: 1400px;
}

.sc-shot-tilt .sc-shot-frame {
    transform: rotateX(calc(var(--sc-rest-tilt, 0deg) + var(--sc-rx, 0deg))) rotateY(var(--sc-ry, 0deg));
    transition: transform .6s var(--sc-ease);
}

html.sc-tilt .sc-shot-tilt .sc-shot-frame {
    --sc-rest-tilt: 6deg;
}

html.sc-tilt .sc-shot-tilt.is-tilting .sc-shot-frame {
    transition-duration: .2s;
}

.sc-shot-glare {
    position: absolute;
    inset: 0;
    background: radial-gradient(600px circle at var(--sc-gx, 50%) var(--sc-gy, 0%), rgba(255, 255, 255, .12), transparent 45%);
    opacity: 0;
    pointer-events: none;
    transition: opacity .4s ease;
}

.sc-shot-tilt.is-tilting .sc-shot-glare {
    opacity: 1;
}

/* Cursor spotlight on tiles, in each tile's own color */

html.sc-spot .sc-tile:hover {
    border-color: var(--sc-line);
    box-shadow: none;
}

html.sc-spot .sc-tile::before,
html.sc-spot .sc-tile::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
}

html.sc-spot .sc-tile::before {
    z-index: -1;
    background: radial-gradient(340px circle at var(--sc-mx, -999px) var(--sc-my, -999px), color-mix(in srgb, var(--sc-accent, var(--sc-fg)) 9%, transparent), transparent 70%);
}

html.sc-spot .sc-tile::after {
    padding: 1px;
    background: radial-gradient(260px circle at var(--sc-mx, -999px) var(--sc-my, -999px), color-mix(in srgb, var(--sc-accent, var(--sc-fg)) 65%, transparent), transparent 70%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

/* Border beam: a light that travels around the few elements meant to draw the eye */

@property --sc-beam {
    syntax: "<angle>";
    inherits: false;
    initial-value: 0deg;
}

.sc-beam-ring {
    display: none;
}

html.sc-motion .sc-beam-ring {
    display: block;
    position: absolute;
    inset: 0;
    padding: 1px;
    border-radius: inherit;
    background: conic-gradient(from var(--sc-beam), transparent 0deg 250deg, rgba(250, 250, 250, .95) 320deg, transparent 360deg);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    animation: sc-beam 4.5s linear infinite;
}

.sc-badge .sc-beam-ring {
    inset: -1px;
}

@keyframes sc-beam {
    to { --sc-beam: 360deg; }
}

/* Headline shimmer and word-by-word rise; pure CSS, so they run without the script */

@property --sc-shine-base {
    syntax: "<color>";
    inherits: false;
    initial-value: #fafafa;
}

@media (prefers-reduced-motion: no-preference) {
    .sc-shine {
        --sc-shine-base: #c8c8cd;
        background: linear-gradient(100deg, var(--sc-shine-base) 35%, #ffffff 50%, var(--sc-shine-base) 65%) 0 0 / 250% 100%;
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
        animation: sc-shine 2.6s ease-in-out .3s 3 both, sc-shine-settle 1s ease 8.1s forwards;
    }

    .sc-rise-word {
        display: inline-block;
        animation: sc-word-rise .6s var(--sc-ease) both;
        animation-delay: calc(var(--i) * 55ms + 150ms);
    }
}

@keyframes sc-shine {
    from { background-position: 100% 0; }
    to { background-position: 0 0; }
}

@keyframes sc-shine-settle {
    to { --sc-shine-base: #fafafa; }
}

@keyframes sc-word-rise {
    from { opacity: 0; transform: translateY(10px); }
}

/* Reveal on scroll */

html.sc-motion .sc-reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .6s ease, transform .6s var(--sc-ease);
}

html.sc-motion .sc-reveal.is-visible {
    opacity: 1;
    transform: none;
}

@supports (animation-timeline: view()) {
    html.sc-motion .sc-reveal {
        opacity: 1;
        transform: none;
        transition: none;
        animation: sc-rise linear both;
        animation-timeline: view();
        animation-range: entry 0% entry 60%;
    }
}

@keyframes sc-rise {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: none; }
}

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

/* Pinned features: a sticky screenshot beside scrolling steps */

.sc-pinned {
    display: grid;
    grid-template-columns: .85fr 1.25fr;
    gap: 56px;
}

.sc-pinned-step {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 72vh;
}

html.sc-motion .sc-pinned-step {
    opacity: .3;
    transition: opacity .4s ease;
}

html.sc-motion .sc-pinned[data-active="0"] .sc-pinned-step[data-step="0"],
html.sc-motion .sc-pinned[data-active="1"] .sc-pinned-step[data-step="1"],
html.sc-motion .sc-pinned[data-active="2"] .sc-pinned-step[data-step="2"],
html.sc-motion .sc-pinned[data-active="3"] .sc-pinned-step[data-step="3"] {
    opacity: 1;
}

.sc-pinned-title {
    margin-top: 10px;
    font-family: "Gotu", serif;
    font-size: clamp(26px, 2.6vw, 32px);
}

.sc-pinned-text {
    max-width: 440px;
    margin-top: 12px;
    color: var(--sc-muted);
    font-size: 16px;
    line-height: 1.6;
}

.sc-pinned-chips {
    margin-top: 18px;
}

.sc-pinned-inline {
    display: none;
}

.sc-pinned-stage {
    position: sticky;
    top: max(14vh, 96px);
    display: flex;
    flex-direction: column;
    gap: 14px;
    height: 62vh;
    margin: 5vh 0;
    align-self: start;
}

.sc-pinned-frame {
    position: relative;
    flex: 1;
    border: 1px solid var(--sc-line-strong);
    border-radius: 10px;
    background: #000;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .6), 0 0 60px rgba(250, 250, 250, .05);
    overflow: hidden;
}

.sc-pinned-media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top left;
    opacity: 0;
    transform: scale(1.03);
    transition: opacity .6s ease, transform .9s var(--sc-ease);
}

.sc-pinned[data-active="0"] .sc-pinned-media[data-step="0"],
.sc-pinned[data-active="1"] .sc-pinned-media[data-step="1"],
.sc-pinned[data-active="2"] .sc-pinned-media[data-step="2"],
.sc-pinned[data-active="3"] .sc-pinned-media[data-step="3"] {
    opacity: 1;
    transform: none;
}

.sc-pinned-progress {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.sc-pinned-progress span {
    width: 28px;
    height: 3px;
    border-radius: 3px;
    background: var(--sc-line-strong);
    transition: background-color .3s;
}

.sc-pinned[data-active="0"] .sc-pinned-progress [data-step="0"],
.sc-pinned[data-active="1"] .sc-pinned-progress [data-step="1"],
.sc-pinned[data-active="2"] .sc-pinned-progress [data-step="2"],
.sc-pinned[data-active="3"] .sc-pinned-progress [data-step="3"] {
    background: var(--sc-fg);
}

@media (max-width: 959px) {
    .sc-pinned {
        grid-template-columns: 1fr;
    }

    .sc-pinned-steps {
        display: grid;
        gap: 64px;
    }

    .sc-pinned-step,
    html.sc-motion .sc-pinned-step {
        min-height: 0;
        opacity: 1;
    }

    .sc-pinned-stage {
        display: none;
    }

    .sc-pinned-inline {
        display: block;
        margin-top: 22px;
    }
}

/* Downloads, sharing, the sticky bar and the Product Hunt banner */

.sc-download {
    min-width: var(--sc-download-min, 0);
}

.sc-download .sc-icon-share,
.sc-download.is-share .sc-icon-download {
    display: none;
}

.sc-download.is-share .sc-icon-share {
    display: inline;
}

.sc-detected-label,
.sc-copy-link[hidden] {
    display: none;
}

[data-platform-tile].is-detected {
    border-color: var(--sc-muted);
    background: linear-gradient(180deg, rgba(255, 255, 255, .05), var(--sc-tile) 60%);
}

[data-platform-tile].is-detected .sc-detected-label {
    display: inline-block;
}

.sc-ph-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    max-width: 100%;
    margin: 0 auto;
    padding: 8px 14px 8px 8px;
    border: 1px solid var(--sc-line);
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(218, 85, 47, .16), rgba(255, 255, 255, .02));
    color: var(--sc-fg-soft);
    font-size: 13px;
    line-height: 1.35;
}

.sc-ph-banner[hidden] {
    display: none;
}

.sc-ph-mark {
    display: grid;
    flex: none;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #DA552F;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}

.sc-sticky-bar {
    display: none;
}

@media (max-width: 959px) {
    .sc-sticky-bar {
        position: fixed;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 1000;
        display: flex;
        gap: 8px;
        padding: 10px 16px calc(12px + env(safe-area-inset-bottom));
        border-top: 1px solid var(--sc-line);
        background: rgba(9, 9, 11, .85);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        transform: translateY(110%);
        transition: transform .3s var(--sc-ease);
    }

    .sc-sticky-bar.is-shown {
        transform: none;
    }

    .sc-sticky-bar .sc-btn {
        padding: 10px 14px;
        font-size: 14px;
    }

    .sc-sticky-bar .sc-download {
        flex: 1;
        min-width: 0;
    }

    .sc-sticky-bar .sc-download-label {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

/* Phones */

@media (max-width: 959px) {
    .sc-section {
        padding-top: 80px;
    }
}

@media (min-width: 600px) and (max-width: 959px) {
    /* Tablets in portrait get the phone crops; keep them phone-sized. */
    .sc-shot-crop {
        max-width: 480px;
        margin-inline: auto;
    }
}

@media (max-width: 599px) {
    .sc-container {
        padding: 0 16px;
    }

    /* Hero buttons go full width here, so the reserved label width would only push them off narrow screens. */
    .sc-download {
        min-width: 0;
    }

    .sc-section-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .sc-tile {
        padding: 16px;
    }
}

@media (max-width: 399px) {
    .sc-btn-lg {
        padding: 12px 16px;
        font-size: 15px;
    }
}
