/*
 * AsciiBrite marketing site.
 * Dark, backlit-board aesthetic that matches the app itself.
 */

:root {
    --bg: #08060b;
    --bg-panel: #120d18;
    --bg-panel-2: #1a1322;
    --ink: #f4eef8;
    --ink-dim: #b9aec6;
    --ink-faint: #8d8399;
    --line: #2b2136;
    --red: #ff3b30;
    --blue: #2f6bff;
    --orange: #ff9500;
    --green: #34c759;
    --yellow: #ffd60a;
    --pink: #ff69b4;
    --purple: #a855f7;
    --cyan: #22d3ee;
    --radius: 14px;
    --maxw: 1120px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 17px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

a:hover {
    color: #7fe9fb;
}

.wrap {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 22px;
}

.skip {
    position: absolute;
    left: -9999px;
}

.skip:focus {
    left: 12px;
    top: 12px;
    z-index: 50;
    background: var(--yellow);
    color: #000;
    padding: 10px 16px;
    border-radius: 8px;
}

/* ---------- header ---------- */

header.site {
    border-bottom: 1px solid var(--line);
    background: rgba(8, 6, 11, 0.9);
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(10px);
}

header.site .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 12px;
    padding-bottom: 12px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 11px;
    font-weight: 800;
    font-size: 1.12rem;
    letter-spacing: -0.01em;
    color: var(--ink);
    text-decoration: none;
}

.brand img {
    width: 34px;
    height: 34px;
    border-radius: 9px;
}

.brand .b-ascii {
    color: var(--yellow);
}

.navlinks {
    display: flex;
    gap: 22px;
    font-size: 0.94rem;
}

.navlinks a {
    color: var(--ink-dim);
    text-decoration: none;
}

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

/* ---------- pegboard glow decoration ---------- */

.pegrow {
    display: flex;
    gap: 9px;
    justify-content: center;
    margin: 0 0 26px;
}

.peg {
    width: 17px;
    height: 17px;
    border-radius: 50%;
    position: relative;
}

.peg::after {
    content: "";
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    background: inherit;
    filter: blur(9px);
    opacity: 0.55;
    z-index: -1;
}

/* ---------- hero ---------- */

.hero {
    padding: 68px 0 54px;
    background:
        radial-gradient(60% 70% at 22% 0%, rgba(255, 105, 180, 0.13), transparent 70%),
        radial-gradient(55% 65% at 82% 12%, rgba(47, 107, 255, 0.15), transparent 70%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.12fr 0.88fr;
    gap: 54px;
    align-items: center;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--pink);
    margin: 0 0 14px;
}

h1 {
    font-size: clamp(2.1rem, 5vw, 3.35rem);
    line-height: 1.08;
    letter-spacing: -0.025em;
    margin: 0 0 20px;
    font-weight: 850;
}

h1 .glow {
    color: var(--yellow);
    text-shadow: 0 0 26px rgba(255, 214, 10, 0.5);
}

.lede {
    font-size: 1.16rem;
    color: var(--ink-dim);
    margin: 0 0 28px;
    max-width: 34em;
}

.hero-shot {
    border-radius: 20px;
    border: 1px solid var(--line);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6), 0 0 60px rgba(255, 105, 180, 0.08);
}

/* ---------- store buttons ---------- */

.stores {
    display: flex;
    flex-wrap: wrap;
    gap: 13px;
    margin: 0 0 20px;
}

.store-btn {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    padding: 13px 22px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, var(--bg-panel-2), var(--bg-panel));
    color: var(--ink);
    transition: transform 0.12s ease, border-color 0.12s ease;
}

.store-btn:hover {
    transform: translateY(-2px);
    border-color: #4a3a5e;
    color: var(--ink);
}

.store-btn svg {
    width: 22px;
    height: 22px;
    flex: none;
    fill: currentColor;
}

.store-btn small {
    display: block;
    font-weight: 500;
    font-size: 0.72rem;
    color: var(--ink-faint);
    line-height: 1.2;
}

.fineprint {
    font-size: 0.88rem;
    color: var(--ink-faint);
    margin: 0;
}

/* ---------- sections ---------- */

section {
    padding: 62px 0;
    border-top: 1px solid var(--line);
}

