/* =====================================================
   Frank Insights Landing Page - Styles
   ===================================================== */

/* Font Faces */
@font-face {
    font-family: 'Instrument Sans';
    font-style: normal;
    font-weight: 400;
    src: url('https://fonts.gstatic.com/s/instrumentsans/v1/pximypc9vsFDm051Uf6KVwgkfoSxQ0GsQv8ToedPibnr-yp2JGEJOH9npSTF-Qf1mS0v3_7Y.ttf') format('truetype');
}

@font-face {
    font-family: 'Instrument Sans';
    font-style: normal;
    font-weight: 400;
    src: url('https://fonts.gstatic.com/s/instrumentsans/v1/pximypc9vsFDm051Uf6KVwgkfoSxQ0GsQv8ToedPibnr-yp2JGEJOH9npST3-Qf1mS0v3_7Y.ttf') format('truetype');
}

@font-face {
    font-family: 'Instrument Sans';
    font-style: normal;
    font-weight: 600;
    src: url('https://fonts.gstatic.com/s/instrumentsans/v1/pximypc9vsFDm051Uf6KVwgkfoSxQ0GsQv8ToedPibnr-yp2JGEJOH9npSQb_gf1mS0v3_7Y.ttf') format('truetype');
}

@font-face {
    font-family: 'Instrument Sans';
    font-style: normal;
    font-weight: 700;
    src: url('https://fonts.gstatic.com/s/instrumentsans/v1/pximypc9vsFDm051Uf6KVwgkfoSxQ0GsQv8ToedPibnr-yp2JGEJOH9npSQi_gf1mS0v3_7Y.ttf') format('truetype');
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Instrument Sans", -apple-system, Roboto, Helvetica, sans-serif;
    width: 100%;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Animated Background - Parallax Layers */
body::before,
body::after {
    content: '';
    position: fixed;
    inset: -25%;
    width: 150%;
    height: 150%;
    background-image: url(images/site_Bg.jpg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    will-change: transform;
}

/* Back layer - base */
body::before {
    z-index: -2;
    animation: parallaxSlow 27s ease-in-out infinite;
}

/* Front layer - faster, overlay */
body::after {
    z-index: -1;
    opacity: 0.6;
    mix-blend-mode: overlay;
    animation: parallaxFast 16s ease-in-out infinite;
}

@keyframes parallaxSlow {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(16%, 8%) scale(1.05); }
    50% { transform: translate(-4%, 16%) scale(1.02); }
    75% { transform: translate(-16%, 4%) scale(1.04); }
}

@keyframes parallaxFast {
    0%, 100% { transform: translate(0, 0) scale(1.05); }
    33% { transform: translate(-20%, 12%) scale(1.12); }
    66% { transform: translate(20%, -8%) scale(1.08); }
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    body::before,
    body::after {
        animation: none;
        transform: none;
        inset: 0;
        width: 100%;
        height: 100%;
    }
    body::after {
        display: none;
    }
}

/* Background Decorative Waves */
.background-waves {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    opacity: 0.2;
    width: 100%;
    height: 100%;
}

/* Main Container */
.container {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    padding: 70px 50px 0;
    align-items: flex-start;
    justify-content: space-between;
    gap: 60px;
}

/* Main Content Section */
.main-content {
    flex: 1;
}

.logo {
    margin-bottom: 60px;
}

.logo svg {
    max-width: 100%;
    height: auto;
}

/* Main Heading */
.main-heading {
    color: white;
    font-size: 37px;
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 60px;
    display: flex;
    flex-direction: column;
    max-width: 16ch;
}

.heading-primary {
    display: block;
}

.heading-secondary {
    display: block;
}

/* Hero Images */
.hero-images {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    flex-direction: row;
}

.icon {
    width: 136px;
    height: 136px;
    flex-shrink: 0;
    object-fit: contain;
    fill: white;
}

.icon .eye {
    --eye-x: 0;
    --eye-y: 0;
    --eye-scale: 1;
    transform-origin: center;
    transform-box: fill-box;
    transform: translate(var(--eye-x), var(--eye-y)) scaleY(var(--eye-scale));
    animation: blink 8s ease-in-out infinite;
}

@keyframes blink {
    0%, 85%, 100% { --eye-scale: 1; }
    90% { --eye-scale: 0.3; }
    92%, 94% { --eye-scale: 0.05; }
    96% { --eye-scale: 0.3; }
}

.speech-bubble {
    position: relative;
    width: 172px;
}

.speech-bubble img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}



/* Form Section */
.form-section {
    background-color: white;
    padding: 40px;
    width: 100%;
    max-width: 650px;
    border-radius: 24px;
}

.form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.form-header h2 {
    color: #111;
    font-size: 20px;
    font-weight: 400;
    margin: 0;
}

.launch-date {
    color: #666;
    font-size: 15px;
    font-weight: 400;
}

