/* ===================================
   MINLOG WEBSITE STYLES
   Clean, minimal fitness tracking website
   =================================== */

/* CSS Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --black: #000000;
    --cream: #E8E4DF;
    --white: #FFFFFF;
    --gray-light: #D1CDC7;
    --gray-medium: #8E8E93;
    --blue: #4A7DFF;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    --radius-sm: 12px;
    --radius-md: 16px;
    --radius-lg: 24px;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Noto Sans', sans-serif;
    line-height: 1.5;
    color: var(--black);
    background: var(--cream);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography Hierarchy */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.5rem, 6vw, 5rem);
    margin-bottom: var(--spacing-md);
}

h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    margin-bottom: var(--spacing-md);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: var(--spacing-sm);
}

h4 {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-sm);
}

p {
    font-size: clamp(1rem, 2vw, 1.125rem);
    line-height: 1.6;
    margin-bottom: var(--spacing-sm);
    font-weight: 400;
}

/* Layout */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

section {
    padding: var(--spacing-xl) 0;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--cream);
    z-index: 1000;
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.25rem var(--spacing-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: opacity 0.2s ease;
}

.logo:hover {
    opacity: 0.7;
}

.logo img {
    height: 36px;
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    gap: var(--spacing-md);
    list-style: none;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--black);
    font-size: 0.9375rem;
    font-weight: 500;
    transition: all 0.2s ease;
    padding: 0.5rem;
}

.nav-links a:hover {
    opacity: 0.6;
}

.nav-cta {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    background: var(--blue);
    color: var(--white);
    border-radius: var(--radius-md);
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    display: inline-block;
}

.nav-cta:hover {
    background: #3D6FE6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 125, 255, 0.3);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: opacity 0.2s ease;
}

.menu-toggle:hover {
    opacity: 0.6;
}

.menu-close {
    display: none;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: calc(var(--spacing-xl) + 60px);
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: var(--spacing-xl);
    row-gap: 0;
    align-items: center;
}

.hero-container .label {
    grid-column: 1;
    grid-row: 1;
}

.hero-container h1 {
    grid-column: 1;
    grid-row: 2;
}

.hero-container .hero-subtitle {
    grid-column: 1;
    grid-row: 3;
}

.hero-container .button-group {
    grid-column: 1;
    grid-row: 4;
}

.hero-container .hero-image {
    grid-column: 2;
    grid-row: 1 / 5;
    align-self: center;
}

.label {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: var(--spacing-sm);
    display: inline-block;
    color: var(--gray-medium);
}

.hero h1 {
    text-transform: uppercase;
    margin-bottom: var(--spacing-md);
}

.hero-subtitle {
    font-size: clamp(1.125rem, 2vw, 1.375rem);
    color: var(--black);
    margin-bottom: var(--spacing-lg);
    line-height: 1.5;
    font-weight: 400;
}

.button-group {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    align-items: flex-start;
    width: 100%;
}

.btn {
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-md);
    background: var(--white);
    color: var(--black);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-block;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-primary {
    background: var(--blue);
    color: var(--white);
}

.btn-primary:hover {
    background: #3D6FE6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 125, 255, 0.3);
}

.text-link {
    color: var(--black);
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 500;
    transition: opacity 0.2s ease;
}

.text-link:hover {
    opacity: 0.6;
}

/* Hero Images */
.hero-image {
    width: 100%;
    padding-bottom: var(--spacing-lg);
}

.mockup-stack {
    position: relative;
    width: 100%;
    max-width: 500px;
    height: 600px;
    margin: 0 auto;
}

.mockup-stack img {
    position: absolute;
    width: 280px;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0);
}

.mockup-back {
    top: 60px;
    left: 0;
    z-index: 1;
    opacity: 0.9;
}

.mockup-front {
    top: 0;
    right: 0;
    z-index: 2;
}

/* Phone Mockup Placeholder */
.phone-mockup {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    position: relative;
}

