/* ===========================================
   Maps4FS Landing Page Styles
   (scoped to .m4-* so it won't touch the rest)
   =========================================== */

:root {
    --m4-bg: #020617;
    --m4-card-bg: radial-gradient(circle at top left, #020617 0, #020617 40%, #020617 100%);
    --m4-card-border: rgba(148, 163, 184, 0.28);
    --m4-card-border-active: rgba(74, 222, 128, 0.9);
    --m4-text-main: #e5e7eb;
    --m4-text-muted: #9ca3af;
    --m4-accent: #22c55e;
    --m4-blue: #38bdf8;
    --m4-purple: #a855f7;
    --m4-orange: #fb923c;
    --m4-radius-card: 22px;
    --m4-shadow-soft: 0 24px 60px rgba(15, 23, 42, 0.95);
    --m4-font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.m4-page {
    margin: 32px auto 40px;
    padding: 0 8px;
    max-width: 1200px;
    color: var(--m4-text-main);
    font-family: var(--m4-font-sans);
}

/* HEADER */

.m4-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 28px;
}

.m4-header-left {
    max-width: 720px;
}

.m4-logo-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: radial-gradient(circle at top left, rgba(15, 23, 42, 0.9), rgba(2, 6, 23, 0.95));
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(209, 213, 219, 0.9);
}

.m4-logo-dot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: var(--m4-accent);
    box-shadow: 0 0 0 5px rgba(34, 197, 94, 0.25);
}

.m4-title {
    font-size: clamp(1.8rem, 2.3vw, 2.2rem);
    margin: 10px 0 4px;
}

.m4-subtitle {
    margin: 0;
    font-size: 0.95rem;
    color: var(--m4-text-muted);
    max-width: 640px;
}

.m4-header-right {
    display: flex;
    align-items: flex-start;
}

.m4-link-ghost {
    padding: 7px 14px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.5);
    font-size: 0.8rem;
    text-decoration: none;
    color: #e5e7eb;
    background: rgba(15, 23, 42, 0.8);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.m4-link-ghost:hover {
    border-color: #60a5fa;
    color: #bfdbfe;
}

/* HERO */

.m4-hero {
    display: grid;
    grid-template-columns: minmax(0, 2.1fr) minmax(0, 1.3fr);
    gap: 24px;
    margin-bottom: 32px;
}

.m4-hero-main h2 {
    margin: 8px 0 10px;
    font-size: 1.4rem;
}

.m4-hero-main p {
    margin: 6px 0;
    font-size: 0.9rem;
    color: var(--m4-text-muted);
}

.m4-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 3px 10px;
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    border: 1px solid rgba(148, 163, 184, 0.4);
}

.m4-pill-green {
    border-color: rgba(22, 163, 74, 0.5);
    background: rgba(22, 163, 74, 0.14);
    color: #bbf7d0;
}

.m4-hero-aside {
    border-radius: 18px;
    padding: 14px 16px 16px;
    background: radial-gradient(circle at top, rgba(15, 23, 42, 0.95), rgba(2, 6, 23, 1));
    border: 1px solid rgba(31, 41, 55, 0.9);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.9);
}

.m4-hero-aside h3 {
    margin: 0 0 10px;
    font-size: 0.98rem;
}

.m4-link-list {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.83rem;
}

.m4-link-list li + li {
    margin-top: 4px;
}

.m4-link-list a {
    color: #93c5fd;
    text-decoration: none;
}
.m4-link-list a:hover {
    color: #bfdbfe;
    text-decoration: underline;
}

/* SECTIONS */

.m4-section {
    margin-bottom: 34px;
}

.m4-section-header h2 {
    margin: 0 0 6px;
    font-size: 1.2rem;
}

.m4-section-header p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--m4-text-muted);
}

/* GENERATOR GRID */

