/* ╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌
   Wasiya — Landing Page
   Brand color: #267055 (icon bg)
   Wordmark color: #1a5440 (matches app WasiyaLogo.tsx)
   Font: Golos Text
╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌ */

:root {
    --brand: #267055;
    --brand-dark: #1a5440;
    --brand-light: #e8f5ee;
    --stone-50: #fafaf9;
    --stone-100: #f5f5f4;
    --stone-200: #e7e5e4;
    --stone-400: #a8a29e;
    --stone-500: #78716c;
    --stone-600: #57534e;
    --stone-700: #44403c;
    --stone-800: #292524;
    --stone-900: #1c1917;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Golos Text', system-ui, -apple-system, sans-serif;
    color: var(--stone-800);
    background: var(--stone-50);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 980px;
    margin: 0 auto;
    padding: 0 24px;
}

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

/* ── Nav ── */
.nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(250, 250, 249, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--stone-200);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    padding-bottom: 14px;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-icon {
    width: 32px;
    height: 32px;
    background: var(--brand);
    border-radius: 7px; /* 22% of 32 — matches WasiyaLogo.tsx borderRadius calc */
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.nav-wordmark {
    font-weight: 800;
    font-size: 20px; /* 62.5% of 32 — matches WasiyaLogo.tsx fontSize calc */
    letter-spacing: 0.14em;
    color: var(--brand-dark); /* #1a5440 — matches app exactly */
}

.nav-sub {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--stone-400);
    transition: color 0.2s;
    padding-top: 2px;
}

.nav-sub:hover {
    color: var(--brand);
}

.nav-cta {
    font-size: 14px;
    font-weight: 600;
    color: white;
    background: var(--brand);
    padding: 8px 20px;
    border-radius: 100px;
    transition: background 0.2s;
}

.nav-cta:hover {
    background: var(--brand-dark);
}

/* ── Hero ── */
.hero {
    text-align: center;
    padding: 100px 0 80px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--stone-600);
    background: white;
    border: 1px solid var(--stone-200);
    padding: 8px 18px;
    border-radius: 100px;
    margin-bottom: 36px;
}

.hero-badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--brand);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

h1 {
    font-size: clamp(32px, 5.5vw, 52px);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.02em;
    color: var(--stone-900);
    margin-bottom: 16px;
}

/* 🇨🇦 badge inline under heading */
.canada-badge {
    font-size: 15px;
    font-weight: 500;
    color: var(--stone-500);
    letter-spacing: 0.02em;
    margin-bottom: 16px;
}

