/* ════════════════════════════════════════════════════════════════
   Flopnado: homepage styles
   White page, black text, the logo's blue for buttons.
   Only the homepage uses this file. The other pages use style.css.
   ════════════════════════════════════════════════════════════════ */

:root {
    --bg:      #ffffff;
    --bg-soft: #f5f6f8;
    --ink:     #111418;
    --muted:   #5b6370;
    --line:    #e3e6eb;
    --blue:    #044396;
    --blue-dk: #03316f;
    --blue-lt: #e8eef8;
    --top-h:   58px;
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-padding-top: 20px; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--blue); }
a:hover { color: var(--blue-dk); }

h1, h2, h3 {
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin: 0;
}

/* ── Buttons ── */
.btn {
    display: inline-block;
    background: var(--blue);
    color: #fff;
    border: 0;
    border-radius: 8px;
    padding: 12px 24px;
    font: 600 16px/1.2 var(--font);
    text-decoration: none;
    cursor: pointer;
}
.btn:hover { background: var(--blue-dk); color: #fff; }
.btn:disabled { opacity: .6; cursor: default; }
.btn-line {
    background: #fff;
    color: var(--ink);
    box-shadow: inset 0 0 0 1px #c9ced6;
}
.btn-line:hover { background: var(--bg-soft); color: var(--ink); }
.btn-small { padding: 8px 16px; font-size: 15px; }

/* ── Top bar ──
   Stays at the top. home.js slides it away while you scroll down
   and brings it back as soon as you scroll up. */
.top {
    position: sticky;
    top: 0;
    z-index: 20;
    height: var(--top-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 0 max(16px, 3vw);
    background: #fff;
    border-bottom: 1px solid transparent;
    transition: transform .25s ease, border-color .2s;
}
.top.scrolled { border-bottom-color: var(--line); }
.top.is-hidden { transform: translateY(-100%); }
.brand {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--ink);
    text-decoration: none;
    font-weight: 700;
    font-size: 19px;
    letter-spacing: -0.01em;
}
.top-links { display: flex; align-items: center; gap: 24px; }
.top-links a:not(.btn) { color: var(--muted); text-decoration: none; font-size: 15px; }
.top-links a:not(.btn):hover { color: var(--ink); }
@media (max-width: 640px) {
    .top-hide-sm { display: none; }
    .top-links { gap: 16px; }
}

/* ── Opening ── */
.intro {
    max-width: 780px;
    margin: 0 auto;
    padding: clamp(56px, 11vh, 110px) 20px clamp(40px, 7vh, 72px);
    text-align: center;
}
.intro h1 { font-size: clamp(36px, 5.4vw, 60px); }
/* The big "free forever" line, used in the opening and in Try it free */
.free-box {
    display: inline-block;
    margin: 24px 0 0;
    padding: 16px 28px;
    border-radius: 10px;
    background: var(--blue);
    color: #fff;
    font-size: clamp(20px, 2.5vw, 28px);
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.01em;
    box-shadow: 0 10px 30px -10px rgba(4, 67, 150, .55);
}
.intro-sub {
    margin: 14px 0 0;
    font-size: clamp(17px, 2vw, 20px);
    color: var(--muted);
}
.intro-buttons {
    margin-top: 28px;
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}
.intro-rules {
    max-width: 560px;
    margin: 32px auto 0;
    font-size: 14.5px;
    color: var(--muted);
}

/* ════════════════════════════════════════════════════════════════
   THE SCREENSHOTS
   Without scripts (or with reduced motion) they sit one under the
   other. home.js adds .is-live to <html>, which turns the section
   into a tall track with a fixed stage that the slides move across.
   ════════════════════════════════════════════════════════════════ */

.story { position: relative; }
.story-mark { position: absolute; left: 0; top: 0; }

/* Plain layout: caption, then screenshot, repeated */
.stage {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px 40px;
    display: flex;
    flex-direction: column;
}
/* home.js puts each caption above its screenshot with "order" */
.captions, .frame-area, .frame { display: contents; }
.sites { order: 999; }

.cap { margin: 56px 0 16px; text-align: center; }
.cap .tag {
    display: inline-block;
    margin: 0 10px 0 0;
    padding: 2px 10px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    vertical-align: 4px;
    background: var(--blue-lt);
    color: var(--blue-dk);
}
.cap[data-kind="paid"] .tag { background: var(--bg-soft); color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); }
.cap h2 { display: inline; font-size: clamp(22px, 2.4vw, 30px); }
.cap p:not(.tag) { margin: 6px auto 0; max-width: 980px; color: var(--muted); font-size: 16.5px; }

.cap-link { font-weight: 600; white-space: nowrap; color: var(--blue); }
.shot { margin: 0; }
.shot img, .paid-card {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, .08), 0 12px 32px -12px rgba(0, 0, 0, .25);
}
.shot img { aspect-ratio: 16 / 9; background: var(--bg-soft); }

/* The paid tools card, shown in place of a screenshot */
.paid-card {
    aspect-ratio: 16 / 9;
    background: var(--bg-soft);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 4%;
    container-type: inline-size;
}
.paid-price { margin: 0; font-weight: 700; letter-spacing: -0.02em; font-size: clamp(18px, 4.4cqw, 44px); line-height: 1.2; }
.paid-card ul {
    list-style: none;
    margin: 2.6cqw 0 3cqw;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1cqw 6cqw;
    font-size: clamp(12px, 2cqw, 21px);
    text-align: left;
}
.paid-card li::before { content: "✓"; color: var(--blue); font-weight: 700; margin-right: .6em; }
/* The lock notice: big and hard to miss */
.lock-box {
    margin: 0;
    max-width: 92%;
    padding: 1.6cqw 2.6cqw;
    border-radius: 10px;
    background: #fff4d1;
    border: 2px solid #e9b62c;
    color: #4a3500;
    font-weight: 700;
    font-size: clamp(13px, 2.3cqw, 24px);
    line-height: 1.35;
}

