/*
 * index.css
 * PlayPool public landing page (index.php).
 * Colour tokens (--pp-*) and the navbar/footer live in pp-navbar.css.
 */

:root {
    --pp-ink: #0a1714;
    --pp-felt-deep: #0d4a32;
    --pp-wood: #5a3920;
    --pp-wood-light: #8a5a32;
    --pp-cream-2: #ece3cf;
    --pp-yellow-ball: #f2c230;
    --pp-red-ball: #c62828;
    --hx-pad: clamp(16px, 4vw, 40px);
}

body { background: var(--pp-dark); font-family: 'Poppins', sans-serif; }

/* ============ BUTTONS ============ */
.btn-pp,
.btn-pp-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 54px;
    padding: 0 28px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
    cursor: pointer;
}
.btn-pp {
    background: var(--pp-gold);
    color: var(--pp-ink);
    border: none;
    box-shadow: 0 6px 0 #a9822f, 0 14px 30px rgba(224, 182, 89, .25);
}
.btn-pp:hover { background: var(--pp-gold-light); color: var(--pp-ink); transform: translateY(-2px); }
.btn-pp:active { transform: translateY(4px); box-shadow: 0 2px 0 #a9822f; }
.btn-pp-outline {
    background: transparent;
    color: var(--pp-cream);
    border: 2px solid rgba(245, 239, 225, .28);
}
.btn-pp-outline:hover { background: var(--pp-cream); color: var(--pp-ink); border-color: var(--pp-cream); }
.btn-pp:focus-visible, .btn-pp-outline:focus-visible, .pick:focus-visible, .tbl-btn:focus-visible {
    outline: 3px solid var(--pp-gold-light);
    outline-offset: 3px;
}

/* ============ HERO ============ */
.hx {
    position: relative;
    overflow: hidden;
    color: var(--pp-cream);
    padding: 104px var(--hx-pad) 40px;
    background:
        radial-gradient(ellipse 80% 55% at 70% 0%, rgba(224, 182, 89, .14), transparent 60%),
        radial-gradient(ellipse 60% 50% at 0% 100%, rgba(20, 112, 74, .45), transparent 70%),
        var(--pp-ink);
}
/* faint felt grain */
.hx::before {
    content: "";
    position: absolute; inset: 0;
    opacity: .07;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
/* the hanging lamp over the table */
.hx-lamp {
    position: absolute;
    top: -10%;
    right: 8%;
    width: min(70vw, 620px);
    height: 120%;
    pointer-events: none;
    background: conic-gradient(from 180deg at 50% 0%, transparent 155deg, rgba(255, 220, 140, .10) 172deg, rgba(255, 220, 140, .14) 180deg, rgba(255, 220, 140, .10) 188deg, transparent 205deg);
    filter: blur(6px);
}
.hx-inner {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    gap: 36px;
    align-items: center;
}
@media (min-width: 992px) {
    .hx { padding-top: 120px; padding-bottom: 72px; min-height: 100vh; min-height: 100dvh; display: flex; align-items: center; }
    .hx-inner { grid-template-columns: 1.1fr .9fr; gap: 56px; width: 100%; }
    /* keep the whole table (and its controls) inside one screen */
    .hx-table-wrap { max-width: min(420px, calc((100vh - 230px) * .625)); }
}

.hx-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px 8px 12px;
    border-radius: 999px;
    background: rgba(245, 239, 225, .06);
    border: 1px solid rgba(245, 239, 225, .14);
    color: var(--pp-cream);
    font-size: .85rem;
    font-weight: 500;
    text-decoration: none;
    margin-bottom: 22px;
}
.hx-pill:hover { color: var(--pp-gold-light); border-color: rgba(224, 182, 89, .5); }
.hx-pill-dot {
    width: 9px; height: 9px; border-radius: 50%;
    background: var(--pp-gold);
    box-shadow: 0 0 0 0 rgba(224, 182, 89, .6);
}
.hx-pill.is-live .hx-pill-dot { background: #ff4d4d; animation: livePulse 1.6s infinite; }
@keyframes livePulse {
    0%   { box-shadow: 0 0 0 0 rgba(255, 77, 77, .6); }
    70%  { box-shadow: 0 0 0 10px rgba(255, 77, 77, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 77, 77, 0); }
}

.hx-hello { color: var(--pp-gold-light); font-weight: 500; margin: 0 0 6px; }

.hx-title {
    font-family: 'Bebas Neue', sans-serif;
    font-weight: 400;
    font-size: clamp(3.6rem, 17vw, 7.2rem);
    line-height: .88;
    letter-spacing: .5px;
    margin: 0 0 22px;
    color: var(--pp-cream);
}
.hx-line { display: block; opacity: 0; transform: translateY(24px); animation: lineIn .7s cubic-bezier(.2, .7, .2, 1) forwards; }
.hx-line:nth-child(2) { animation-delay: .12s; color: transparent; -webkit-text-stroke: 1.5px rgba(245, 239, 225, .75); }
.hx-line:nth-child(3) { animation-delay: .24s; }
@keyframes lineIn { to { opacity: 1; transform: none; } }
.hx-gold { color: var(--pp-gold); position: relative; display: inline-block; }
.hx-chalk {
    position: absolute;
    left: 0; right: 0; bottom: -4px;
    width: 100%; height: 16px;
    overflow: visible;
}
.hx-chalk path {
    fill: none;
    stroke: #6fb6e6;            /* chalk blue */
    stroke-width: 5;
    stroke-linecap: round;
    stroke-dasharray: 320;
    stroke-dashoffset: 320;
    animation: chalkDraw .8s .8s ease-out forwards;
}
@keyframes chalkDraw { to { stroke-dashoffset: 0; } }

.hx-lead {
    font-size: clamp(1rem, 3.8vw, 1.15rem);
    line-height: 1.65;
    color: rgba(245, 239, 225, .78);
    max-width: 30em;
    margin: 0 0 28px;
}
.hx-ctas { display: flex; flex-direction: column; gap: 14px; }
@media (min-width: 520px) { .hx-ctas { flex-direction: row; flex-wrap: wrap; } }
.hx-ctas-center { justify-content: center; }

/* ============ PLAYABLE TABLE ============ */
.hx-table-wrap { width: 100%; max-width: 420px; margin: 0 auto; }
.tbl {
    position: relative;
    width: 100%;
    aspect-ratio: 5 / 8;
    border-radius: 22px;
    box-shadow: 0 40px 80px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .04);
}
.tbl canvas { display: block; width: 100%; height: 100%; border-radius: 22px; cursor: grab; }
.tbl canvas.is-aiming { cursor: grabbing; }

.tbl-toast {
    position: absolute;
    left: 50%; top: 42%;
    transform: translate(-50%, -50%) scale(.9);
    padding: 8px 18px;
    border-radius: 999px;
    background: rgba(10, 23, 20, .82);
    color: var(--pp-gold-light);
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.6rem;
    letter-spacing: 1px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s, transform .2s;
}
.tbl-toast.show { opacity: 1; transform: translate(-50%, -50%) scale(1); }

.tbl-reward {
    position: absolute;
    left: 50%; bottom: 18%;
    transform: translate(-50%, 20px);
    display: flex; flex-direction: column; align-items: center;
    padding: 14px 22px;
    border-radius: 16px;
    background: var(--pp-gold);
    color: var(--pp-ink);
    text-decoration: none;
    box-shadow: 0 16px 40px rgba(0, 0, 0, .45);
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s, transform .3s;
    white-space: nowrap;
}
.tbl-reward strong { font-family: 'Bebas Neue', sans-serif; font-size: 1.6rem; font-weight: 400; line-height: 1; }
.tbl-reward span { font-weight: 600; font-size: .9rem; }
.tbl-reward.show { opacity: 1; pointer-events: auto; transform: translate(-50%, 0); }
.tbl-reward:hover { color: var(--pp-ink); background: var(--pp-gold-light); }

.tbl-bar {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    margin-top: 14px;
    min-height: 40px;
}
.tbl-potted { display: flex; flex-wrap: wrap; gap: 4px; }
.tbl-potted i {
    width: 16px; height: 16px; border-radius: 50%;
    box-shadow: inset -2px -2px 3px rgba(0, 0, 0, .35);
    animation: pop .3s ease-out;
}
@keyframes pop { from { transform: scale(0); } to { transform: scale(1); } }
.tbl-btn {
    flex-shrink: 0;
    display: inline-flex; align-items: center; gap: 8px;
    min-height: 40px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid rgba(245, 239, 225, .2);
    background: rgba(245, 239, 225, .06);
    color: var(--pp-cream);
    font-size: .85rem;
    font-weight: 500;
}
.tbl-btn:hover { background: rgba(245, 239, 225, .14); }
.tbl-hint {
    margin: 10px 0 0;
    text-align: center;
    font-size: .82rem;
    color: rgba(245, 239, 225, .55);
    transition: opacity .4s;
}
.tbl-hint.is-gone { opacity: 0; }

/* ============ TICKER ============ */
.ticker {
    background: var(--pp-gold);
    color: var(--pp-ink);
    overflow: hidden;
    white-space: nowrap;
    border-block: 2px solid var(--pp-ink);
}
.ticker-track {
    display: inline-flex;
    padding: 12px 0;
    animation: tick 38s linear infinite;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.35rem;
    letter-spacing: 1px;
}
.ticker-track span { padding: 0 22px; display: inline-flex; align-items: center; gap: 22px; }
.ticker-track span::after {
    content: "";
    width: 12px; height: 12px; border-radius: 50%;
    background: var(--pp-ink);
    margin-left: 22px;
}
.ticker-track span.is-live::before {
    content: "LIVE";
    font-size: .8rem;
    background: var(--pp-red-ball);
    color: #fff;
    padding: 2px 7px 0;
    border-radius: 4px;
}
@keyframes tick { to { transform: translateX(-50%); } }

/* ============ SECTIONS (shared) ============ */
.sec { padding: clamp(64px, 10vw, 112px) var(--hx-pad); position: relative; }
.wrap { max-width: 1200px; margin: 0 auto; }
.sec-dark  { background: var(--pp-ink); color: var(--pp-cream); }
.sec-cream { background: var(--pp-cream); color: var(--pp-ink); }
.sec-felt  {
    color: var(--pp-cream);
    background:
        radial-gradient(ellipse 70% 60% at 30% 20%, rgba(31, 144, 97, .55), transparent 70%),
        var(--pp-felt-deep);
}
.sec-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px; margin-bottom: 32px; }
.sec-head-center { flex-direction: column; align-items: center; text-align: center; }
.eyebrow {
    display: inline-block;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--pp-felt);
    margin-bottom: 8px;
}
.sec-dark .eyebrow, .eyebrow-gold { color: var(--pp-gold); }
.sec-title {
    font-family: 'Bebas Neue', sans-serif;
    font-weight: 400;
    font-size: clamp(2.4rem, 9vw, 4rem);
    line-height: .95;
    letter-spacing: .5px;
    margin: 0;
}
.sec-sub { max-width: 34em; margin: 12px auto 0; color: rgba(10, 23, 20, .65); }
.sec-link {
    color: var(--pp-gold);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex; align-items: center; gap: 8px;
    min-height: 44px;
}
.sec-link:hover { color: var(--pp-gold-light); }

