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

/* ══════════════════════════════════════
   VARIABLES
══════════════════════════════════════ */
:root {
    --pink:      #FF00B9;
    --pink-dark: #db2777;
    --pink-soft: #fde6f1;
    --pink-line: #f6cfe0;
    --navy:      #3D042D;
    --text:      #3b3f57;
    --muted:     #646464;
    --border:    #ecdfe8;
    --white:     #ffffff;
    --light:     #fbf4f8;
}

/* ══════════════════════════════════════
   BASE
══════════════════════════════════════ */
body {
    font-family: 'Roboto', sans-serif;
    color: var(--text);
    background: linear-gradient(180deg, #eef4fc 0%, #f7ecf4 34%, #fbe3ee 70%, #ffd8f4 100%);
    min-height: 100vh;
    font-size: 15px;
    line-height: 1;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ══════════════════════════════════════
   LAYOUT — CONTAINER
══════════════════════════════════════ */
.container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ══════════════════════════════════════
   HEADER
══════════════════════════════════════ */
.header {
    border-bottom: 1px solid rgba(236, 72, 153, .12);
    background: #FFE9F9;
    backdrop-filter: blur(8px);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
    padding: 14px 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 20px;
    font-weight: 700;
    color: var(--navy);
}

.logo__icon {
    width: 30px;
    height: 30px;
}

.header-meta {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: var(--muted);
}

.header-meta__icon {
    color: var(--pink);
}

/* ══════════════════════════════════════
   HERO
══════════════════════════════════════ */
.hero {
    position: relative;
    overflow: hidden;
    padding: 40px 0;
    margin-top: 40px;
}

.hero__bg {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    max-width: 92vw;
    height: 95%;
    object-fit: contain;
    opacity: .68;
    z-index: 0;
    pointer-events: none;
}

.hero-inner {
    position: relative;
    z-index: 2;
    min-height: 520px;
    display: flex;
    flex-direction: column;
}

.hero-tags {
    align-self: flex-start;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 32px;
}

.hero-tag {
    display: inline-block;
    font-size: 18px;
    font-weight: 700;
    border-radius: 999px;
    padding: 7px 16px;
}

.hero-tag--pink {
    color: var(--white);
    background: var(--pink);
    box-shadow: 0 6px 18px rgba(236, 72, 153, .35);
}

.hero-tag--ghost {
    color: var(--pink-dark);
    background: rgba(255, 255, 255, .78);
    border: 1px solid var(--pink-line);
}

.hero-headline {
    align-self: flex-start;
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    background:
        linear-gradient(100deg, rgba(223, 13, 165, 0) 0%, rgba(223, 13, 165, .28) 100%),
        rgba(255, 255, 255, .85);
    backdrop-filter: blur(6px);
    border-radius: 20px;
    padding: 28px;
    max-width: 740px;
    margin-bottom: 32px;
    box-shadow: 0 4px 12px rgba(74, 0, 53, .28);
}

.hero-headline__title {
    font-size: 40px;
    font-weight: 800;
    color: var(--navy);
}

.hero-headline__accent {
    color: var(--pink);
}

.hero-join {
    display: flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    margin: 0 auto 32px;
    padding: 7px 18px 7px 10px;
    background: var(--white);
    border-radius: 999px;
    box-shadow: 0 8px 24px rgba(32, 38, 75, .12);
}

.avatars-row {
    display: flex;
}

.avatars-row__img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid var(--white);
    margin-left: -9px;
    object-fit: cover;
}

.avatars-row__img:first-child {
    margin-left: 0;
}

.hero-join__text {
    font-size: 14px;
    font-weight: 700;
    color: var(--navy);
}

.hero-floats {
    align-self: flex-end;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 32px;
}

.hero-badges {
    display: flex;
    gap: 16px;
    background: var(--white);
    border-radius: 18px;
    padding: 10px;
    box-shadow: 0 14px 36px rgba(32, 38, 75, .14);
}

.badge-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 4px;
}

.badge-item__icon {
    width: 26px;
    height: 26px;
    object-fit: contain;
}

.badge-item__value {
    font-size: 18px;
    font-weight: 800;
    color: var(--navy);
}