/* The poker sites roll */
.sites {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 40px;
}
.sites-label {
    margin: 0;
    flex: none;
    font-size: 13px;
    color: var(--muted);
}
.sites-window {
    flex: 1;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
            mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.sites-roll {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    width: max-content;
    animation: roll 50s linear infinite;
}
.sites-roll li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-right: 40px;
    font-size: 14px;
    color: var(--ink);
    white-space: nowrap;
}
.sites-roll img {
    height: 24px;
    width: auto;
    max-width: 80px;
    object-fit: contain;
    border-radius: 4px;
}
@keyframes roll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .sites-roll { animation-duration: 140s; } }

/* ── Live, scroll driven layout ── */
html.is-live .story { overflow: clip; }
html.is-live .story-mark { top: calc(var(--i) * var(--step, 100vh)); }
html.is-live .stage {
    position: sticky;
    top: 0;
    height: 100vh;
    height: 100svh;
    max-width: none;
    padding: 14px 12px 10px;
}
html.is-live .captions {
    display: block;
    position: relative;
    flex: none;
    height: 96px;
}
html.is-live .cap {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    margin: 0;
    opacity: 0;
    will-change: opacity;
}
html.is-live .frame-area {
    flex: 1;
    min-height: 0;
    margin-top: 12px;
    container-type: size;
    display: flex;
    align-items: center;
    justify-content: center;
}
html.is-live .frame {
    display: block;
    position: relative;
    width: min(100cqw, 100cqh * 16 / 9);
    aspect-ratio: 16 / 9;
}
html.is-live .shot {
    position: absolute;
    inset: 0;
    will-change: transform;
    backface-visibility: hidden;
}
html.is-live .shot img { width: 100%; height: 100%; object-fit: cover; }
html.is-live .paid-card { height: 100%; }
html.is-live .sites { margin-top: 10px; flex: none; }

@media (max-width: 700px) {
    html.is-live .captions { height: 150px; }
    .cap .tag { display: table; margin: 0 auto 6px; }
    .cap h2 { display: block; font-size: 23px; }
    .cap p:not(.tag) { font-size: 15px; }
    .sites-label { display: none; }
}

/* ════════════════════════════════════════════════════════════════
   TRY IT
   ════════════════════════════════════════════════════════════════ */
.try {
    background: var(--bg-soft);
    border-top: 1px solid var(--line);
    padding: clamp(60px, 9vh, 100px) max(16px, 3vw);
}
.try-head { max-width: 640px; margin: 0 auto; text-align: center; }
.try-head h2 { font-size: clamp(32px, 4.4vw, 46px); }
.try-head p { margin: 14px 0 0; color: var(--muted); font-size: 18px; }

.steps {
    max-width: 1120px;
    margin: 44px auto 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    align-items: start;
}
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; max-width: 520px; } }

.step {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 26px 24px;
    scroll-margin-top: 24px;
}
.step h3 { font-size: 21px; margin-bottom: 14px; }
.step p { margin: 0 0 16px; }
.step .small { margin: 16px 0 0; font-size: 13.5px; color: var(--muted); line-height: 1.5; }

.dl-list { display: grid; gap: 10px; }
.dl {
    display: block;
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid #c9ced6;
    text-decoration: none;
    color: var(--ink);
}
.dl:hover { border-color: var(--blue); background: var(--blue-lt); color: var(--ink); }
.dl-name { display: block; font-weight: 600; }
.dl-note { display: block; font-size: 13.5px; color: var(--muted); }

.trial-form { display: grid; gap: 12px; }
.trial-form input {
    width: 100%;
    padding: 12px 14px;
    border-radius: 8px;
    border: 1px solid #c9ced6;
    background: #fff;
    font: 16px var(--font);
    color: var(--ink);
}
.trial-form input:focus { outline: 2px solid var(--blue); outline-offset: -1px; border-color: var(--blue); }
.h-captcha { min-height: 78px; }

.msg-box { display: none; margin-top: 14px; padding: 12px 14px; border-radius: 8px; font-size: 15px; }
.msg-box.success { display: block; background: #e7f5ec; color: #1d6b3a; }
.msg-box.error { display: block; background: #fdeaea; color: #a32020; }

.price { font-size: 44px; font-weight: 700; letter-spacing: -0.02em; line-height: 1; margin: 2px 0 16px !important; }
.price span { font-size: 16px; font-weight: 400; letter-spacing: 0; color: var(--muted); }

.notes {
    max-width: 680px;
    margin: 36px auto 0;
    text-align: center;
    font-size: 15px;
    color: var(--muted);
}
.notes p { margin: 6px 0; }
.notes b { color: var(--ink); font-weight: 600; }

/* ── Footer ── */
.foot {
    padding: 36px max(16px, 3vw) 44px;
    text-align: center;
    font-size: 13.5px;
    color: var(--muted);
    border-top: 1px solid var(--line);
}
.foot-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 22px;
    margin-bottom: 16px;
    font-size: 15px;
}
.foot-links a { color: var(--ink); text-decoration: none; }
.foot-links a:hover { color: var(--blue); }
.foot p { margin: 4px 0; }

.try-head .free-box { color: #fff; font-size: clamp(20px, 2.5vw, 28px); margin: 22px 0 6px; }