/* ============ ON THE TABLE ============ */
.rail {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: min(82%, 300px);
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 4px 4px 18px;
    margin: 0 -4px;
    scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.tcard {
    scroll-snap-align: start;
    display: flex; flex-direction: column;
    border-radius: 18px;
    overflow: hidden;
    background: var(--pp-dark-2);
    border: 1px solid rgba(245, 239, 225, .08);
    color: var(--pp-cream);
    text-decoration: none;
    transition: transform .2s, border-color .2s;
}
.tcard:hover { transform: translateY(-4px); border-color: rgba(224, 182, 89, .45); color: var(--pp-cream); }
.tcard-img {
    position: relative;
    aspect-ratio: 16 / 9;
    background:
        radial-gradient(circle at 50% 40%, rgba(31, 144, 97, .9), var(--pp-felt-deep) 70%);
    overflow: hidden;
}
.tcard-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tcard-img .pball { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 64px; height: 64px; }
.tcard-badge {
    position: absolute; top: 12px; left: 12px;
    display: inline-flex; align-items: center; gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: .72rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
    background: rgba(10, 23, 20, .8);
    color: var(--pp-cream);
}
.tcard-badge.live { background: var(--pp-red-ball); color: #fff; }
.tcard-badge.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: livePulse 1.6s infinite; }
.tcard-badge.upcoming { background: var(--pp-gold); color: var(--pp-ink); }
.tcard-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.tcard-body h3 { font-size: 1.05rem; font-weight: 600; margin: 0; line-height: 1.3; }
.tcard-meta { font-size: .82rem; color: rgba(245, 239, 225, .6); display: flex; flex-wrap: wrap; gap: 4px 12px; }
.tcard-meta i { color: var(--pp-gold); margin-right: 4px; }
.tcard-prog { margin-top: auto; padding-top: 6px; }
.tcard-prog div { height: 6px; border-radius: 6px; background: rgba(245, 239, 225, .1); overflow: hidden; }
.tcard-prog span { display: block; height: 100%; background: linear-gradient(90deg, var(--pp-felt-light), var(--pp-gold)); border-radius: 6px; }
.tcard-prog small { display: block; margin-top: 6px; font-size: .75rem; color: rgba(245, 239, 225, .55); }
.tcard-more {
    align-items: center; justify-content: center; text-align: center; gap: 12px;
    background: transparent;
    border: 2px dashed rgba(224, 182, 89, .35);
    padding: 24px;
    min-height: 200px;
}
.tcard-more i { font-size: 1.8rem; color: var(--pp-gold); }
.tcard-more b { font-family: 'Bebas Neue', sans-serif; font-weight: 400; font-size: 1.6rem; }

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
    gap: 10px;
    margin-top: 28px;
}
.stat {
    padding: 16px 14px;
    border-radius: 16px;
    border: 1px solid rgba(245, 239, 225, .08);
    background: rgba(245, 239, 225, .03);
}
.stat b { display: block; font-family: 'Bebas Neue', sans-serif; font-weight: 400; font-size: clamp(2.2rem, 9vw, 3.2rem); line-height: 1; color: var(--pp-gold); }
.stat span { font-size: .78rem; line-height: 1.3; display: block; color: rgba(245, 239, 225, .65); }

