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

html, body {
    height: 100dvh;
    min-height: 100svh;
    overflow: clip;
    overflow: hidden; /* Fallback for browsers that don't support clip */
    overscroll-behavior: none;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background-color: #FFFCF0;
    color: #1a1a1a;
    line-height: 1.6;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card {
    width: 85vw;
    height: 85dvh;
    min-height: 85svh;
    background-color: #CB6120;
    border-radius: 24px;
    display: grid;
    grid-template-rows: 1fr auto;
}

.main-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.left-column {
    display: flex;
    align-items: center;
    padding-left: 15%;
    margin-top: -59px;
    margin-left: 25px;
}

.right-column {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
}

.phone-container {
    width: 80%;
    max-width: 400px;
}

#phone {
    width: 100%;
    padding: clamp(14px, 1.5vw, 18px) clamp(20px, 2vw, 24px);
    padding-left: 52px;
    font-size: clamp(16px, 1.2vw, 20px);
    background-color: #FFFCF0;
    border: 2px solid #FAEEC6;
    border-radius: 12px;
    font-family: "Nunito", sans-serif;
    transition: border-color 0.3s ease;
}

#phone:focus {
    outline: none;
    border-color: #F9AE77;
}

.iti {
    width: 100%;
}

.iti__flag-container {
    background-color: transparent;
}

.iti__selected-flag {
    background-color: transparent;
}

/* Country dropdown improvements */
.iti__search-input {
    padding: 12px 16px !important;
    font-size: 16px !important;
    height: 48px !important;
    font-family: "Nunito", sans-serif;
    border-radius: 8px !important;
    margin: 8px !important;
    width: calc(100% - 16px) !important;
}

.iti__dropdown-content {
    padding: 8px 0;
}

.iti__country {
    padding: 10px 16px;
    font-size: 15px;
}

.iti__country-list {
    max-height: 300px;
}

.submit-btn {
    width: 100%;
    margin-top: 20px;
    padding: clamp(14px, 1.5vw, 18px) clamp(20px, 2vw, 24px);
    font-size: clamp(16px, 1.2vw, 20px);
    font-weight: 600;
    font-family: "Nunito", sans-serif;
    background-color: #1C1B1A;
    color: #FFFCF0;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

h1 {
    font-family: "Nunito", sans-serif;
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 700;
    letter-spacing: -1.5px;
    color: #FAEEC6;
}

h1 span {
    display: block;
    line-height: 1.1;
    opacity: 0; /* Revealed via WAAPI or fallback */
}


.footer {
    padding: 20px 60px;
    padding-bottom: max(env(safe-area-inset-bottom), 20px);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 28px;
}

.footer-text {
    font-family: "Nunito", sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #FAEEC6;
}

.manifest-logo {
    height: 40px;
    width: auto;
    margin-top: -14px;
}

.follow-section {
    display: flex;
    align-items: center;
    gap: 7px;
}

.social-link {
    display: flex;
    align-items: center;
    transition: transform 0.2s ease;
}

.social-link:hover {
    transform: translateY(-2px);
}

.x-logo {
    height: 16px;
    width: auto;
    filter: brightness(0) saturate(100%) invert(96%) sepia(14%) saturate(434%) hue-rotate(11deg) brightness(102%) contrast(96%);
    margin-top: -8px;
}

@media (max-width: 768px) {
    .card {
        height: 92dvh;
        min-height: 92svh;
        grid-template-rows: 1fr auto;
    }
    
    .main-content {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr 1fr;
    }
    
    .left-column {
        padding-left: 0;
        margin-left: 0;
        justify-content: center;
        align-items: flex-end;
        padding-bottom: 50px;
    }
    
    .right-column {
        margin-right: 0;
        align-items: flex-start;
        padding-top: 5px;
    }
    
    h1 {
        text-align: center;
        font-size: clamp(3rem, 10vw, 5rem);
    }
    
    .phone-container {
        width: 90%;
        max-width: none;
    }
    
    #phone {
        font-size: 18px;
        padding: 16px 20px;
        padding-left: 52px;
    }
    
    .submit-btn {
        margin-top: 12px;
        font-size: 18px;
        padding: 16px 20px;
    }
    
    .footer {
        padding: 10px 30px;
        padding-bottom: max(env(safe-area-inset-bottom), 10px);
        font-size: 12px;
        gap: 10px;
    }
    
    .footer-text {
        font-size: 12px;
        font-weight: 700;
    }
    
    .footer-text:first-child {
        margin-left: 15px;
    }
    
    .manifest-logo {
        height: 30px;
        margin-top: -8px;
        margin-left: 15px;
    }
    
    .x-logo {
        height: 16px;
        margin-top: -6px;
    }
}