/* ============================================================
   Marketing / landing components for PlayingCardGames.net
   Tuned to the site palette declared in css/app.css.
   ============================================================ */

:root {
    --brand: #1f5eff;
    --brand-2: #0ea5a6;

    /* Supporting tokens used by the landing components. */
    --surface-2: #f0f3f9;
    --border-strong: #c3cad6;
    --shadow-sm: 0 1px 2px rgba(20, 28, 45, .06), 0 1px 3px rgba(20, 28, 45, .08);
    --shadow: 0 18px 40px -18px rgba(20, 28, 45, .35);
    --shadow-lg: 0 40px 80px -32px rgba(20, 28, 45, .45);
    --maxw: 1120px;
}

body { overflow-x: hidden; }

/* full-bleed escape hatch for a section inside .container */
.bleed {
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

/* --- Hero --- */
.lp-hero {
    position: relative;
    overflow: hidden;
    margin-top: -28px;
    padding: clamp(80px, 9vw, 128px) 24px clamp(64px, 8vw, 112px);
    background:
        radial-gradient(60% 90% at 12% 0%, color-mix(in srgb, var(--brand) 22%, transparent), transparent 70%),
        radial-gradient(55% 80% at 92% 8%, color-mix(in srgb, var(--brand-2) 22%, transparent), transparent 70%),
        linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
    border-bottom: 1px solid var(--border);
}
.lp-hero .inner { max-width: var(--maxw); margin: 0 auto; }
.lp-hero-grid {
    display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 64px); align-items: center;
}
.lp-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 7px 14px; border-radius: 999px;
    background: color-mix(in srgb, var(--brand) 12%, var(--surface));
    border: 1px solid color-mix(in srgb, var(--brand) 26%, transparent);
    color: var(--brand); font-weight: 700; font-size: .8rem; letter-spacing: .02em;
    text-transform: uppercase;
}
.lp-title {
    font-size: clamp(2.1rem, 4.4vw, 3.3rem);
    line-height: 1.05; letter-spacing: -.035em; font-weight: 800;
    margin: 20px 0 0;
}
.lp-title .grad {
    background: linear-gradient(100deg, var(--brand), color-mix(in srgb, var(--brand-2) 62%, #0b1220));
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lp-lead { font-size: clamp(1.02rem, 1.7vw, 1.18rem); color: var(--muted); margin-top: 18px; max-width: 54ch; }
.lp-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.lp-note { margin-top: 16px; color: var(--muted); font-size: .88rem; display: flex; align-items: center; gap: 8px; }
.lp-note::before { content: "✓"; color: var(--ok); font-weight: 800; }

/* faux product panel */
.lp-panel {
    border-radius: 18px; background: var(--surface);
    border: 1px solid var(--border); box-shadow: var(--shadow-lg);
    overflow: hidden;
}
.lp-panel .bar {
    display: flex; align-items: center; gap: 6px;
    padding: 11px 14px; border-bottom: 1px solid var(--border); background: var(--surface-2);
}
.lp-panel .bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); display: inline-block; }
.lp-panel .bar i:nth-child(1) { background: #ff5f57; }
.lp-panel .bar i:nth-child(2) { background: #febc2e; }
.lp-panel .bar i:nth-child(3) { background: #28c840; }
.lp-panel .bar span { margin-left: 8px; font-size: .78rem; color: var(--muted); font-weight: 600; }
.lp-panel .body { padding: 18px; display: grid; gap: 12px; }
.lp-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.lp-row .dot { width: 34px; height: 34px; border-radius: 9px; flex: none; display: grid; place-items: center; font-size: 1rem; background: color-mix(in srgb, var(--brand) 12%, var(--surface)); }
.lp-row .lines { flex: 1; }
.lp-row .lines b { display: block; font-size: .9rem; }
.lp-row .lines span { display: block; height: 8px; border-radius: 4px; background: var(--surface-2); margin-top: 6px; }
.lp-row .lines span.short { width: 55%; }
.lp-tile { height: 60px; border-radius: 12px; background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 16%, var(--surface)), color-mix(in srgb, var(--brand-2) 16%, var(--surface))); border: 1px solid var(--border); }

/* --- value strip --- */
.lp-values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: -34px; position: relative; z-index: 2; }
.lp-value { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.lp-value h3 { display: flex; align-items: center; gap: 9px; }
.lp-value h3 .ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: color-mix(in srgb, var(--brand) 12%, var(--surface)); color: var(--brand); }
.lp-value p { margin: 6px 0 0; color: var(--muted); font-size: .92rem; }

/* --- generic section --- */
.lp-section { padding: clamp(52px, 7vw, 88px) 24px; }
.lp-section.alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.lp-head { max-width: 720px; margin: 0 auto 40px; text-align: center; }
.lp-head .kicker { color: var(--brand); font-weight: 800; text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; }
.lp-head h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); letter-spacing: -.03em; margin: 10px 0 0; }
.lp-head p { color: var(--muted); margin: 12px 0 0; font-size: 1.02rem; }

