/* ── Tokens ─────────────────────────────────────────────────── */
:root {
    /* Greys follow the app's own palette so the site and the product read as
       one thing. --accent is sampled straight from the Glimpse mark. */
    --bg: #17181a;
    --bg-deep: #121314;
    --surface: #232426;
    --surface-2: #2c2e31;
    --ink: #f0ece4;
    --muted: #9aa0aa;
    --accent: #feb822;
    --accent-ink: #17181a;
    --border: #35373b;

    --radius: 14px;
    --radius-sm: 10px;
    --shadow: 0 18px 40px rgba(0, 0, 0, .38);
    --shadow-lg: 0 30px 70px rgba(0, 0, 0, .5);

    --wrap: 1140px;
    --pad: 24px;

    --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ── Base ───────────────────────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 88px;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.65;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

body.is-locked {
    overflow: hidden;
}

img,
svg {
    max-width: 100%;
    display: block;
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

h1,
h2,
h3 {
    line-height: 1.15;
    letter-spacing: -.02em;
    margin: 0;
    font-weight: 700;
}

p {
    margin: 0;
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 4px;
}

.wrap {
    width: 100%;
    max-width: var(--wrap);
    margin-inline: auto;
    padding-inline: var(--pad);
}

.wrap--narrow {
    max-width: 800px;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 8px;
    background: var(--accent);
    color: var(--accent-ink);
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    z-index: 100;
}

.skip-link:focus {
    left: 16px;
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 11px 20px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface-2);
    color: var(--ink);
    font: inherit;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    white-space: nowrap;
    transition: transform .16s ease, background-color .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.btn:hover {
    text-decoration: none;
    transform: translateY(-1px);
    border-color: #474b53;
    background: #35383d;
}

.btn--accent {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--accent-ink);
    box-shadow: 0 8px 22px rgba(254, 184, 34, .18);
}

.btn--accent:hover {
    background: #ffc645;
    border-color: #ffc645;
    box-shadow: 0 12px 28px rgba(254, 184, 34, .28);
}

.btn--ghost {
    background: transparent;
}

.btn--ghost:hover {
    background: rgba(255, 255, 255, .05);
}

.btn--lg {
    padding: 14px 26px;
    font-size: 16px;
}

.btn--small {
    padding: 8px 15px;
    font-size: 14px;
}

.btn .icon {
    width: 18px;
    height: 18px;
    fill: currentColor;
    flex: none;
}

/* Line-art icons in buttons — drawn, not filled. */
.btn .icon--stroke {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ── Header ─────────────────────────────────────────────────── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(23, 24, 26, .82);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: border-color .2s ease, background-color .2s ease;
}

.site-header.is-stuck {
    border-bottom-color: var(--border);
    background: rgba(18, 19, 20, .92);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    height: 70px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: var(--ink);
    font-weight: 700;
    letter-spacing: -.01em;
    font-size: 19px;
}

.brand:hover {
    text-decoration: none;
}

.brand__mark {
    border-radius: 9px;
}

.nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav__link {
    color: var(--muted);
    font-size: 15px;
    font-weight: 500;
    padding: 8px 13px;
    border-radius: var(--radius-sm);
    transition: color .16s ease, background-color .16s ease;
}

.nav__link:hover {
    color: var(--ink);
    background: rgba(255, 255, 255, .05);
    text-decoration: none;
}

.nav__cta {
    margin-left: 10px;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    padding: 0 10px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
}

.nav-toggle__bar {
    display: block;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: transform .2s ease, opacity .2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ── Hero ───────────────────────────────────────────────────── */
.hero {
    position: relative;
    overflow: hidden;
    padding: clamp(48px, 8vw, 96px) 0 clamp(56px, 8vw, 104px);
}

.hero__glow {
    position: absolute;
    inset: -40% 0 auto -10%;
    height: 720px;
    background:
        radial-gradient(560px 340px at 22% 38%, rgba(254, 184, 34, .15), transparent 70%),
        radial-gradient(680px 420px at 82% 18%, rgba(255, 208, 110, .09), transparent 70%);
    pointer-events: none;
}

/* The copy column is given the wider share so "Your media library," stays on one
   line at full width — broken across two it fights the deliberate line break. */
.hero__inner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.06fr) minmax(0, 1fr);
    gap: clamp(32px, 5vw, 64px);
    align-items: center;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 20px;
    padding: 6px 14px 6px 11px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface);
    color: var(--muted);
    font-size: 13.5px;
    font-weight: 600;
    letter-spacing: .01em;
}

