/* ==========================================================================
   Mota-SEO landing page (home) + shared header/footer touches
   ========================================================================== */
:root {
    --ms-red: #ef2b4b;
    --ms-red-dark: #d81f3e;
    --ms-red-soft: #fff0f2;
    --ms-orange: #ff9a3c;
    --ms-ink: #141a2b;
    --ms-text: #5b6375;
    --ms-muted: #8a91a2;
    --ms-line: #eceef3;
    --ms-card: #ffffff;
    --ms-bg-pink: #fff5f7;
    --ms-green: #16a34a;
    --ms-amber: #f5b301;
    --ms-purple: #6d5dfc;
    --ms-shadow: 0 10px 30px rgba(20, 26, 43, .07);
    --ms-shadow-lg: 0 30px 60px rgba(20, 26, 43, .14);
}

html.dark {
    --ms-ink: #f3f4f8;
    --ms-text: #b4b9c6;
    --ms-muted: #8d93a3;
    --ms-line: #2b3040;
    --ms-card: #1b2030;
    --ms-bg-pink: #1f1a24;
    --ms-red-soft: #3a1a22;
    --ms-shadow: 0 10px 30px rgba(0, 0, 0, .35);
    --ms-shadow-lg: 0 30px 60px rgba(0, 0, 0, .5);
}

.ms-page { color: var(--ms-text); overflow-x: hidden; }
.ms-page h1, .ms-page h2, .ms-page h3, .ms-page h4 { color: var(--ms-ink); letter-spacing: -.02em; }
.ms-red { color: var(--ms-red) !important; }

