/* ---------------------------------------------------------------------------
   PlotBird landing page.

   One stylesheet, no build step, no framework: the product itself ships
   pre-compiled CSS, so its website should not need a toolchain either. The
   palette is the one used in the dashboard - Inter, slate, one sky accent - so
   the site and the application look like the same project.
   --------------------------------------------------------------------------- */

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('fonts/inter-latin-wght-normal.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
        U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122,
        U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('fonts/inter-latin-ext-wght-normal.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
        U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
        U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
    --bg: #f8fafc;
    --surface: #ffffff;
    --border: #e2e8f0;
    --border-strong: #cbd5e1;
    --text: #0f172a;
    --muted: #475569;
    --faint: #64748b;
    --accent: #0284c7;
    --accent-hover: #0369a1;
    --accent-soft: #e0f2fe;
    --code-bg: #0f172a;
    --code-text: #e2e8f0;
    --shadow: 0 1px 2px rgb(15 23 42 / 0.04), 0 8px 24px -12px rgb(15 23 42 / 0.12);
    --radius: 16px;
    --max: 1080px;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #080c14;
        --surface: #0f1626;
        --border: #1e293b;
        --border-strong: #334155;
        --text: #e8eef7;
        --muted: #a3b1c6;
        --faint: #8595ab;
        --accent: #38bdf8;
        --accent-hover: #7dd3fc;
        --accent-soft: #0c2839;
        --code-bg: #060a12;
        --code-text: #dbe6f5;
        --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 12px 32px -16px rgb(0 0 0 / 0.6);
    }
}

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

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

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    font-size: 17px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

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

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

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

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

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

/* Navigation -------------------------------------------------------------- */

.nav {
    position: sticky;
    top: 0;
    z-index: 20;
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    display: flex;
    align-items: center;
    gap: 20px;
    height: 64px;
}

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

.brand:hover {
    color: var(--text);
    text-decoration: none;
}

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

.nav-links {
    display: none;
    gap: 22px;
    margin-left: 12px;
    font-size: 15px;
}

.nav-links a {
    color: var(--muted);
}

.nav-links a:hover {
    color: var(--text);
    text-decoration: none;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.lang {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 3px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface);
    font-size: 13px;
    font-weight: 600;
}

.lang a,
.lang span {
    padding: 3px 10px;
    border-radius: 999px;
    color: var(--muted);
}

.lang a:hover {
    color: var(--text);
    text-decoration: none;
    background: var(--accent-soft);
}

.lang span {
    background: var(--accent);
    color: #fff;
}

@media (min-width: 860px) {
    .nav-links {
        display: flex;
    }
}

/* Buttons ----------------------------------------------------------------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 12px;
    border: 1px solid transparent;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease;
}

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

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

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

.btn-ghost {
    background: var(--surface);
    border-color: var(--border-strong);
    color: var(--text);
}

.btn-ghost:hover {
    border-color: var(--accent);
    color: var(--text);
}

.btn small {
    font-weight: 500;
    opacity: 0.75;
}

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

/* Hero -------------------------------------------------------------------- */

.hero {
    padding: 72px 0 24px;
    text-align: center;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 12px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface);
    color: var(--faint);
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #22c55e;
}

