/* Feedray - landing.
   Monochrome on purpose: the extension lives inside Threads, so the page borrows its
   restraint — system type, hairline borders, one accent (none), generous whitespace.
   No webfonts, no external requests: the privacy claim on this page has to be true of
   the page itself. */

:root {
    --bg: #ffffff;
    --bg-alt: #f6f9fc;
    --fg: #0a0a0a;
    --fg-soft: #5c5c5c;
    --fg-mute: #8a8a8a;
    --line: rgba(0, 0, 0, .10);
    --line-soft: rgba(0, 0, 0, .06);
    --shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 12px 32px rgba(0, 0, 0, .07);
    /* Threads itself is monochrome plus exactly two non-grey colours, sampled from the
       live page: #0095F6 for interactive accents and the verified badge, #385898 for links
       and mentions. Borrowing the first one keeps the page native instead of decorated. */
    --accent: #0095f6;
    --accent-ink: #0077c8;
    --accent-wash: rgba(0, 149, 246, .09);
    --accent-btn: #0077c8;
    --accent-btn-hover: #0063a8;
    --radius: 16px;
    --wrap: 1120px;
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial,
        "Noto Sans", sans-serif;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #0a0a0a;
        --bg-alt: #0f1418;
        --fg: #f5f5f5;
        --fg-soft: #a8a8a8;
        --fg-mute: #767676;
        --line: rgba(255, 255, 255, .14);
        --line-soft: rgba(255, 255, 255, .08);
        --shadow: 0 1px 2px rgba(0, 0, 0, .5), 0 12px 32px rgba(0, 0, 0, .6);
        --accent: #4db5ff;
        --accent-ink: #79c8ff;
        --accent-wash: rgba(77, 181, 255, .10);
        --accent-btn: #0077c8;
        --accent-btn-hover: #0d8ae0;
    }
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
}

.wrap {
    width: 100%;
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 24px;
}

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

.center {
    text-align: center;
}

.skip {
    position: absolute;
    left: -9999px;
}

.skip:focus {
    left: 16px;
    top: 16px;
    z-index: 100;
    background: var(--fg);
    color: var(--bg);
    padding: 10px 16px;
    border-radius: 10px;
}

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

/* ---------- header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: color-mix(in srgb, var(--bg) 82%, transparent);
    backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid var(--line-soft);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    height: 62px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 650;
    letter-spacing: -.02em;
    text-decoration: none;
    font-size: 17px;
}

.brand img {
    border-radius: 7px;
}

.header-nav {
    display: flex;
    gap: 22px;
    margin-left: auto;
    font-size: 15px;
}

.header-nav a {
    color: var(--fg-soft);
    text-decoration: none;
}

.header-nav a:hover {
    color: var(--accent-ink);
}

/* ---------- buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 22px;
    border-radius: 999px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    border: 1px solid transparent;
    transition: transform .12s ease, opacity .12s ease, background-color .12s ease;
    white-space: nowrap;
}

.btn:active {
    transform: translateY(1px);
}

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

.btn-primary:hover {
    background: var(--accent-btn-hover);
}

.btn-ghost {
    border-color: var(--line);
    color: var(--fg);
}

.btn-ghost:hover {
    background: var(--bg-alt);
}

.btn-sm {
    padding: 9px 16px;
    font-size: 14.5px;
}

@media (max-width: 720px) {
    .header-nav {
        display: none;
    }

    .header-inner .btn-sm {
        margin-left: auto;
    }
}

/* ---------- hero ---------- */
.hero {
    padding: 86px 0 8px;
    text-align: center;
    background:
        radial-gradient(900px 420px at 50% -8%, var(--accent-wash), transparent 68%);
}

.eyebrow {
    margin: 0 0 18px;
    font-size: 13.5px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--accent-ink);
}

h1 {
    margin: 0 auto 20px;
    max-width: 16ch;
    font-size: clamp(38px, 6.4vw, 66px);
    line-height: 1.04;
    letter-spacing: -.035em;
    font-weight: 680;
}

.lede {
    margin: 0 0 16px;
    max-width: 62ch;
    color: var(--fg-soft);
    font-size: clamp(17px, 2vw, 19.5px);
}

/* Centred only where the whole block is centred; left-aligned sections keep the
   paragraph flush with their heading. */
.hero .lede,
.center .lede {
    margin-left: auto;
    margin-right: auto;
    /* the CTA row below brings its own spacing */
    margin-bottom: 0;
}

.cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin: 32px 0 14px;
}

.micro {
    margin: 0;
    font-size: 14px;
    color: var(--fg-mute);
}

/* ---------- screenshots ---------- */
.shot {
    margin: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-alt);
    box-shadow: var(--shadow);
}

