/* Modern CSS Reset */
*, *::before, *::after {
    box-sizing: border-box;
}

* {
    margin: 0;
    padding: 0;
    font: inherit;
}

html {
    color-scheme: dark light;
}

body {
    min-height: 100vh;
}

img, picture, svg, video {
    display: block;
    max-width: 100%;
}

/* Typography System */
:root {
    /* Font sizes */
    --font-size-xs: 0.75rem;    /* 12px */
    --font-size-sm: 0.875rem;   /* 14px */
    --font-size-base: 1rem;     /* 16px */
    --font-size-lg: 1.125rem;   /* 18px */
    --font-size-xl: 1.25rem;    /* 20px */
    --font-size-2xl: 1.5rem;    /* 24px */
    --font-size-3xl: 1.875rem;  /* 30px */
    --font-size-4xl: 2.25rem;   /* 36px */
    --font-size-5xl: 3rem;      /* 48px */

    /* Line heights */
    --line-height-none: 1;      /* No extra space between lines */
    --line-height-tight: 1.25;  /* Tight spacing, good for headings */
    --line-height-snug: 1.375;  /* Slightly tighter than normal */
    --line-height-normal: 1.5;  /* Standard line height */
    --line-height-relaxed: 1.75; /* More breathing room */
    --line-height-loose: 2;     /* Maximum spacing for readability */

    /* Font weights */
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;

    --primary-color: #000;
    --background-color: #fff;
    --text-color: #000;
    --secondary-text: #666;
    --max-width: 1200px;
    --spacing-unit: 1rem;
    --header-height: 72px; /* Height of the header */
}

/* Base text styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-size: var(--font-size-base);
    line-height: var(--line-height-normal);
    color: var(--text-color);
    background: var(--background-color);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding-top: var(--header-height); /* Add padding for fixed header */
}

/* Remove padding-top from homepage */
body:has(.promo-container) {
    padding-top: 0;
}

.main-content {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: var(--spacing-unit);
    width: 100%;
    flex: 1;
}

/* Home page specific styles */
body:has(.promo-container) .main-content {
    padding-top: 2rem;
    display: flex;
    align-items: center;
}

.promo-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
    width: 100%;
    max-height: 90vh;
}

.phone-container {
    position: relative;
    padding: 1rem;
    text-align: center;
}

.phone-mockup-image {
    max-width: 100%;
    height: auto;
    max-height: 70vh;
    object-fit: contain;
}

.promo-right {
    text-align: left;
}

.app-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 1rem;
    border-radius: 16px;
}

.download-button {
    display: inline-block;
    background: #000;
    color: #fff;
    padding: 0.5rem 1.5rem;
    border-radius: 2rem;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s;
    font-size: 0.9rem;
    height: 40px;
    line-height: 26px;
    text-align: center;
}

/* Only for the main page download button */
.promo-right .download-button {
    margin-top: 1.5rem;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    height: auto;
    line-height: normal;
}

.download-button:hover {
    transform: translateY(-2px);
}

/* Footer adjustments */
.main-footer {
    margin-top: auto;
}

@media (max-width: 768px) {
    :root {
        --header-height: 64px; /* Slightly smaller header on mobile */
    }

    .promo-container {
        grid-template-columns: 1fr;
        text-align: center;
        display: flex;
        flex-direction: column;
        max-height: none;
    }

    .promo-left {
        order: 1;
    }

    .promo-right {
        text-align: center;
        order: 2;
    }

    .phone-container {
        max-width: 400px;
        margin: 0 auto;
    }
    
    .app-icon {
        display: none;
    }
    
    .phone-mockup-image {
        max-height: none;
    }

    /* Remove padding-top on mobile */
    body:has(.promo-container) .main-content {
        padding-top: 0;
    }

    /* Adjust margins for mobile */
    .promo-right h1 {
        margin-bottom: 0.75rem;
        font-size: var(--font-size-3xl);
    }

    .promo-right p {
        margin-bottom: 0.5rem;
        line-height: var(--line-height-normal);
    }
}

/* Headings */
h1 {
    font-size: var(--font-size-4xl);
    line-height: var(--line-height-tight);
    font-weight: var(--font-weight-bold);
    margin-bottom: 1.5rem;
}

h2 {
    font-size: var(--font-size-3xl);
    line-height: var(--line-height-tight);
    font-weight: var(--font-weight-semibold);
    margin-bottom: 1.25rem;
}

h3 {
    font-size: var(--font-size-2xl);
    line-height: var(--line-height-tight);
    font-weight: var(--font-weight-semibold);
    margin-bottom: 1rem;
}

h4 {
    font-size: var(--font-size-xl);
    line-height: var(--line-height-tight);
    font-weight: var(--font-weight-medium);
    margin-bottom: 0.75rem;
}

h5 {
    font-size: var(--font-size-lg);
    line-height: var(--line-height-tight);
    font-weight: var(--font-weight-medium);
    margin-bottom: 0.5rem;
}

h6 {
    font-size: var(--font-size-base);
    line-height: var(--line-height-tight);
    font-weight: var(--font-weight-medium);
    margin-bottom: 0.5rem;
}

/* Paragraphs and text elements */
p {
    margin-bottom: 1rem;
    line-height: var(--line-height-relaxed);
}

small {
    font-size: var(--font-size-sm);
}

/* Links */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    text-decoration: underline;
}

/* Lists */
ul, ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

li {
    margin-bottom: 0.5rem;
}

/* Blockquotes */
blockquote {
    margin: 1.5rem 0;
    padding-left: 1rem;
    border-left: 4px solid var(--primary-color);
    font-style: italic;
}

/* Code */
code {
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: var(--font-size-sm);
    background-color: rgba(0, 0, 0, 0.05);
    padding: 0.2em 0.4em;
    border-radius: 3px;
} 