.badge-item__label {
    font-size: 11px;
    color: var(--muted);
}

.hero-checks {
    list-style: none;
    background: rgba(255, 255, 255, .62);
    border: 1px solid rgba(255, 255, 255, .85);
    border-radius: 16px;
    padding: 5px 10px;
    box-shadow: 0 8px 24px rgba(32, 38, 75, .07);
}

.hero-checks__item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 400;
    color: var(--navy);
    margin: 5px 0;
}

.hero-checks__item::before {
    content: "";
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: url("../img/img_icon/Type=Check.png") center / 16px no-repeat;
}

/* ══════════════════════════════════════
   SECTION HEADER
══════════════════════════════════════ */
.section-header {
    padding: 75px 0 30px;
    text-align: center;
}

.section-header__title {
    font-size: 30px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 10px;
}

.section-header__desc {
    font-size: 14px;
    color: var(--muted);
    max-width: 560px;
    margin: 0 auto;
}

/* ══════════════════════════════════════
   RANKINGS
══════════════════════════════════════ */
.rankings-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 44px;
}

.rank-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--white);
    border-radius: 11px;
    min-height: 260px;
    padding: 10px 22px 22px;
    box-shadow: 0 0 18px rgba(32, 38, 75, .3);
    transition: box-shadow .25s, transform .2s;
    cursor: pointer;
}

.rank-card:hover {
    box-shadow: 0 16px 40px rgba(236, 72, 153, .15);
    transform: translateY(-3px);
}

.rank-tag {
    align-self: flex-start;
    font-size: 10px;
    font-weight: 400;
    letter-spacing: .03em;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 999px;
    margin-bottom: 8px;
}

.rank-tag--outline {
    background: #ff00bb23;
    border: 1px solid var(--pink);
    color: var(--pink);
    text-transform: none;
    font-weight: 400;
    letter-spacing: 0;
}

.rank-body {
    display: flex;
    gap: 16px;
    flex: 1;
}

.rank-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 8px;
}

.rank-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
    flex-shrink: 0;
    width: 150px;
}

.rank-card__name {
    font-size: 18px;
    font-weight: 700;
    color: #000;
}

.rank-desc {
    font-size: 14px;
    margin-top: 10px;
    color: var(--muted);
}

.rank-meta {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 14px;
    color: var(--text);
}

.rank-meta__label {
    font-weight: 800;
    color: var(--navy);
}

.rank-logo {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.rank-logo__img {
    max-width: 144px;
    max-height: 76px;
    object-fit: contain;
}

.stars-row {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.stars {
    display: flex;
    gap: 2px;
}

.stars__icon {
    width: 17px;
    height: 17px;
    object-fit: contain;
}

.stars-score {
    font-size: 16px;
    font-weight: 800;
    color: var(--navy);
}

.rank-actions {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.rank-right .btn {
    width: 100%;
    font-size: 18px;
    padding: 10px;
    font-weight: 700;
}

.rank-right .btn-link {
    margin-top: 8px;
    text-align: center;
}

/* ══════════════════════════════════════
   BUTTONS
══════════════════════════════════════ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 20px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    border: none;
    text-align: center;
    transition: opacity .2s, transform .15s, box-shadow .2s;
}

.btn-pink {
    background: linear-gradient(135deg, #f472b6 0%, var(--pink) 55%, var(--pink-dark) 100%);
    color: var(--white);
    box-shadow: 0 8px 22px rgba(236, 72, 153, .32);
}

.btn:hover {
    transform: translateY(-1px);
    opacity: .95;
}

.btn-link {
    display: block;
    text-align: center;
    font-size: 18px;
    font-weight: 800;
    color: var(--pink);
    margin-top: 5px;
}

.btn-link:hover {
    text-decoration: underline;
}

.btn-outline {
    display: inline-block;
    background: transparent;
    border: 2px solid var(--pink);
    color: var(--pink);
    padding: 10px;
    border-radius: 20px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity .2s;
}

.btn-outline:hover {
    opacity: .7;
}

/* ══════════════════════════════════════
   HOW WE REVIEW
══════════════════════════════════════ */
.how-section {
    padding: 64px 0 0;
    text-align: center;
}

.how-section__title {
    font-size: 32px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 10px;
}

.how-section__desc {
    font-size: 15px;
    color: var(--muted);
    margin-bottom: 42px;
}

.how-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 680px;
    margin: 0 auto;
}

.how-card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border-radius: 18px;
    padding: 13px 16px;
    text-align: center;
    box-shadow: 0 0 18px rgba(32, 38, 75, .3);
    transition: transform .2s, box-shadow .2s;
}

.how-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 24px rgba(236, 72, 153, .14);
}

