/* Self-hosted Outfit font — no external DNS round-trip */
@font-face {
    font-family: 'Outfit';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('fonts/outfit-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Outfit';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('fonts/outfit-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root {
    --black: #000000;
    --ink: #1a1a1a;
    --white: #ffffff;
    --muted: #9ca3af;
    --surface: #f9f9f9;
    --border: #e5e7eb;
    --of-blue: #00aff0;
    --btn-hover: #1f2937;
}

*, *::before, *::after {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

a, button, [role="button"] { touch-action: manipulation; }

body {
    margin: 0;
    font-family: 'Outfit', sans-serif;
    background: var(--white);
    color: var(--ink);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

p { margin: 0; }

/* ─── TOP NAV ─────────────────────────────────── */
.topnav {
    position: sticky;
    top: 0;
    z-index: 10;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 0.875rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

@media (min-width: 640px) { .topnav { padding: 0.875rem 2.5rem; } }

.topnav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 0.9375rem;
    text-decoration: none;
    color: var(--ink);
}

.topnav-logo img { width: 22px; height: 22px; }

.back-link {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--ink);
    text-decoration: none;
    border-bottom: 1.5px solid var(--black);
    padding-bottom: 1px;
    white-space: nowrap;
    transition: border-color 0.15s ease;
}
.back-link:hover { border-color: var(--muted); }

/* ─── BANNER ──────────────────────────────────── */
.banner {
    width: 100%;
    height: 180px;
    background: var(--black);
    position: relative;
    overflow: hidden;
}

@media (min-width: 640px) { .banner { height: 220px; } }

/* repeating scan-line texture */
.banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 3px,
        rgba(255,255,255,0.03) 3px,
        rgba(255,255,255,0.03) 4px
    );
}

.banner-text {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    pointer-events: none;
    user-select: none;
}

.banner-eyebrow {
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.25em;
    text-transform: lowercase;
    color: rgba(255,255,255,0.5);
}

.banner-headline {
    font-size: clamp(1.25rem, 4vw, 2rem);
    font-weight: 700;
    color: rgba(255,255,255,0.35);
    text-align: center;
    padding: 0 1rem;
}

/* ─── PROFILE SHELL ───────────────────────────── */
.profile-shell {
    max-width: 42rem;
    margin: 0 auto;
    padding: 0 1.5rem 5rem;
}

@media (min-width: 640px) { .profile-shell { padding: 0 2.5rem 5rem; } }

/* ─── AVATAR ROW ──────────────────────────────── */
.avatar-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.profile-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-end;
}

@media (min-width: 480px) {
    .profile-actions {
        flex-direction: row;
        align-items: center;
    }
}

.avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 4px solid var(--white);
    background: var(--ink);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.25rem;
    margin-top: -40px;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    color: var(--white);
    font-weight: 700;
}

@media (min-width: 640px) {
    .avatar { width: 96px; height: 96px; font-size: 2.75rem; margin-top: -48px; }
}

.subscribe-btn {
    align-self: flex-end;
    background: var(--of-blue);
    color: var(--white);
    border: none;
    border-radius: 2rem;
    font-family: inherit;
    font-size: 0.8125rem;
    font-weight: 700;
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: filter 0.15s ease, transform 0.1s ease;
    white-space: nowrap;
    min-width: 0;
}

@media (min-width: 400px) {
    .subscribe-btn { font-size: 0.875rem; padding: 0.5rem 1.25rem; }
}

.subscribe-btn:hover { filter: brightness(1.1); transform: translateY(-1px); }
.subscribe-btn:active { transform: translateY(0); }

.tip-btn {
    background: transparent;
    color: var(--of-blue);
    border: 1px solid var(--of-blue);
    border-radius: 2rem;
    font-family: inherit;
    font-size: 0.8125rem;
    font-weight: 700;
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, transform 0.1s ease;
    white-space: nowrap;
}

.tip-btn:hover { background: var(--of-blue); color: var(--white); transform: translateY(-1px); }
.tip-btn:active { transform: translateY(0); }

/* ─── BIO ─────────────────────────────────────── */
.profile-name {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.125rem;
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.verified-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.125rem;
    height: 1.125rem;
    background: #8e949e;
    color: var(--white);
    border-radius: 50%;
    font-size: 0.65rem;
    font-weight: bold;
    cursor: help;
    transform: rotate(-12deg);
    position: relative;
    top: -1px;
}