.eyebrow--plain {
    padding: 0;
    border: 0;
    background: none;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: 13px;
    margin-bottom: 14px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 4px rgba(254, 184, 34, .15);
}

.hero__title {
    font-size: clamp(38px, 5vw, 56px);
    margin-bottom: 20px;
}

.grad {
    background: linear-gradient(96deg, var(--accent) 8%, #ffd06e 58%, #ffeab5 105%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero__sub {
    font-size: clamp(17px, 1.4vw, 19px);
    color: var(--muted);
    max-width: 56ch;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.hero__note {
    margin-top: 26px;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent);
    border-radius: var(--radius-sm);
    background: rgba(254, 184, 34, .06);
    color: var(--muted);
    font-size: 14.5px;
    line-height: 1.55;
    max-width: 60ch;
}

.hero__note strong {
    color: var(--ink);
}

/* ── Screenshots ────────────────────────────────────────────── */
.shot {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.shot img {
    width: 100%;
    height: auto;
}

.shot__chrome {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 11px 14px;
    background: var(--surface-2);
    border-bottom: 1px solid var(--border);
}

.shot__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #474b53;
}

.shot__url {
    margin-left: 10px;
    padding: 2px 12px;
    border-radius: 999px;
    background: rgba(0, 0, 0, .25);
    color: var(--muted);
    font-size: 12.5px;
}

/* Placeholders. Each one names the file that replaces it, so swapping a real
   screenshot in is a copy-paste rather than a hunt through the markup. */
.shot__ph {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 28px 22px;
    text-align: center;
    background:
        repeating-linear-gradient(135deg,
            rgba(255, 255, 255, .018) 0 12px,
            transparent 12px 24px),
        var(--bg-deep);
    border: 1px dashed #43464c;
    border-radius: var(--radius-sm);
    color: var(--muted);
}

/* `display: flex` above outranks the browser's own [hidden] { display: none },
   so a hidden placeholder would otherwise still take up space. */
.shot__ph[hidden] {
    display: none;
}

.shot__ph--wide {
    aspect-ratio: 16 / 10;
}

/* Inside browser/phone chrome the placeholder is the screen itself, so it drops
   its own frame rather than drawing a second one just inside the first. */
.shot .shot__ph {
    border: 0;
    border-radius: 0;
}

.shot__ph-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 6px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.4;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: .55;
}

.shot__ph-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--ink);
}

.shot__ph-hint {
    font-size: 12.5px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    opacity: .7;
}

/* ── Works-with strip ───────────────────────────────────────── */
.strip {
    border-block: 1px solid var(--border);
    background: var(--bg-deep);
    padding: 30px 0;
}

.strip__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 14px 32px;
    text-align: center;
}

.strip__label,
.strip__note {
    color: var(--muted);
    font-size: 13.5px;
    text-transform: uppercase;
    letter-spacing: .1em;
    font-weight: 600;
}

.strip__note {
    text-transform: none;
    letter-spacing: 0;
    font-weight: 400;
    font-size: 14.5px;
}

.strip__logos {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px 28px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.strip__logos li {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--ink);
    font-weight: 600;
    font-size: 16px;
}

.strip__logos img {
    width: 24px;
    height: 24px;
}

/* ── Sections ───────────────────────────────────────────────── */
.section {
    padding: clamp(64px, 9vw, 112px) 0;
}

.section--alt {
    background: var(--bg-deep);
    border-block: 1px solid var(--border);
}

.section__head {
    max-width: 680px;
    margin-bottom: clamp(36px, 5vw, 56px);
}

.section__head--center {
    margin-inline: auto;
    text-align: center;
}

.section__title {
    font-size: clamp(28px, 3.6vw, 40px);
    margin-bottom: 14px;
}

.section__sub {
    color: var(--muted);
    font-size: 17px;
}

/* ── Feature cards ──────────────────────────────────────────── */
.grid {
    display: grid;
    gap: 20px;
}

