/* =====================================================================
   SpinDeck — landing page
   ===================================================================== */

/* ------------------------------------------------------------------ hero */
.hero { padding: clamp(48px, 8vw, 96px) 0 40px; }

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: clamp(30px, 5vw, 64px);
    align-items: center;
}

.hero-copy h1 { margin: 18px 0 18px; }
.hero-copy .lede {
    font-size: clamp(1rem, 1.6vw, 1.16rem);
    color: var(--text-2);
    max-width: 54ch;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 30px 0 24px; }

.hero-platforms { display: flex; gap: 10px; flex-wrap: wrap; }
.plat-badge {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 7px 13px; border-radius: 999px;
    background: rgba(255, 255, 255, .045);
    border: 1px solid var(--line);
    font-size: .8rem; font-weight: 600; color: var(--text-2);
}
.plat-badge svg { width: 14px; height: 14px; }

/* -------------------------------------------------------- browser mockup */
.demo-frame {
    border-radius: var(--r-lg);
    border: 1px solid var(--line-strong);
    background: rgba(8, 8, 18, .8);
    box-shadow: var(--shadow), var(--glow-violet);
    overflow: hidden;
    transform: perspective(1400px) rotateY(-6deg) rotateX(2deg);
    transition: transform .5s cubic-bezier(.2, .9, .3, 1);
}
.demo-frame:hover { transform: perspective(1400px) rotateY(-2deg) rotateX(0deg); }

.demo-bar {
    display: flex; align-items: center; gap: 7px;
    padding: 11px 14px;
    background: rgba(255, 255, 255, .04);
    border-bottom: 1px solid var(--line);
}
.demo-bar .dot { width: 9px; height: 9px; }
.demo-url {
    margin-left: 10px; font-size: .7rem; color: var(--text-3);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.demo-stage { padding: 20px; min-height: 300px; position: relative; }

.demo-counter { display: flex; align-items: baseline; gap: 6px; font-family: var(--font-display); }
.demo-counter b { font-size: 1.9rem; font-weight: 800; }
.demo-counter span { color: var(--text-3); font-weight: 600; }
.demo-counter em {
    font-style: normal; font-family: var(--font); margin-left: 6px;
    font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--text-3);
}

.demo-bar-fill {
    height: 6px; border-radius: 999px; background: rgba(255, 255, 255, .08);
    margin: 12px 0 16px; overflow: hidden; border: 1px solid var(--line);
}
.demo-bar-fill i {
    display: block; height: 100%; width: 0;
    background: var(--brand); border-radius: inherit;
    transition: width .5s cubic-bezier(.2, .9, .3, 1);
    box-shadow: 0 0 14px rgba(139, 92, 246, .8);
}

