/* ===========================
   MAJORITY — WhatsApp Remittance Landing
   =========================== */

@font-face {
    font-family: 'GT America';
    src: url('assets/fonts/GT-America-Standard-Light.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'GT America';
    src: url('assets/fonts/GT-America-Standard-Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'GT America';
    src: url('assets/fonts/GT-America-Standard-Medium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

:root {
    /* MAJORITY brand */
    --color-black: #000000;
    --color-white: #FFFFFF;
    --color-turquoise: #8EF7E9;
    --color-midnight-gray: #222426;
    --color-dusty-gray: #413E3D;
    --color-beige: #FFF5F0;

    --font: 'GT America', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --radius: 16px;
    --max-width: 480px;
}

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

body {
    font-family: var(--font);
    background: var(--color-black);
    color: var(--color-white);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 24px 20px 40px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ---- language toggle ---- */

.language-toggle {
    position: absolute;
    top: 16px;
    right: 16px;
    background: transparent;
    color: var(--color-white);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    padding: 6px 14px;
    font-family: var(--font);
    font-size: 0.8rem;
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.language-toggle:hover {
    border-color: var(--color-turquoise);
    color: var(--color-turquoise);
}

/* ---- header ---- */

.header {
    text-align: center;
    padding: 40px 0 8px;
}

.logo {
    height: 28px;
    filter: invert(1);
    margin-bottom: 32px;
}

.headline {
    font-size: 2rem;
    font-weight: 500;
    line-height: 1.15;
    margin-bottom: 12px;
}

.subheadline {
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.75);
}

/* ---- phone form ---- */

.main {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding-top: 40px;
}

.start-form {
    display: flex;
    flex-direction: column;
    background: var(--color-midnight-gray);
    border-radius: var(--radius);
    padding: 24px 20px;
    margin-bottom: 24px;
}

.phone-label {
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 10px;
}

.phone-input {
    font-family: var(--font);
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--color-white);
    background: var(--color-black);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 12px;
    padding: 14px 16px;
    outline: none;
    transition: border-color 0.2s ease;
}

.phone-input:focus {
    border-color: var(--color-turquoise);
}

.phone-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.phone-hint {
    font-size: 0.8rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.55);
    margin-top: 8px;
    margin-bottom: 20px;
}

.phone-error {
    font-size: 0.8rem;
    color: #FF8A94;
    margin-top: -12px;
    margin-bottom: 16px;
}

.cta {
    display: block;
    text-align: center;
    text-decoration: none;
    border-radius: 999px;
    padding: 16px 24px;
    font-size: 1rem;
    font-weight: 500;
    transition: transform 0.15s ease, opacity 0.15s ease;
}

.cta:active {
    transform: scale(0.98);
}

.cta-primary {
    background: var(--color-turquoise);
    color: var(--color-black);
}

.cta-primary:hover {
    opacity: 0.9;
}

.cta-secondary {
    background: transparent;
    color: var(--color-white);
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.cta-secondary:hover {
    border-color: var(--color-turquoise);
    color: var(--color-turquoise);
}

/* ---- fine print & footer ---- */

.fine-print {
    font-size: 0.72rem;
    font-weight: 300;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.45);
    text-align: center;
}

.footer {
    padding-top: 32px;
    text-align: center;
    font-size: 0.75rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.4);
}

.footer a {
    color: inherit;
}

/* ---- larger screens ---- */

@media (min-width: 640px) {
    .container {
        padding-top: 48px;
    }

    .headline {
        font-size: 2.4rem;
    }
}