.grid--features {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.card {
    padding: 26px 24px 28px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.card:hover {
    transform: translateY(-3px);
    border-color: rgba(254, 184, 34, .45);
    box-shadow: var(--shadow);
}

.card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-bottom: 18px;
    border-radius: 12px;
    background: color-mix(in srgb, var(--accent) 16%, var(--surface-2));
    color: var(--accent);
}

.card__icon svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.card__title {
    font-size: 19px;
    margin-bottom: 9px;
}

.card__text {
    color: var(--muted);
    font-size: 15.5px;
}

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

/* ── Steps ──────────────────────────────────────────────────── */
.steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 22px;
}

.step {
    position: relative;
    padding: 28px 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: linear-gradient(180deg, var(--surface), rgba(35, 36, 38, .55));
}

.step__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    margin-bottom: 16px;
    border-radius: 50%;
    border: 1px solid rgba(254, 184, 34, .4);
    background: color-mix(in srgb, var(--accent) 14%, transparent);
    color: var(--accent);
    font-weight: 700;
    font-size: 16px;
}

.step__title {
    font-size: 19px;
    margin-bottom: 9px;
}

.step__text {
    color: var(--muted);
    font-size: 15.5px;
}

/* ── CTA ────────────────────────────────────────────────────── */
.cta {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    gap: clamp(28px, 4vw, 56px);
    align-items: center;
    padding: clamp(30px, 4vw, 52px);
    border: 1px solid var(--border);
    border-radius: 20px;
    background:
        radial-gradient(520px 300px at 88% 8%, rgba(254, 184, 34, .12), transparent 70%),
        var(--surface);
    box-shadow: var(--shadow);
}

.cta__title {
    font-size: clamp(26px, 3.2vw, 34px);
    margin-bottom: 14px;
}

.cta__text {
    color: var(--muted);
    max-width: 58ch;
}

.cta__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

.cta__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
}

.cta__list li {
    padding: 14px 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: rgba(0, 0, 0, .18);
    color: var(--muted);
    font-size: 15px;
}

/* ── Sibling product (Marquee) ──────────────────────────────── */
/* Deliberately wears Marquee's own Plex gold rather than Glimpse's, so it reads
   as a pointer to a different product instead of another Glimpse feature. */
/* Declared on the section, not the card: the eyebrow above the card reads it
   too, and a variable scoped to the card is invisible from outside it. */
.section--marquee {
    --marquee: #e5a00d;
}

/* The card is narrower than the full wrap on purpose. At full width the text
   column was wider than a comfortable line length, so the paragraph stopped
   160px short of the right padding while sitting only 52px from the logo —
   which read as the copy being crowded against the mark. Narrowing the card
   lets the paragraph fill its column instead, so both sides end where the
   padding does. */
.sibling {
    max-width: 940px;
    margin-inline: auto;
    display: grid;
    /* The mark column is sized so the logo reads as a product identity rather
       than a decorative icon — it is the thing that says "this is a different
       app" before the copy does. */
    grid-template-columns: minmax(180px, 230px) minmax(0, 1fr);
    gap: clamp(32px, 5vw, 76px);
    align-items: center;
    padding: clamp(30px, 4vw, 48px);
    border: 1px solid var(--border);
    border-radius: 20px;
    background:
        radial-gradient(460px 300px at 12% 8%, rgba(229, 160, 13, .13), transparent 70%),
        var(--surface);
    box-shadow: var(--shadow);
}

.sibling__eyebrow {
    color: var(--marquee);
}

/* No max-width: the column is already sized to a readable measure, and capping
   the paragraph again is what left the dead space on the right. */
.sibling__text {
    color: var(--muted);
    font-size: 16px;
}

.sibling__text + .sibling__text {
    margin-top: 14px;
}

.sibling__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

.btn--marquee {
    background: var(--marquee);
    border-color: var(--marquee);
    color: #1c1e24;
    box-shadow: 0 8px 22px rgba(229, 160, 13, .18);
}

.btn--marquee:hover {
    background: #f0ac1c;
    border-color: #f0ac1c;
    box-shadow: 0 12px 28px rgba(229, 160, 13, .28);
}

.sibling__note {
    margin-top: 18px;
    color: var(--muted);
    font-size: 13.5px;
    letter-spacing: .01em;
}

.sibling__mark {
    text-align: center;
}

/* Fills its column rather than sitting as a small icon in a large box. The logo
   draws its own rounded square (rx 12 on a 64 viewBox), so the shadow's corner
   is given as that same ratio — a fixed radius would drift away from the artwork
   as the width changes. */