.phone-mockup img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0);
    display: block;
}

/* Programs Section */
.programs-section {
    background: var(--cream);
}

.programs-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.programs-content h2 {
    text-transform: uppercase;
}

.programs-content .label {
    margin-bottom: var(--spacing-md);
}

.programs-section .phone-mockup img {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0);
}

/* Features Section */
.features-section {
    background: var(--black);
    color: var(--white);
    border-radius: var(--radius-lg);
    margin: 0 var(--spacing-md);
    padding: var(--spacing-xl) var(--spacing-md);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
}

.feature-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
}

.feature-item h3 {
    text-transform: uppercase;
    margin-top: var(--spacing-md);
}

.features-section .label {
    color: rgba(255, 255, 255, 0.7);
    background: transparent;
}

.features-section p {
    color: rgba(255, 255, 255, 0.8);
}

.features-section .phone-mockup img {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Footer */
footer {
    background: var(--black);
    color: var(--white);
    padding: var(--spacing-xl) 0 var(--spacing-md);
    margin-top: var(--spacing-xl);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
    align-items: start;
}

.footer-logo {
    height: 24px;
    width: auto;
    margin-bottom: var(--spacing-sm);
    display: block;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

.footer-section h4 {
    margin-bottom: var(--spacing-sm);
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-section p {
    font-size: 0.875rem;
    line-height: 1.6;
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 400;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--spacing-sm);
    padding-bottom: var(--spacing-sm);
    text-align: center;
    font-size: 0.65rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.5);
}

.footer-bottom p {
    margin: 0;
    font-size: 0.65rem;
}

/* Founder Section */
.founder-section {
    background: var(--cream);
    padding: var(--spacing-xl) 0;
}

.founder-quote {
    max-width: 900px;
    margin: var(--spacing-lg) 0;
}

.quote-text {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    line-height: 1.4;
    font-weight: 400;
    margin-bottom: var(--spacing-md);
    position: relative;
}

.quote-text::before {
    content: '"';
    font-size: 4rem;
    position: absolute;
    left: -2rem;
    top: -1rem;
    opacity: 0.3;
}

.founder-quote cite {
    display: block;
    font-size: 1rem;
    font-style: normal;
    font-weight: 500;
    color: var(--gray-medium);
}

/* Roadmap Section */
.roadmap-section {
    background: var(--black);
    color: var(--white);
    padding: var(--spacing-xl) 0;
}

.roadmap-section .label {
    color: rgba(255, 255, 255, 0.7);
}

.roadmap-section h2 {
    text-transform: uppercase;
    color: var(--white);
}

.roadmap-subtitle {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-md);
    font-weight: 400;
}

.roadmap-list + .roadmap-subtitle {
    margin-top: var(--spacing-lg);
}

.roadmap-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.roadmap-list li {
    font-size: 1.125rem;
    padding: 0.25rem 0;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
}

.roadmap-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    font-size: 1.5rem;
    line-height: 1.3;
}

/* Testimonials Section */
.testimonials-section {
    background: var(--cream);
    padding: var(--spacing-xl) 0;
}

