/* Shared by every page on glipsy.com. Light palette: the site targets
   everyday readers now, not just developers, and the DeepSeek demo video
   is recorded in light mode, so a dark page would frame it badly. */
:root {
    --brand-from: #6e9a3a;
    --brand-to: #2f8a8c;
    --bg: #f5f6f7;
    --text: #16191c;
    --muted: #55606a;
    /* 4.9:1 on --bg, enough for the 13px footer and price lines */
    --faint: #5f6b75;
    --line: #e1e5e9;
    --card: #ffffff;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

.bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(ellipse 55% 65% at 70% 30%, rgba(47, 138, 140, 0.09), transparent 65%),
        radial-gradient(ellipse 45% 55% at 12% 15%, rgba(110, 154, 58, 0.09), transparent 65%),
        var(--bg);
}

/* ---- Header ---- */
header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 32px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
}

.brand img {
    width: 34px;
    height: 34px;
}

/* Same Beta pill as the extension popup header */
.beta-badge {
    border-radius: 999px;
    background: rgba(47, 138, 140, 0.12);
    color: var(--brand-to);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 3px 8px;
}

/* ---- Site tabs: one row under the header, one tab per page ----
   Big and impossible to miss, so a visitor sees at a glance that the
   extension covers several sites and which one this page is about. */
.site-tabs {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 0 24px;
    border-bottom: 1px solid var(--line);
    overflow-x: auto;
    scrollbar-width: none;
}

.site-tabs::-webkit-scrollbar {
    display: none;
}

.site-tabs a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    margin-bottom: -1px;
    border-bottom: 2px solid transparent;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: var(--muted);
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.15s, border-color 0.15s;
}

.site-tabs a:hover {
    color: var(--text);
}

.site-tabs a[aria-current] {
    color: var(--text);
    border-bottom-color: var(--brand-to);
}

.site-tabs img,
.site-tabs svg {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    flex-shrink: 0;
}

.site-tabs svg {
    color: var(--brand-to);
}

/* ---- Hero row: [title + description + buttons] [video] ---- */
.content {
    /* Fills a laptop screen so the tiles sit just below the fold, but
       stops growing on tall screens so the hero is not stranded in space */
    min-height: min(calc(100dvh - 132px), 780px);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 72px;
    padding: 24px 64px 32px;
}

.copy {
    flex-shrink: 0;
    max-width: min(420px, 100%);
}

h1 {
    font-size: clamp(32px, 3vw, 50px);
    line-height: 1.15;
    letter-spacing: -0.02em;
    font-weight: 800;
}