.m4-generator-grid {
    margin-top: 18px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.m4-card {
    border-radius: var(--m4-radius-card);
    background: var(--m4-card-bg);
    border: 1px solid var(--m4-card-border);
    box-shadow: var(--m4-shadow-soft);
    padding: 16px 16px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.m4-card:hover {
    border-color: var(--m4-card-border-active);
    box-shadow: 0 0 0 1px rgba(74, 222, 128, 0.7), var(--m4-shadow-soft);
}

.m4-card-tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 4px;
}

.m4-pill-blue {
    border-color: rgba(56, 189, 248, 0.7);
    background: rgba(37, 99, 235, 0.18);
    color: #bfdbfe;
}

.m4-pill-purple {
    border-color: rgba(168, 85, 247, 0.7);
    background: rgba(76, 29, 149, 0.5);
    color: #e9d5ff;
}

.m4-pill-orange {
    border-color: rgba(248, 150, 69, 0.8);
    background: rgba(180, 83, 9, 0.22);
    color: #fed7aa;
}

.m4-pill-outline {
    background: transparent;
    color: var(--m4-text-muted);
    border-style: dashed;
}

.m4-card h3 {
    margin: 0;
    font-size: 1rem;
}

.m4-card-text {
    margin: 0;
    font-size: 0.86rem;
    color: var(--m4-text-muted);
}

.m4-card-list {
    list-style: none;
    padding-left: 0;
    margin: 4px 0 10px;
    font-size: 0.82rem;
    color: var(--m4-text-muted);
}
.m4-card-list li::before {
    content: "•";
    margin-right: 6px;
    color: var(--m4-accent);
}
.m4-card-list li + li {
    margin-top: 2px;
}

/* BUTTONS */

.m4-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: auto;
    padding: 7px 14px;
    border-radius: 999px;
    border: none;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #020617;
    font-size: 0.86rem;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 12px 30px rgba(34, 197, 94, 0.45);
}
.m4-btn-primary:hover {
    filter: brightness(1.05);
}

.m4-card-footnote {
    margin: 8px 0 0;
    font-size: 0.78rem;
    color: rgba(148, 163, 184, 0.95);
}
.m4-card-footnote a {
    color: #93c5fd;
    text-decoration: none;
}
.m4-card-footnote a:hover {
    text-decoration: underline;
}

/* HOW-TO STEPS */

.m4-steps-grid {
    margin-top: 14px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.m4-step {
    border-radius: 18px;
    background: radial-gradient(circle at top left, rgba(15, 23, 42, 0.95), rgba(2, 6, 23, 1));
    border: 1px solid rgba(30, 64, 175, 0.6);
    padding: 12px 12px 12px 14px;
    position: relative;
    overflow: hidden;
}

.m4-step-index {
    position: absolute;
    top: 8px;
    right: 10px;
    font-size: 2.2rem;
    font-weight: 700;
    color: rgba(30, 64, 175, 0.25);
}

.m4-step h3 {
    margin: 0 0 6px;
    font-size: 0.92rem;
}

.m4-step p {
    margin: 0;
    font-size: 0.82rem;
    color: var(--m4-text-muted);
}

.m4-step-list {
    margin: 6px 0 0 0;
    padding-left: 18px;
    font-size: 0.8rem;
    color: var(--m4-text-muted);
}

/* LOCAL FOOTER */

.m4-footer {
    margin-top: 10px;
    padding-top: 14px;
    border-top: 1px solid rgba(31, 41, 55, 0.9);
    font-size: 0.8rem;
    color: rgba(148, 163, 184, 0.9);
}
.m4-footer a {
    color: #93c5fd;
    text-decoration: none;
}
.m4-footer a:hover {
    text-decoration: underline;
}

/* RESPONSIVE */

@media (max-width: 1024px) {
    .m4-generator-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .m4-hero {
        grid-template-columns: minmax(0, 1fr);
    }
    .m4-steps-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .m4-page {
        margin: 24px auto 32px;
        padding: 0 4px;
    }
    .m4-header {
        flex-direction: column;
        align-items: stretch;
    }
    .m4-generator-grid {
        grid-template-columns: minmax(0, 1fr);
    }
    .m4-steps-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}