/* Buttons */
.ms-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
    height: 48px; padding: 0 1.5rem; border-radius: 8px; border: 1.5px solid var(--ms-red);
    font-weight: 600; font-size: 1rem; line-height: 1; text-decoration: none !important; white-space: nowrap;
    transition: background-color .2s, color .2s, box-shadow .2s, transform .2s;
}
.ms-btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.ms-btn-primary { background: var(--ms-red); color: #fff !important; box-shadow: 0 8px 20px rgba(239, 43, 75, .28); }
.ms-btn-primary:hover { background: var(--ms-red-dark); border-color: var(--ms-red-dark); transform: translateY(-1px); }
.ms-btn-outline { background: transparent; color: var(--ms-red) !important; }
.ms-btn-outline:hover { background: var(--ms-red-soft); }
.ms-btn-sm { height: 38px; padding: 0 1.1rem; font-size: .9rem; border-radius: 7px; }

/* Pill label above headings */
.ms-pill {
    display: inline-block; padding: .28rem .95rem; border: 1px solid #ffb8c4; border-radius: 999px;
    background: var(--ms-red-soft); color: var(--ms-red); font-size: .8rem; font-weight: 600;
    letter-spacing: .03em; text-transform: uppercase; line-height: 1.4;
}
.ms-pill-lc { text-transform: none; letter-spacing: 0; font-size: .82rem; }

.ms-section { padding: 3.2rem 0; position: relative; }
.ms-section-title { font-size: 2.05rem; font-weight: 700; line-height: 1.15; margin: .8rem 0 .7rem; }
.ms-title-lg { font-size: 2.55rem; }
.ms-lead { font-size: 1.12rem; line-height: 1.6; color: var(--ms-text); }

/* ---------- Hero ---------- */
.ms-hero { padding: 3.4rem 0 2.6rem; position: relative; }
.ms-hero::before {
    content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
    background:
        radial-gradient(420px 420px at 70% 30%, rgba(124, 108, 255, .22), transparent 70%),
        radial-gradient(460px 380px at 96% 62%, rgba(255, 92, 140, .2), transparent 70%),
        radial-gradient(380px 260px at 84% 98%, rgba(166, 140, 255, .16), transparent 70%);
}
.ms-hero .container { position: relative; z-index: 1; }
.ms-hero h1 { font-size: 3.55rem; font-weight: 500; line-height: 1.12; margin: 1.1rem 0 1rem; letter-spacing: -.025em; }
.ms-hero .ms-lead { max-width: 33rem; font-size: 1.08rem; }
.ms-hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin: 1.9rem 0 1.5rem; }
.ms-hero-actions .ms-btn { height: 50px; padding: 0 2.1rem; }
.ms-checks { display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; padding: 0; margin: 0; list-style: none; font-size: .9rem; color: var(--ms-text); }
.ms-checks li { display: flex; align-items: center; gap: .5rem; }
.ms-check { width: 18px; height: 18px; border-radius: 50%; background: var(--ms-green); color: #fff; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ms-check svg { width: 9px; height: 9px; fill: currentColor; }

/* Dashboard mockup in a browser frame, slightly tilted */
.ms-mockup-wrap { perspective: 1400px; margin-right: -1.5rem; }
.ms-mockup {
    position: relative; border-radius: 14px; background: var(--ms-card);
    box-shadow: 0 40px 80px rgba(60, 40, 120, .18), 0 10px 25px rgba(20, 26, 43, .08);
    border: 1px solid var(--ms-line); overflow: hidden;
    transform: rotateY(-14deg) rotateX(6deg) rotateZ(2deg); transform-origin: left center;
    transition: transform .6s ease;
}
.ms-mockup:hover { transform: rotateY(-6deg) rotateX(3deg) rotateZ(1deg); }
.ms-mockup-bar .ms-mockup-avatar { margin-left: auto; width: 14px; height: 14px; border-radius: 50%; background: #e7e9f0; box-shadow: inset 0 0 0 3px #fff; }
.ms-mockup-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--ms-line); }
.ms-mockup-bar span { width: 10px; height: 10px; border-radius: 50%; }
.ms-mockup-bar span:nth-child(1) { background: #ff5f57; }
.ms-mockup-bar span:nth-child(2) { background: #febc2e; }
.ms-mockup-bar span:nth-child(3) { background: #28c840; }
/* The app preview inside the frame */
.ms-app { display: grid; grid-template-columns: 26% 1fr; font-size: 11.5px; color: var(--ms-ink); }
.ms-app svg { width: 11px; height: 11px; fill: currentColor; flex-shrink: 0; }
.ms-app-side { border-right: 1px solid var(--ms-line); padding: 14px 0; min-height: 100%; }
.ms-app-logo { display: block; height: 22px; width: auto; margin: 2px 14px 18px; }
.ms-app-nav { display: flex; align-items: center; gap: 9px; padding: 10px 14px; color: var(--ms-text); }
.ms-app-nav.is-active { background: var(--ms-red-soft); color: var(--ms-red); box-shadow: inset -2px 0 0 var(--ms-red); }
.ms-app-main { padding: 16px; background: #f7f8fb; min-width: 0; }
html.dark .ms-app-main { background: #151a28; }
.ms-app-search { display: flex; gap: 8px; margin-bottom: 14px; }
.ms-app-search span { flex: 1; background: var(--ms-card); border: 1px solid var(--ms-line); border-radius: 6px; padding: 9px 10px; position: relative; }
.ms-app-search span::after { content: "\2195"; position: absolute; right: 10px; color: var(--ms-muted); font-size: 10px; }
.ms-app-search b { background: var(--ms-red); color: #fff; border-radius: 6px; padding: 9px 16px; font-weight: 600; }
.ms-app-tabs { display: flex; margin-bottom: 12px; background: var(--ms-card); border: 1px solid var(--ms-line); border-radius: 7px; overflow: hidden; }
.ms-app-tabs span { flex: 1 1 auto; display: flex; align-items: center; justify-content: center; gap: 5px; padding: 8px 6px; font-size: 10px; white-space: nowrap; }
.ms-app-tabs span + span { border-left: 1px solid var(--ms-line); }
.ms-app-tabs i { font-style: normal; font-size: 9px; padding: 0 4px; border-radius: 3px; }
.ms-app-tabs i.r { background: #ffe4e8; color: var(--ms-red); }
.ms-app-tabs i.a { background: #fff1cc; color: #b77900; }
.ms-app-card { display: flex; gap: 14px; align-items: center; background: var(--ms-card); border: 1px solid var(--ms-line); border-radius: 8px; padding: 14px; }
.ms-app-score { position: relative; width: 84px; height: 84px; flex-shrink: 0; }
.ms-app-score svg { width: 84px; height: 84px; transform: rotate(-90deg); }
.ms-app-score span { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 9px; color: var(--ms-muted); line-height: 1.1; }
.ms-app-score b { font-size: 26px; color: var(--ms-ink); }
.ms-app-site { min-width: 0; }
.ms-app-site b { font-size: 13px; }
.ms-app-site p { margin: 4px 0; line-height: 1.45; color: var(--ms-ink); font-size: 10.5px; }
.ms-app-site a { color: var(--ms-red); font-size: 10px; }
.ms-app-bars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; background: var(--ms-card); border: 1px solid var(--ms-line); border-top: 0; border-radius: 0 0 8px 8px; padding: 10px 14px; margin-top: -4px; }
.ms-app-bars small { display: block; font-size: 8.5px; color: var(--ms-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ms-app-bars em { display: block; height: 4px; border-radius: 4px; background: var(--ms-line); margin: 4px 0; overflow: hidden; }
.ms-app-bars em i { display: block; height: 100%; border-radius: 4px; }
.ms-app-bars .r i { background: var(--ms-red); }
.ms-app-bars .a i { background: var(--ms-amber); }
.ms-app-bars .g i { background: #9aa1b1; }
.ms-app-bars .s i { background: var(--ms-green); }
.ms-app-bars .s small:first-child { color: var(--ms-green); }
.ms-app-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 12px; }
.ms-app-stats span { display: flex; align-items: center; gap: 6px; background: var(--ms-card); border: 1px solid var(--ms-line); border-radius: 6px; padding: 7px 8px; font-size: 9.5px; color: var(--ms-text); white-space: nowrap; overflow: hidden; }

/* ---------- Feature strip ---------- */
.ms-features { padding: 1.4rem 0 2.6rem; }
.ms-feature { text-align: center; padding: 1rem 1.5rem; height: 100%; }
.ms-features .col-lg-3 + .col-lg-3 .ms-feature { border-left: 1px solid var(--ms-line); }
.ms-feature h3 { font-size: 1.18rem; font-weight: 700; margin: 1rem 0 .35rem; }
.ms-feature p { font-size: .95rem; margin: 0 auto; line-height: 1.5; max-width: 15rem; color: var(--ms-ink); opacity: .8; }
.ms-icon-circle {
    width: 74px; height: 74px; border-radius: 50%; margin: 0 auto;
    display: flex; align-items: center; justify-content: center;
}
.ms-icon-circle svg { width: 30px; height: 30px; fill: currentColor; }
.ms-tone-red { background: #ffe4e8; color: var(--ms-red); }
.ms-tone-purple { background: #ebe8ff; color: var(--ms-purple); }
.ms-tone-green { background: #dcf7e5; color: var(--ms-green); }
.ms-tone-amber { background: #fff1cc; color: #f0a100; }
html.dark .ms-tone-red { background: #3a1a22; }
html.dark .ms-tone-purple { background: #25224a; }
html.dark .ms-tone-green { background: #12301f; }
html.dark .ms-tone-amber { background: #352a0d; }

/* ---------- Search engines band ---------- */
.ms-band { background: var(--ms-bg-pink); }
.ms-engines { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 2.5rem; margin-top: 2.1rem; padding: 0 .5rem; }
.ms-engine { font-weight: 700; line-height: 1; white-space: nowrap; user-select: none; }
.ms-engine-google { font-family: "Product Sans", Arial, sans-serif; font-size: 2.75rem; letter-spacing: -.03em; font-weight: 500; }
.ms-engine-google span:nth-child(1), .ms-engine-google span:nth-child(4) { color: #4285f4; }
.ms-engine-google span:nth-child(2), .ms-engine-google span:nth-child(6) { color: #ea4335; }
.ms-engine-google span:nth-child(3) { color: #fbbc05; }
.ms-engine-google span:nth-child(5) { color: #34a853; }
.ms-engine-bing { display: flex; align-items: center; gap: .6rem; font-size: 1.65rem; font-weight: 400; color: #5e5e5e; letter-spacing: -.01em; }
html.dark .ms-engine-bing { color: #d0d0d0; }
.ms-engine-bing i { display: grid; grid-template-columns: 13px 13px; gap: 2px; }
.ms-engine-bing i b { width: 13px; height: 13px; display: block; }
.ms-engine-yahoo { font-size: 2.6rem; color: #6001d2; font-style: italic; font-weight: 900; letter-spacing: -.04em; }
.ms-engine-yandex { font-size: 2.55rem; color: #e61400; font-weight: 500; letter-spacing: -.05em; font-family: "Arial Narrow", Arial, sans-serif; transform: scaleX(.88); }
.ms-engine-yandex b { color: #fc3f1d; }
.ms-engine-baidu { font-size: 2.3rem; color: #de0f17; font-weight: 800; display: flex; align-items: center; gap: .1rem; }
.ms-engine-baidu em { font-style: normal; background: #2932e1; color: #fff; border-radius: 50% 50% 45% 45%; font-size: .9rem; padding: .35rem .3rem .25rem; margin: 0 .1rem; }

/* ---------- Everything you need ---------- */
.ms-item { display: flex; gap: 1.3rem; align-items: center; margin-top: 1.5rem; }
.ms-item h3 { font-size: 1.2rem; font-weight: 600; margin: 0 0 .25rem; }
.ms-item p { margin: 0; font-size: .98rem; line-height: 1.5; max-width: 23rem; }
.ms-icon-square { width: 70px; height: 70px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ms-icon-square svg { width: 28px; height: 28px; fill: currentColor; }

.ms-sites { display: flex; flex-direction: column; gap: .95rem; }
.ms-site {
    display: flex; align-items: center; gap: 1rem; padding: 1rem 1.2rem; border-radius: 12px;
    background: var(--ms-card); border: 1px solid var(--ms-line); box-shadow: var(--ms-shadow);
}
.ms-site-globe { width: 26px; height: 26px; color: #5b6cf0; flex-shrink: 0; margin: 0 .5rem 0 .3rem; }
.ms-site-globe svg { width: 26px; height: 26px; fill: currentColor; }
.ms-site-name { font-weight: 600; color: var(--ms-ink); font-size: 1.05rem; line-height: 1.3; }
.ms-site-time { font-size: .86rem; color: var(--ms-muted); }
.ms-badge { display: inline-block; padding: .22rem .6rem; border-radius: 6px; font-size: .74rem; font-weight: 600; }
.ms-badge-good { background: #dcf7e5; color: #15803d; }
.ms-badge-decent { background: #fff1cc; color: #b77900; }
.ms-badge-issues { background: #ffe4e8; color: var(--ms-red); }
html.dark .ms-badge-good { background: #12301f; color: #4ade80; }
html.dark .ms-badge-decent { background: #352a0d; color: #fbbf24; }
html.dark .ms-badge-issues { background: #3a1a22; color: #ff7088; }
.ms-site-badge { flex: 1; padding-left: 1.2rem; }
.ms-ring { width: 56px; height: 56px; position: relative; flex-shrink: 0; margin-right: .6rem; }
.ms-ring svg { width: 56px; height: 56px; transform: rotate(-90deg); }
.ms-ring span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: .85rem; font-weight: 700; color: var(--ms-ink); }
.ms-chevron { width: 12px; height: 12px; fill: var(--ms-ink); flex-shrink: 0; }

/* ---------- Advanced reports ---------- */
.ms-checklist { background: var(--ms-card); border: 1px solid var(--ms-line); border-radius: 12px; box-shadow: var(--ms-shadow); padding: .3rem 1.4rem; }
.ms-check-row { display: grid; grid-template-columns: 22px 9.4rem 1fr 16px; align-items: center; gap: .9rem; padding: 1.02rem 0; font-size: .86rem; border-bottom: 1px solid var(--ms-line); font-size: .9rem; }
.ms-check-row:last-child { border-bottom: 0; }
.ms-check-row strong { color: var(--ms-ink); font-weight: 600; }
.ms-check-row svg { width: 16px; height: 16px; fill: currentColor; }
.ms-status { width: 20px; height: 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; }
.ms-status svg { width: 10px; height: 10px; }
.ms-status-ok { background: var(--ms-green); }
.ms-status-bad { background: transparent; color: var(--ms-red); border-radius: 0; }
.ms-status-bad svg { width: 18px; height: 18px; }
.ms-status-warn { background: var(--ms-amber); border-radius: 5px; }
.ms-status-warn::after { content: ""; width: 8px; height: 2px; background: #fff; border-radius: 1px; }
.ms-status-neutral { background: #6b7280; }
.ms-status-neutral::after { content: ""; width: 8px; height: 2px; background: #fff; border-radius: 1px; }
.ms-info { color: var(--ms-muted); }

.ms-icon-round { width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; background: #ffe4e8; color: var(--ms-red); }
html.dark .ms-icon-round { background: #3a1a22; }
.ms-icon-round svg { width: 23px; height: 23px; fill: currentColor; }

/* ---------- Tools ---------- */
.ms-tools { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .6rem .55rem; margin-top: 1.6rem; }
.ms-tool {
    display: flex; align-items: center; gap: 1rem; padding: .55rem 1rem; border-radius: 10px;
    background: var(--ms-card); border: 1px solid var(--ms-line); color: var(--ms-ink) !important;
    font-weight: 500; font-size: .92rem; text-decoration: none !important; transition: border-color .2s, box-shadow .2s, transform .2s;
}
.ms-tool:hover { border-color: #ffc7d0; box-shadow: var(--ms-shadow); transform: translateY(-2px); }
.ms-tool-icon { width: 36px; height: 36px; border-radius: 8px; background: #ffe4e8; color: var(--ms-red); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
html.dark .ms-tool-icon { background: #3a1a22; }
.ms-tool-icon svg { width: 15px; height: 15px; fill: currentColor; }

/* ---------- CTA ---------- */
.ms-cta { background: linear-gradient(90deg, #ffe9ef, #fff4f6 55%, #ffeaf0); padding: 2.6rem 0; position: relative; overflow: hidden; }
html.dark .ms-cta { background: linear-gradient(90deg, #26161c, #1f1a24 60%, #26161c); }
.ms-cta::after { content: ""; position: absolute; left: -10%; bottom: -60%; width: 60%; height: 140%; background: radial-gradient(closest-side, rgba(239, 43, 75, .08), transparent); pointer-events: none; }
.ms-cta h2 { font-size: 2.15rem; font-weight: 600; margin: .6rem 0 .3rem; }
.ms-cta-note { font-size: .78rem; color: var(--ms-muted); margin-top: .6rem; text-align: center; }

/* ---------- Header (guest) ---------- */
.ms-header { background: rgba(255, 255, 255, .92) !important; backdrop-filter: saturate(160%) blur(10px); box-shadow: 0 1px 0 var(--ms-line) !important; }
html.dark .ms-header { background: rgba(20, 24, 36, .92) !important; }
.ms-header .navbar { padding-top: .85rem !important; padding-bottom: .85rem !important; }
.ms-header .nav-link { color: var(--ms-ink) !important; font-weight: 500; font-size: .95rem; padding: .5rem .9rem !important; }
.ms-header .nav-link:hover { color: var(--ms-red) !important; }
.ms-header .dropdown-toggle::after { border: 0; width: 7px; height: 7px; margin-left: .45rem; vertical-align: .2em; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: rotate(45deg); }
.ms-header .dropdown-menu { border: 1px solid var(--ms-line); border-radius: 12px; box-shadow: var(--ms-shadow-lg); padding: .5rem; min-width: 15rem; }
.ms-header .dropdown-item { border-radius: 8px; padding: .5rem .75rem; font-size: .92rem; display: flex; align-items: center; gap: .6rem; }
.ms-header .dropdown-item svg { width: 14px; height: 14px; fill: var(--ms-red); }
.ms-header .dropdown-item:hover, .ms-header .dropdown-item:focus { background: var(--ms-red-soft); color: var(--ms-red); }
.ms-header-actions { display: flex; align-items: center; gap: .7rem; }

/* ---------- Footer ---------- */
.ms-footer-brand { display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap; }
.ms-footer-brand img { height: 34px; width: auto; }
.ms-footer .nav-link { color: var(--ms-text) !important; font-size: .92rem; }
.ms-footer .nav-link:hover { color: var(--ms-red) !important; }
.ms-footer #dark-mode { white-space: nowrap; }

/* ---------- Responsive ---------- */
@media (max-width: 1199.98px) {
    .ms-hero h1 { font-size: 3rem; }
    .ms-check-row { grid-template-columns: 22px 8rem 1fr 16px; }
}

@media (max-width: 991.98px) {
    .ms-section { padding: 4rem 0; }
    .ms-hero { padding: 3rem 0 2rem; text-align: center; }
    .ms-hero .ms-lead { margin-left: auto; margin-right: auto; }
    .ms-hero-actions, .ms-checks { justify-content: center; }
    .ms-mockup-wrap { margin-top: 3rem; }
    .ms-mockup, .ms-mockup:hover { transform: none; }
    .ms-features .col-lg-3 + .col-lg-3 .ms-feature { border-left: 0; }
    .ms-feature { padding: 1.2rem .5rem; }
    .ms-tools { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ms-engines { justify-content: center; }
    .ms-split-gap { margin-top: 3rem; }
    .ms-header .navbar-collapse { padding-bottom: .8rem; }
    .ms-header-actions { margin-top: .6rem; }
    .ms-header-actions .ms-btn { flex: 1; }
}

@media (max-width: 575.98px) {
    .ms-hero h1 { font-size: 2.35rem; }
    .ms-section-title { font-size: 1.85rem; }
    .ms-hero-actions .ms-btn { flex: 1 1 100%; }
    .ms-tools { grid-template-columns: minmax(0, 1fr); }
    .ms-engines { gap: 1.2rem 1.8rem; }
    .ms-engine-google, .ms-engine-yahoo, .ms-engine-yandex, .ms-engine-baidu { font-size: 1.55rem; }
    .ms-engine-bing { font-size: 1.1rem; }
    .ms-check-row { grid-template-columns: 22px 1fr 16px; row-gap: .25rem; }
    .ms-check-row > span:nth-child(3) { grid-column: 2 / 3; grid-row: 2; font-size: .82rem; }
    .ms-check-row > .ms-info { grid-column: 3; grid-row: 1; }
    .ms-site { padding: .85rem .9rem; gap: .75rem; }
    .ms-cta h2 { font-size: 1.6rem; }
    .ms-cta .ms-btn { width: 100%; }
}

/* Small screens: keep the preview readable */
@media (max-width: 575.98px) {
    .ms-app { grid-template-columns: 1fr; }
    .ms-app-side { display: none; }
    .ms-app-bars, .ms-app-stats { grid-template-columns: repeat(2, 1fr); }
}

/* Tools sit right under the pink band in the design */
.ms-section.ms-tools-section { padding-top: 2.4rem; }
.ms-tools-more { margin-top: 1.4rem; }
.ms-site > div:nth-child(2) { width: 9rem; flex-shrink: 0; }
.ms-site-badge { padding-left: 0 !important; }
@media (max-width: 575.98px) { .ms-site > div:nth-child(2) { width: auto; flex: 1; min-width: 0; } .ms-site-badge { flex: 0 0 auto; } }

/* Advanced reports + Tools share one pink band that fades out, as in the design */
.ms-band-advanced { padding-bottom: 1.2rem; }
.ms-section.ms-tools-section { padding-top: 1.6rem; background: linear-gradient(var(--ms-bg-pink), var(--ms-bg-pink) 35%, transparent); }

/* Free SEO report form in the hero */
.ms-analyze { margin-top: 1.7rem; max-width: 34rem; }
.ms-analyze-box {
    display: flex; gap: .5rem; padding: .4rem; border-radius: 12px;
    background: var(--ms-card); border: 1.5px solid var(--ms-line); box-shadow: var(--ms-shadow);
    transition: border-color .2s;
}
.ms-analyze-box:focus-within { border-color: var(--ms-red); }
.ms-analyze-box.is-invalid { border-color: var(--ms-red); }
.ms-analyze-input {
    flex: 1 1 auto; min-width: 0; border: 0; outline: 0; background: transparent;
    padding: 0 .8rem; font-size: 1rem; color: var(--ms-ink);
}
.ms-analyze-box .ms-btn { height: 46px; flex-shrink: 0; }
.ms-analyze-error { margin-top: .5rem; font-size: .875rem; color: var(--ms-red); }
.ms-analyze + .ms-hero-actions { margin-top: 1.2rem; }
@media (max-width: 575.98px) {
    .ms-analyze-box { flex-direction: column; }
    .ms-analyze-input { height: 46px; }
}

/* ==========================================================================
   Home: full audit, how it works, spotlight
   ========================================================================== */

.ms-tone-blue { background: #e1efff; color: #2563eb; }
.ms-tone-pink { background: #ffe4f2; color: #db2777; }
.ms-tone-teal { background: #d9f7f3; color: #0d9488; }
html.dark .ms-tone-blue { background: #172a4a; }
html.dark .ms-tone-pink { background: #3d1730; }
html.dark .ms-tone-teal { background: #0f2f2c; }
.ms-green { color: var(--ms-green) !important; }
.ms-lead-narrow { max-width: 42rem; }

/* Full website audit */
.ms-audit-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; margin-top: 2.75rem; }
.ms-audit-card { padding: 1.5rem; border-radius: 18px; background: var(--ms-card); border: 1px solid var(--ms-line); box-shadow: var(--ms-shadow); transition: transform .2s, box-shadow .2s; }
.ms-audit-card:hover { transform: translateY(-4px); box-shadow: var(--ms-shadow-lg); }
.ms-audit-head { display: flex; align-items: center; gap: .9rem; margin-bottom: .85rem; }
.ms-audit-head .ms-icon-square { width: 52px; height: 52px; border-radius: 14px; }
.ms-audit-head .ms-icon-square svg { width: 22px; height: 22px; }
.ms-audit-head h3 { font-size: 1.15rem; font-weight: 700; margin: 0; }
.ms-audit-count { font-size: .82rem; font-weight: 600; color: var(--ms-red); }
.ms-audit-card p { font-size: .95rem; margin: 0 0 1rem; }
.ms-audit-checks { display: flex; flex-wrap: wrap; gap: .4rem; }
.ms-audit-checks span { padding: .25rem .65rem; border-radius: 99px; background: var(--ms-bg-pink); font-size: .78rem; font-weight: 500; color: var(--ms-ink); }

/* How it works */
.ms-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; margin-top: 2.75rem; counter-reset: step; }
.ms-step { position: relative; padding: 2rem 1.5rem 1.5rem; border-radius: 18px; background: var(--ms-card); border: 1px solid var(--ms-line); text-align: center; }
.ms-step-number { position: absolute; top: -16px; left: 50%; transform: translateX(-50%); width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--ms-red); color: #fff; font-weight: 700; box-shadow: 0 6px 14px rgba(239, 43, 75, .3); }
.ms-step .ms-icon-round { margin: 0 auto 1rem; }
.ms-step h3 { font-size: 1.15rem; font-weight: 700; margin: 0 0 .4rem; }
.ms-step p { font-size: .95rem; margin: 0; }

/* Spotlight */
.ms-spotlight { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; margin-top: 2.75rem; }
.ms-spot { display: flex; flex-direction: column; }
.ms-spot h3 { font-size: 1.2rem; font-weight: 700; margin: 1.1rem 0 .4rem; }
.ms-spot p { font-size: .95rem; margin: 0; }
.ms-spot-visual { min-height: 240px; padding: 1.25rem; border-radius: 18px; background: linear-gradient(150deg, var(--ms-bg-pink), var(--ms-card) 75%); border: 1px solid var(--ms-line); box-shadow: var(--ms-shadow); display: flex; flex-direction: column; justify-content: center; }
.ms-spot-figures { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin-bottom: 1rem; }
.ms-spot-figures div { display: flex; flex-direction: column; }
.ms-spot-figures b { font-size: 1.5rem; color: var(--ms-ink); line-height: 1.1; }
.ms-spot-figures span { font-size: .72rem; color: var(--ms-muted); }
.ms-spot-rows { display: grid; gap: .4rem; }
.ms-spot-rows div { display: flex; justify-content: space-between; gap: .75rem; padding: .45rem .7rem; border-radius: 10px; background: var(--ms-card); border: 1px solid var(--ms-line); font-size: .8rem; }
.ms-spot-rows span { color: var(--ms-red); font-weight: 600; }
.ms-spot-rows em { font-style: normal; color: var(--ms-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ms-spot-list { display: grid; gap: .55rem; }
.ms-spot-list div { display: flex; align-items: center; gap: .6rem; padding: .55rem .75rem; border-radius: 10px; background: var(--ms-card); border: 1px solid var(--ms-line); font-weight: 600; font-size: .9rem; color: var(--ms-ink); }
.ms-spot-chips { display: flex; flex-wrap: wrap; gap: .45rem; }
.ms-spot-chips span { padding: .35rem .75rem; border-radius: 99px; background: var(--ms-card); border: 1px solid var(--ms-line); font-size: .85rem; font-weight: 600; color: var(--ms-ink); }

@media (max-width: 991.98px) {
    .ms-audit-grid, .ms-spotlight { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ms-steps { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
}
@media (max-width: 575.98px) {
    .ms-audit-grid, .ms-spotlight { grid-template-columns: minmax(0, 1fr); }
}
