:root {
    color-scheme: dark;
    --bg: #0b0b14;
    --surface: #151521;
    --surface-2: #1b1229;
    --border: rgba(147, 51, 234, 0.22);
    --border-strong: rgba(147, 51, 234, 0.45);
    --text: #ffffff;
    --text-soft: #e0e0ff;
    --text-muted: #a0a0c0;
    --text-dim: #8080a0;
    --purple-500: #a855f7;
    --purple-400: #c084fc;
    --purple-grad: linear-gradient(135deg, #9333ea, #7e22ce);
}

* { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}

/* Custom scrollbar + .pokemon-logo come from ../assets/css/style.css */
html, body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--text-soft);
    font-family: 'Inter', 'Segoe UI', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    line-height: 1.55;
    font-size: 15px;
}
section[id] { scroll-margin-top: 80px; }

a { color: var(--purple-400); text-decoration: none; }
a:hover { color: var(--text); }

.wrap {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 20px;
}
.install .wrap,
.cta .wrap,
.footer .wrap,
.top .wrap {
    max-width: 780px;
}

/* Site nav and .pokemon-logo supplied by /assets/css/style.css */

/* Subpage breadcrumb strip under the nav */
body { padding-top: 72px; }
.subpage-head {
    border-bottom: 1px solid var(--border);
    background: rgba(15, 15, 24, 0.6);
}
.subpage-head .wrap {
    display: flex;
    align-items: center;
    padding-top: 12px;
    padding-bottom: 12px;
}
.crumb {
    font-size: 12.5px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}
.crumb a { color: var(--purple-400); text-decoration: none; }
.crumb a:hover { color: var(--text); }
.crumb span[aria-hidden] { color: var(--text-dim); }

/* Hero */
.hero {
    padding: 64px 0 48px;
    background-image:
        radial-gradient(ellipse at top, rgba(147, 51, 234, 0.22) 0%, transparent 60%),
        radial-gradient(ellipse at bottom right, rgba(126, 34, 206, 0.14) 0%, transparent 70%);
    text-align: center;
}
.hero h1 {
    font-size: 48px;        /* text-5xl — matches poke-alerts.com */
    font-weight: 700;
    line-height: 1.25;      /* leading-tight */
    letter-spacing: -0.02em;
    color: var(--text);
    margin: 0 0 16px;
}
@media (min-width: 1024px) {
    .hero h1 { font-size: 60px; } /* lg:text-6xl */
}
.gradient-text {
    background: linear-gradient(to right, #c084fc, #9333ea);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}
.lede {
    font-size: 16px;
    color: var(--text-muted);
    max-width: 520px;
    margin: 0 auto 22px;
}
.cta-row {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}
.meta {
    margin-top: 14px;
    font-size: 12px;
    color: var(--text-dim);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 13.5px;
    text-decoration: none;
    transition: filter 0.15s, transform 0.1s, border-color 0.15s, background 0.15s;
    border: 1px solid transparent;
    font-family: inherit;
    cursor: pointer;
}
.btn.primary {
    background: var(--purple-grad);
    color: white;
    box-shadow: 0 4px 14px rgba(147, 51, 234, 0.4);
}
.btn.primary:hover { filter: brightness(1.1); color: white; }
.btn.ghost {
    background: transparent;
    color: var(--text-soft);
    border-color: var(--border-strong);
}
.btn.ghost:hover { background: rgba(147, 51, 234, 0.12); color: var(--text); }
.btn.sm { padding: 7px 12px; font-size: 12px; margin-top: 10px; }
.btn:active { transform: translateY(1px); }

/* Sections */
.section { padding: 48px 0; }
.section h2 {
    font-size: 36px;        /* text-4xl — matches poke-alerts.com */
    font-weight: 700;
    color: var(--text);
    margin: 0 0 16px;
    letter-spacing: -0.02em;
    line-height: 1.2;
}
@media (max-width: 640px) {
    .section h2 { font-size: 28px; }
}
.lede-sm {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0 0 24px;
}

/* Carousel */
.carousel {
    --slide-radius: 14px;
}
.carousel-stage {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}
.carousel-track {
    position: relative;
    flex: 1;
    min-height: 460px;
}
.slide {
    position: absolute;
    inset: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    align-items: center;
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
}
.slide.active { opacity: 1; pointer-events: auto; }
.slide:nth-child(even) .slide-frame { order: 2; }
.slide-frame {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 18px;
    background:
        radial-gradient(ellipse at top, rgba(147, 51, 234, 0.22), transparent 65%),
        linear-gradient(180deg, var(--surface-2), var(--surface));
    border: 1px solid var(--border);
    border-radius: var(--slide-radius);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(168, 85, 247, 0.1) inset;
}
.slide-frame img {
    max-width: 100%;
    max-height: 420px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}
.slide figcaption { padding: 10px 4px; }
.cap-h {
    color: var(--text);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}
.cap-d {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.55;
}

.carousel-arrow {
    all: unset;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--surface-2);
    border: 1px solid var(--border-strong);
    color: var(--text-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.15s, color 0.15s, transform 0.1s;
    z-index: 2;
}
.carousel-arrow:hover {
    background: rgba(147, 51, 234, 0.2);
    color: var(--text);
}
.carousel-arrow:active { transform: scale(0.95); }
.carousel-arrow svg { width: 16px; height: 16px; }

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 18px;
}
.dot {
    all: unset;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-dim);
    cursor: pointer;
    transition: background 0.15s, transform 0.15s;
    opacity: 0.5;
}
.dot:hover { opacity: 1; }
.dot.active {
    background: var(--purple-400);
    opacity: 1;
    transform: scale(1.2);
    box-shadow: 0 0 8px rgba(168, 85, 247, 0.6);
}