.verified-badge:hover { background: var(--of-blue); }

@media (min-width: 640px) { .profile-name { font-size: 1.5rem; } }

.profile-handle {
    font-size: 0.875rem;
    color: var(--muted);
    margin-bottom: 0.75rem;
}

.profile-bio {
    font-size: 0.9375rem;
    line-height: 1.55;
    max-width: 34rem;
    margin-bottom: 1.25rem;
    color: var(--ink);
}

@media (min-width: 640px) { .profile-bio { font-size: 1rem; } }

/* ─── STATS BAR ───────────────────────────────── */
.stats-bar {
    display: flex;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    overflow: hidden;
    margin-bottom: 2rem;
}

.stat {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.75rem 0.5rem;
    border-right: 1px solid var(--border);
}

.stat:last-child { border-right: none; }

.stat-number {
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1;
}

.stat-label {
    font-size: 0.65rem;
    color: var(--muted);
    text-transform: lowercase;
    letter-spacing: 0.06em;
    margin-top: 0.2rem;
}

/* ─── DIVIDER LABEL ───────────────────────────── */
.divider-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: var(--muted);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: lowercase;
}

.divider-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

/* ─── MEDIA GRID ──────────────────────────────── */
.media-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3px;
    margin-bottom: 2.5rem;
    border-radius: 0.5rem;
    overflow: hidden;
}

@media (min-width: 480px) { .media-grid { gap: 4px; } }

.media-item {
    position: relative;
    aspect-ratio: 1 / 1;
    cursor: pointer;
    overflow: hidden;
    background: var(--black);
}

.media-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: blur(12px) saturate(1.2) brightness(0.4);
    transition: filter 0.3s ease;
}

.media-item:hover .media-bg {
    filter: blur(8px) saturate(1.3) brightness(0.6);
}

