/* Landing v2 — extras: preset gallery, TG bot mockup, highlights mockup, 4-step flow.
 * Loaded via @import from components.css so existing template links keep working.
 */

/* ── Preset gallery ───────────────────────────────────────────────── */
.landing-presets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 18px;
    max-width: 1200px;
    margin: 0 auto;
}
.landing-preset {
    margin: 0;
    border: 3px solid var(--ink);
    box-shadow: 6px 6px 0 var(--ink);
    background: var(--paper);
    overflow: hidden;
    transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.landing-preset:hover {
    transform: translate(-2px, -2px) rotate(-0.5deg);
    box-shadow: 8px 8px 0 var(--ink);
}
.landing-preset img {
    display: block;
    width: 100%;
    aspect-ratio: 9 / 16;
    object-fit: cover;
}
.landing-preset figcaption {
    padding: 10px 12px;
    border-top: 3px solid var(--ink);
    background: var(--neon-yellow);
    font-size: 12px;
    line-height: 1.3;
}
.landing-preset figcaption strong {
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 13px;
    margin-bottom: 2px;
}
.landing-preset figcaption span {
    font-family: 'Courier New', ui-monospace, monospace;
    font-size: 10px;
    color: rgba(0, 0, 0, 0.65);
}

/* ── TG bot mockup ────────────────────────────────────────────────── */
.landing-tg-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: clamp(30px, 5vw, 60px);
    align-items: start;
    max-width: 1100px;
    margin: 0 auto;
}
.landing-tg-copy h3 {
    font-size: clamp(22px, 3vw, 32px);
    margin: 0 0 14px;
    line-height: 1.2;
    font-weight: 800;
}
.landing-tg-copy p {
    font-size: 16px;
    line-height: 1.55;
    margin: 0 0 16px;
}
.landing-tg-bullets {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
}
.landing-tg-bullets li {
    padding: 8px 0;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.15);
    font-size: 14px;
}
.landing-tg-bullets code {
    background: var(--ink);
    color: var(--neon-green);
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 12px;
    font-family: 'Courier New', monospace;
}
.landing-tg-note {
    font-size: 13px;
    color: var(--text-muted);
    font-style: italic;
}

.landing-tg-phone {
    display: flex;
    justify-content: center;
}
.landing-tg-phone-frame {
    position: relative;
    width: 320px;
    background: #1a1a1a;
    border: 6px solid #000;
    border-radius: 36px;
    padding: 36px 8px 16px;
    box-shadow: 12px 12px 0 var(--ink);
    overflow: hidden;
}
.landing-tg-phone-notch {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 110px;
    height: 22px;
    background: #000;
    border-radius: 14px;
}
.landing-tg-chat {
    background: #17212b;
    border-radius: 18px;
    padding: 12px 8px;
    max-height: 580px;
    overflow-y: auto;
    font-size: 12px;
    color: #eee;
    font-family: -apple-system, "Segoe UI", system-ui, sans-serif;
}
.landing-tg-chat::-webkit-scrollbar { width: 4px; }
.landing-tg-chat::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 4px; }