.demo-slots { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.demo-slot {
    aspect-ratio: 1; border-radius: 12px;
    border: 1px solid var(--line); background: rgba(255, 255, 255, .03);
    display: grid; place-items: center; overflow: hidden;
    font-size: .68rem; color: var(--text-3); font-family: var(--font-mono);
}
.demo-slot.taken {
    border-color: rgba(139, 92, 246, .5);
    animation: slotPop .4s cubic-bezier(.2, 1.3, .4, 1);
    padding: 0;
}
.demo-slot img { width: 100%; height: 100%; object-fit: cover; }
@keyframes slotPop { 0% { transform: scale(.6); opacity: 0 } 60% { transform: scale(1.06); opacity: 1 } 100% { transform: scale(1) } }

.demo-tape {
    position: relative; height: 92px; margin-top: 4px;
    border-radius: 14px; overflow: hidden;
    border: 1px solid var(--line-strong);
    background: radial-gradient(60% 120% at 50% 50%, rgba(139, 92, 246, .22), transparent 70%), rgba(0, 0, 0, .4);
    mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.demo-track {
    position: absolute; top: 0; bottom: 0; left: 0;
    display: flex; align-items: center; will-change: transform;
}
.demo-track > div {
    width: 66px; height: 66px; margin: 0 4px; flex: none;
    border-radius: 13px; overflow: hidden;
    border: 1px solid var(--line-strong); background: var(--surface-2);
}
.demo-track img { width: 100%; height: 100%; object-fit: cover; display: block; }
.demo-track > div.win { border-color: #fbbf24; box-shadow: 0 0 0 2px #fbbf24, 0 0 26px rgba(251, 191, 36, .8); }
.demo-line {
    position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; z-index: 3;
    transform: translateX(-50%);
    background: linear-gradient(180deg, transparent, var(--cyan) 15%, var(--cyan) 85%, transparent);
    box-shadow: 0 0 14px rgba(34, 211, 238, .9);
}

.demo-winner {
    display: flex; align-items: center; gap: 12px; margin-top: 14px;
    padding: 12px 14px; border-radius: 14px;
    border: 1px solid rgba(251, 191, 36, .45);
    background: linear-gradient(120deg, rgba(251, 191, 36, .14), rgba(249, 115, 22, .06));
    animation: winnerIn .5s cubic-bezier(.2, 1.2, .35, 1);
}
.demo-winner img { width: 44px; height: 44px; border-radius: 12px; border: 2px solid #fbbf24; }
.demo-winner .l { font-size: .64rem; letter-spacing: .22em; color: #fcd34d; font-weight: 700; }
.demo-winner .n { font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; }
@keyframes winnerIn { from { opacity: 0; transform: translateY(12px) } to { opacity: 1; transform: none } }

/* ----------------------------------------------------------- stat strip */
.stat-strip {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
    margin-top: clamp(40px, 6vw, 72px);
    border: 1px solid var(--line); border-radius: var(--r-lg);
    background: var(--line); overflow: hidden;
}
.stat-strip > div {
    background: rgba(10, 10, 22, .8);
    padding: 22px 18px; text-align: center;
}
.stat-strip b {
    display: block; font-family: var(--font-display);
    font-size: clamp(1.5rem, 3.4vw, 2.15rem); font-weight: 800; line-height: 1.1;
}
.stat-strip span { font-size: .78rem; color: var(--text-3); letter-spacing: .06em; }

/* -------------------------------------------------------------- sections */
.section { padding: clamp(56px, 9vw, 104px) 0 0; }
.section-head { max-width: 660px; margin-bottom: 38px; }
.section-head h2 { margin: 14px 0 12px; }

/* ---------------------------------------------------------------- steps */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 20px; }
.step { display: flex; flex-direction: column; gap: 11px; }
.step-n {
    font-family: var(--font-display); font-size: .82rem; font-weight: 700;
    letter-spacing: .18em; color: transparent;
    background: var(--brand); -webkit-background-clip: text; background-clip: text;
}
.step p { color: var(--text-2); font-size: .93rem; }
.step-visual {
    margin-top: auto; padding-top: 16px;
    display: flex; flex-direction: column; gap: 8px;
}
.mini-field {
    display: flex; justify-content: space-between; align-items: center; gap: 12px;
    padding: 10px 13px; border-radius: 11px;
    background: rgba(255, 255, 255, .035); border: 1px solid var(--line);
    font-size: .86rem;
}
.chatlines { font-size: .84rem; }
.cl {
    padding: 8px 12px; border-radius: 10px;
    background: rgba(255, 255, 255, .03); border: 1px solid var(--line);
    color: var(--text-2);
}
.cl.joined {
    background: rgba(34, 197, 94, .12); border-color: rgba(34, 197, 94, .35);
    color: #86efac; font-weight: 700; text-align: center;
}
.mini-winner {
    display: flex; align-items: center; gap: 12px;
    padding: 12px; border-radius: 12px;
    border: 1px solid rgba(251, 191, 36, .4);
    background: rgba(251, 191, 36, .09);
}
.mw-av {
    width: 42px; height: 42px; border-radius: 11px; flex: none;
    background: linear-gradient(135deg, #22d3ee, #6366f1);
    border: 2px solid #fbbf24;
}

/* ------------------------------------------------------------- features */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.feature h3 { margin: 14px 0 8px; font-size: 1.08rem; }
.feature p { color: var(--text-2); font-size: .91rem; }
.ficon {
    width: 46px; height: 46px; border-radius: 14px;
    display: grid; place-items: center; font-size: 1.35rem;
    background: color-mix(in srgb, var(--fc) 16%, transparent);
    border: 1px solid color-mix(in srgb, var(--fc) 38%, transparent);
    box-shadow: 0 8px 26px -12px var(--fc);
}

/* ------------------------------------------------------------------ cta */
.cta {
    display: flex; align-items: center; justify-content: space-between;
    gap: 26px; flex-wrap: wrap;
    padding: clamp(28px, 5vw, 46px);
    background: linear-gradient(120deg, rgba(139, 92, 246, .14), rgba(34, 211, 238, .08));
}
.cta h2 { margin-bottom: 8px; }

@media (max-width: 940px) {
    .hero-grid { grid-template-columns: 1fr; }
    .demo-frame { transform: none; }
    .stat-strip { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
    .demo-slots { grid-template-columns: repeat(4, 1fr); }
}

/* =====================================================================
   SEO content sections: platforms, use cases, comparison table, FAQ.
   These are static prose blocks — no JS touches them.
   ===================================================================== */

.lede-sm {
    margin-top: 22px;
    max-width: 780px;
    color: var(--text-2);
    font-size: .96rem;
}

/* ------------------------------------------------------------ platforms */
.platforms { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.platform { display: flex; flex-direction: column; gap: 12px; }
.pl-head { display: flex; align-items: center; gap: 12px; }
.pl-icon {
    width: 38px; height: 38px; flex: none;
    display: grid; place-items: center;
    border-radius: 12px;
    background: color-mix(in srgb, var(--pc) 16%, transparent);
    border: 1px solid color-mix(in srgb, var(--pc) 38%, transparent);
}
.pl-icon svg { width: 19px; height: 19px; }
.pl-head h3 { font-size: 1.06rem; margin: 0; }
.platform > p { color: var(--text-2); font-size: .92rem; }
.pl-list { list-style: none; display: grid; gap: 7px; margin-top: auto; padding-top: 4px; }
.pl-list li {
    position: relative;
    padding-left: 20px;
    font-size: .86rem;
    color: var(--text-2);
}
.pl-list li::before {
    content: "";
    position: absolute;
    left: 2px; top: .55em;
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--pc, var(--violet));
}

/* ------------------------------------------------------------ use cases */
.uses { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.use h3 { font-size: 1.02rem; margin-bottom: 9px; }
.use p { color: var(--text-2); font-size: .9rem; }

/* ----------------------------------------------------------- comparison */
.table-scroll { overflow-x: auto; border-radius: var(--r-lg); border: 1px solid var(--line); }
.compare {
    width: 100%;
    min-width: 720px;
    border-collapse: collapse;
    font-size: .89rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .015));
}
.compare th, .compare td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); }
.compare thead th {
    font-family: var(--font-display);
    font-size: .84rem;
    color: var(--text-2);
    background: rgba(255, 255, 255, .03);
    white-space: nowrap;
}
.compare tbody th { font-weight: 600; color: var(--text); }
.compare td { color: var(--text-3); }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }

/* The SpinDeck column is tinted end to end so the eye tracks it down the table. */
.compare .mine { background: rgba(139, 92, 246, .1); color: var(--text); }
.compare thead .mine { color: #c4b5fd; background: rgba(139, 92, 246, .16); }
.compare td.yes { color: #86efac; }
.compare td.mine.yes { color: #d8b4fe; font-weight: 600; }
.compare td.no { color: var(--text-3); }

/* ------------------------------------------------------------------ faq */
.faq { display: grid; gap: 10px; max-width: 880px; }
.faq-item {
    border: 1px solid var(--line);
    border-radius: var(--r);
    background: rgba(255, 255, 255, .028);
    overflow: hidden;
}
.faq-item summary {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 18px;
    cursor: pointer;
    list-style: none;
    user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 {
    font-size: .98rem;
    font-weight: 600;
    margin: 0;
    flex: 1;
}
/* Chevron drawn in CSS so the summary stays a single semantic heading. */
.faq-item summary::after {
    content: "";
    width: 8px; height: 8px; flex: none;
    border-right: 2px solid var(--text-3);
    border-bottom: 2px solid var(--text-3);
    transform: rotate(45deg) translate(-2px, -2px);
    transition: transform .2s ease;
}
.faq-item[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.faq-item[open] summary { background: rgba(139, 92, 246, .08); }
.faq-item summary:hover h3 { color: #c4b5fd; }
.faq-item > p {
    padding: 2px 18px 18px;
    color: var(--text-2);
    font-size: .91rem;
    max-width: 74ch;
}

/* --------------------------------------------------------------- footer */
/* home.css only loads on the homepage, so this restyles the richer footer
   there without touching the compact one every other page uses. */
.site-footer .wrap { flex-direction: column; align-items: stretch; gap: 20px; }
.foot-blurb { max-width: 760px; font-size: .84rem; line-height: 1.7; color: var(--text-3); }
.foot-row { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; }
.foot-nav { display: flex; gap: 18px; flex-wrap: wrap; }

@media (max-width: 700px) {
    .compare { font-size: .84rem; }
    .compare th, .compare td { padding: 11px 13px; }
}

/* =====================================================================
   Responsive refinements
   ===================================================================== */

/* On a phone the table used to scroll sideways, which hid the SpinDeck
   column — the whole reason the table exists — behind a gesture nobody was
   prompted to make. Below 760px each row becomes its own card listing all
   three options, so nothing is off-screen and no scrolling is required. */
@media (max-width: 760px) {
    .table-scroll { border: 0; overflow-x: visible; }

    .compare,
    .compare thead,
    .compare tbody,
    .compare tr,
    .compare th,
    .compare td { display: block; width: auto; min-width: 0; }

    /* The column names move into each cell via data-col, so the real
       header row is redundant. Kept in the DOM for screen readers. */
    .compare thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

    .compare tbody tr {
        border: 1px solid var(--line);
        border-radius: var(--r);
        background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .015));
        margin-bottom: 12px;
        padding: 4px 0;
        overflow: hidden;
    }

    .compare tbody th {
        font-family: var(--font-display);
        font-size: .96rem;
        padding: 13px 15px 9px;
        border-bottom: 1px solid var(--line);
    }

    .compare tbody td {
        display: flex;
        justify-content: space-between;
        align-items: baseline;
        gap: 14px;
        padding: 9px 15px;
        border-bottom: 0;
        text-align: right;
    }

    .compare tbody td::before {
        content: attr(data-col);
        flex: 0 1 auto;
        text-align: left;
        color: var(--text-3);
        font-size: .82rem;
        font-weight: 500;
    }

    /* The SpinDeck answer is the one people are looking for: give it the
       tinted band it has on desktop plus a little more weight. */
    .compare tbody td.mine {
        background: rgba(139, 92, 246, .1);
        margin-top: 3px;
        padding-top: 11px;
        padding-bottom: 11px;
    }
    .compare tbody td.mine::before { color: #c4b5fd; font-weight: 700; }
}

.demo-url { font-size: .75rem; }

@media (max-width: 940px) {
    /* The mock browser frame is decorative; give the copy the full width. */
    .hero-demo { margin-top: 6px; }
}

@media (max-width: 640px) {
    .hero { padding-top: 30px; }
    .hero-cta { gap: 10px; margin: 24px 0 20px; }
    .hero-cta .btn { flex: 1 1 auto; }
    .section-head { margin-bottom: 28px; }
    .platforms, .uses, .features, .steps { gap: 14px; }
    .cta { flex-direction: column; align-items: flex-start; gap: 18px; }
    .cta .btn { width: 100%; }
    .faq-item summary { padding: 14px 15px; }
    .faq-item > p { padding: 2px 15px 16px; }
    .foot-row { flex-direction: column; align-items: flex-start; gap: 10px; }
    .foot-nav { gap: 14px; row-gap: 2px; }
}

@media (max-width: 400px) {
    .stat-strip { gap: 10px; }
    .demo-stage { padding: 15px; }
    .demo-slots { grid-template-columns: repeat(4, 1fr); gap: 6px; }
}

/* =====================================================================
   Platform landing pages (/twitch-giveaway-wheel, /youtube-…, /kick-…)
   Each page sets --pc to its brand colour on <body>.
   ===================================================================== */

.crumbs {
    display: flex; align-items: center; gap: 9px;
    padding-top: 22px;
    font-size: .82rem; color: var(--text-3);
}
.crumbs a { color: var(--text-2); }
.crumbs a:hover { color: var(--text); }

.plat-hero { padding: clamp(20px, 4vw, 44px) 0 clamp(30px, 5vw, 54px); }
/* The hero now shares .hero-grid with the homepage, so the column sets the
   measure — the old max-widths were for a full-bleed text block. */
.plat-hero h1 { margin: 16px 0 18px; }
.plat-hero .lede { font-size: clamp(1rem, 1.6vw, 1.13rem); color: var(--text-2); max-width: 56ch; }
.plat-hero .hero-cta { margin: 26px 0 20px; }

/* A colour wash keyed to the platform, so the three pages read as siblings
   rather than as one page with the words swapped. */
.plat-page .plat-hero {
    background: radial-gradient(60vmax 34vmax at 12% -10%, color-mix(in srgb, var(--pc) 16%, transparent), transparent 62%);
}
.plat-page .chip-violet {
    background: color-mix(in srgb, var(--pc) 14%, transparent);
    border-color: color-mix(in srgb, var(--pc) 40%, transparent);
    color: color-mix(in srgb, var(--pc) 70%, white);
}

.tick-row { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.tick-row li {
    position: relative; padding-left: 20px;
    font-size: .87rem; color: var(--text-2); font-weight: 500;
}
.tick-row li::before {
    content: ''; position: absolute; left: 2px; top: .42em;
    width: 9px; height: 5px;
    border-left: 2px solid var(--pc, var(--lime));
    border-bottom: 2px solid var(--pc, var(--lime));
    transform: rotate(-45deg);
}

/* ------------------------------------------------------------- how-to */
.howto { list-style: none; counter-reset: step; display: grid; gap: 14px; max-width: 900px; }
.howto > li {
    counter-increment: step;
    position: relative;
    padding: 18px 20px 18px 62px;
    border: 1px solid var(--line);
    border-radius: var(--r);
    background: rgba(255, 255, 255, .028);
}
.howto > li::before {
    content: counter(step, decimal-leading-zero);
    position: absolute; left: 20px; top: 18px;
    font-family: var(--font-mono); font-size: .82rem; font-weight: 700;
    color: var(--pc, var(--violet));
}
.howto h3 { font-size: 1.02rem; margin-bottom: 6px; }
.howto p { color: var(--text-2); font-size: .92rem; }

/* ----------------------------------------------------------- two-col */
.two-col { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 24px; align-items: start; }
.two-col > div > p { color: var(--text-2); margin-bottom: 12px; }
.two-col .pl-list { margin-top: 14px; }
.two-col .pl-list li { font-size: .89rem; }

.compare-mini h3 { font-size: .96rem; margin-bottom: 14px; }
.compare-mini dl { display: grid; gap: 11px; }
.compare-mini dt {
    font-size: .72rem; letter-spacing: .1em; text-transform: uppercase;
    color: var(--text-3); font-weight: 700;
}
.compare-mini dd { font-size: .89rem; color: var(--text); }
.compare-mini dd s { color: var(--text-3); text-decoration-color: rgba(244, 63, 94, .5); }

/* ------------------------------------------------- cross-platform links */
.plat-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.plat-link { display: flex; align-items: center; gap: 14px; transition: border-color .18s, transform .18s; }
.plat-link:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.plat-link b { display: block; font-size: .98rem; margin-bottom: 2px; }
.plat-link .muted { font-size: .84rem; }

@media (max-width: 860px) {
    .two-col { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .plat-hero h1 { max-width: none; }
    .howto > li { padding: 15px 16px 16px 52px; }
    .howto > li::before { left: 16px; top: 16px; }
    .plat-link:hover { transform: none; }
}

/* Link from each homepage platform card to its dedicated page. */
.card-more {
    display: inline-flex; align-items: center; gap: 6px;
    margin-top: 14px;
    font-size: .87rem; font-weight: 600;
    color: var(--pc, var(--violet));
}
.card-more:hover { text-decoration: underline; }
.platform .pl-list { margin-top: 14px; }
.platform h3 a { color: inherit; }
.platform h3 a:hover { color: var(--pc); }

/* The platform hero is text-only (no mockup beside it like the homepage),
   so the default section spacing left a dead band under the fold. */
.plat-hero + .section { padding-top: clamp(26px, 4vw, 52px); }