.sibling__mark img {
    width: 100%;
    height: auto;
    margin-inline: auto;
    border-radius: 18.75%;
    box-shadow: var(--shadow-lg);
}

.sibling__name {
    margin-top: 18px;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -.01em;
}

.sibling__tag {
    margin-top: 2px;
    color: var(--muted);
    font-size: 14.5px;
}

/* ── Support ────────────────────────────────────────────────── */
.support {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: clamp(30px, 4vw, 48px);
    border: 1px solid var(--border);
    border-radius: 20px;
    background:
        radial-gradient(520px 300px at 50% 0%, rgba(254, 184, 34, .12), transparent 70%),
        var(--surface);
    box-shadow: var(--shadow);
}

.support__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin-bottom: 18px;
    border-radius: 14px;
    background: color-mix(in srgb, var(--accent) 16%, var(--surface-2));
    color: var(--accent);
}

.support__icon svg {
    width: 26px;
    height: 26px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.support__title {
    font-size: clamp(24px, 3vw, 30px);
    margin-bottom: 12px;
}

.support__text {
    color: var(--muted);
    max-width: 54ch;
    margin-bottom: 26px;
}

/* ── FAQ ────────────────────────────────────────────────────── */
.faq {
    display: grid;
    gap: 12px;
}

.faq__item {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    overflow: hidden;
}

.faq__item[open] {
    border-color: rgba(254, 184, 34, .38);
}

.faq__q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 17px 20px;
    font-weight: 600;
    font-size: 16.5px;
    cursor: pointer;
    list-style: none;
}

.faq__q::-webkit-details-marker {
    display: none;
}

.faq__q::after {
    content: "";
    flex: none;
    width: 20px;
    height: 20px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239aa0aa' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / 20px no-repeat;
    transition: transform .2s ease;
}

.faq__item[open] .faq__q::after {
    transform: rotate(180deg);
}

.faq__q:hover {
    color: var(--accent);
}

.faq__a {
    padding: 0 20px 20px;
    color: var(--muted);
    font-size: 15.5px;
}

/* ── Footer ─────────────────────────────────────────────────── */
.site-footer {
    border-top: 1px solid var(--border);
    background: var(--bg-deep);
    padding: 48px 0 32px;
}

.site-footer__inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 28px;
}

.site-footer__tag {
    margin-top: 10px;
    color: var(--muted);
    font-size: 15px;
}

.site-footer__links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 26px;
    align-content: start;
}

.site-footer__links a {
    color: var(--muted);
    font-size: 15px;
}

.site-footer__links a:hover {
    color: var(--accent);
}

.site-footer__legal {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px 24px;
    margin-top: 36px;
    padding-top: 22px;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 13.5px;
}

/* ── Reveal on scroll ───────────────────────────────────────── */
.js .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .6s ease, transform .6s ease;
}

.reveal--delay {
    transition-delay: .12s;
}

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

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 960px) {

    .hero__inner,
    .cta {
        grid-template-columns: 1fr;
    }

    /* Stacked, the logo must stop filling the full page width — at 300px it
       already reads as the product's identity without dominating the card. */
    .sibling {
        grid-template-columns: 1fr;
    }

    .sibling__mark img {
        max-width: 300px;
    }
}

@media (max-width: 800px) {
    .nav-toggle {
        display: flex;
    }

    .nav {
        position: fixed;
        inset: 70px 0 auto;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        padding: 16px var(--pad) 26px;
        background: var(--bg-deep);
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow);
        transform: translateY(-12px);
        opacity: 0;
        visibility: hidden;
        transition: opacity .2s ease, transform .2s ease, visibility .2s;
    }

    .nav.is-open {
        transform: none;
        opacity: 1;
        visibility: visible;
    }

    .nav__link {
        padding: 13px 12px;
        font-size: 17px;
    }

    .nav__cta {
        margin: 8px 0 0;
        justify-content: center;
        padding: 12px 18px;
        font-size: 16px;
    }
}

@media (max-width: 560px) {
    body {
        font-size: 16px;
    }

    .hero__actions .btn,
    .cta__actions .btn,
    .sibling__actions .btn {
        width: 100%;
    }

    .shot__url {
        display: none;
    }

    .shot__ph {
        padding: 20px 14px;
    }

    .shot__ph-hint {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: .001ms !important;
        transition-duration: .001ms !important;
    }

    .js .reveal {
        opacity: 1;
        transform: none;
    }
}