.landing-tg-msg {
    margin: 6px 0;
    padding: 8px 10px;
    border-radius: 12px;
    line-height: 1.4;
    max-width: 88%;
    word-wrap: break-word;
}
.landing-tg-msg--user {
    background: #2b5278;
    color: #fff;
    margin-left: auto;
    border-bottom-right-radius: 4px;
    font-family: "Courier New", monospace;
    font-size: 11px;
}
.landing-tg-msg--bot {
    background: #182533;
    color: #eee;
    border-bottom-left-radius: 4px;
}
.landing-tg-msg .dim { color: #6a8aa3; font-size: 11px; }
.landing-tg-card {
    margin-top: 8px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    font-size: 11px;
}
.landing-tg-card--dim { opacity: 0.5; }
.landing-tg-card-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
    font-size: 10px;
    color: #6a8aa3;
}
.landing-tg-card-ts { font-family: "Courier New", monospace; }
.landing-tg-card-score { color: #bef264; font-weight: 700; }
.landing-tg-card i { display: block; margin: 4px 0; }
.landing-tg-card-why {
    font-size: 10px;
    color: #8aa3bd;
    font-family: "Courier New", monospace;
    margin: 4px 0 8px;
}
.landing-tg-buttons { display: flex; gap: 6px; }
.landing-tg-btn {
    flex: 1;
    background: #2b5278;
    color: #fff;
    border: 0;
    padding: 6px 10px;
    font-size: 11px;
    border-radius: 6px;
    cursor: pointer;
    font-family: inherit;
}
.landing-tg-btn--green { background: #44a64f; }

.landing-tg-msg--video { padding-bottom: 4px; }
.landing-tg-video {
    margin-top: 8px;
    border-radius: 8px;
    overflow: hidden;
    background: #000;
    position: relative;
}
.landing-tg-video video {
    display: block;
    width: 100%;
    aspect-ratio: 9 / 16;
    object-fit: cover;
}
.landing-tg-video-cap {
    position: absolute;
    top: 6px;
    left: 6px;
    background: rgba(0,0,0,0.7);
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
}
.landing-tg-link {
    display: block;
    color: #6ab0f3;
    margin-top: 8px;
    font-size: 12px;
    text-decoration: none;
}

@media (max-width: 860px) {
    .landing-tg-grid { grid-template-columns: 1fr; }
    .landing-tg-phone-frame { width: 280px; }
}

/* ── Highlights mockup ────────────────────────────────────────────── */
.landing-hl-mockup {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}
.landing-hl-card {
    border: 3px solid var(--ink);
    box-shadow: 6px 6px 0 var(--ink);
    background: var(--paper);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.landing-hl-card--top {
    box-shadow: 8px 8px 0 var(--neon-pink), 8px 8px 0 4px var(--ink);
}
.landing-hl-thumb {
    aspect-ratio: 16 / 9;
    background-size: cover;
    background-position: center;
    background-color: #000;
    position: relative;
    border-bottom: 3px solid var(--ink);
}
.landing-hl-rank {
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--ink);
    color: var(--neon-yellow);
    padding: 4px 10px;
    font-weight: 900;
    font-size: 14px;
    letter-spacing: 0.04em;
}
.landing-hl-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-family: "Courier New", monospace;
}
.landing-hl-body {
    padding: 14px 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.landing-hl-body h4 {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.25;
}
.landing-hl-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    margin-bottom: 12px;
    color: var(--text-muted);
    font-family: "Courier New", monospace;
}
.landing-hl-score {
    background: var(--neon-green);
    color: var(--ink);
    padding: 2px 8px;
    font-weight: 700;
}
.landing-hl-why {
    list-style: none;
    padding: 0;
    margin: 0 0 14px;
    font-size: 13px;
}
.landing-hl-why li {
    padding: 4px 0;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.1);
}
.landing-hl-why code {
    background: var(--ink);
    color: var(--neon-green);
    padding: 1px 5px;
    font-size: 11px;
    border-radius: 2px;
}
.landing-hl-actions {
    display: flex;
    gap: 8px;
    margin-top: auto;
}
.landing-hl-btn {
    flex: 1;
    border: 2px solid var(--ink);
    background: var(--paper);
    padding: 8px 12px;
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-family: inherit;
    transition: transform 0.05s;
}
.landing-hl-btn:hover { transform: translate(-1px, -1px); }
.landing-hl-btn--primary { background: var(--neon-pink); color: var(--paper); }
.landing-hl-note {
    font-family: 'Courier New', ui-monospace, monospace;
    font-size: 12px;
    letter-spacing: 1.5px;
    color: rgba(0, 0, 0, 0.55);
    margin: 24px 0 0;
    text-align: center;
}

/* ── 4-step flow with arrows ──────────────────────────────────────── */
.landing-flow {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
    gap: 16px;
    align-items: stretch;
    max-width: 1300px;
    margin: 0 auto;
}
.landing-flow-step {
    border: 3px solid var(--ink);
    box-shadow: 6px 6px 0 var(--ink);
    background: var(--paper);
    padding: 18px 16px;
    display: flex;
    flex-direction: column;
}
.landing-flow-icon {
    font-size: 36px;
    margin-bottom: 8px;
    line-height: 1;
}
.landing-flow-num {
    font-family: 'Courier New', monospace;
    font-size: 11px;
    letter-spacing: 0.1em;
    color: var(--neon-pink);
    font-weight: 700;
    margin-bottom: 6px;
}
.landing-flow-step h3 {
    margin: 0 0 10px;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.2;
}
.landing-flow-step p {
    font-size: 13px;
    line-height: 1.5;
    margin: 0 0 12px;
    flex: 1;
}
.landing-flow-mini {
    margin-top: auto;
    background: var(--neon-yellow);
    border: 2px solid var(--ink);
    font-family: 'Courier New', monospace;
    font-size: 11px;
    padding: 6px 10px;
    word-break: break-all;
}
.landing-flow-mini .cursor {
    animation: cl1pper-blink 1s steps(2) infinite;
    color: var(--neon-pink);
}
@keyframes cl1pper-blink { 50% { opacity: 0; } }

.landing-flow-arrow {
    align-self: center;
    font-size: 32px;
    color: var(--neon-pink);
    font-weight: 900;
}

@media (max-width: 1100px) {
    .landing-flow { grid-template-columns: 1fr; }
    .landing-flow-arrow {
        transform: rotate(90deg);
        text-align: center;
        padding: 4px 0;
    }
}