.how-card__icon {
    height: 50px;
    width: auto;
    object-fit: contain;
    display: block;
    margin-bottom: 8px;
}

.how-card__title {
    font-size: 40px;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 16px;
}

.how-card__desc {
    font-size: 14px;
    color: var(--muted);
}

/* ══════════════════════════════════════
   TIPS + FAQ
══════════════════════════════════════ */
.bottom-section {
    padding: 64px 0;
}

.bottom-section .container {
    display: flex;
    gap: 48px;
}

.tips {
    max-width: 330px;
}

.tips__title,
.faq__title {
    font-size: 30px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 24px;
}

.tip-item {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 16px;
}

.tip-item__img {
    width: 112px;
    height: 62px;
    object-fit: cover;
}

.tip-item__title {
    font-size: 12px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 4px;
}

.tip-item__desc {
    font-size: 10px;
    color: var(--muted);
}

.faq {
    flex: 1;
}

.faq-item {
    margin-bottom: 20px;
}

.faq-q {
    font-size: 18px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 6px;
}

.faq-a {
    font-size: 14px;
    color: var(--muted);
}

/* ══════════════════════════════════════
   FOOTER
══════════════════════════════════════ */
.footer {
    background: #FFE9F9;
    color: var(--navy);
    text-align: center;
    padding: 27px 0;
    font-size: 14px;
    margin-top: auto;
}

.footer__link {
    color: var(--navy);
    margin: 0 6px;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.footer__link:hover {
    color: var(--pink-dark);
}

.footer__fine {
    margin-top: 26px;
    font-size: 10px;
    color: var(--muted);
}

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

/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */
@media (max-width: 900px) {
    .container {
        padding: 0 18px;
    }

    .header-inner {
        padding: 10px 20px;
    }

    .lastUpdated {
        display: none;
    }

    .hero {
        padding: 40px 0 48px;
        margin: 0;
    }

    .hero__bg {
        top: -25px;
    }

    .hero-inner {
        min-height: 0;
    }

    .hero-headline {
        align-self: stretch;
        display: block;
        max-width: none;
        width: 90%;
    }

    .hero-headline__title {
        font-size: 30px;
    }

    .hero-badges {
        justify-content: flex-end;
    }

    .badge-item {
        padding: 2px 10px;
    }

    .section-header {
        padding: 44px 0 28px;
    }

    .section-header__title,
    .how-section__title {
        font-size: 27px;
    }

    .how-grid {
        gap: 44px;
    }

    .rankings-grid {
        display: flex;
        flex-direction: column;
    } 

    .rank-card {
        max-width: 440px;
        margin: 0 auto;
    }

    .bottom-section .container {
        gap: 30px;
    }
}

@media (max-width: 640px) {
    .rankings-grid {
        grid-template-columns: 1fr;
    }

    .bottom-section .container {
        flex-direction: column;
    }

    .how-grid {
        display: flex;
        flex-direction: column;
    }

    .tips {
        max-width: none;
    }

    .how-card__title {
        font-size: 26px;
    }

    .how-card {
        max-width: 290px;
        margin: 0 auto;
        height: 190px;
        justify-content: center;
    }

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

    .how-section__desc {
        margin-bottom: 32px;
    }
    
    .footer__text {
        flex-direction: column;
    }

    .footer__line {
        display: none;
    }

    .footer__links {
        margin-top: 10px;
    }
}

@media (max-width: 480px) {
    .hero-headline {
        width: 100%;
        padding: 14px 16px;
    }

    .hero-headline__title {
        font-size: 24px;
    }

    .hero-tags {
        justify-content: center;
    }
    
    .hero-tag {
        font-size: 12px;
        padding: 4px 10px;
    }

    .rank-card {
        padding: 22px 20px;
    }

    .hero-join__text {
        font-size: 12px;
    }

    .hero-badges {
        padding: 14px 2px;
        gap: 5px;
    }

    .badge-item__value {
        font-size: 12px;
    }

    .rank-right {
        width: 130px;
    }

    .how-card__title {
        font-size: 26px;
    }

    .how-card__icon {
        height: 40px;
        margin-bottom: 6px;
    }

    .how-grid {
        gap: 44px;
    }

    .how-card {
        padding: 10px 10px;
    }

    .badge-item {
        padding: 0;
    }

    .section-header__title, .how-section__title {
        font-size: 24px;
    }

    .btn-link {
        font-size: 13px;
    }
}

/* ══════════════════════════════════════
   QUIZ MODAL
══════════════════════════════════════ */
.quiz-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(32, 38, 75, .55);
    backdrop-filter: blur(2px);
}

