/* initialScreen.css — responsive entry screen (mobile-first) */
:root {
    --bg: #290000;
    --text: #ffffff;
    --muted: #cfcfcf;
    --card-bg: #1b1b1b;
    --card-border: #2a2a2a;
    --card-radius: 12px;
    --accent: #ff1a1a;
    --accent-2: #ff4d4d;
    --success: #0bbf6b;
    --warning: #e8c252;
    --shadow: 0 10px 30px rgba(0, 0, 0, .35);
}

* {
    box-sizing: border-box
}

html,
body {
    height: 100%
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* -------- Hero / Entry -------- */
#headline-container {
    padding: clamp(24px, 4vw, 56px) 16px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-headline {
    width: 100%;
    max-width: 820px;
    text-align: center
}

.decode-cover {
    width: 100%;
    max-width: 680px;
    height: auto;
    border-radius: 10px;
    margin: 0 auto clamp(16px, 3vw, 28px);
    box-shadow: var(--shadow);
    display: block;
}

.hero-subtitle {
    font-weight: 800;
    font-size: clamp(24px, 3.2vw + 8px, 38px);
    line-height: 1.18;
    margin: 30px 0 30px 0;
}

.hero-subtitle b,
.hero-subtext b {
    color: var(--accent-2);
    font-weight: 800
}

.hero-subtext {
    color: var(--muted);
    font-size: clamp(15px, 1.2vw + 10px, 20px);
    font-weight: 600;
    line-height: 1.6;
    margin: 0 auto clamp(18px, 3vw, 28px);
    max-width: 680px;
    text-align: start;
    padding: 0 4px;
}

.center-btn {
    display: flex;
    justify-content: center
}

.offer-button {
    display: inline-block;
    background-color: #ff1a1a;
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    padding: 14px 26px;
    border-radius: 8px;
    text-decoration: none;
    text-align: center;
    box-shadow: 0 0 12px rgba(255, 0, 0, 0.4);
    transition: background-color 0.3s ease;
}

.offer-button:hover {
    background-color: #cc0000;
}

.hero-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    cursor: pointer;
    user-select: none;
    background: var(--accent);
    color: #fff;
    border: 0;
    padding: 14px 28px;
    border-radius: 10px;
    font-weight: 800;
    font-size: clamp(15px, 1.1vw + 10px, 18px);
    box-shadow: 0 0 12px 2px rgba(255, 0, 0, .55);
    transition: transform .15s ease, filter .15s ease, box-shadow .2s ease;
}

.hero-button:hover {
    filter: brightness(1.05)
}

.hero-button:active {
    transform: translateY(1px)
}

.hero-button:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px
}

/* -------- Sections grid -------- */
.sections-wrap {
    display: flex;
    justify-content: center
}

.sections-list {
    width: 100%;
    max-width: 980px;
    margin: clamp(22px, 4vw, 40px) 16px clamp(50px, 6vw, 80px);
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

@media (min-width:720px) {
    .sections-list {
        grid-template-columns: 1fr 1fr;
        gap: 14px;
    }
}

@media (min-width:1080px) {
    .sections-list {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

.section-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: #ca111140;
    border: 1px solid var(--card-border);
    border-radius: var(--card-radius);
    padding: 14px 12px;
    box-shadow: var(--shadow);
}

.section-main {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex: 1
}

.section-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    flex: 0 0 44px;
    display: grid;
    place-items: center;
    background: #222;
    color: #fff;
}

.section-text {
    min-width: 0
}

.section-title {
    font-size: clamp(15px, 1vw + 10px, 18px);
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 3px;
}

.section-meta {
    color: var(--muted);
    font-size: 12px;
    white-space: normal
}

.section-ctas {
    display: flex;
    gap: 8px;
    flex-wrap: wrap
}

.btn {
    border: 1px solid var(--card-border);
    background: #0b57af;
    color: #fff;
    padding: 10px 12px;
    border-radius: 10px;
    font-weight: 800;
    font-size: 14px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: transform .15s ease, filter .15s ease;
}

.btn:hover {
    filter: brightness(1.04)
}

.btn:active {
    transform: translateY(1px)
}

.btn.primary {
    background: var(--accent);
    border-color: transparent
}

.btn[aria-disabled="true"] {
    opacity: .45;
    pointer-events: none
}

/* Optional status badge (if you render it) */
.section-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid var(--card-border);
    background: #1e1e1e;
    color: #ddd;
}

.section-status .dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    display: inline-block
}

.section-status[data-state="pending"] .dot {
    background: #777
}

.section-status[data-state="active"] .dot {
    background: var(--warning)
}

.section-status[data-state="done"] .dot {
    background: var(--success)
}

.section-status[data-state="done"] {
    background: #0a4128;
    border-color: #0f6a43;
    color: #fff
}

/* -------- Bonus (footer) -------- */
.bonus-container {
    margin: clamp(40px, 7vw, 100px) 0 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.bonus-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--accent-2);
    font-weight: 700;
    font-size: clamp(18px, 1.8vw + 8px, 26px);
    transition: color .2s ease;
}

.bonus-link:hover {
    color: var(--accent)
}

.bonus-cover {
    width: min(820px, 86vw);
    height: auto;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(255, 77, 77, .35);
}

.bonus-text {
    margin-top: 12px
}

/* -------- Small screens handling -------- */
@media (max-width:420px) {
    .section-card {
        flex-direction: column;
        align-items: flex-start
    }

    .section-ctas {
        width: 100%
    }

    .btn {
        flex: 1 1 auto;
        justify-content: center
    }

    .section-icon {
        width: 40px;
        height: 40px;
        border-radius: 10px
    }
}

/* -------- Larger screens tuning -------- */
@media (min-width:1280px) {
    #headline-container {
        padding: 60px 24px
    }

    .sections-list {
        max-width: 1100px
    }
}

/* -------- Accessibility / motion -------- */
:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
    border-radius: 8px
}

@media (prefers-reduced-motion:reduce) {
    * {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
        scroll-behavior: auto !important
    }
}

.section-ctas .btn.is-locked[aria-disabled="true"] {
    opacity: 0.5;
    pointer-events: auto;
    /* keep pointer to show tooltip */
    cursor: not-allowed;
    filter: grayscale(0.3);
}

.img-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.decode-logo-result {
    display: block;
    margin: 0px 0 40px 0;
    max-width: 140px;
}