/* ============================================================================
   rpmrpmrpm.com — the small site behind the app.
   ----------------------------------------------------------------------------
   The app's identity, kept to what a handful of pages need: the record wall
   under a veil, one glass card, Cabin for anything that reads as a title.
   ========================================================================= */

@font-face {
    font-family: 'Cabin';
    src: url('../fonts/Cabin-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Cabin';
    src: url('../fonts/Cabin-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --glass: rgba(255, 255, 255, 0.06);
    --glass-edge: rgba(255, 255, 255, 0.16);
    --glass-edge-bright: rgba(255, 255, 255, 0.34);
    --glass-blur: blur(22px) saturate(150%);
    --text: #f2f5f8;
    --text-muted: #a5b3c4;
    --text-dim: #7d8b9d;
    --azure: #0371d0;
    --azure-lift: #2e9bf5;
    --radius-card: 18px;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text-muted);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1rem;
    line-height: 1.65;
    background: #07090d url('../img/backdrop.jpg') center / cover fixed no-repeat;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(120% 90% at 20% 0%, rgba(3, 113, 208, 0.2), transparent 60%),
        linear-gradient(180deg, rgba(4, 8, 14, 0.76), rgba(4, 8, 14, 0.9));
}

.page {
    position: relative;
    z-index: 1;
    max-width: 780px;
    margin: 0 auto;
    padding: 3.5rem 1.25rem 4rem;
}

.mark { width: 116px; height: auto; display: block; }
.mark-row { display: flex; align-items: baseline; gap: 0.7rem; margin-bottom: 2.2rem; }

.mark-tag {
    font-family: 'Cabin', sans-serif;
    color: var(--text-dim);
    text-transform: lowercase;
    letter-spacing: 0.2em;
    font-size: 0.74rem;
}

.card {
    position: relative;
    background: var(--glass);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-edge);
    border-radius: var(--radius-card);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.42);
    padding: 2rem 1.9rem;
}

/* One specular band on the top edge — the app's light, not a border. */
.card::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 1px;
    border-radius: var(--radius-card) var(--radius-card) 0 0;
    background: linear-gradient(90deg, transparent, var(--glass-edge-bright) 22%, var(--glass-edge-bright) 78%, transparent);
}

h1, h2, h3 {
    font-family: 'Cabin', sans-serif;
    color: var(--text);
    text-transform: lowercase;
    letter-spacing: 0.04em;
    margin: 0 0 0.8rem;
}

h1 { font-size: 1.9rem; }
h2 { font-size: 1.15rem; margin-top: 2rem; }
h3 { font-size: 1rem; margin-top: 1.5rem; }

p { margin: 0 0 1rem; }
ul { margin: 0 0 1rem; padding-left: 1.15rem; }
li { margin-bottom: 0.4rem; }
strong { color: var(--text); }
a { color: var(--azure-lift); text-decoration: none; }
a:hover { text-decoration: underline; }

.lead { color: var(--text); font-size: 1.05rem; }
.dim { color: var(--text-dim); font-size: 0.86rem; }

.footer {
    position: relative;
    z-index: 1;
    max-width: 780px;
    margin: 0 auto;
    padding: 0 1.25rem 3rem;
    display: flex;
    gap: 1.2rem;
    flex-wrap: wrap;
    color: var(--text-dim);
    font-size: 0.82rem;
}

.footer a { color: var(--text-dim); }

/* The "you can close this" page: nothing but the mark and one line. */
.done {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.1rem;
    text-align: center;
    position: relative;
    z-index: 1;
    padding: 1.5rem;
}

.done .tick {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    border: 1px solid var(--glass-edge-bright);
    background: var(--glass);
    backdrop-filter: var(--glass-blur);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #7fe0a0;
}

.done.is-failed .tick { color: #ff7b86; }