.quiz-overlay.is-open {
    display: flex;
}

.quiz-modal {
    position: relative;
    width: 100%;
    max-width: 460px;
    background: var(--white);
    border-radius: 22px;
    padding: 36px 32px 32px;
    box-shadow: 0 24px 60px rgba(32, 38, 75, .3);
    animation: quizPop .25s ease;
}

@keyframes quizPop {
    from { opacity: 0; transform: translateY(12px) scale(.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.quiz-close {
    position: absolute;
    top: 14px;
    right: 16px;
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    font-size: 26px;
    color: var(--muted);
    cursor: pointer;
    border-radius: 50%;
    transition: background .2s, color .2s;
}

.quiz-close:hover {
    background: var(--light);
    color: var(--text);
}

.quiz-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 800;
    color: var(--pink-dark);
    background: var(--pink-soft);
    padding: 4px 14px;
    border-radius: 999px;
    margin-bottom: 14px;
}

.quiz-modal__title {
    font-size: 26px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 4px;
}

.quiz-sub {
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 22px;
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 22px;
}

.quiz-option {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    text-align: left;
    padding: 14px 16px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: 12px;
    cursor: pointer;
    transition: border-color .2s, background .2s;
}

.quiz-option::before {
    content: "";
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border: 2px solid var(--border);
    border-radius: 6px;
    transition: border-color .2s, background .2s;
}

.quiz-option:hover {
    border-color: var(--pink);
}

.quiz-option.is-selected {
    border-color: var(--pink);
    background: var(--pink-soft);
}

.quiz-option.is-selected::before {
    border-color: var(--pink);
    background: var(--pink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 14px no-repeat;
}

.quiz-continue {
    width: 100%;
    padding: 14px;
    font-size: 15px;
    font-weight: 800;
    color: var(--white);
    background: var(--pink);
    border: none;
    border-radius: 999px;
    cursor: pointer;
    transition: opacity .2s, transform .15s;
}

.quiz-continue:hover:not(:disabled) {
    transform: translateY(-1px);
    opacity: .92;
}

.quiz-continue:disabled {
    background: var(--border);
    color: var(--muted);
    cursor: not-allowed;
}

@media (max-width: 600px) {
    .quiz-modal {
        padding: 30px 20px 24px;
    }

    .quiz-modal__title {
        font-size: 22px;
    }
}

/* ══════════════════════════════════════
   CONTENT PAGES (about, privacy, terms)
══════════════════════════════════════ */
.page-body {
    padding-top: 40px;
    padding-bottom: 64px;
}

.section-text {
    padding: 32px 0;
    border-bottom: 1px solid var(--border);
    line-height: 1.7;
}

.section-text:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.section-text h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 16px;
    line-height: 1.3;
}

.section-text p {
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 10px;
}

.section-text p:last-child {
    margin-bottom: 0;
}

.section-text em {
    font-style: italic;
    color: var(--muted);
}

.section-text__list {
    margin: 12px 0 12px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.section-text__list li {
    font-size: 14px;
    color: var(--muted);
    list-style: disc;
}