h1 {
    margin: 22px auto 0;
    max-width: 20ch;
    font-size: clamp(2.1rem, 5.2vw, 3.5rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.025em;
}

.lead {
    margin: 22px auto 0;
    max-width: 62ch;
    color: var(--muted);
    font-size: clamp(1rem, 1.6vw, 1.15rem);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-top: 32px;
}

.hero-note {
    margin: 20px 0 0;
    color: var(--faint);
    font-size: 13.5px;
}

.hero-note code {
    font-size: 13px;
}

/* Screenshot frame -------------------------------------------------------- */

.shot {
    margin: 56px 0 0;
}

.frame {
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.frame-bar {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 11px 14px;
    border-bottom: 1px solid var(--border);
    background: color-mix(in srgb, var(--bg) 60%, var(--surface));
}

.frame-bar i {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border-strong);
}

.frame-bar span {
    margin-left: 8px;
    color: var(--faint);
    font-size: 12px;
    font-variant-numeric: tabular-nums;
}

/* Drop a screenshot in and delete this block ------------------------------ */

.shot-placeholder {
    display: grid;
    place-items: center;
    gap: 10px;
    aspect-ratio: 16 / 10;
    padding: 24px;
    background: repeating-linear-gradient(45deg, transparent, transparent 12px, color-mix(in srgb, var(--border) 45%, transparent) 12px, color-mix(in srgb, var(--border) 45%, transparent) 13px);
    color: var(--faint);
    text-align: center;
    font-size: 14px;
}

.shot-placeholder strong {
    display: block;
    color: var(--muted);
    font-size: 15px;
}

/* Sections ---------------------------------------------------------------- */

section {
    padding: 72px 0;
}

.section-head {
    max-width: 62ch;
    margin-bottom: 40px;
}

h2 {
    margin: 0;
    font-size: clamp(1.5rem, 2.8vw, 2rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.section-head p {
    margin: 12px 0 0;
    color: var(--muted);
}

/* Cards ------------------------------------------------------------------- */

.cards {
    display: grid;
    gap: 16px;
    grid-template-columns: 1fr;
}

@media (min-width: 720px) {
    .cards-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

.card {
    padding: 26px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
}

.card h3 {
    margin: 0 0 8px;
    font-size: 1.05rem;
    font-weight: 650;
    letter-spacing: -0.01em;
}

.card p {
    margin: 0;
    color: var(--muted);
    font-size: 15.5px;
}

.card .icon {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    margin-bottom: 16px;
    border-radius: 11px;
    background: var(--accent-soft);
    color: var(--accent);
}

.card .icon svg {
    width: 20px;
    height: 20px;
}

/* Numbers ----------------------------------------------------------------- */

.numbers {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--surface);
}

.numbers-inner {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px 16px;
    padding: 40px 0;
}

@media (min-width: 780px) {
    .numbers-inner {
        grid-template-columns: repeat(5, 1fr);
    }
}

.stat b {
    display: block;
    font-size: clamp(1.5rem, 2.4vw, 1.9rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
}

.stat span {
    display: block;
    margin-top: 2px;
    color: var(--faint);
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* Steps ------------------------------------------------------------------- */

.steps {
    display: grid;
    gap: 28px;
    grid-template-columns: 1fr;
    align-items: start;
}

@media (min-width: 860px) {
    .steps {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

ol.step-list {
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: step;
}

ol.step-list li {
    position: relative;
    padding: 0 0 22px 44px;
    counter-increment: step;
}

ol.step-list li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: 0;
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 13px;
    font-weight: 700;
}

ol.step-list li strong {
    display: block;
    font-weight: 650;
}

ol.step-list li span {
    color: var(--muted);
    font-size: 15.5px;
}

pre {
    margin: 0;
    padding: 18px 20px;
    border-radius: 12px;
    background: var(--code-bg);
    color: var(--code-text);
    overflow-x: auto;
    font-size: 13.5px;
    line-height: 1.7;
    tab-size: 4;
}

pre code {
    font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace;
}

code {
    font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace;
    font-size: 0.9em;
    padding: 1px 5px;
    border-radius: 5px;
    background: color-mix(in srgb, var(--border) 60%, transparent);
}

pre code {
    padding: 0;
    background: none;
    font-size: inherit;
}

.caption {
    margin: 10px 0 0;
    color: var(--faint);
    font-size: 13px;
}

/* Honest list ------------------------------------------------------------- */

.not {
    padding: 26px 28px;
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent);
    border-radius: 12px;
    background: var(--surface);
}

.not ul {
    margin: 12px 0 0;
    padding-left: 20px;
    color: var(--muted);
    font-size: 15.5px;
}

.not li + li {
    margin-top: 6px;
}

.not p {
    margin: 0;
    color: var(--muted);
}

/* Footer ------------------------------------------------------------------ */

footer {
    border-top: 1px solid var(--border);
    background: var(--surface);
    padding: 40px 0;
    color: var(--faint);
    font-size: 14px;
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px 28px;
    justify-content: space-between;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-links a {
    color: var(--muted);
}

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

@media (prefers-reduced-motion: reduce) {
    * {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}

/* Comparison table -------------------------------------------------------- */

.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    -webkit-overflow-scrolling: touch;
}

table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
    font-size: 14.5px;
    line-height: 1.5;
}

th,
td {
    padding: 12px 16px;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid var(--border);
}

thead th {
    color: var(--faint);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    white-space: nowrap;
}

tbody tr:last-child td {
    border-bottom: 0;
}

tbody th {
    color: var(--muted);
    font-weight: 500;
    white-space: nowrap;
}

td strong {
    font-weight: 650;
}

/* Verdict blocks ---------------------------------------------------------- */

.verdict {
    padding: 24px 26px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
}

.verdict h3 {
    margin: 0 0 10px;
    font-size: 1.05rem;
    font-weight: 650;
    letter-spacing: -0.01em;
}

.verdict p {
    margin: 0;
    color: var(--muted);
    font-size: 15.5px;
}

.verdict p + p {
    margin-top: 10px;
}

.verdict a {
    font-weight: 600;
}

.note {
    margin: 0;
    color: var(--faint);
    font-size: 13.5px;
    line-height: 1.6;
}

@media (min-width: 720px) {
    .cards-2 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile -------------------------------------------------------------------
   Grid items refuse to shrink below their content unless told otherwise, and a
   long unbreakable line in the code sample was enough to push the whole page
   wider than the screen. */

.steps > *,
.cards > *,
.numbers-inner > * {
    min-width: 0;
}

@media (max-width: 559px) {
    /* Let the snippet wrap instead of scrolling on the narrowest screens. */
    pre {
        white-space: pre-wrap;
        overflow-wrap: anywhere;
    }
}

@media (max-width: 639px) {
    /* Counters as a list: a value and its label per row, hairlines between. */
    .numbers-inner {
        grid-template-columns: 1fr;
        gap: 0;
        padding: 10px 0;
    }

    .numbers-inner .stat {
        display: flex;
        align-items: baseline;
        justify-content: space-between;
        gap: 16px;
        padding: 13px 0;
        border-bottom: 1px solid var(--border);
    }

    .numbers-inner .stat:last-child {
        border-bottom: 0;
    }

    .numbers-inner .stat span {
        order: 1;
        margin: 0;
        font-size: 13.5px;
        letter-spacing: 0;
        text-transform: none;
    }

    .numbers-inner .stat b {
        order: 2;
        font-size: 1.15rem;
        white-space: nowrap;
    }
}