/* Install steps */
.install { background: linear-gradient(180deg, transparent, rgba(147, 51, 234, 0.04)); }
.steps {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.steps li {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 14px 16px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
}
.n {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--purple-grad);
    color: white;
    font-weight: 700;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(147, 51, 234, 0.4);
}
.steps .t {
    color: var(--text);
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 4px;
}
.steps .d {
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.5;
}
.steps .d em { color: var(--text-soft); font-style: normal; font-weight: 500; }
.steps .d strong { color: var(--text); font-weight: 600; }
code {
    font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
    font-size: 12px;
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 1px 6px;
    border-radius: 4px;
    color: var(--text-soft);
}
code.block {
    display: block;
    margin: 6px 0;
    padding: 6px 10px;
    font-size: 12.5px;
}

.step-body { flex: 1; min-width: 0; }
.step-shot {
    margin: 12px 0 0;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--bg);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.5);
}
.step-shot img {
    display: block;
    width: 100%;
    height: auto;
}

.tip {
    margin-top: 8px;
    padding: 12px 14px;
    background: var(--surface-2);
    border: 1px dashed var(--border);
    border-radius: 8px;
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
}
.tip strong { color: var(--text); }

/* CTA */
.cta { padding: 20px 0 60px; }
.cta-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    background:
        linear-gradient(135deg, rgba(147, 51, 234, 0.18), rgba(147, 51, 234, 0.05)),
        var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: 12px;
    padding: 20px 22px;
}
.cta-t {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.01em;
}
.cta-s { font-size: 13px; color: var(--text-muted); margin-top: 2px; }

/* Footer */
.footer {
    border-top: 1px solid var(--border);
    padding: 18px 0 28px;
    color: var(--text-dim);
    font-size: 12px;
}
.footer .wrap { display: flex; justify-content: space-between; align-items: center; }
.footer nav { display: flex; gap: 16px; }
.footer a { color: var(--text-dim); }
.footer a:hover { color: var(--purple-400); }

/* Back-to-top button supplied by vanilla-back-to-top (styled via totop.js) */

/* Responsive */
@media (max-width: 720px) {
    .hero { padding: 44px 0 36px; }
    .hero h1 { font-size: 30px; }
    .lede { font-size: 14.5px; }
    .section { padding: 36px 0; }
    .slide { grid-template-columns: 1fr; gap: 16px; }
    .carousel-track { min-height: 600px; }
    .slide-frame img { max-height: 280px; }
    .cap-h { font-size: 18px; }
    .cta-box { flex-direction: column; text-align: center; }
    .footer .wrap { flex-direction: column; gap: 10px; }
    .nav { gap: 14px; font-size: 12.5px; }
}