.testimonials-section h2 {
    text-transform: uppercase;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.testimonial-item {
    background: var(--white);
    padding: var(--spacing-lg);
    border-radius: var(--radius-md);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.testimonial-text {
    font-size: 1.125rem;
    line-height: 1.6;
    margin-bottom: var(--spacing-md);
    font-style: italic;
}

.testimonial-author {
    display: block;
    font-size: 0.9375rem;
    font-style: normal;
    font-weight: 500;
    color: var(--gray-medium);
}

/* Pricing Section */
.pricing-section {
    background: var(--black);
    color: var(--white);
    padding: var(--spacing-xl) 0;
}

.pricing-section .label {
    color: rgba(255, 255, 255, 0.7);
}

.pricing-section h2 {
    text-transform: uppercase;
    color: var(--white);
}

.pricing-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
    margin-top: var(--spacing-lg);
}

.pricing-details {
    margin-top: var(--spacing-lg);
}

.price-tag {
    display: flex;
    align-items: baseline;
    margin-bottom: var(--spacing-lg);
}

.price {
    font-size: clamp(3rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 1;
}

.period {
    font-size: 1.25rem;
    font-weight: 400;
    margin-left: 0.5rem;
    color: rgba(255, 255, 255, 0.7);
}

.pricing-features {
    list-style: none;
    margin-bottom: var(--spacing-lg);
}

.pricing-features li {
    font-size: 1.125rem;
    padding: 0.25rem 0;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

.pricing-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    font-size: 1.25rem;
    color: var(--blue);
}

.pricing-note {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: var(--spacing-sm);
    line-height: 1.5;
}

.download-badges {
    background: rgba(255, 255, 255, 0.05);
    padding: var(--spacing-lg);
    border-radius: var(--radius-md);
}

.download-badges h3 {
    margin-bottom: var(--spacing-md);
    color: var(--white);
}

.badge-placeholder {
    background: rgba(255, 255, 255, 0.1);
    padding: var(--spacing-lg);
    border-radius: var(--radius-sm);
    margin-bottom: var(--spacing-md);
}

.badge-placeholder p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
    text-align: center;
    margin: 0;
}

/* Final CTA Section */
.final-cta-section {
    background: var(--black);
    color: var(--white);
    padding: var(--spacing-xl) 0;
}

.final-cta-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.final-cta-content h2 {
    text-transform: uppercase;
    margin-bottom: var(--spacing-md);
}

.final-cta-content p {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-lg);
    color: rgba(255, 255, 255, 0.7);
}

/* FAQ Page */
.faq-hero {
    padding-top: calc(var(--spacing-xl) + 60px);
    padding-bottom: var(--spacing-lg);
}

.faq-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 var(--spacing-md) var(--spacing-xl);
}

.faq-list {
    margin-bottom: var(--spacing-xl);
}

.faq-item {
    border-bottom: 1px solid var(--gray-light);
    padding: var(--spacing-md) 0;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    padding: 0;
    font-size: 1.25rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
    color: var(--black);
    transition: opacity 0.2s ease;
}

.faq-question:hover {
    opacity: 0.7;
}

.faq-icon {
    font-size: 1.5rem;
    font-weight: 300;
    margin-left: 1rem;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer.active {
    max-height: 500px;
    padding-top: var(--spacing-sm);
}

.faq-answer p {
    color: var(--black);
    line-height: 1.6;
}

/* Newsletter Section */
.newsletter-section {
    padding-top: var(--spacing-xl);
    border-top: 1px solid var(--gray-light);
}

.newsletter-note {
    font-size: 0.875rem;
    color: var(--gray-medium);
    margin-bottom: var(--spacing-lg);
    line-height: 1.5;
}

.newsletter-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    max-width: 500px;
}

.newsletter-form input {
    padding: 1rem;
    border: 1px solid var(--gray-light);
    border-radius: var(--radius-sm);
    background: var(--white);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.2s ease;
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(74, 125, 255, 0.1);
}

.newsletter-form button {
    align-self: flex-start;
}

/* Contact Page */
.contact-hero {
    padding-top: calc(var(--spacing-xl) + 60px);
    padding-bottom: var(--spacing-lg);
}

.contact-form-section {
    max-width: 700px;
    margin: 0 auto;
    padding: var(--spacing-lg) var(--spacing-md);
}

.form-group {
    margin-bottom: var(--spacing-md);
}

.form-group label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 600;
    font-size: 0.9375rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--gray-light);
    border-radius: var(--radius-sm);
    background: var(--white);
    font-size: 1rem;
    font-family: inherit;
    font-weight: 400;
    transition: all 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(74, 125, 255, 0.1);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
    line-height: 1.5;
}

/* Legal Pages */
.legal-page {
    max-width: 800px;
    margin: 0 auto;
    padding: calc(var(--spacing-xl) + 60px) var(--spacing-md) var(--spacing-xl);
}