h1 span {
    background: linear-gradient(90deg, var(--brand-from), var(--brand-to));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.copy p {
    font-size: 18px;
    color: var(--muted);
    margin: 18px 0 28px;
}

.copy .price {
    font-size: 14px;
    color: var(--faint);
    margin: 14px 0 0;
}

/* Framed as a browser window so the demo reads as a recording of another
   site rather than part of this page. Recordings are cropped to the page
   itself so they don't carry a second browser bar inside this one. */
.video-wrap {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
    max-width: 900px;
    border-radius: 14px;
    overflow: hidden;
    background: var(--card);
    border: 1px solid var(--line);
    box-shadow:
        0 24px 60px rgba(20, 30, 40, 0.14),
        0 0 0 1px rgba(255, 255, 255, 0.6) inset;
}

.video-chrome {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 36px;
    padding: 0 14px;
    background: #f0f2f4;
    border-bottom: 1px solid var(--line);
}

.video-chrome .dots {
    display: flex;
    gap: 6px;
}

.video-chrome .dots i {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #d0d5da;
}

.video-chrome .url {
    flex: 1;
    padding: 2px 12px;
    border-radius: 999px;
    background: var(--card);
    font-size: 12px;
    color: var(--faint);
}

/* Every demo shows in the same shaped box, whatever the recording's own
   size, so the frame doesn't jump when moving between the site pages.
   Recordings a bit taller than this (the T3 one) lose a sliver top and
   bottom rather than getting letterboxed. */
.video-wrap video {
    display: block;
    width: 100%;
    aspect-ratio: 1600 / 820;
    object-fit: cover;
}

/* The T3 recording is taller and cropping would hide its message box, so
   it sits inside bars the same dark plum as the recording's background */
.video-wrap.dark {
    background: #171019;
}

.video-wrap.dark video {
    object-fit: contain;
}


/* ---- Store buttons ---- */
.store-buttons {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 260px;
}

.store-btn {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 14px 24px;
    border-radius: 14px;
    background: var(--card);
    border: 1px solid #d9dee3;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    color: var(--text);
    text-decoration: none;
    transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.store-btn:hover {
    border-color: #b9c2c9;
    box-shadow: 0 6px 18px rgba(20, 30, 40, 0.10);
    transform: translateY(-1px);
}

.store-btn img {
    width: 34px;
    height: 34px;
}

.store-btn .btn-text {
    text-align: left;
    line-height: 1.25;
}

.store-btn .btn-text small {
    display: block;
    font-size: 11px;
    font-weight: 400;
    color: var(--faint);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.store-btn .btn-text strong {
    font-size: 18px;
    font-weight: 600;
}

/* ---- Steps: a row of white tiles under the hero ---- */
.section {
    padding: 8px 64px 56px;
    max-width: 1180px;
    width: 100%;
    margin: 0 auto;
}

.section h2 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 18px;
}

.tiles {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.tile {
    display: block;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 22px 24px;
    color: var(--text);
}

.tile strong {
    display: block;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 6px;
}

.tile .step {
    display: inline-block;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-from), var(--brand-to));
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    line-height: 26px;
    margin-bottom: 12px;
}

.tile p {
    color: var(--muted);
    font-size: 15px;
}

kbd {
    font-family: inherit;
    font-size: 0.9em;
    padding: 1px 7px;
    border-radius: 6px;
    background: #f0f2f4;
    border: 1px solid #d9dee3;
    border-bottom-width: 2px;
    color: var(--text);
}

/* ---- Prose pages (privacy, uninstalled) ---- */
main.prose {
    flex: 1;
    max-width: 760px;
    width: 100%;
    margin: 0 auto;
    padding: 24px 24px 64px;
}

main.prose.narrow {
    max-width: 620px;
    padding-top: 48px;
}

main.prose h1 {
    font-size: clamp(30px, 3vw, 42px);
    margin-bottom: 6px;
}

main.prose.narrow h1 {
    margin-bottom: 18px;
}

main.prose .updated {
    color: var(--faint);
    font-size: 14px;
    margin-bottom: 36px;
}

main.prose h2 {
    font-size: 20px;
    font-weight: 700;
    margin: 36px 0 10px;
}

main.prose p,
main.prose li {
    color: #3a444d;
    margin-bottom: 10px;
}

main.prose ul {
    padding-left: 22px;
    margin-bottom: 10px;
}

main.prose strong {
    color: var(--text);
}

main.prose a {
    color: var(--brand-to);
    text-decoration: none;
}

main.prose a:hover {
    text-decoration: underline;
}

/* ---- Footer ---- */
footer {
    padding: 10px 24px 24px;
    text-align: center;
    font-size: 13px;
    color: var(--faint);
}

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

footer a:hover {
    color: var(--text);
}

/* ---- Narrow screens ---- */
@media (max-width: 900px) {
    header {
        padding: 16px 20px;
    }

    /* Centered tabs in a scrolling row would clip the first one */
    .site-tabs {
        justify-content: flex-start;
        padding: 0 12px;
    }

    .site-tabs a {
        padding: 12px 14px;
        font-size: 14px;
    }

    .content {
        min-height: 0;
        flex-direction: column;
        gap: 0;
        padding: 16px 20px 32px;
    }

    /* On a phone the demo would sit below the fold, so the copy block
       comes apart and the video slots in between the title and the rest */
    .copy {
        display: contents;
    }

    .copy > * {
        order: 2;
        max-width: 420px;
        text-align: center;
    }

    .copy > h1 {
        order: 0;
    }

    .video-wrap {
        order: 1;
        width: 92vw;
        margin-top: 20px;
    }

    .store-buttons {
        margin: 0 auto;
    }

    .section {
        padding: 8px 20px 48px;
    }

    .tiles {
        grid-template-columns: 1fr;
    }
}
