/* Papers — one stylesheet for all three pages.
   No dependencies, no fonts to download: the system stack is what the app itself uses. */

:root {
    color-scheme: light dark;

    --bg: #ffffff;
    --bg-soft: #fafafa;
    --ink: #17181a;
    --ink-soft: #61646b;
    --ink-faint: #93979e;
    --rule: #e8e9ec;
    --accent: #1f5fd8;
    --accent-ink: #ffffff;

    --measure: 33rem;
    --page: 58rem;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #121316;
        --bg-soft: #191a1e;
        --ink: #f0f1f3;
        --ink-soft: #a5a8b0;
        --ink-faint: #70747c;
        --rule: #2a2c31;
        --accent: #7fa8f5;
        --accent-ink: #0f1116;
    }
}

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

body {
    margin: 0;
    overflow-x: hidden;
    background: var(--bg);
    color: var(--ink);
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto,
        Helvetica, Arial, sans-serif;
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.wrap {
    max-width: var(--page);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ---- masthead ---------------------------------------------------------- */

.masthead {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    padding-block: 1.5rem;
    flex-wrap: wrap;
}

.wordmark {
    font-size: 1rem;
    font-weight: 590;
    letter-spacing: -0.01em;
    color: var(--ink);
    text-decoration: none;
}

.wordmark span {
    color: var(--ink-faint);
    font-weight: 400;
}

.masthead nav {
    display: flex;
    gap: 1.5rem;
    font-size: 0.9375rem;
}

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

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

/* ---- hero -------------------------------------------------------------- */

.hero {
    text-align: center;
    padding-block: 3rem 0;
}

.paper-ball {
    width: 7.5rem;
    height: auto;
    margin: 0 auto 2rem;
    display: block;
}

.paper-ball.for-dark {
    display: none;
}

@media (prefers-color-scheme: dark) {
    .paper-ball.for-light {
        display: none;
    }
    .paper-ball.for-dark {
        display: block;
    }
}

.hero h1 {
    font-size: clamp(2.125rem, 5vw, 3.25rem);
    line-height: 1.1;
    letter-spacing: -0.032em;
    font-weight: 660;
    margin: 0 auto 1rem;
    max-width: 18ch;
    text-wrap: balance;
}

.hero p {
    font-size: 1.125rem;
    color: var(--ink-soft);
    margin: 0 auto 2rem;
    max-width: var(--measure);
    text-wrap: pretty;
}

/* ---- buttons ----------------------------------------------------------- */

.cta {
    display: inline-flex;
    align-items: center;
    background: var(--accent);
    color: var(--accent-ink);
    font-weight: 570;
    font-size: 0.9375rem;
    padding: 0.6875rem 1.375rem;
    border-radius: 2rem;
    text-decoration: none;
}

.cta[aria-disabled="true"] {
    background: transparent;
    color: var(--ink-soft);
    border: 1px solid var(--rule);
    cursor: default;
}

.cta-note {
    font-size: 0.875rem;
    color: var(--ink-faint);
    margin: 0.875rem auto 0;
}

/* ---- app shot ---------------------------------------------------------- */

.shot {
    padding-block: 3.5rem 4.5rem;
}

.shot img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 0.75rem;
    border: 1px solid var(--rule);
}

.shot figcaption {
    text-align: center;
    font-size: 0.875rem;
    color: var(--ink-faint);
    margin-top: 1rem;
}

/* A stand-in until the real screenshot is dropped in. */
.shot .placeholder {
    aspect-ratio: 16 / 10;
    border: 1px dashed var(--rule);
    border-radius: 0.75rem;
    background: var(--bg-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ink-faint);
    font-size: 0.9375rem;
}

/* ---- sections ---------------------------------------------------------- */

section {
    padding: 3.5rem 0;
    border-top: 1px solid var(--rule);
}

section h2 {
    font-size: 1.5rem;
    letter-spacing: -0.022em;
    font-weight: 620;
    margin: 0 0 0.625rem;
}

.lede {
    color: var(--ink-soft);
    max-width: var(--measure);
    margin: 0 0 2.5rem;
}

/* ---- feature rows ------------------------------------------------------ */

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
    gap: 2.25rem 2.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.features h3 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.375rem;
}

.features p {
    margin: 0;
    font-size: 0.9375rem;
    color: var(--ink-soft);
    line-height: 1.55;
}

.filename {
    font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
    font-size: 0.8125rem;
    color: var(--ink-faint);
    background: var(--bg-soft);
    border: 1px solid var(--rule);
    border-radius: 0.5rem;
    padding: 0.6875rem 0.875rem;
    overflow-x: auto;
    white-space: nowrap;
    margin: 2.25rem 0 0;
}

/* ---- price ------------------------------------------------------------- */

.price {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
    gap: 2.5rem;
}

.price h3 {
    margin: 0 0 0.125rem;
    font-size: 1.0625rem;
    font-weight: 620;
}

.price .amount {
    color: var(--ink-faint);
    font-size: 0.875rem;
    margin: 0 0 1rem;
}

.price ul {
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 0.9375rem;
    color: var(--ink-soft);
}

.price li {
    padding: 0.3125rem 0 0.3125rem 1.25rem;
    position: relative;
}

.price li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.9375rem;
    width: 0.375rem;
    height: 0.375rem;
    border-radius: 50%;
    background: var(--rule);
}

/* ---- long-form pages --------------------------------------------------- */

.doc {
    max-width: var(--measure);
    padding-block: 1.5rem 4rem;
}

.doc h1 {
    font-size: 2rem;
    letter-spacing: -0.025em;
    font-weight: 640;
    margin: 0 0 0.375rem;
}

.doc .updated {
    color: var(--ink-faint);
    font-size: 0.9375rem;
    margin: 0 0 2.5rem;
}

.doc h2 {
    font-size: 1.1875rem;
    font-weight: 620;
    letter-spacing: -0.012em;
    margin: 2.5rem 0 0.625rem;
}

.doc h3 {
    font-size: 1rem;
    font-weight: 600;
    margin: 1.625rem 0 0.375rem;
}

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

.doc strong {
    color: var(--ink);
    font-weight: 590;
}

.doc ul {
    padding-left: 1.125rem;
}

.doc li {
    margin-bottom: 0.4375rem;
}

.doc a {
    color: var(--accent);
}

.callout {
    background: var(--bg-soft);
    border: 1px solid var(--rule);
    border-radius: 0.625rem;
    padding: 1.125rem 1.25rem;
    margin: 1.75rem 0;
}

.callout p {
    margin: 0;
}

/* ---- footer ------------------------------------------------------------ */

footer {
    border-top: 1px solid var(--rule);
    padding: 2rem 0 3rem;
    font-size: 0.875rem;
    color: var(--ink-faint);
}

footer .row {
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

footer a {
    color: var(--ink-soft);
    text-decoration: none;
    margin-right: 1.25rem;
}

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

/* ---- narrow ------------------------------------------------------------ */

@media (max-width: 40rem) {
    .hero {
        padding-block-start: 1.5rem;
    }

    .paper-ball {
        width: 5.5rem;
        margin-bottom: 1.5rem;
    }

    .shot {
        padding-block: 2.5rem 3rem;
    }

    section {
        padding: 2.5rem 0;
    }
}
