/* puush website: public pages (home, login, register, password reset, invite). */

:root {
    --page: #515151;
    --card: #303030;
    --card-text: #d2dadf;
    --text: #eae5e1;
    --muted: #9e9e9e;
    --heading: #e3e5ee;
    --accent: #9ccc31; /* the green of the puush arrow */
    --error: #ffb4b4;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--page);
    color: #fff;
    font: 13px/1.5 Helvetica, Arial, sans-serif;
}

a {
    color: var(--text);
}

a:hover {
    color: #fff;
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* Header: logo and the little text menu under it. */

.site-header {
    padding-top: 10px;
    text-align: center;
}

.logo img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}

.site-header nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 10px;
}

.site-header nav a {
    width: 110px;
    padding: 10px 0;
    color: var(--muted);
    font-size: 18px;
    text-decoration: none;
}

.site-header nav a:hover,
.site-header nav a[aria-current="page"] {
    color: #fff;
}

/* Content card, as on the original home page. */

main {
    max-width: 820px;
    margin: 0 auto;
    padding: 0 16px 40px;
}

.card {
    margin-top: 10px;
    padding: 20px 25px;
    border-radius: 10px;
    background: var(--card);
    color: var(--card-text);
}

.card h1 {
    margin: 0 0 15px;
    color: var(--heading);
    font-size: 17px;
    font-weight: normal;
    text-align: center;
}

.card h1 strong {
    color: #fff;
}

.card p {
    margin: 12px 0 0;
}

.intro .diagram {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto 5px;
}

.center,
.links,
.message {
    text-align: center;
}

.links a + a {
    margin-left: 12px;
}

.message {
    color: var(--text);
}

.message.error {
    color: var(--error);
}

.muted {
    color: var(--muted);
}

/* After accepting an invite: a download link and steps for each app. */

.platform h2 {
    margin: 22px 0 0;
    font-size: 15px;
    text-align: center;
}

.steps {
    max-width: 480px;
    margin: 10px auto 0;
    padding-left: 22px;
}

.steps li + li {
    margin-top: 8px;
}

kbd {
    padding: 0 4px;
    border: 1px solid #666;
    border-radius: 3px;
    background: #444;
    color: #fff;
    font: inherit;
    white-space: nowrap;
}

/* Forms: labels to the left of the fields, button under them. */

.form {
    display: grid;
    grid-template-columns: 90px minmax(0, 240px);
    gap: 10px;
    justify-content: center;
    align-items: center;
    margin: 25px 0 15px;
}

.form label {
    color: var(--text);
    text-align: right;
}

.form button {
    grid-column: 2;
    justify-self: end;
}

input {
    width: 100%;
    padding: 6px 8px;
    border: 1px solid #000;
    border-radius: 3px;
    background: #fff;
    color: #000;
    font: inherit;
}

input[readonly] {
    background: #ccc;
}

button {
    padding: 6px 16px;
    border: 1px solid #000;
    border-radius: 3px;
    background: var(--text);
    color: #000;
    font: inherit;
    cursor: pointer;
}

button:hover {
    background: #fff;
}

button:disabled {
    opacity: .6;
    cursor: default;
}

@media (max-width: 520px) {
    .site-header nav a {
        width: auto;
        padding: 10px 14px;
    }

    .card {
        padding: 16px;
    }

    .form {
        grid-template-columns: minmax(0, 1fr);
    }

    .form label {
        margin-bottom: -6px;
        text-align: left;
    }

    .form button {
        grid-column: 1;
        justify-self: stretch;
    }
}