h2 {
    font-size: clamp(1.6rem, 3.2vw, 2.3rem);
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin: 0 0 16px;
    font-weight: 830;
}

h3 {
    font-size: 1.16rem;
    margin: 0 0 8px;
    letter-spacing: -0.01em;
}

.section-lede {
    color: var(--ink-dim);
    max-width: 62ch;
    margin: 0 0 38px;
    font-size: 1.06rem;
}

/* ---------- two ways to play ---------- */

.modes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 26px;
}

.mode {
    background: linear-gradient(180deg, var(--bg-panel), #0d0912);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px;
}

.mode-tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 999px;
    margin-bottom: 14px;
}

.mode-tag.guided {
    background: rgba(255, 105, 180, 0.16);
    color: #ffa7d1;
}

.mode-tag.free {
    background: rgba(47, 107, 255, 0.18);
    color: #9db9ff;
}

.mode p {
    color: var(--ink-dim);
    margin: 0 0 14px;
}

.mode ul {
    margin: 0;
    padding-left: 20px;
    color: var(--ink-dim);
}

.mode li {
    margin-bottom: 7px;
}

/* ---------- feature grid ---------- */

.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.feature {
    background: var(--bg-panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px;
}

.feature .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-bottom: 14px;
    box-shadow: 0 0 14px currentColor;
}

.feature p {
    margin: 0;
    color: var(--ink-dim);
    font-size: 0.97rem;
}

/* ---------- stat strip ---------- */

.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.stat {
    text-align: center;
    padding: 24px 14px;
    background: var(--bg-panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.stat b {
    display: block;
    font-size: 2.1rem;
    line-height: 1.1;
    font-weight: 850;
    letter-spacing: -0.02em;
    color: var(--yellow);
}

.stat span {
    font-size: 0.88rem;
    color: var(--ink-faint);
}

/* ---------- gallery ---------- */

.shots {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.shot figure {
    margin: 0;
}

.shot img {
    border-radius: 13px;
    border: 1px solid var(--line);
    width: 100%;
}

.shot figcaption {
    font-size: 0.88rem;
    color: var(--ink-faint);
    margin-top: 10px;
    text-align: center;
}

/* ---------- packs ---------- */

.packs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-bottom: 26px;
}

.pack {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 20px;
    background: var(--bg-panel);
}

.pack h3 {
    font-size: 1.04rem;
}

.pack p {
    margin: 0;
    font-size: 0.94rem;
    color: var(--ink-dim);
}

.swatches {
    display: flex;
    gap: 6px;
    margin-top: 12px;
}

.swatches i {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    display: block;
}

/* ---------- faq ---------- */

.faq details {
    border-bottom: 1px solid var(--line);
    padding: 18px 0;
}

.faq summary {
    cursor: pointer;
    font-weight: 700;
    font-size: 1.05rem;
    list-style: none;
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.faq summary::-webkit-details-marker {
    display: none;
}

.faq summary::after {
    content: "+";
    color: var(--yellow);
    font-weight: 400;
    font-size: 1.4rem;
    line-height: 1;
    flex: none;
}

.faq details[open] summary::after {
    content: "\2212";
}

.faq p {
    color: var(--ink-dim);
    margin: 12px 0 0;
    max-width: 72ch;
}

/* ---------- closing cta ---------- */

.cta {
    text-align: center;
    background:
        radial-gradient(60% 100% at 50% 0%, rgba(255, 214, 10, 0.09), transparent 70%);
}

.cta .stores {
    justify-content: center;
}

/* ---------- footer ---------- */

footer.site {
    border-top: 1px solid var(--line);
    padding: 34px 0 46px;
    color: var(--ink-faint);
    font-size: 0.9rem;
}

footer.site .wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 26px;
    justify-content: space-between;
    align-items: center;
}

footer.site a {
    color: var(--ink-dim);
    text-decoration: none;
}

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

/* ---------- responsive ---------- */

@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .hero-media {
        max-width: 330px;
        margin: 0 auto;
    }

    .modes,
    .features,
    .packs {
        grid-template-columns: 1fr;
    }

    .shots {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .navlinks {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .store-btn {
        transition: none;
    }
}