.legal-page h1 {
    margin-bottom: var(--spacing-md);
}

.legal-page p {
    margin-bottom: var(--spacing-sm);
    color: var(--black);
    line-height: 1.6;
}

.legal-page p strong {
    font-weight: 700;
}

.legal-placeholder {
    background: var(--white);
    padding: var(--spacing-lg);
    text-align: center;
    margin: var(--spacing-md) 0;
    border-radius: var(--radius-md);
    border: 2px dashed var(--gray-light);
}

.legal-placeholder h3 {
    margin-bottom: var(--spacing-md);
}

.legal-placeholder ul {
    text-align: left;
    display: inline-block;
    margin-top: var(--spacing-sm);
}

.legal-placeholder li {
    margin-bottom: 0.5rem;
    font-weight: 400;
}

/* Responsive Design */
@media (max-width: 968px) {
    :root {
        --spacing-md: 1.5rem;
        --spacing-lg: 3rem;
        --spacing-xl: 4rem;
    }

    section {
        padding: var(--spacing-lg) 0;
    }

    .programs-container {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .features-section {
        margin: 0 var(--spacing-sm);
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: var(--spacing-lg);
    }

    .mockup-stack {
        max-width: 400px;
        height: 500px;
    }

    .mockup-stack img {
        width: 240px;
    }

    .phone-mockup {
        max-width: 300px;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .pricing-container {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100vh;
        background: var(--black);
        flex-direction: column;
        padding: var(--spacing-xl) var(--spacing-md);
        box-shadow: none;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        gap: 0;
        align-items: stretch;
        z-index: 1001;
        overflow-y: auto;
    }

    .menu-close {
        position: absolute;
        top: var(--spacing-md);
        left: var(--spacing-md);
        font-size: 2rem;
        color: var(--white);
        background: transparent;
        border: none;
        cursor: pointer;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 300;
        line-height: 1;
        transition: opacity 0.2s ease;
        padding: 0;
        font-family: inherit;
    }

    .menu-close:hover {
        opacity: 0.7;
    }

    .nav-links li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-links li:last-child {
        border-bottom: none;
    }

    .nav-links a {
        display: block;
        padding: var(--spacing-md) var(--spacing-sm);
        color: var(--white);
        font-size: 1.125rem;
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .menu-toggle {
        display: block;
    }
}

@media (max-width: 640px) {
    :root {
        --spacing-sm: 0.75rem;
        --spacing-md: 1rem;
        --spacing-lg: 2rem;
        --spacing-xl: 4rem;
    }

    .container {
        padding: 0 var(--spacing-md);
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .hero {
        padding-top: calc(var(--spacing-xl) + 60px);
        padding-bottom: var(--spacing-xl);
        min-height: auto;
    }

    .hero-container {
        display: flex;
        flex-direction: column;
        gap: var(--spacing-md);
        align-items: flex-start;
        text-align: left;
    }

    .hero-container .label,
    .hero-container h1,
    .hero-container .hero-subtitle,
    .hero-container .button-group,
    .hero-container .hero-image {
        grid-column: auto;
        grid-row: auto;
        width: 100%;
    }

    .hero-image {
        padding-bottom: var(--spacing-xl);
    }

    .programs-section .hero-container .hero-image {
        order: 2;
    }

    .programs-section .hero-container .programs-content {
        order: 1;
    }

    .mockup-stack {
        max-width: 100%;
        height: 300px;
    }

    .mockup-stack img {
        width: 160px;
        left: auto;
        transform: none;
    }

    .mockup-back {
        top: 0;
        left: 10px;
    }

    .mockup-front {
        top: 0;
        right: 10px;
        left: auto;
    }

    .phone-mockup {
        max-width: 280px;
    }

    .quote-text::before {
        display: none;
    }

    .newsletter-form button {
        width: 100%;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .btn {
        width: 100%;
        text-align: center;
    }
}
