/* pure-browse.css -- the Pure Browse product page (/pure-browse) and the
   email step in front of the Mac download (/pure-browse/download).
   Loaded after foundry.css and before card.css/footer.css, see the
   order-significant $stylesheets list in src/view/layout.php.

   The page follows superwhisper.com's rhythm, which is the reference the
   user pointed at: one screen per section, a centered hero with no
   eyebrow, then label -> headline -> one paragraph -> icon rows. Only
   the hero is centered; every other section keeps the site's own
   left-aligned language, and the form fields reuse the
   .contact-form/.auth-form rules in components.css (that file's
   selector lists include .download-form). */

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

/* The one centered section on the site. Justified by what it is: a
   download page whose focal point is a pair of buttons, which reads
   badly pushed to one edge. Everything below the fold stays
   left-aligned like /foundry and the home page. */
.pb-hero .page-section-content {
    text-align: center;
}

.pb-hero h1,
.pb-hero .lead {
    margin-left: auto;
    margin-right: auto;
}

.pb-hero .lead {
    max-width: 34ch;
}

/* The app's own icon, the only graphic on the page -- there are no
   product screenshots yet, and inventing one would misrepresent an
   extension that hasn't shipped. */
/* No border-radius here -- the SVG already draws its own rounded square
   inset from its canvas (macOS app icons carry the shape themselves), so
   clipping the element on top would cut into it. */
.pb-mark {
    display: block;
    margin: 0 auto var(--spacing-8);
}

.pb-actions {
    justify-content: center;
}

/* Superwhisper puts the platform glyph inside the primary button; the
   button is already an inline-flex row, so the mark just joins it. */
.pb-glyph {
    width: 15px;
    height: 15px;
    margin-right: var(--spacing-2);
    flex-shrink: 0;
}

/* The quiet line under the buttons: version and requirement, or the
   honest note that there is nothing to download yet. */
.pb-tertiary {
    margin-top: var(--spacing-5);
    font-size: var(--text-size-small);
    color: var(--fg-neutral-muted);
    max-width: none;
}

.pb-tertiary a {
    color: var(--fg-neutral-muted);
}

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

/* .kicker is this site's version of superwhisper's coloured section
   label. h2 carries a large default top margin for mid-page use, which
   would push the headline away from the label it belongs to. */
.page-section .kicker + h2 {
    margin-top: 0;
}

/* ---------- icon rows ---------- */

/* Replaces the card grid of the first pass: icon left, title and one
   paragraph right, two or three per section. */
ul.feature-rows {
    list-style: none;
    padding: 0;
    margin: var(--spacing-10) 0 0;
    max-width: var(--prose-width);
    display: grid;
    gap: var(--spacing-10);
}

ul.feature-rows-compact {
    gap: var(--spacing-8);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: none;
}

ul.feature-rows > li {
    display: flex;
    gap: var(--spacing-5);
    align-items: flex-start;
}

.feature-icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    margin-top: 3px;
    color: var(--fg-info-body);
}

ul.feature-rows h3 {
    margin: 0 0 var(--spacing-2);
    font-size: var(--heading-size-h5);
}

ul.feature-rows p {
    margin: 0;
    color: var(--fg-neutral-body);
}

@media (max-width: 860px) {
    ul.feature-rows-compact {
        grid-template-columns: minmax(0, 1fr);
        gap: var(--spacing-10);
    }
}

/* ---------- "what it isn't" ---------- */

/* .checklist's own ::before is a checkmark, which next to a sentence
   starting with "Not" reads as a contradiction. Same rhythm, neutral
   marker, no icon column to carry. */
ul.pb-negatives {
    list-style: none;
    padding: 0;
    margin: var(--spacing-8) 0 var(--spacing-8);
    max-width: var(--prose-width);
}

ul.pb-negatives li {
    padding: var(--spacing-3) 0;
    border-bottom: 1px solid var(--border-neutral-default);
    color: var(--fg-neutral-body);
}

ul.pb-negatives li:last-child {
    border-bottom: none;
}

/* ---------- setup steps ---------- */

ol.steps {
    list-style: none;
    counter-reset: step;
    padding: 0;
    margin: var(--spacing-10) 0 0;
    max-width: var(--prose-width);
    display: grid;
    gap: var(--spacing-6);
}

ol.steps li {
    display: flex;
    align-items: baseline;
    gap: var(--spacing-5);
    color: var(--fg-neutral-body);
}

ol.steps li::before {
    counter-increment: step;
    content: counter(step);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    border-radius: var(--rounded-full);
    background: var(--bg-neutral-section);
    color: var(--fg-neutral-accent);
    font-size: var(--text-size-small);
}

/* ---------- closing section ---------- */

/* The last screen has no content after it, so it does not need a full
   viewport of its own -- that would leave a long empty run above the
   footer. */
.pb-closer {
    min-height: 0;
    padding-bottom: var(--spacing-15);
}

/* ---------- the download CTA with no build behind it ---------- */

/* A <span>, not a disabled <button>: there is nothing to submit and
   nothing to focus, so it should not be in the tab order at all. */
.button-disabled {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: var(--button-height);
    padding: 0 var(--button-padding-lg);
    background: var(--bg-neutral-section);
    color: var(--fg-neutral-muted);
    font-size: var(--button-font-size);
    font-weight: var(--button-font-weight);
    border: 1px solid var(--border-neutral-default);
    border-radius: var(--button-border-radius);
    cursor: not-allowed;
}

/* ---------- the email step ---------- */

/* A single narrow column -- same reasoning as .auth-layout, there is no
   second column of copy to put beside it. */
.download-panel {
    max-width: 34em;
}

.download-panel h1 {
    margin-bottom: var(--spacing-3);
}

.download-panel .lead {
    margin-bottom: var(--spacing-6);
}

.download-form .field {
    max-width: 24em;
}

/* Deliberately quiet, but a real link and never hidden -- the email is a
   request, not a toll gate. */
.download-skip {
    margin-top: var(--spacing-4);
    font-size: var(--text-size-small);
}

.download-skip a {
    color: var(--fg-neutral-muted);
}

.download-panel .caption {
    margin-top: var(--spacing-6);
}

.download-facts {
    list-style: none;
    padding: 0;
    margin: var(--spacing-5) 0 0;
    max-width: none;
    font-size: var(--text-size-small);
    color: var(--fg-neutral-muted);
}

.download-facts li {
    padding: var(--spacing-1) 0;
}

/* A 64-character hash has no break opportunities of its own, so it would
   otherwise push the column wider than the page on a phone. */
.download-hash {
    word-break: break-all;
}