.hero-subtitle {
    font-size: 17px;
    font-weight: 500;
    color: var(--stone-500);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

/* ── Form ── */
.email-form {
    display: flex;
    gap: 10px;
    max-width: 540px;
    margin: 0 auto 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.email-form input[type="email"],
.email-form input[type="text"] {
    flex: 1 1 220px;
    padding: 14px 18px;
    font-size: 15px;
    font-family: inherit;
    border: 1px solid var(--stone-200);
    border-radius: 10px;
    background: white;
    color: var(--stone-800);
    outline: none;
    transition: border-color 0.2s;
}

.email-form input[type="email"]:focus,
.email-form input[type="text"]:focus {
    border-color: var(--brand);
}

.email-form select {
    flex: 0 1 160px;
    padding: 14px 18px;
    font-size: 15px;
    font-family: inherit;
    border: 1px solid var(--stone-200);
    border-radius: 10px;
    background: white;
    color: var(--stone-800);
    outline: none;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2378716c' d='M3 4.5L6 7.5L9 4.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 12px;
    transition: border-color 0.2s;
}

.email-form select:focus {
    border-color: var(--brand);
}

.email-form button {
    flex: 1 1 100%;
    padding: 14px 32px;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    color: white;
    background: var(--brand);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    max-width: 220px;
}

.email-form button:hover {
    background: var(--brand-dark);
}

.email-form button:active {
    transform: scale(0.98);
}

.email-form button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.form-note {
    font-size: 13px;
    color: var(--stone-400);
    text-align: center;
}

.form-note a {
    color: var(--stone-500);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.form-error {
    font-size: 14px;
    color: #dc2626;
    text-align: center;
    display: none;
}

.form-error.show { display: block; margin-top: 8px; }

.form-success {
    display: none;
    text-align: center;
    padding: 24px;
    background: var(--brand-light);
    border-radius: 12px;
    max-width: 400px;
    margin: 0 auto;
}

.form-success.show { display: block; }

.form-success p {
    font-size: 18px;
    font-weight: 600;
    color: var(--brand-dark);
    margin-bottom: 4px;
}

.form-success span {
    font-size: 14px;
    color: var(--stone-500);
}

/* ── Bridge (Will Kit) — card styling ── */
.bridge {
    padding: 0 0 64px;
}

.bridge-card {
    text-align: center;
    background: white;
    border: 1px solid var(--stone-200);
    border-radius: 16px;
    padding: 48px 32px;
}

.bridge-card h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--stone-800);
    margin-bottom: 8px;
}

.bridge-card p {
    font-size: 15px;
    color: var(--stone-500);
    margin-bottom: 20px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

.bridge-link {
    font-size: 15px;
    font-weight: 600;
    color: var(--brand);
    transition: color 0.2s;
}

.bridge-link:hover {
    color: var(--brand-dark);
}

/* ── Footer ── */
.footer {
    border-top: 1px solid var(--stone-200);
    background: white;
    padding: 48px 0 32px;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand-lockup {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.footer-icon {
    width: 26px;
    height: 26px;
    background: var(--brand);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.footer-wordmark {
    font-weight: 800;
    font-size: 14px;
    letter-spacing: 0.14em;
    color: var(--brand-dark); /* #1a5440 — matches app */
}

.footer-sub {
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--stone-400);
    transition: color 0.2s;
    display: block;
    margin-bottom: 6px;
}

.footer-sub:hover { color: var(--stone-600); }

.footer-tagline {
    font-size: 14px;
    color: var(--stone-400);
    margin-bottom: 16px;
}

.footer-socials {
    display: flex;
    align-items: center;
    gap: 6px;
}

.footer-socials a {
    color: var(--stone-400);
    transition: color 0.2s;
    display: flex;
    align-items: center;
    padding: 4px;
}

.footer-socials a:hover { color: var(--stone-700); }

/* Link columns */
.footer-links {
    display: flex;
    gap: 48px;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-col-title {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--stone-400);
    margin-bottom: 4px;
}

.footer-col a {
    font-size: 14px;
    color: var(--stone-500);
    transition: color 0.2s;
}

.footer-col a:hover { color: var(--stone-800); }

/* Bottom */
.footer-bottom {
    border-top: 1px solid var(--stone-100);
    padding-top: 24px;
    text-align: center;
    font-size: 12px;
    color: var(--stone-400);
    line-height: 1.7;
}

.footer-bottom a {
    transition: color 0.2s;
}

.footer-bottom a:hover { color: var(--stone-600); }

.footer-bottom p + p {
    margin-top: 4px;
}

/* ── Animations ── */
.fade-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-up-d1 { transition-delay: 0.1s; }
.fade-up-d2 { transition-delay: 0.2s; }
.fade-up-d3 { transition-delay: 0.3s; }
.fade-up-d4 { transition-delay: 0.4s; }

/* ── Responsive ── */
@media (max-width: 768px) {
    .hero {
        padding: 72px 0 60px;
    }

    .email-form {
        flex-direction: column;
        padding: 0 8px;
    }

    .email-form input[type="text"],
    .email-form input[type="email"],
    .email-form select,
    .email-form button {
        flex: 1 1 auto;
        max-width: none;
        width: 100%;
    }
    
    .hero-subtitle {
        font-size: 15px;
        padding: 0 16px;
    }

    .footer-top {
        flex-direction: column;
        gap: 32px;
    }

    .footer-links {
        gap: 32px;
        flex-wrap: wrap;
    }

    .nav-sub {
        display: none;
    }

    .bridge-card {
        padding: 36px 24px;
    }
}