/* ============ POOL BALLS (CSS) ============ */
.pball {
    display: inline-grid;
    place-items: center;
    width: 44px; height: 44px;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: inset -6px -7px 12px rgba(0, 0, 0, .35), inset 4px 5px 10px rgba(255, 255, 255, .25), 0 6px 14px rgba(0, 0, 0, .25);
    position: relative;
}
.pball::after {
    content: "";
    position: absolute;
    top: 16%; left: 22%;
    width: 26%; height: 18%;
    border-radius: 50%;
    background: rgba(255, 255, 255, .55);
    filter: blur(1px);
    transform: rotate(-30deg);
}
.pball i {
    font-style: normal;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: .5em;
    width: 52%; height: 52%;
    border-radius: 50%;
    background: #fff;
    color: var(--pp-ink);
    display: grid; place-items: center;
    line-height: 1;
}
.pball-yellow { background: var(--pp-yellow-ball); }
.pball-red    { background: var(--pp-red-ball); }
.pball-black  { background: #111; }
.pball-lg { width: 72px; height: 72px; font-size: 2rem; }

/* ============ PICK YOUR BALL ============ */
.picker {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    max-width: 560px;
    margin: 0 auto 32px;
}
.pick {
    display: flex; flex-direction: column; align-items: center; gap: 10px;
    padding: 16px 8px 14px;
    border-radius: 18px;
    border: 2px solid transparent;
    background: rgba(10, 23, 20, .05);
    color: var(--pp-ink);
    font-weight: 600;
    transition: background .2s, border-color .2s, transform .2s;
}
.pick .pball { width: 48px; height: 48px; font-size: 1.5rem; transition: transform .35s cubic-bezier(.3, 1.6, .5, 1); }
.pick:hover .pball { transform: rotate(-20deg) scale(1.06); }
.pick.is-on { background: var(--pp-ink); color: var(--pp-cream); border-color: var(--pp-gold); }
.pick.is-on .pball { transform: scale(1.12); }
.pick-label { font-size: .9rem; }

.pane { animation: paneIn .35s ease-out; }
.pane[hidden] { display: none; }
@keyframes paneIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.pane-intro { text-align: center; max-width: 36em; margin: 0 auto 28px; }
.pane-intro h3 { font-size: clamp(1.25rem, 4.6vw, 1.6rem); font-weight: 700; margin: 0 0 8px; }
.pane-intro p { color: rgba(10, 23, 20, .65); margin: 0; }
.feat {
    list-style: none; margin: 0; padding: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}
@media (min-width: 680px) { .feat { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .feat { grid-template-columns: repeat(3, 1fr); } }
.feat li {
    display: flex; gap: 16px; align-items: flex-start;
    padding: 20px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid rgba(10, 23, 20, .06);
    box-shadow: 0 2px 0 rgba(10, 23, 20, .04);
}
.feat li > i {
    flex-shrink: 0;
    width: 44px; height: 44px;
    border-radius: 12px;
    display: grid; place-items: center;
    background: var(--pp-ink);
    color: var(--pp-gold);
    font-size: 1.05rem;
}
.feat h4 { font-size: 1rem; font-weight: 600; margin: 2px 0 4px; }
.feat p { font-size: .9rem; line-height: 1.55; color: rgba(10, 23, 20, .65); margin: 0; }

/* ============ CHEERS ============ */
.cheers-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 900px) { .cheers-grid { grid-template-columns: 1fr 360px; gap: 72px; } }
.cheers-copy .sec-title { margin-bottom: 16px; }
.cheers-copy > p { color: rgba(245, 239, 225, .8); line-height: 1.7; max-width: 32em; margin-bottom: 24px; }
.cheers-steps { list-style: none; padding: 0; margin: 0 0 30px; display: grid; gap: 12px; }
.cheers-steps li { display: flex; align-items: center; gap: 14px; font-weight: 500; }
.cheers-steps b {
    width: 34px; height: 34px; border-radius: 50%;
    display: grid; place-items: center;
    background: var(--pp-cream); color: var(--pp-ink);
    font-size: .9rem;
}

.phone {
    width: min(300px, 84vw);
    margin: 0 auto;
    padding: 12px;
    border-radius: 42px;
    background: #050b09;
    box-shadow: 0 40px 80px rgba(0, 0, 0, .5), inset 0 0 0 2px rgba(255, 255, 255, .06);
    position: relative;
    transform: rotate(3deg);
}
.phone-notch { position: absolute; top: 20px; left: 50%; transform: translateX(-50%); width: 80px; height: 22px; border-radius: 999px; background: #000; z-index: 2; }
.phone-screen {
    position: relative;
    border-radius: 32px;
    overflow: hidden;
    padding: 52px 16px 20px;
    background: var(--pp-dark);
    color: var(--pp-cream);
    min-height: 520px;
    display: flex; flex-direction: column; gap: 14px;
}
.ph-head { text-align: center; font-size: .75rem; letter-spacing: 1.5px; text-transform: uppercase; color: rgba(245, 239, 225, .6); }
.ph-vs { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 6px; }
.ph-p {
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    padding: 12px 6px;
    border-radius: 16px;
    border: 2px solid rgba(245, 239, 225, .08);
    text-align: center;
}
.ph-p.is-picked { border-color: var(--pp-gold); background: rgba(224, 182, 89, .08); }
.ph-p b { font-size: .85rem; }
.ph-p small { font-size: .65rem; color: rgba(245, 239, 225, .55); }
.ph-av { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--pp-felt); font-weight: 700; font-size: .85rem; }
.ph-p:last-child .ph-av { background: #6b2a2a; }
.ph-v { font-family: 'Bebas Neue', sans-serif; font-size: 1.4rem; color: var(--pp-gold); }
.ph-pot { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 14px; border-radius: 14px; background: rgba(245, 239, 225, .05); font-size: .8rem; }
.ph-pot b { font-family: 'Bebas Neue', sans-serif; font-weight: 400; font-size: 1.6rem; color: var(--pp-gold); }
.ph-amts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ph-amts span { text-align: center; padding: 10px 0; border-radius: 12px; border: 1px solid rgba(245, 239, 225, .15); font-weight: 600; font-size: .9rem; }
.ph-amts span.is-on { background: var(--pp-cream); color: var(--pp-ink); border-color: var(--pp-cream); }
.ph-btn { text-align: center; padding: 14px; border-radius: 999px; background: var(--pp-gold); color: var(--pp-ink); font-weight: 700; font-size: .9rem; }
.ph-stk {
    position: absolute; left: 12px; right: 12px; bottom: 14px;
    padding: 16px;
    border-radius: 18px;
    background: #fff;
    color: #222;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, .5);
    animation: stkUp 6s ease-in-out infinite;
}
.ph-stk-title { font-weight: 800; color: #3aa635; letter-spacing: 1px; font-size: .85rem; }
.ph-stk p { margin: 6px 0 12px; font-size: .82rem; }
.ph-pin { display: flex; gap: 8px; }
.ph-pin i { width: 12px; height: 12px; border-radius: 50%; background: #ddd; }
.ph-pin i:nth-child(-n+3) { background: #222; }
@keyframes stkUp {
    0%, 15%  { transform: translateY(130%); }
    30%, 80% { transform: translateY(0); }
    95%, 100%{ transform: translateY(130%); }
}

/* ============ HOW IT WORKS ============ */
.steps {
    list-style: none; margin: 0; padding: 0;
    display: grid; gap: 36px;
    position: relative;
}
@media (min-width: 820px) {
    .steps { grid-template-columns: repeat(3, 1fr); gap: 28px; }
    /* the cue line linking the three balls */
    .steps::before {
        content: "";
        position: absolute;
        top: 36px; left: 16%; right: 16%;
        border-top: 3px dashed rgba(10, 23, 20, .2);
    }
}
.step { text-align: center; position: relative; }
.step .pball { margin-bottom: 18px; }
.step h3 { font-family: 'Bebas Neue', sans-serif; font-weight: 400; font-size: 2rem; margin: 0 0 6px; }
.step p { color: rgba(10, 23, 20, .65); max-width: 22em; margin: 0 auto; line-height: 1.6; }

/* ============ ABOUT ============ */
.about-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .about-grid { grid-template-columns: 1fr 1fr; gap: 72px; } }
.about-quote {
    margin: 0;
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(2.2rem, 8.5vw, 3.6rem);
    line-height: 1;
    color: var(--pp-cream);
    position: relative;
    padding-left: 22px;
    border-left: 5px solid var(--pp-gold);
}
.about-quote cite {
    display: block;
    margin-top: 18px;
    font-family: 'Poppins', sans-serif;
    font-style: normal;
    font-size: .85rem;
    color: rgba(245, 239, 225, .55);
}
.about-copy .sec-title { margin-bottom: 16px; }
.about-copy p { color: rgba(245, 239, 225, .75); line-height: 1.7; }
.chalk-list { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.chalk-list li { display: flex; gap: 12px; align-items: flex-start; }
.chalk-list li::before {
    content: "\f00c";
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    flex-shrink: 0;
    width: 26px; height: 26px; border-radius: 8px;
    display: grid; place-items: center;
    background: rgba(111, 182, 230, .15);
    color: #6fb6e6;
    font-size: .75rem;
}

/* ============ FINAL CTA + CONTACT ============ */
.final {
    text-align: center;
    padding: clamp(36px, 7vw, 64px) 24px;
    border-radius: 28px;
    margin-bottom: clamp(64px, 10vw, 104px);
    color: var(--pp-cream);
    background:
        radial-gradient(circle at 85% 20%, rgba(224, 182, 89, .25), transparent 40%),
        radial-gradient(ellipse at 50% 120%, var(--pp-felt-light), transparent 60%),
        var(--pp-felt-deep);
    box-shadow: inset 0 0 0 10px var(--pp-wood), inset 0 0 0 12px var(--pp-wood-light), 0 30px 60px rgba(10, 23, 20, .25);
}
.final h2 { font-family: 'Bebas Neue', sans-serif; font-weight: 400; font-size: clamp(2.6rem, 10vw, 4.4rem); line-height: .95; margin: 0 0 10px; }
.final p { color: rgba(245, 239, 225, .8); margin: 0 0 24px; }

.reach { display: grid; gap: 12px; max-width: 900px; margin: 0 auto 20px; }
@media (min-width: 760px) { .reach { grid-template-columns: repeat(3, 1fr); } }
.reach-card {
    display: flex; align-items: center; gap: 14px;
    padding: 18px;
    min-height: 72px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid rgba(10, 23, 20, .08);
    color: var(--pp-ink);
    text-decoration: none;
    transition: transform .2s, border-color .2s;
}
.reach-card:hover { transform: translateY(-3px); border-color: var(--pp-felt); color: var(--pp-ink); }
.reach-card > i {
    width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
    display: grid; place-items: center;
    background: var(--pp-ink); color: var(--pp-gold); font-size: 1.1rem;
}
.reach-wa > i { background: #25d366; color: #fff; font-size: 1.4rem; }
.reach-card span { display: flex; flex-direction: column; font-size: .88rem; color: rgba(10, 23, 20, .65); min-width: 0; overflow-wrap: anywhere; }
.reach-card b { color: var(--pp-ink); font-size: 1rem; }

.msg { max-width: 900px; margin: 0 auto; border-radius: 18px; background: #fff; border: 1px solid rgba(10, 23, 20, .08); }
.msg summary {
    cursor: pointer;
    list-style: none;
    padding: 18px 20px;
    min-height: 56px;
    font-weight: 600;
    display: flex; align-items: center; gap: 12px;
}
.msg summary::-webkit-details-marker { display: none; }
.msg summary::after { content: "\f078"; font-family: 'Font Awesome 6 Free'; font-weight: 900; margin-left: auto; font-size: .8rem; transition: transform .2s; }
.msg[open] summary::after { transform: rotate(180deg); }
.msg-form { display: grid; gap: 14px; padding: 0 20px 22px; }
@media (min-width: 680px) { .msg-form { grid-template-columns: 1fr 1fr; } }
.msg-full { grid-column: 1 / -1; }
.msg-form label { display: flex; flex-direction: column; gap: 6px; font-size: .82rem; font-weight: 600; color: rgba(10, 23, 20, .7); }
.msg-form input, .msg-form select, .msg-form textarea {
    font: inherit;
    font-weight: 400;
    font-size: 1rem;          /* 16px stops iOS zooming in */
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(10, 23, 20, .15);
    background: var(--pp-cream);
    color: var(--pp-ink);
}
.msg-form input:focus, .msg-form select:focus, .msg-form textarea:focus {
    outline: none;
    border-color: var(--pp-felt);
    box-shadow: 0 0 0 3px rgba(20, 112, 74, .2);
}

/* ============ PWA MODALS ============ */
.pwa-modal .modal-content { border-radius: 24px; border: none; overflow: hidden; box-shadow: 0 25px 60px rgba(0, 0, 0, .35); }
.pwa-top {
    padding: 40px 30px 30px;
    text-align: center;
    color: var(--pp-cream);
    background: linear-gradient(135deg, var(--pp-ink) 0%, var(--pp-felt) 100%);
}
.pwa-top h4 { font-weight: 700; color: var(--pp-gold); margin: 0 0 6px; }
.pwa-top p { color: rgba(245, 239, 225, .85); margin: 0; font-size: .95rem; }
.pwa-logo { width: 72px; height: 72px; border-radius: 18px; object-fit: cover; box-shadow: 0 8px 25px rgba(0, 0, 0, .3); margin-bottom: 16px; }
.pwa-icon { font-size: 48px; color: var(--pp-gold); margin-bottom: 16px; }
.pwa-body { padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.pwa-wide { width: 100%; }
.pwa-later { min-height: 48px; border-radius: 999px; border: 1px solid #ccc; background: #fff; color: #555; font-weight: 600; }
.pwa-later:hover { background: #f5f5f5; }
.pwa-note { font-size: .78rem; color: #888; text-align: center; margin: 6px 0 0; }

/* ============ MOTION PREFERENCES ============ */
@media (prefers-reduced-motion: reduce) {
    .hx-line, .hx-chalk path { animation: none; opacity: 1; transform: none; stroke-dashoffset: 0; }
    .ticker-track, .ph-stk, .hx-pill.is-live .hx-pill-dot, .tcard-badge.live::before { animation: none; }
    .ph-stk { transform: none; }
}

/* Hero: app store badges under the main buttons */
.hx-app { margin-top: 22px; display: flex; flex-direction: column; gap: 10px; }
.hx-app-label { font-size: 13px; letter-spacing: .4px; opacity: .75; }
.hx-app-label i { margin-right: 4px; }
