﻿@import url("https://cdnjs.cloudflare.com/ajax/libs/meyer-reset/2.0/reset.min.css");

:root {
    --primary-color: #f15a24; /* Orange */
    --secondary-color: #1b334b; /* Dark blue */
    --tertiary-color: #555; /* Dark gray */
    --background-color: #fff;
    --warning-color: #ef4343; /* Washed out red */

    --border-radius: 32px;
}

* {
    -webkit-font-smoothing: antialiased;
    box-sizing: border-box;
    line-height: 1.2em;
    font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}

html,
body {
    margin: 0;
    padding: 0;
    background: var(--background-color);
    color: var(--secondary-color);
    line-height: 1.6;
    text-align: center;
}

.navbar, footer {
    display: none;
}

/* Common styles */
.landing-page {
    display: flex;
    flex-direction: column;
    background-color: var(--background-color);
    max-width: 740px;
    margin: 0 auto;
    padding: 40px 20px;
}

.header h1 {
    margin: 2rem;
}

h1 {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 10px;
}

@media (max-width: 640px) {
    h1 {
        font-size: 2rem;
    }
}

h1 .highlight {
    color: var(--primary-color);
    line-height: 2;
}

h2 {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-top: 50px;
    margin-bottom: 10px;
}

p {
    font-size: 1rem;
    color: var(--tertiary-color);
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 0.75rem;
    margin-top: 30px;
    align-items: flex-start;
}

.feature-container {
    display: flex;
    flex-direction: row;
}

.check-icon {
    flex-shrink: 0;
    width: 1.2rem;
    height: 1.2rem;
    stroke: #f3723f;
    fill: none;
}

.feature {
    display: flex;
    flex-direction: column;
    text-align: center;
    padding-left: 0.5rem;
    padding-bottom: 0.5rem;
}

    .feature h3 {
        font-size: 1rem;
        font-weight: bold;
        margin-bottom: 5px;
        display: flex;
        align-items: center;
    }

    .feature p {
        text-align: left;
        margin: 0;
        font-size: 0.95rem;
        color: #666;
    }

.insights {
    background: linear-gradient(to top, rgba(241, 90, 36, 0.08), #ffffff);
    border-radius: var(--border-radius);
    padding: 40px 20px;
}

    .insights h3 {
        font-size: 1rem;
        font-weight: bold;
        margin-bottom: 7px;
        align-items: center;
    }

.insights-advantages {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-top: 30px;
}

.insights-advantages-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    margin: 0 auto 15px;
    color: #fff;
    padding: 0px;
}

    .insights-advantages-icon.tracking {
        background: #1B334B33;
    }

    .insights-advantages-icon.insights {
        background: #F3723F33;
    }

    .insights-advantages-icon.breakdown {
        background: #EF434333;
    }

.phones-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 2.5rem;
}

.phone-frame {
    position: relative;
    width: 220px;
    height: 440px;
    background-color: #f9f9f9;
    border: 4px solid #E1E7EF;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

@media (min-width: 640px) {
    .phone-frame {
        width: 280px;
        height: 560px;
        border-width: 8px;
        border-radius: 40px;
    }
}

.notch {
    position: absolute;
    top: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 64px;
    height: 16px;
    background-color: #E1E7EF;
    border-radius: 300px;
    z-index: 20;
}

@media (min-width: 640px) {
    .notch {
        top: 8px;
        width: 80px;
        height: 24px;
    }
}

/* Screen */
.screen {
    position: absolute;
    inset: 8px;
    background-color: #f9f9f9;
    border-radius: var(--border-radius);
    overflow: hidden;
}

@media (min-width: 640px) {
    .screen {
        inset: 12px;
        border-radius: 28px;
    }
}

.status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 8px;
    font-size: 10px;
    background-color: #F3723F0D;
}

@media (min-width: 640px) {
    .status-bar {
        padding: 8px 16px;
        font-size: 12px;
    }
}

.status-bar .time {
    font-weight: 500;
}

.battery {
    display: flex;
    align-items: center;
    gap: 4px;
}

.battery-frame {
    width: 12px;
    height: 6px;
    border: 1px solid rgba(0, 0, 0, 0.4);
    border-radius: 2px;
}

.battery-level {
    width: 75%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 2px;
}

.phone-frame-content {
    height: calc(100% - 30px);
    overflow: hidden;
}

.icon-phone-frame {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.sign-up-form {
    display: flex;
    flex-direction: column;
    margin: 20px;
    border: 2px solid #e2e8f0;
    border-radius: var(--border-radius);
}

.registration-form {
    padding: 1.2rem;
}

@media (min-width: 640px) {
    .registration-form {
        padding: 2rem;
    }
}

.registration-form h2 {
    margin-top: 25px;
    margin-bottom: 25px;
}

.input-group {
    flex-direction: column;
}

.input-field {
    padding-top: 8px;
    padding-bottom: 8px;
    text-align: left;
}

.consent-container {
    text-align: left;
}

.text-decorative {
    color: var(--warning-color);
}

.terms-container {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.terms-text-container {
    display: flex;
    flex-direction: column;
}

#terms-checkbox {
    margin-top: 3px;
    accent-color: var(--primary-color);
    cursor: pointer;
    border-color: var(--primary-color);
    background-color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: var(--border-radius);
    position: relative;
}

    #terms-checkbox:checked {
        accent-color: var(--primary-color);
        border-color: var(--primary-color);
    }

.terms-agreement-text {
    font-weight: 700;
    padding-bottom: 6px;
}

.terms-agreement-usage-description {
    color: var(--tertiary-color);
}

#registration-submit-button {
    margin-top: 24px;
    padding-left: 8px;
    padding-right: 8px;
    background-color: var(--primary-color);
    border-radius: calc(0.5rem - 2px);
    border-color: var(--primary-color);
    color: #fafafa;
    width: 100%;
    height: 100%;
    border: none;
    line-height: 2.75rem;
}

@media (min-width: 640px) {
    #registration-submit-button {
        padding-left: 16px;
        padding-right: 16px;
    }
}

.questions-direction {
    margin-top: 24px;
    font-size: .75rem;
    line-height: 1rem;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 1;
    pointer-events: auto;
    transition: opacity 0.3s ease;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.modal h2 {
    margin-top: 20px;
}

.modal-content {
    background-color: white;
    padding: 2rem;
    border-radius: 6px;
    width: 90%;
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.2);
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    cursor: default;
    z-index: -1;
}

.small-text {
    font-size: 0.7rem;
}

.loader-dots {
    width: 60px;
    aspect-ratio: 4;
    background: radial-gradient(circle closest-side,var(--tertiary-color) 90%,#0000) 0/calc(100%/3) 100% space;
    clip-path: inset(0 100% 0 0);
    animation: l1 1s steps(4) infinite;
}

@keyframes l1 {
    to {
        clip-path: inset(0 -34% 0 0)
    }
}