.shot img {
    width: 100%;
}

.shot-hero {
    margin-top: 56px;
}

/* ---------- sections ---------- */
.section {
    padding: 96px 0;
}

.section-alt {
    background: var(--bg-alt);
    border-top: 1px solid var(--line-soft);
    border-bottom: 1px solid var(--line-soft);
}

.section-title {
    margin: 0 0 14px;
    font-size: clamp(28px, 3.6vw, 40px);
    line-height: 1.15;
    letter-spacing: -.025em;
    font-weight: 670;
}

.section-lede {
    margin: 0 0 12px;
    max-width: 62ch;
    color: var(--fg-soft);
}

/* ---------- feature rows ---------- */
.feature {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    gap: 56px;
    align-items: center;
    padding: 64px 0;
    border-bottom: 1px solid var(--line-soft);
}

.feature:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.feature.reverse .feature-text {
    order: 2;
}

.num {
    display: block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .1em;
    color: var(--accent);
    margin-bottom: 12px;
}

.feature h3 {
    margin: 0 0 14px;
    font-size: clamp(22px, 2.6vw, 28px);
    line-height: 1.2;
    letter-spacing: -.02em;
    font-weight: 660;
}

.feature p {
    margin: 0 0 14px;
    color: var(--fg-soft);
}

.feature .why {
    margin: 0;
    padding-left: 16px;
    border-left: 2px solid var(--accent);
    font-size: 16px;
}

.feature .why b {
    color: var(--fg);
    font-weight: 620;
}

@media (max-width: 900px) {
    .feature {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 44px 0;
    }

    .feature.reverse .feature-text {
        order: 0;
    }
}

/* ---------- small grid ---------- */
.grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.grid li {
    background: var(--bg);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    padding: 26px;
    transition: border-color .15s ease, transform .15s ease;
}

.grid li:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

@media (prefers-reduced-motion: reduce) {
    .grid li:hover {
        transform: none;
    }
}

.grid h4 {
    margin: 0 0 8px;
    font-size: 17px;
    font-weight: 640;
    letter-spacing: -.01em;
}

.grid p {
    margin: 0;
    color: var(--fg-soft);
    font-size: 15.5px;
}

/* ---------- privacy checks ---------- */
.checks {
    list-style: none;
    margin: 28px 0 0;
    padding: 0;
    display: grid;
    gap: 14px;
}

.checks li {
    position: relative;
    padding-left: 30px;
    color: var(--fg-soft);
}

.checks li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: .62em;
    width: 9px;
    height: 5px;
    border-left: 2px solid var(--accent);
    border-bottom: 2px solid var(--accent);
    transform: rotate(-45deg);
}

.checks b {
    color: var(--fg);
    font-weight: 620;
}

.note {
    margin-top: 28px;
    color: var(--fg-mute);
    font-size: 15px;
}

.note a,
.body-p a {
    color: var(--accent-ink);
    text-underline-offset: 3px;
}

/* ---------- faq ---------- */
details {
    border-bottom: 1px solid var(--line-soft);
    padding: 20px 0;
}

details:first-of-type {
    border-top: 1px solid var(--line-soft);
    margin-top: 28px;
}

