@import url("https://fonts.googleapis.com/css2?family=Libre+Franklin:wght@400;500;600;700&family=Newsreader:opsz,wght@6..72,400;6..72,500;6..72,650&display=swap");

/* Neutralize the old global * { font/background } rules from style.css */
*,
*::before,
*::after {
    font-family: inherit;
    background-color: transparent;
}

:root {
    --ink: #121212;
    --muted: #5c5c56;
    --line: #e2e2de;
    --paper: #ffffff;
    --sand: #f6f4ef;
    --yellow: #f7d64a;
    --blue: #85c4e4;
    --navy: #1a1a1a;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--paper) !important;
    color: var(--ink);
    font-family: "Libre Franklin", Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

.game-frame {
    display: block;
    width: 100%;
    height: 90vh;
    min-height: 640px;
    border: 0;
    margin: 0;
    padding: 0;
    background: var(--paper);
}

.site-wrap {
    background: var(--paper);
    color: var(--ink);
}

.site-inner {
    width: min(1080px, calc(100% - 40px));
    margin: 0 auto;
}

.site-inner--narrow {
    width: min(760px, calc(100% - 40px));
}

.mode-bar {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 28px 16px 8px;
    flex-wrap: wrap;
}

.mode-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 112px;
    padding: 10px 18px;
    border: 1px solid var(--ink);
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.02em;
    background: transparent;
    color: var(--ink);
    transition: background 0.15s ease, color 0.15s ease;
}

.mode-pill:hover {
    background: var(--sand);
}

.mode-pill.is-active {
    background: var(--ink);
    color: #fff;
}

.ad-slot {
    text-align: center;
    overflow: hidden;
    padding: 12px 0 8px;
}

.kicker {
    display: block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 12px;
}

.display {
    font-family: Newsreader, Georgia, "Times New Roman", serif;
    font-weight: 650;
    font-size: clamp(36px, 6vw, 64px);
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin: 0 0 18px;
}

.lede {
    font-size: 18px;
    color: var(--muted);
    margin: 0;
    max-width: 42em;
}

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

.section--sand {
    background: var(--sand);
}

.section--center {
    text-align: center;
}

.section--center .lede {
    margin-left: auto;
    margin-right: auto;
}

.stat-row {
    display: flex;
    justify-content: center;
    gap: 28px;
    flex-wrap: wrap;
    margin-top: 28px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.stat-row span::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 8px;
    background: var(--yellow);
    vertical-align: 1px;
}

.stat-row span:last-child::before {
    background: var(--blue);
}

.steps {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 36px;
    margin-top: 48px;
}

.step h3 {
    font-family: Newsreader, Georgia, serif;
    font-size: 26px;
    font-weight: 650;
    margin: 0 0 8px;
}

.step p {
    margin: 0;
    color: var(--muted);
}

.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--ink);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 12px;
}

.tips {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.tip {
    background: var(--paper);
    border: 1px solid var(--line);
    padding: 24px 22px 22px;
}

.tip h3 {
    font-family: Newsreader, Georgia, serif;
    font-size: 22px;
    margin: 0 0 8px;
}

.tip p {
    margin: 0;
    color: var(--muted);
    font-size: 15px;
}

.demo {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin-top: 48px;
}

.demo-copy h3 {
    font-family: Newsreader, Georgia, serif;
    font-size: 28px;
    margin: 0 0 10px;
}

.demo-copy p {
    margin: 0;
    color: var(--muted);
}

.tiles {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 6px;
    max-width: 320px;
}

.tile {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1.5px solid #cfcfc8;
    font-weight: 700;
    font-size: 15px;
    background: #fff;
}

.tile.is-theme {
    background: var(--blue);
    border-color: var(--blue);
    color: #123;
}

.tile.is-span {
    background: var(--yellow);
    border-color: var(--yellow);
    color: #123;
}

.faq-list {
    margin-top: 36px;
    border-top: 1px solid var(--line);
}

.faq-item {
    border-bottom: 1px solid var(--line);
}

.faq-item summary {
    cursor: pointer;
    list-style: none;
    padding: 18px 32px 18px 0;
    font-weight: 600;
    font-size: 17px;
    position: relative;
}

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

.faq-item summary::after {
    content: "+";
    position: absolute;
    right: 0;
    top: 18px;
    font-size: 22px;
    font-weight: 400;
    color: var(--muted);
}

.faq-item[open] summary::after {
    content: "–";
}

.faq-item p {
    margin: 0 0 20px;
    color: var(--muted);
    max-width: 62ch;
}

.cta {
    text-align: center;
    padding: 80px 0 88px;
}

.cta-row {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 28px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 22px;
    border-radius: 999px;
    font-weight: 650;
    font-size: 15px;
    border: 1px solid var(--ink);
}

.btn--solid {
    background: var(--ink);
    color: #fff;
}

.btn--ghost {
    background: transparent;
}

.btn--solid:hover {
    background: #333;
}

.btn--ghost:hover {
    background: var(--sand);
}

.site-footer {
    background: var(--navy);
    color: #ecece8;
    padding: 56px 0 28px;
}

.site-footer a {
    color: #ecece8;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 32px;
}

.footer-brand {
    font-family: Newsreader, Georgia, serif;
    font-size: 32px;
    font-weight: 650;
    margin: 0 0 8px;
}

.footer-brand span {
    font-weight: 400;
    opacity: 0.7;
}

.footer-note {
    font-size: 13px;
    color: #b7b7b0;
    max-width: 28ch;
    margin: 0;
}

.footer-col h4 {
    margin: 0 0 12px;
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #b7b7b0;
}

.footer-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-col li {
    margin: 0 0 8px;
    font-size: 14px;
}

.footer-col a:hover {
    text-decoration: underline;
}

.footer-legal {
    margin-top: 40px;
    padding-top: 18px;
    border-top: 1px solid #333;
    font-size: 12px;
    color: #9a9a93;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

/* Quiet down leftover bootstrap-ish bits without breaking ads */
.banner_under,
.banner_under_mobile {
    margin: 8px auto;
}

.strands_title,
.faq_block,
.we_but,
.frames_block {
    /* leftover classes should not leak if unused */
}

@media (max-width: 860px) {
    .steps,
    .tips,
    .demo,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .game-frame {
        height: 100svh;
        min-height: 560px;
    }

    .section {
        padding: 52px 0;
    }

    .display {
        font-size: 40px;
    }
}

@media (max-width: 640px) {
    .banner_under {
        display: none;
    }

    .mode-pill {
        min-width: 0;
        flex: 1;
    }
}

@media (min-width: 641px) {
    .banner_under_mobile {
        display: none;
    }
}