/* Form Styles */
.signup-form {
    display: flex;
    flex-direction: column;
    gap: 26px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-field label {
    color: #111;
    font-size: 16px;
    font-weight: 400;
}

.form-field input {
    height: 44px;
    border-radius: 5px;
    border: 1px solid #BDBDBD;
    background-color: #FBFBFB;
    padding: 12px;
    font-size: 16px;
    outline: none;
    font-family: "Instrument Sans", -apple-system, Roboto, Helvetica, sans-serif;
    transition: border-color 0.2s;
}

.form-field input:focus {
    border-color: #111;
}

.submit-btn {
    background-color: #111;
    color: white;
    padding: 12px 45px;
    border-radius: 4px;
    border: none;
    font-size: 16px;
    font-weight: 400;
    cursor: pointer;
    transition: background-color 0.2s;
    font-family: "Instrument Sans", -apple-system, Roboto, Helvetica, sans-serif;
}

.submit-btn:hover {
    background-color: #444;
}

.submit-btn:disabled {
    background-color: #999;
    cursor: not-allowed;
}

.privacy-notice {
    color: #666;
    font-size: 12px;
    font-weight: 400;
    text-align: left;
    margin: 0;
    line-height: 16px;
}

/* Form Message Styles */
.form-message {
    padding: 14px 16px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 400;
    text-align: center;
    margin-top: 20px;
    line-height: 1.4;
    display: none;
}

.form-message.success,
.form-message.error {
    display: block;
}

.form-message.success {
    background-color: #E8F5E9;
    color: #2E7D32;
    border: 1px solid #66BB6A;
}

.form-message.error {
    background-color: #FFEBEE;
    color: #C62828;
    border: 1px solid #EF5350;
}

/* Footer */
.footer {
    display: flex;
    flex-direction: column;
    position: relative;
    flex-shrink: 0;
    box-sizing: border-box;
    margin: 0 auto;
    max-width: 1200px;
    padding: 0 50px 70px;
}

.footer svg {
    margin: 0;
}

/* =====================================================
   Tablet Styles (Medium)
   ===================================================== */
@media (max-width: 991px) {
    body::before,
    body::after {
        background-position: left;
    }

    .container {
        flex-direction: column;
        padding: 20px;
        gap: 30px;
    }

    .main-content {
        padding: 0;
        text-align: center;
        display: flex;
        flex-direction: column;
        margin-left: auto;
        margin-right: auto;
    }

    .logo {
        margin-bottom: 40px;
        align-items: center;
        margin-left: auto;
        margin-right: auto;
    }

    .main-heading {
        font-size: 25px;
        line-height: 1.4;
        margin-bottom: 40px;
        text-align: center;
        max-width: none;
    }

    .hero-images {
        margin: 0 auto 20px;
    }

    .form-section {
        max-width: 100%;
    }

    .footer {
        padding: 0 60px 40px;
        text-align: center;
    }

    .footer svg {
        margin-left: auto;
        margin-right: auto;
    }
}

/* =====================================================
   Mobile Styles (Small)
   ===================================================== */
@media (max-width: 767px) {

    .form-section {
        overflow: hidden;
        padding: 20px;
    }

    .form-header {
        flex-direction: column;
        gap: 8px;
        text-align: left;
        margin-bottom: 20px;
    }

    .footer {
        align-items: center;
    }
}

/* =====================================================
   Privacy Policy Link
   ===================================================== */
.privacy-link {
    color: #666;
    text-decoration: underline;
    cursor: pointer;
    transition: color 0.2s;
}

.privacy-link:hover {
    color: #111;
}

/* =====================================================
   Privacy Policy Dialog (Modal)
   ===================================================== */
.privacy-dialog {
    max-width: 700px;
    width: calc(100% - 40px);
    max-height: 80vh;
    border: none;
    border-radius: 12px;
    padding: 0;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    font-family: "Instrument Sans", -apple-system, Roboto, Helvetica, sans-serif;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
}

.privacy-dialog::backdrop {
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.dialog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 32px;
    border-bottom: 1px solid #E0E0E0;
    position: sticky;
    top: 0;
    background-color: white;
    z-index: 1;
}

.dialog-header h2 {
    color: #111;
    font-size: 24px;
    font-weight: 600;
    margin: 0;
}

.dialog-close {
    background: none;
    border: none;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    transition: color 0.2s, transform 0.2s;
    border-radius: 4px;
}

.dialog-close:hover {
    color: #111;
    background-color: #F5F5F5;
}

.dialog-close:focus {
    outline: 2px solid #111;
    outline-offset: 2px;
}

.dialog-content {
    padding: 32px;
    overflow-y: auto;
    max-height: calc(80vh - 80px);
}

.dialog-content section {
    margin-bottom: 32px;
}

.dialog-content section:last-child {
    margin-bottom: 0;
}

.dialog-content h3 {
    color: #111;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
}

.dialog-content p {
    color: #333;
    font-size: 15px;
    font-weight: 400;
    line-height: 24px;
    margin-bottom: 12px;
}

.dialog-content p:last-child {
    margin-bottom: 0;
}

.dialog-content ul {
    margin: 12px 0;
    padding-left: 24px;
}

.dialog-content li {
    color: #333;
    font-size: 15px;
    line-height: 24px;
    margin-bottom: 8px;
}

.dialog-content a {
    color: #111;
    text-decoration: underline;
    transition: color 0.2s;
}

.dialog-content a:hover {
    color: #666;
}

.last-updated {
    color: #666;
    font-size: 13px;
    font-style: italic;
    margin-top: 16px;
}

/* Mobile Styles for Dialog */
@media (max-width: 767px) {
    .privacy-dialog {
        width: calc(100% - 20px);
        max-height: 90vh;
    }

    .dialog-header {
        padding: 20px 24px;
    }

    .dialog-header h2 {
        font-size: 20px;
    }

    .dialog-content {
        padding: 24px;
    }

    .dialog-content h3 {
        font-size: 16px;
    }

    .dialog-content p,
    .dialog-content li {
        font-size: 14px;
    }
}