summary {
    cursor: pointer;
    font-weight: 620;
    font-size: 17.5px;
    letter-spacing: -.01em;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

summary::-webkit-details-marker {
    display: none;
}

summary::after {
    content: "";
    flex: none;
    width: 9px;
    height: 9px;
    border-right: 2px solid var(--fg-mute);
    border-bottom: 2px solid var(--fg-mute);
    transform: rotate(45deg) translate(-2px, -2px);
    transition: transform .15s ease;
}

details[open] summary::after {
    transform: rotate(-135deg) translate(-2px, -2px);
    border-color: var(--accent);
}

summary:hover {
    color: var(--accent-ink);
}

details p {
    margin: 12px 0 0;
    color: var(--fg-soft);
    max-width: 68ch;
}

/* ---------- final cta ---------- */
.contact {
    padding-top: 72px;
    padding-bottom: 80px;
}

.contact .btn {
    margin-top: 26px;
}

.final h2,
.contact h2 {
    margin: 0 0 14px;
    font-size: clamp(28px, 4vw, 42px);
    letter-spacing: -.028em;
    line-height: 1.1;
    font-weight: 670;
}

.final .btn {
    margin-top: 30px;
}

/* ---------- footer ---------- */
.site-footer {
    border-top: 1px solid var(--line-soft);
    padding: 52px 0 64px;
    background: var(--bg-alt);
}

.footer-inner {
    display: grid;
    gap: 22px;
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 640;
}

.footer-brand img {
    border-radius: 6px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    font-size: 15.5px;
}

.footer-links a {
    color: var(--fg-soft);
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--accent-ink);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.footer-note {
    margin: 0;
    max-width: 70ch;
    font-size: 13.5px;
    color: var(--fg-mute);
}

@media (max-width: 720px) {
    .hero {
        padding-top: 56px;
    }

    .section {
        padding: 64px 0;
    }

    .shot-hero {
        margin-top: 38px;
    }
}

/* ---------- document page (privacy) ---------- */
.doc h2 {
    margin: 44px 0 12px;
    font-size: 23px;
    letter-spacing: -.02em;
    font-weight: 650;
}

.doc h3 {
    margin: 28px 0 8px;
    font-size: 18px;
    font-weight: 640;
    letter-spacing: -.01em;
}

.doc p,
.doc li {
    color: var(--fg-soft);
}

.doc ul {
    margin: 0 0 16px;
    padding-left: 22px;
    display: grid;
    gap: 8px;
}

.doc ul.checks {
    padding-left: 0;
}

.doc b {
    color: var(--fg);
    font-weight: 620;
}

.doc code {
    font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
    font-size: .88em;
    background: var(--bg-alt);
    border: 1px solid var(--line-soft);
    border-radius: 6px;
    padding: 1px 6px;
    color: var(--fg);
    white-space: nowrap;
}

.doc a {
    color: var(--accent-ink);
    text-underline-offset: 3px;
}

.doc-table {
    width: 100%;
    border-collapse: collapse;
    margin: 8px 0 16px;
    font-size: 15.5px;
}

.doc-table th,
.doc-table td {
    text-align: left;
    padding: 11px 12px;
    border-bottom: 1px solid var(--line-soft);
    vertical-align: top;
    color: var(--fg-soft);
}

.doc-table th {
    color: var(--fg);
    font-weight: 620;
    white-space: nowrap;
}

.doc-table td:first-child {
    white-space: nowrap;
}

@media (max-width: 600px) {
    .doc-table {
        display: block;
        overflow-x: auto;
    }
}

/* ---------- detail crops ----------
   Two features live in the same screenshot (the stats line and the views badge sit in
   one feed shot). Rather than showing the same picture twice, the figures below crop
   1:1 into the relevant corner — `object-fit: none` keeps pixels at natural size, so a
   crop stays as sharp as the source. */
.shot-detail {
    aspect-ratio: 16 / 5;
}

.shot-detail img {
    width: 100%;
    height: 100%;
    object-fit: none;
}

@media (max-width: 900px) {
    /* Keep the crop short on narrow screens too: the pixel offsets are fixed, so a taller
       box would simply reveal more of the source below the region these crops are aimed at. */
    .shot-detail {
        aspect-ratio: 16 / 6;
    }
}

/* ---------- prose helpers ---------- */
.body-p {
    margin: 0 0 16px;
    color: var(--fg-soft);
}

.feature .small {
    margin: 14px 0 0;
    font-size: 14.5px;
    color: var(--fg-mute);
}

.feature .why+.why {
    margin-top: 14px;
}

/* ---------- language switcher ---------- */
.lang {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 3px;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .02em;
}

.lang a {
    padding: 4px 9px;
    border-radius: 999px;
    color: var(--fg-mute);
    text-decoration: none;
    line-height: 1;
}

.lang a:hover {
    color: var(--fg);
}

.lang a[aria-current="page"] {
    background: var(--fg);
    color: var(--bg);
}

@media (max-width: 720px) {
    .header-inner .lang {
        margin-left: auto;
    }

    /* The install button carries the same job as the header CTA on a phone, and the hero
       one is a screen away — keep the switcher and drop nothing. */
    .header-inner .btn-sm {
        margin-left: 0;
    }
}

@media (max-width: 430px) {
    .header-inner .btn-sm {
        display: none;
    }
}

/* Crops for the feature 01/02 detail shots. Classes, not style="" attributes: the CSP is
   style-src 'self', which blocks inline styles. Offsets are tuned per language against the
   actual capture (see README). */
.crop-followers { object-position: -330px -15px; }
.crop-views-en  { object-position: -380px -160px; }
.crop-views-ru  { object-position: -380px -290px; }

/* Плашка «Есть версия на русском» на английской главной: её вставляет nginx (sub_filter) только
   для Accept-Language: ru, в разметке страницы - метка <!--ru-offer-->. 23.10.2026. */
.lang-offer {
    margin: 0;
    padding: 10px 16px;
    text-align: center;
    font-size: 15px;
    background: var(--bg-alt);
}

.lang-offer a {
    color: inherit;
    font-weight: 600;
}
