/*--------------------------------------------------------------------------------------------------------------------*/
/* GitLab Buddy's pages, in the app icon's colors: its purple plate, the glyph orange, the art's lavender and cream */
/*--------------------------------------------------------------------------------------------------------------------*/

:root
{
    color-scheme: light dark;

    /* The app icon's plate gradient (scripts/makeIcons.cjs) */
    --plate-top: #3b2b6b;
    --plate-bottom: #1f163d;

    --orange: #ff7a1a;
    --orange-deep: #fb5d18;
    --red: #e52e1f;
    --amber: #fc9c19;
    --cream: #f3e5e1;
    --lavender: #bda1c1;

    --bg: #fbf6f3;
    --text: #2f194d;
    --muted: #6d5a80;
    --card: #ffffff;
    --border: #eadcd6;
    --link: #5b3e99;
}

@media (prefers-color-scheme: dark)
{
    :root
    {
        --bg: #160f2c;
        --text: #f3e5e1;
        --muted: #bda1c1;
        --card: #241a45;
        --border: #3b2b6b;
        --link: #ffa45c;
    }
}

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

body
{
    margin: 0;
    padding: 32px 16px 48px;
    background: var(--bg);
    color: var(--text);
    font: 16px/1.55 ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", sans-serif;
}

main
{
    max-width: 720px;
    margin: 0 auto;
}

a { color: var(--link); }

/*--------------------------------------------------------------------------------------------------------------------*/
/* The purple card the page opens with, like the app icon */
/*--------------------------------------------------------------------------------------------------------------------*/

.hero
{
    padding: 40px 24px;
    border-radius: 28px;
    background: linear-gradient(var(--plate-top), var(--plate-bottom));
    color: var(--cream);
    text-align: center;
    box-shadow: 0 20px 50px -20px rgb(31 22 61 / 0.6);
}

.hero img { width: 144px; height: 144px; }
.hero h1 { margin: 8px 0 6px; font-size: 34px; line-height: 1.15; letter-spacing: -0.01em; }
.hero p { max-width: 460px; margin: 8px auto; color: var(--lavender); }
.hero .fine { font-size: 13px; }

.host
{
    display: inline-block;
    margin: 12px 0 4px;
    padding: 10px 20px;
    border-radius: 14px;
    background: rgb(255 255 255 / 0.08);
    color: var(--cream);
    font-size: 26px;
    font-weight: 700;
    word-break: break-all;
}

/*--------------------------------------------------------------------------------------------------------------------*/

.buttons
{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin: 24px 0 8px;
}

.button
{
    display: inline-block;
    padding: 12px 22px;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
}

.button.primary
{
    background: linear-gradient(var(--orange), var(--orange-deep));
    color: var(--plate-bottom);
}

.button.primary:hover { filter: brightness(1.06); }

.button.secondary
{
    border: 1px solid rgb(189 161 193 / 0.5);
    color: var(--cream);
}

.button.secondary:hover { background: rgb(255 255 255 / 0.06); }

/* Only shown while a beta is newer than the latest release */
.beta-link
{
    display: inline-block;
    margin-bottom: 8px;
    color: var(--amber);
    font-size: 14px;
}

.beta-link[hidden] { display: none; }

/*--------------------------------------------------------------------------------------------------------------------*/
/* Below the card */
/*--------------------------------------------------------------------------------------------------------------------*/

.screenshot
{
    display: block;
    width: min(100%, 480px);
    margin: 32px auto 8px;
}

.features
{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.feature
{
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--card);
}

.feature h2 { margin: 0 0 6px; font-size: 17px; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; }

.dots { display: inline-flex; gap: 5px; margin-right: 6px; vertical-align: 1px; }
.dots span { width: 10px; height: 10px; border-radius: 50%; }

details
{
    max-width: 520px;
    margin: 24px auto 0;
    padding: 14px 18px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--card);
}

summary { cursor: pointer; color: var(--muted); }
dl { margin: 12px 0 0; }
dt { margin-top: 10px; color: var(--muted); font-size: 13px; }

dd
{
    margin: 4px 0 0;
    padding: 8px 10px;
    border-radius: 8px;
    background: var(--bg);
    font: 13px/1.4 ui-monospace, Menlo, monospace;
    word-break: break-all;
    user-select: all;
}

/*--------------------------------------------------------------------------------------------------------------------*/
/* The setup link maker */
/*--------------------------------------------------------------------------------------------------------------------*/

.hero.compact { padding: 32px 24px; }
.hero.compact img { width: 96px; height: 96px; }

.card
{
    margin-top: 24px;
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--card);
}

.card h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; font-size: 19px; }
.card p { margin: 10px 0; }
.card .note { color: var(--muted); font-size: 14px; }
.card dl { margin-bottom: 16px; }
.card dd.plain { font: inherit; font-size: 14px; word-break: normal; user-select: auto; }

.step
{
    display: inline-grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(var(--orange), var(--orange-deep));
    color: var(--plate-bottom);
    font-size: 15px;
}

label
{
    display: block;
    margin: 18px 0 6px;
    font-weight: 700;
    word-break: break-all;
}

input,
output
{
    display: block;
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--bg);
    color: var(--text);
    font: 14px/1.4 ui-monospace, Menlo, monospace;
}

input:focus { outline: 2px solid var(--orange); outline-offset: 1px; }
output { word-break: break-all; user-select: all; }

.copy-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-start; }
.copy-row output { flex: 1 1 260px; width: auto; }
.copy-row .button { border: 0; cursor: pointer; font: inherit; font-weight: 700; white-space: nowrap; }

.shortcuts { font-size: 14px; }
.shortcuts[hidden] { display: none; }

code { font: 0.92em ui-monospace, Menlo, monospace; }

/* Pointer from the home page */
.callout
{
    margin-top: 32px;
    text-align: center;
}

.callout h2 { justify-content: center; }

/*--------------------------------------------------------------------------------------------------------------------*/

footer
{
    margin-top: 40px;
    color: var(--muted);
    font-size: 14px;
    text-align: center;
}

.error { color: #fb7185; }

/*--------------------------------------------------------------------------------------------------------------------*/
