/* =============================================================================
   Text from Image — welcome page styles
   Минималистичный лейаут по референсу mp4-to-mp3.pro/welcome:
   - всё центрировано
   - очень много воздуха
   - тёмно-синий заголовок, серый caption, чистый белый фон
============================================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    /* Палитра инспирирована референсом */
    --color-bg: #ffffff;
    --color-text-strong: #0a1733;     /* тёмно-синий, почти чёрный — для заголовка */
    --color-text-muted: #8a94a6;      /* серый — для подписей шагов */
    --color-border: #e5e7eb;
    --color-bg-soft: #f9fafb;

    --radius-md: 12px;
    --radius-lg: 16px;
    --shadow-md: 0 8px 24px rgba(10, 23, 51, 0.08);

    --content-width: 960px;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
                 "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text-strong);
    background: var(--color-bg);
    min-height: 100vh;
}

/* --- Hero ------------------------------------------------------------ */

.hero {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 96px 24px 64px;
    text-align: center;
}

.hero__title {
    font-size: 44px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-text-strong);
    max-width: 720px;
    margin: 0 auto;
}

.hero__emoji {
    display: inline-block;
    margin-right: 12px;
    font-size: 40px;
    /* Эмодзи рендерятся с baseline отличным от букв — выровняем */
    vertical-align: -4px;
}

/* --- Steps ---------------------------------------------------------- */

.steps {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 32px 24px 96px;
    display: flex;
    flex-direction: column;
    gap: 64px;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

.step__caption {
    font-size: 18px;
    color: var(--color-text-muted);
    text-align: center;
    max-width: 720px;
    line-height: 1.5;
}

.step__media {
    width: 100%;
    max-width: 820px;
    margin: 0;
}

.step__image {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

/* --- Screenshot placeholder (until real screenshots are added) ------- */

.screenshot-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: var(--color-bg-soft);
    border: 2px dashed var(--color-border);
    border-radius: var(--radius-lg);
    color: var(--color-text-muted);
    font-size: 14px;
    font-weight: 500;
}

/* --- Responsive ----------------------------------------------------- */

@media (max-width: 720px) {
    .hero {
        padding: 64px 20px 48px;
    }

    .hero__title {
        font-size: 30px;
    }

    .hero__emoji {
        font-size: 28px;
        margin-right: 8px;
    }

    .steps {
        padding: 24px 20px 64px;
        gap: 48px;
    }

    .step {
        gap: 20px;
    }

    .step__caption {
        font-size: 16px;
    }
}