/* Smart Bookmarks — the desktop apps' download page (download.html), on top of site.css.

   Its own file, not a section of site.css: /assets/** is cached for a week, so a visitor who
   already holds site.css would see this page without its styles until that copy expired.

   download.js marks <html> with `js` and data-system (windows | mac | phone | other) before the
   body is parsed. Everything here that depends on the system hangs on that attribute, so with
   scripting off the page is the markup as written: both apps, then the address. */

/* The hero is copy only: the same column as the cards under it, and less air below than the
   landing page's. */
.hero__in.get-hero {
    width: min(52rem, 100% - 2.5rem);
    padding-bottom: clamp(2.2rem, 5vw, 3.2rem);
}
.get-hero .lede { max-width: 36rem; }

.get-page {
    width: min(52rem, 100% - 2.5rem);
    margin: 0 auto;
    padding: clamp(2rem, 5vw, 3rem) 0 4rem;
}

/* ── The two apps ────────────────────────────────────────────────────── */
.systems { display: grid; gap: 1.1rem; }
.sys {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem 2rem;
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 1.5rem 1.6rem;
}
.sys__name {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .4rem .8rem;
    margin: 0;
    font-size: .74rem;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--faint);
}
.sys h2 {
    font-family: var(--display);
    font-weight: 600;
    font-size: 1.45rem;
    line-height: 1.2;
    margin: .45rem 0 0;
}
.sys__req { margin: .4rem 0 0; color: var(--dim); font-size: .92rem; }

/* The app's picture: a row of its own under the name and the button. site.css draws the frame
   (.device--desktop); with an older cached site.css it is a plain picture, still in place. */
.sys .sys__shot {
    grid-column: 1 / -1;
    width: 100%;
    margin: .4rem 0 0;
}

/* "This computer": only on the card of the system download.js found. */
.sys__here {
    display: none;
    font-size: .64rem;
    letter-spacing: .14em;
    color: var(--amber);
    border: 1px solid rgba(255, 198, 115, .45);
    border-radius: 999px;
    padding: .1rem .6rem;
}
[data-system="windows"] .sys[data-sys="windows"],
[data-system="mac"] .sys[data-sys="mac"] {
    border-color: rgba(244, 122, 54, .55);
    background:
        radial-gradient(120% 90% at 100% 0%, rgba(244, 122, 54, .10), transparent 60%),
        var(--surface);
}
[data-system="windows"] .sys[data-sys="windows"] .sys__name,
[data-system="mac"] .sys[data-sys="mac"] .sys__name { color: var(--ember-hi); }
[data-system="windows"] .sys[data-sys="windows"] .sys__here,
[data-system="mac"] .sys[data-sys="mac"] .sys__here { display: inline-block; }

/* ── The download button, and what it is until its app is out ────────
   An <a> with an href is the button. With no href it is not a link at all: it says "Not out
   yet", takes no focus and does nothing on a click. */
.get { white-space: nowrap; }
.get[href] .get__soon { display: none; }
.get:not([href]) .get__go { display: none; }
.get:not([href]) {
    background: none;
    border: 1px dashed #5a3a2a;
    color: var(--dim);
    font-weight: 700;
    cursor: default;
}
.get:not([href]):hover { transform: none; filter: none; box-shadow: none; }

/* The other system's app is one step quieter than the visitor's own. */
.cta--line,
[data-system="windows"] .sys[data-sys="mac"] .get[href],
[data-system="mac"] .sys[data-sys="windows"] .get[href] {
    background: none;
    border-color: var(--line);
    color: var(--ink);
}
.cta--line:hover,
[data-system="windows"] .sys[data-sys="mac"] .get[href]:hover,
[data-system="mac"] .sys[data-sys="windows"] .get[href]:hover {
    border-color: var(--ember);
    box-shadow: none;
}

/* A phone or tablet cannot run either app: no button, out or not. */
[data-system="phone"] .get { display: none; }
[data-system="phone"] .sys { grid-template-columns: minmax(0, 1fr); }

/* ── The short address ───────────────────────────────────────────────── */
.reach {
    margin-top: 1.1rem;
    background: var(--deep);
    border: 1px solid var(--line-lo);
    border-radius: 20px;
    padding: 1.5rem 1.6rem 1.6rem;
}
/* On a computer that can run one of the apps there is nothing to send anywhere. */
[data-system="windows"] .reach,
[data-system="mac"] .reach { display: none; }
/* On a phone it is the page's answer, so it comes first (download.js moves it) and stands out. */
[data-system="phone"] .reach {
    margin: 0 0 1.1rem;
    background: var(--surface);
    border-color: rgba(244, 122, 54, .55);
}
.reach .eyebrow { margin-bottom: .7rem; }
[data-system="phone"] .reach .eyebrow { display: none; }
.reach h2 { font-size: clamp(1.5rem, 4.4vw, 1.9rem); }
.reach__text { margin: .9rem 0 0; color: var(--dim); }
.reach__address {
    margin: .9rem 0 0;
    padding: .8rem 1rem;
    background: var(--espresso);
    border: 1px dashed var(--line);
    border-radius: 12px;
    color: var(--amber);
    font-weight: 700;
    font-size: clamp(.8rem, 3.4vw, 1.05rem);
    overflow-wrap: anywhere;
    user-select: all;
}
/* The host stays in one piece: a hyphen is otherwise a place to break. */
.reach__address span { white-space: nowrap; }
.reach__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .7rem 1rem;
    margin-top: 1rem;
}
/* .cta sets display, which would otherwise show a button the script has not unhidden. */
.reach__actions [hidden] { display: none; }
.reach__actions:not(:has(button:not([hidden]))) { display: none; }
button.cta { font-family: inherit; cursor: pointer; }
.reach__status { color: var(--dim); font-size: .88rem; font-weight: 600; }
/* For a visitor who came for the phone app: it is on the home page. */
.reach__phone {
    margin: 1.2rem 0 0;
    padding-top: 1rem;
    border-top: 1px solid var(--line-lo);
    color: var(--faint);
    font-size: .9rem;
}

/* ── What you need ───────────────────────────────────────────────────── */
.needs { margin-top: 2.6rem; }
.needs h2 {
    font-family: var(--display);
    font-weight: 600;
    font-size: 1.45rem;
    margin: 0;
}
.needs .points { margin-top: 1rem; }
.needs__more { margin: 1.4rem 0 0; color: var(--faint); font-size: .9rem; }

@media (max-width: 640px) {
    .sys { grid-template-columns: minmax(0, 1fr); padding: 1.3rem 1.25rem; }
    .get { justify-self: start; }
    .reach { padding: 1.3rem 1.25rem 1.4rem; }
}

@media (max-width: 560px) {
    .get-page, .hero__in.get-hero { width: min(52rem, 100% - 2rem); }
}
