:root {
    --red: #A40000;
    --red-dark: #7a0000;
    --bg: #ffffff;
    --text: #1a1a1a;
    --grey: #f5f5f5;
}

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

html,
body {
    background: var(--bg);
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif;
    color: var(--text);
}

/* ── phone shell ── */
.page-wrap {
    max-width: 420px;
    margin: 0 auto;
    background: #fff;
    min-height: 100vh;
}

/* ════════════════════════
TOP NAVBAR
════════════════════════ */
.ff-navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ff-navbar .brand {
    font-weight: 700 !important;
    font-size: 28px;
    font-family:
        -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto,
        Helvetica, Arial, sans-serif;
    color: var(--text);
    text-decoration: none;
}

.brand span {
    color: #A40000;
}

.post-btn {
    background: linear-gradient(180deg, #A40000 22%, #3E0000 100%);
    color: #fff;
    border-radius: 13px;
    padding: 5px 0;
    font-size: 12px;
    font-weight: 700;
    border: 1px solid #FF8181;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(164, 0, 0, 0.2);
    white-space: nowrap;
    min-width: 76px;
}

.post-btn:hover {
    background: #A40000;
    color: #ffffff;
}

.icon-circle {
    background: linear-gradient(180deg, #A40000 22%, #3E0000 100%);
    color: #fff;
    width: 44px;
    height: 30px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    border: 1px solid #FF8181;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(164, 0, 0, 0.2);
}

.icon-circle-img {
    width: 25px;
    height: 25px;
    object-fit: contain;
}

/* ════════════════════════
HERO ILLUSTRATION
════════════════════════ */
.hero-section {
    background: #fff;
    padding: 24px 20px 10px;
}

.hero-img {
    width: 100%;
    max-width: 254.07px;
    height: 167.03px;
    display: block;
    margin: 0 auto;
    object-fit: contain;
}

/* ════════════════════════
HERO TEXT
════════════════════════ */
.hero-text-section {
    padding: 16px 22px 8px;
    text-align: center;
}

.hero-title {
    font-size: 24px;
    font-weight: 600;
    color: #000000;
    line-height: 1.5;
    margin-bottom: 12px;
    text-align: center;
}

.hero-title span {
    color: #A40000;
}

.hero-desc {
    font-size: 17px;
    font-weight: 600;
    color: #454444;
    margin-bottom: 0;
}

/* ════════════════════════
DOWNLOAD SECTION
════════════════════════ */
.download-section {
    padding: 20px 0;
    text-align: center;
}

.download-subtitle {
    font-size: 17px;
    font-weight: 700;
    color: #000000;
    line-height: 1.5;
    margin-bottom: 18px;
}

.btn-download {
    background: linear-gradient(180deg, #A40000 22%, #3E0000 100%);
    color: #ffffff;
    border: 1px solid #FF8181;
    border-radius: 14px;
    font-size: 17px;
    font-weight: 700;
    padding: 14px 28px;
    width: 70%;
    margin: auto;
    cursor: pointer;
    text-decoration: none;
    display: block;
    letter-spacing: 0.3px;
}

.download-note {
    font-size: 15px;
    color: #787878;
    margin-top: 10px;
}

/* divider */
.section-divider {
    border: none;
    border-top: 1.5px solid #ececec;
    margin: 4px 22px;
}

/* ════════════════════════
HOW TO INSTALL SECTION
════════════════════════ */
.install-section {
    padding: 20px 22px 40px;
}

.install-title {
    font-size: 24px;
    font-weight: 700;
    color: #000000;
    text-align: center;
    margin-bottom: 20px;
}

/* install illustration */
.install-illus-wrap {
    margin-bottom: 24px;
}

.install-img {
    width: 100%;
    max-width: 288px;
    height: auto;
    display: block;
    margin: 0 auto;
    object-fit: contain;
}

/* ── Steps ── */
.step-item {
    margin-bottom: 20px;
    padding-bottom: 18px;
}

.step-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* icon image col */
.step-icon-col {
    width: 52px;
    flex-shrink: 0;
    align-self: flex-start;
}

.step-icon-img {
    width: 42px;
    height: 42px;
    object-fit: contain;
    display: block;
}

/* fallback icon box if no image */
.step-icon-box {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.step-icon-box.blue {
    background: #dbeafe;
    color: #2563eb;
}

.step-icon-box.yellow {
    background: #fef3c7;
    color: #d97706;
}

.step-icon-box.grey {
    background: #f3f4f6;
    color: #6b7280;
}

.step-icon-box.green {
    background: #dcfce7;
    color: #16a34a;
}

.step-icon-box.red {
    background: #fee2e2;
    color: #dc2626;
}

/* text col */
.step-text-col {
    flex: 1;
    min-width: 0;
}

.step-desc {
    font-size: 18px;
    font-weight: 400;
    color: #000000;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0;
}

.step-desc .step-num {
    align-self: center;
    font-weight: 700;
    color: #454444;
    margin-right: 4px;
    white-space: nowrap;
    flex-shrink: 0;
}

.step-answer {
    flex: 1;
    min-width: 0;
}

.step-desc strong {
    font-weight: 700;
    color: var(--text);
}

/* ── Extra small phones (< 360px) ── */
@media (max-width: 359px) {
    .page-wrap {
        padding: 10px 10px;
    }

    .ff-navbar .brand {
        font-size: 22px;
    }

    .ff-navbar .icon-circle {
        width: 36px;
        height: 26px;
        min-width: 36px;
    }

    .ff-navbar .icon-circle img {
        width: 18px;
        height: 18px;
    }

    .ff-navbar .post-btn {
        font-size: 10px;
        min-width: 60px;
    }

    .hero-section {
        padding: 16px 12px 8px;
    }

    .hero-img {
        max-width: 200px;
        height: 132px;
    }

    .hero-text-section {
        padding: 12px 14px 6px;
    }

    .hero-title {
        font-size: 16px;
    }

    .hero-desc {
        font-size: 13px;
    }

    .download-subtitle {
        font-size: 13px;
    }

    .btn-download {
        font-size: 13px;
        padding: 11px 16px;
        width: 85%;
    }

    .download-note {
        font-size: 12px;
    }

    .install-section {
        padding: 16px 14px 30px;
    }

    .install-title {
        font-size: 16px;
    }

    .step-desc {
        font-size: 13px;
    }

    .step-icon-img {
        width: 32px;
        height: 32px;
    }

    .step-icon-col {
        width: 42px;
    }
}

/* ── Small phones (360px – 413px) ── */
@media (min-width: 360px) and (max-width: 413px) {
    .page-wrap {
        padding: 12px 12px;
    }

    .ff-navbar .brand {
        font-size: 25px;
    }

    .ff-navbar .icon-circle {
        width: 40px;
        height: 28px;
        min-width: 40px;
    }

    .ff-navbar .icon-circle img {
        width: 20px;
        height: 20px;
    }

    .ff-navbar .post-btn {
        font-size: 11px;
        min-width: 68px;
    }

    .hero-section {
        padding: 15px 14px 15px;
    }

    .hero-img {
        max-width: 220px;
        height: 145px;
    }

    .hero-text-section {
        padding: 14px 16px 6px;
    }

    .hero-title {
        font-size: 19px;
    }

    .hero-desc {
        font-size: 14px;
    }

    .download-subtitle {
        font-size: 14px;
    }

    .btn-download {
        font-size: 14px;
        padding: 12px 20px;
        /* width: 78%; */
    }

    .install-section {
        padding: 18px 16px 32px;
    }

    .install-title {
        font-size: 19px;
    }

    .step-desc {
        font-size: 14px;
    }

    .step-icon-img {
        width: 36px;
        height: 36px;
    }

    .step-icon-col {
        width: 30px;
    }
}

/* ── Standard phones (414px – 575px) ── */
@media (min-width: 414px) and (max-width: 575px) {
    .page-wrap {
        padding: 14px 14px;
    }

    .ff-navbar .brand {
        font-size: 26px;
    }

    .hero-img {
        max-width: 240px;
        height: 158px;
    }

    .hero-title {
        font-size: 21px;
    }

    .hero-desc {
        font-size: 15px;
    }

    .download-subtitle {
        font-size: 15px;
    }

    .btn-download {
        font-size: 15px;
        padding: 13px 24px;
        width: 74%;
    }

    .install-title {
        font-size: 21px;
    }

    .step-desc {
        font-size: 15px;
    }
}