/* unique gradient per cell */
.media-item:nth-child(1) .media-bg { background: radial-gradient(circle at 40% 45%, #e74c3c, #8e44ad, #000); }
.media-item:nth-child(2) .media-bg { background: radial-gradient(circle at 55% 40%, #f39c12, #e67e22, #000); }
.media-item:nth-child(3) .media-bg { background: radial-gradient(circle at 50% 55%, #1abc9c, #2980b9, #000); }
.media-item:nth-child(4) .media-bg { background: radial-gradient(circle at 35% 50%, #3498db, #8e44ad, #000); }
.media-item:nth-child(5) .media-bg { background: radial-gradient(circle at 60% 45%, #e74c3c, #f39c12, #000); }
.media-item:nth-child(6) .media-bg { background: radial-gradient(circle at 45% 40%, #27ae60, #16a085, #000); }

.media-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
}

.lock-icon {
    font-size: 1.25rem;
    line-height: 1;
    filter: drop-shadow(0 1px 3px rgba(0,0,0,0.6));
}

@media (min-width: 480px) { .lock-icon { font-size: 1.625rem; } }

.media-caption {
    font-size: 0.5rem;
    font-weight: 700;
    color: rgba(255,255,255,0.45);
    text-transform: lowercase;
    letter-spacing: 0.08em;
    text-align: center;
    padding: 0 0.25rem;
}

@media (min-width: 480px) { .media-caption { font-size: 0.6rem; } }

/* hover reveals caption more clearly */
.media-item:hover .media-caption { color: rgba(255,255,255,0.7); }

/* ─── TESTIMONIALS ────────────────────────────── */
.testimonials {
    display: flex;
    flex-direction: column;
    margin-bottom: 2.5rem;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    overflow: hidden;
}

.testimonial {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
}

.testimonial:last-child { border-bottom: none; }

.testimonial-text {
    font-size: 0.875rem;
    line-height: 1.55;
    font-style: italic;
    margin-bottom: 0.4rem;
    color: var(--ink);
}

.testimonial-author {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--muted);
    text-transform: lowercase;
    letter-spacing: 0.05em;
}

/* ─── PRICING ─────────────────────────────────── */
.pricing-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
}

@media (min-width: 480px) {
    .pricing-grid { grid-template-columns: repeat(3, 1fr); }
}

.pricing-card {
    border: 1.5px solid var(--border);
    border-radius: 0.5rem;
    padding: 1rem 1.125rem;
    display: flex;
    flex-direction: column;
}

.pricing-card.featured {
    border-color: var(--ink);
    background: var(--ink);
    color: var(--white);
}

.pricing-tier {
    display: block;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: lowercase;
    color: var(--muted);
    margin-bottom: 0.375rem;
}

.pricing-card.featured .pricing-tier { color: rgba(255,255,255,0.4); }

.pricing-price {
    display: block;
    font-size: 1.625rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.pricing-price small {
    font-size: 0.75rem;
    font-weight: 400;
    opacity: 0.6;
}

.pricing-desc {
    font-size: 0.8125rem;
    line-height: 1.45;
    color: var(--muted);
    margin-bottom: 0.875rem;
}

.pricing-card.featured .pricing-desc { color: rgba(255,255,255,0.55); }

/* ─── TIER BUTTONS ───────────────────────────── */
.tier-btn {
    display: block;
    width: 100%;
    margin-top: auto;
    padding-top: 0;
    font-family: inherit;
    font-size: 0.8125rem;
    font-weight: 700;
    text-align: center;
    color: var(--ink);
    background: transparent;
    border: 1.5px solid var(--border);
    border-radius: 0.375rem;
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
}
.tier-btn:hover { border-color: var(--ink); background: var(--surface); }

.tier-btn-featured {
    color: var(--white);
    border-color: rgba(255,255,255,0.25);
}
.tier-btn-featured:hover { border-color: var(--white); background: rgba(255,255,255,0.1); }

/* ─── FOOTER ──────────────────────────────────── */
.of-footer {
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    font-size: 0.75rem;
    color: var(--muted);
    line-height: 1.6;
}

.of-footer a {
    color: inherit;
    text-decoration: underline;
}

.of-footer a:hover { color: var(--ink); }

/* ─── MODAL ───────────────────────────────────── */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    align-items: center;
    justify-content: center;
    z-index: 50;
    padding: 1rem;
    overscroll-behavior: contain;
}

.modal.is-open { display: flex; }

.modal-card {
    background: var(--white);
    color: var(--black);
    padding: 1.75rem;
    border-radius: 0.625rem;
    box-shadow: 0 25px 60px -12px rgba(0,0,0,0.3);
    width: 100%;
    margin: auto;
    max-width: 26rem;
    max-height: 90vh;
    max-height: 90dvh;
    overflow-y: auto;
}

.modal-card > p {
    font-size: 0.875rem;
    line-height: 1.65;
    margin-bottom: 1.5rem;
}

.tip-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.tip-option {
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tip-option small {
    opacity: 0.6;
    font-weight: 400;
}

.btn-primary {
    display: block;
    width: 100%;
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    color: var(--white);
    background: var(--black);
    border: none;
    border-radius: 0.375rem;
    padding: 0.625rem 1rem;
    cursor: pointer;
    transition: background 0.15s ease;
}
.btn-primary:hover { background: var(--btn-hover); }

.btn-secondary {
    display: block;
    width: 100%;
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 700;
    text-align: center;
    color: var(--black);
    background: transparent;
    border: 1.5px solid var(--border);
    border-radius: 0.375rem;
    padding: 0.625rem 1rem;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
    margin-top: 0.625rem;
}
.btn-secondary:hover { border-color: var(--black); background: var(--surface); }

/* ─── MEDIA ITEM FOCUS (keyboard / touch) ────── */
.media-item:focus-visible .media-bg {
    filter: blur(8px) saturate(1.3) brightness(0.6);
}
.media-item:focus-visible {
    outline: 2px solid var(--of-blue);
    outline-offset: -2px;
}

/* ─── COMMENT BOX ─────────────────────────────── */
.comment-box {
    margin-bottom: 2.5rem;
    padding: 1.25rem;
    border-style: dashed;
}

#fake-comment-input {
    display: block;
    width: 100%;
    min-height: 80px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 0.375rem;
    padding: 0.75rem;
    font-family: inherit;
    font-size: 0.875rem;
    color: var(--ink);
    margin-bottom: 0.75rem;
    resize: vertical;
    -webkit-appearance: none;
}

#fake-comment-input:focus {
    outline: 2px solid var(--of-blue);
    outline-offset: 0;
    border-color: transparent;
}

/* ─── TIP MODAL HEADING ───────────────────────── */
#tip-title {
    font-size: 1.25rem;
    margin: 0 0 1rem;
}

/* ─── TIP MODAL DISMISS ───────────────────────── */
.tip-modal-dismiss {
    margin-top: 1.5rem;
}
