@import './reset.css';
@import './typography.css';
@import './badges.css';
@import './buttons.css';
@import './tokens.css';
@import './animations.css';

@import './components/header.css';
@import './components/footer.css';

body {
    font-family: "Inter", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    line-height: 1.6;
    color: var(--text-color);
}

/* Highlight Styles */
.highlight {
    font-family: 'Instrument Serif', serif;
    font-weight: 400;
    font-style: italic;
}

.highlight--fullwidth {
    display: block;
}



/* Hero Section */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    color: black;
    text-align: center;
    padding: 4rem 0 0 0;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 55ch;
    position: relative;
    z-index: 2;
    margin-bottom: 18rem;
    padding: 4rem 1rem 0 1rem;
}

.hero-content .badge {
    display: inline-block;
    margin-bottom: 1.5rem;
}

.hero-content h1 {
    margin-bottom: 1rem;
}

.hero-content p {
    margin-bottom: 2rem;
}

.download-links {
    display: flex;
    flex-direction: row;
    list-style-type: none;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    
}

.download-links li img {
    width: 160px;
    height: auto;
}

.download-links li .btn--android img {
    width: 170px;
}




.subscription-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #ffffff;
    border-radius: 24px;
    padding: 0.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    width: 100%;
    max-width: 500px;
}

.email-input {
    width: 100%;
    border: none;
    outline: none;
    padding: 12px;
    font-size: 14px;
    color: #686868;
    background: transparent;
    text-align: center;
}

.email-input::placeholder {
    color: #686868;
}

.notify-button {
    width: 100%;
    background-color: #171715;
    color: white;
    border: none;
    border-radius: 50px;
    padding: 16px 32px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.notify-button:hover {
    background-color: #2a2a28;
}

.response-message {
    display: none;
}

/* iPhone Mockup */
.iphone-mockup {
    position: absolute;
    width: 200px;
    height: 406px;
    bottom: 0;
    z-index: 1000;
}

.iphone-frame {
    position: relative;
    width: 100%;
    height: 100%;
}


/* Features Section */
.features {
    padding: 4rem 1rem;
    background: var(--light-background);
}

.features h2 {
    text-align: center;
    margin-bottom: 4rem;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    max-width: 1400px;
    margin: 0 auto;
}

.feature-item {
    position: relative;
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: inset 0 0 0 2px var(--primary-color);
}

.feature-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.feature-content {
    padding: 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.feature-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.feature-content h3 .highlight {
    display: block;
}

.feature-content p {
    font-size: 1rem;
    color: var(--light-text);
    line-height: 1.5;
}

/* FAQ Section */
.faq {
    padding: 2rem 1rem;
    background: white;
}

@media screen and (min-width: 768px) {
    .faq  {
        padding: 4rem 1rem;
    }
}

.faq-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media screen and (min-width: 768px) {
    .faq-container  {
        gap: 2rem;
    }
}

.faq-header h2 {
    text-align: center;
    display: block;
    margin-bottom: 1rem;
}

.accordion {
    display: flex;
    flex-direction: column;
}

.accordion-item {
    background: white;
    overflow: hidden;
    box-shadow: 0px -1px 0px 0px #E6E5E5;
}

.accordion-button {
    width: 100%;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    text-align: left;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    gap: 0.5rem;
}

.accordion-button:hover {
    background-color: var(--light-background);
}

.accordion-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1rem;
    height: 1rem;
    fill: #A0ADAC;
    transition: transform 0.3s ease;
}

.accordion-icon .icon {
    width: 100%;
    height: 100%;
    color: currentColor;
}

.accordion-item.active .accordion-icon {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.accordion-item.active .accordion-content {
    max-height: 500px;
}

.accordion-content p {
    padding: 0 1rem 1rem;
}

/* Brands Section */
.brands {
    padding: 8px 0;
    background: white;
    overflow: hidden;
    width: 100%;
    /* /* border-bottom: 200px solid var(--light-background); */
    border-bottom: 40px solid var(--light-background); 
}

.brands-container {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.brands-track {
    display: flex;
    animation: scroll 30s linear infinite;
    width: fit-content;
}

.brand-item {
    flex: 0 0 150px;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-item img {
    max-width: 100%;
    height: auto;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.brand-item img:hover {
    filter: grayscale(0%);
    opacity: 1;
}


@media (min-width: 425px) {
    .subscription-container {
        flex-direction: row;
        border-radius: 50px;
        padding: 4px;
        margin-bottom: 20px;
        gap: 1rem;
    }

    .email-input {
        text-align: left;
        padding: 8px 16px;
    }

    .notify-button {
        width: auto;
        min-width: 160px;
    }
    
}

/* Media Queries */
@media (min-width: 768px) {

    .hero {
        padding: 6rem 0 0 0;
    }

    .hero-content {
        margin-bottom: 34rem;
    }

    .hero-content h1 {
        margin-bottom: 2rem;
    }

    .hero-content .badge {
        margin-bottom: 1.25rem;
    }

    .iphone-mockup {
        width: 300px;
        height: 608px;
    }

    .features-grid {
        grid-template-columns: repeat(8, 1fr);
    }

    

    .feature-item:nth-child(1) {
        grid-column: span 4;
    }

    .feature-item:nth-child(2) {
        grid-column: span 4;
    }

    .feature-item:nth-child(3) {
        grid-column: span 4;
    }

    .feature-item:nth-child(4) {
        grid-column: span 4;
    }

    .feature-item:nth-child(5) {
        grid-column: span 4;
    }

    .feature-item:nth-child(6) {
        grid-column: span 4;
    }

    .feature-item:nth-child(7) {
        grid-column: span 8;
    }

    .faq-header h2 {
        text-align: left;
    }

}

@media (min-width: 1024px) {
    

    .iphone-mockup {
        bottom: -260px;
        left: 50%;
        transform: translate(-50%, -40%);
        width: 320px;
        height: 650px;
    }

    .features-grid {
        grid-template-columns: repeat(12, 1fr);
    }

    .feature-item:nth-child(1) {
        grid-column: span 4;
        grid-row: span 2;
    }

    .feature-item:nth-child(2) {
        grid-column: span 5;
    }

    .feature-item:nth-child(3) {
        grid-column: span 3;
    }

    .feature-item:nth-child(4) {
        grid-column: span 4;
    }

    .feature-item:nth-child(5) {
        grid-column: span 4;
    }

    .feature-item:nth-child(6) {
        grid-column: span 4;
    }

    .feature-item:nth-child(7) {
        grid-column: span 8;
    }

    .faq-container {
        flex-direction: row;
        gap: 4rem;
    }

    .brand-item {
        flex: 0 0 200px;
        padding: 0 2rem;
    }
   
} 


.default-content {
    max-width: 90ch;
    display: block;
    margin: 0 auto;
    padding: 160px 20px 100px;
}

.default-content h1 {
    margin-bottom: 20px;;
    font-size: 40px;
}
.default-content h2 {
    margin-top: 30px;
    margin-bottom: 20px;
    font-size: 20px;
}

.default-content p, .default-content li {
    color: black;
}