/* --- steps --- */
.lp-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.lp-step { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); }
.lp-step .num {
    width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; font-weight: 800;
    background: linear-gradient(135deg, var(--brand), color-mix(in srgb, var(--brand-2) 22%, var(--brand))); color: #fff; box-shadow: 0 10px 22px -12px var(--brand);
}
.lp-step h3 { margin: 16px 0 6px; }
.lp-step p { margin: 0; color: var(--muted); font-size: .93rem; }

/* --- feature grid --- */
.lp-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.lp-feature { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); transition: transform .18s, border-color .18s, box-shadow .18s; }
.lp-feature:hover { transform: translateY(-3px); border-color: var(--border-strong); box-shadow: var(--shadow); }
.lp-feature .ic { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; font-size: 1.15rem; background: color-mix(in srgb, var(--brand) 12%, var(--surface)); }
.lp-feature h3 { margin: 15px 0 6px; }
.lp-feature p { margin: 0; color: var(--muted); font-size: .92rem; }

/* --- split content --- */
.lp-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 60px); align-items: center; }
.lp-split.rev .lp-split-media { order: -1; }
.lp-split h2 { font-size: clamp(1.5rem, 2.6vw, 2.05rem); letter-spacing: -.03em; }
.lp-split p { color: var(--muted); font-size: 1.02rem; }
.lp-checks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.lp-checks li { position: relative; padding-left: 34px; color: var(--text); font-size: .96rem; }
.lp-checks li::before {
    content: "✓"; position: absolute; left: 0; top: 1px;
    width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center;
    background: color-mix(in srgb, var(--ok) 16%, var(--surface)); color: var(--ok); font-weight: 800; font-size: .8rem;
}
.lp-media {
    border-radius: 18px; padding: 22px; background: var(--surface);
    border: 1px solid var(--border); box-shadow: var(--shadow);
}
.lp-media .lp-tile { height: 130px; margin-bottom: 12px; }

/* --- tools tiles --- */
.lp-tools { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.lp-tool { display: block; text-decoration: none; color: inherit; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm); transition: .18s; }
.lp-tool:hover { transform: translateY(-3px); border-color: var(--brand); box-shadow: var(--shadow); }
.lp-tool b { display: block; }
.lp-tool span { color: var(--muted); font-size: .88rem; }
.lp-tool .go { color: var(--brand); font-weight: 700; font-size: .88rem; margin-top: 10px; display: inline-block; }

/* --- FAQ --- */
.lp-faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.lp-faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 4px 20px; box-shadow: var(--shadow-sm); }
.lp-faq summary { cursor: pointer; font-weight: 700; padding: 15px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary::after { content: "+"; color: var(--brand); font-weight: 800; font-size: 1.2rem; }
.lp-faq details[open] summary::after { content: "–"; }
.lp-faq p { margin: 0 0 16px; color: var(--muted); }

/* --- final CTA band --- */
.lp-cta-band {
    border-radius: 24px; padding: clamp(34px, 5vw, 60px); text-align: center; position: relative; overflow: hidden;
    background: linear-gradient(135deg, var(--brand), color-mix(in srgb, var(--brand-2) 22%, var(--brand))); color: #fff; box-shadow: var(--shadow-lg);
}
.lp-cta-band h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); letter-spacing: -.03em; margin: 0 0 12px; }
.lp-cta-band p { margin: 0 auto 26px; max-width: 52ch; opacity: .92; }
.lp-cta-band .btn { background: #fff; color: var(--brand); box-shadow: 0 14px 30px -14px rgba(0,0,0,.4); }
.lp-cta-band .btn.secondary { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }

/* --- misc --- */
.lp-center { text-align: center; }
.lp-mt { margin-top: 34px; }
.lp-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.lp-kpi { text-align: center; padding: 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.lp-kpi b { display: block; font-size: 1.9rem; letter-spacing: -.02em; background: linear-gradient(120deg, var(--brand), color-mix(in srgb, var(--brand-2) 62%, #0b1220)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lp-kpi span { color: var(--muted); font-size: .85rem; font-weight: 600; }

/* --- responsive --- */
@media (max-width: 900px) {
    .lp-hero-grid { grid-template-columns: 1fr; }
    .lp-hero .lp-panel { order: -1; }
    .lp-values, .lp-steps, .lp-features, .lp-tools, .lp-kpis { grid-template-columns: 1fr 1fr; }
    .lp-split { grid-template-columns: 1fr; }
    .lp-split.rev .lp-split-media { order: 0; }
}
@media (max-width: 620px) {
    .lp-values, .lp-steps, .lp-features, .lp-tools, .lp-kpis { grid-template-columns: 1fr; }
    nav.site { width: 100%; }
    header.site .inner { gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; scroll-behavior: auto; }
}
