/* Deferred Website - Apple-Inspired Refined Design */

/* ===== CSS Variables - Light Theme ===== */
:root {
    /* Light theme - refined */
    --bg-primary: rgb(250, 250, 245);
    --bg-card: rgb(255, 255, 255);
    --bg-secondary: rgb(247, 247, 247);
    --bg-tertiary: rgb(252, 252, 252);

    /* Text colors - higher contrast */
    --text-primary: rgb(29, 29, 31);
    --text-secondary: rgb(86, 86, 90);
    --text-tertiary: rgb(142, 142, 147);

    /* Accent - Indigo */
    --accent: rgb(89, 87, 214);
    --accent-light: rgb(120, 118, 240);
    --accent-subtle: rgba(89, 87, 214, 0.08);

    /* UI */
    --separator: rgba(0, 0, 0, 0.15);
    --border-radius: 16px;
    --border-radius-large: 24px;

    /* Typography - Apple-inspired scale */
    --font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", system-ui, sans-serif;
    --line-height-tight: 1.05;
    --line-height-snug: 1.25;
    --line-height-relaxed: 1.5;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: 17px;
    line-height: var(--line-height-relaxed);
    color: var(--text-secondary);
    background-color: var(--bg-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== Typography - Refined Scale ===== */
h1,
h2,
h3 {
    color: var(--text-primary);
    font-weight: 600;
    letter-spacing: -0.015em;
}

h1 {
    font-size: 40px;
    line-height: var(--line-height-tight);
    font-weight: 700;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 28px;
    line-height: var(--line-height-snug);
    margin-bottom: 24px;
    font-weight: 600;
}

h3 {
    font-size: 19px;
    line-height: var(--line-height-snug);
    margin-bottom: 12px;
    font-weight: 600;
}

p {
    margin-bottom: 20px;
}

p:last-child {
    margin-bottom: 0;
}

/* ===== 2-Column Layout ===== */
.layout-wrapper {
    display: flex;
    min-height: 100vh;
}

.content-column {
    flex: 0 0 50%;
    padding: 80px 120px;
    background: #18191F;
    color: rgba(255, 255, 255, 0.85);
}

.content-column h1,
.content-column h2,
.content-column h3 {
    color: #ffffff;
}

.content-column p {
    color: rgba(255, 255, 255, 0.8);
}

.content-column .examples-label,
.content-column .step-number {
    color: rgba(255, 255, 255, 0.5);
}

.content-column .decision-list li,
.content-column .negative-list li {
    color: rgba(255, 255, 255, 0.8);
}

.content-column .decision-list li::before,
.content-column .negative-list li::before {
    color: rgba(255, 255, 255, 0.4);
}

.content-column .closing-note,
.content-column .closing-statement {
    color: #ffffff;
}

.content-column .feature {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.content-column .feature:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

.content-column .section {
    border-top-color: rgba(255, 255, 255, 0.15);
}

.content-column .footer {
    border-top-color: rgba(255, 255, 255, 0.15);
}

.content-column .footer-links a {
    color: rgba(255, 255, 255, 0.7);
}

.content-column .footer-links a:hover {
    color: #ffffff;
}

.content-column .footer-separator {
    color: rgba(255, 255, 255, 0.4);
}

.content-column a {
    color: #5FD8F1;
}

.content-column a:hover {
    color: #7DE4F7;
}

.screenshot-column {
    flex: 0 0 50%;
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 60px;
    background: #CDF4F5;
}

.mobile-screenshot-container {
    display: none;
}

.app-screenshot {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
}


/* ===== Hero Section ===== */
.hero {
    padding: 40px 0;
}

.logo-link {
    display: inline-block;
    transition: opacity 0.3s ease;
}

.logo-link:hover {
    opacity: 0.8;
}

.app-logo-image {
    height: 100px;
    width: auto;
    margin-bottom: 25px;
}

.hero-headline {
    font-size: 52px;
    line-height: 1.05;
    margin-bottom: 32px;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.content-column .hero-headline {
    color: #ffffff;
}

.description {
    font-size: 17px;
    margin-bottom: 24px;
    line-height: var(--line-height-relaxed);
}

.content-column .description {
    color: rgba(255, 255, 255, 0.6);
}

/* ===== Section Styles ===== */
.section {
    padding: 40px 0;
    border-top: 1px dotted var(--separator);
}

.section:first-of-type {
    border-top: none;
}

.content-column .section h2 {
    color: #ffffff;
}

/* ===== Lists ===== */
.decision-list,
.negative-list {
    list-style: none;
    margin: 0 0 24px;
}

.decision-list li,
.negative-list li {
    padding: 4px 0;
    color: var(--text-secondary);
    font-size: 17px;
    position: relative;
    padding-left: 20px;
}

.decision-list li::before,
.negative-list li::before {
    content: "—";
    position: absolute;
    left: 0;
    color: var(--text-tertiary);
    font-weight: 500;
}

.examples-label {
    color: var(--text-tertiary);
    font-size: 15px;
    margin-bottom: 12px;
    font-weight: 500;
    letter-spacing: 0.01em;
}

/* ===== Steps ===== */
.steps {
    margin: 40px 0;
}

.step {
    margin-bottom: 32px;
}

.step .step-number {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.content-column .step .step-number {
    color: rgba(255, 255, 255, 0.5);
}

.step p {
    margin-bottom: 0;
    font-size: 17px;
}

.closing-note,
.closing-statement {
    margin-top: 40px;
    font-weight: 500;
}

.content-column .closing-note,
.content-column .closing-statement {
    color: #ffffff;
}

/* ===== Features - Borderless Cards ===== */
.feature {
    margin-bottom: 32px;
    padding: 32px;
    background: var(--bg-card);
    border-radius: var(--border-radius);
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.06);
}

.feature:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.06);
    transform: translateY(-1px);
}

.feature:last-child {
    margin-bottom: 0;
}

.feature h3 {
    margin-bottom: 12px;
}

.content-column .feature h3 {
    color: #ffffff;
}

.content-column .feature h3 svg {
    color: #F5A623;
}

.content-column .feature p {
    color: rgba(255, 255, 255, 0.75);
}

/* ===== Call to Action ===== */
.cta-section {
    padding: 80px 0;
    border-top: 1px dotted var(--separator);
}

.cta-section h2 {
    color: var(--text-primary);
}

.cta-wrapper {
    margin-top: 48px;
}

.availability {
    color: var(--text-tertiary);
    margin-top: 12px;
}

/* ===== Store Buttons ===== */
.store-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: center;
}

.store-buttons .app-store-badge img {
    max-width: 180px;
    height: auto;
}

.store-buttons .app-store-badge {
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.store-buttons .app-store-badge:hover {
    transform: scale(1.02);
    opacity: 0.9;
}

/* ===== Footer ===== */
.footer {
    padding: 40px 0;
    border-top: 1px dotted var(--separator);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-copyright {
    font-size: 15px;
    color: var(--text-tertiary);
}

.content-column .footer-copyright {
    color: rgba(255, 255, 255, 0.5);
}

.footer-links {
    display: flex;
    gap: 10px;
    align-items: center;
}

.footer-separator {
    color: var(--text-tertiary);
    font-size: 15px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 15px;
    transition: color 0.2s ease;
}

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

/* ===== Responsive Design ===== */
@media (max-width: 1200px) {
    .content-column {
        padding: 60px 80px;
    }

    .screenshot-column {
        padding: 60px 40px;
    }
}

@media (max-width: 968px) {
    body {
        padding: 0 28px;
        background: #18191F;
        min-height: 100vh;
    }

    .layout-wrapper {
        flex-direction: column;
    }

    .content-column {
        flex: none;
        max-width: 100%;
        padding: 0;
        background: transparent;
    }

    .hero {
        padding-top: 60px;
        padding-bottom: 40px;
        padding-left: 0;
        padding-right: 0;
        text-align: center;
    }

    .hero p {
        text-align: center;
    }

    .store-buttons {
        justify-content: center;
    }

    .mobile-screenshot-container {
        display: flex;
        justify-content: center;
        padding: 24px 28px 40px;
        margin: 0 -28px;
    }

    .mobile-screenshot-container+.section {
        border-top: none;
    }

    .mobile-screenshot-container .app-screenshot {
        max-width: 320px;
        width: auto;
        height: 100%;
    }

    .screenshot-column {
        display: none;
    }

    .section,
    .cta-section {
        padding-top: 48px;
        padding-bottom: 48px;
        padding-left: 0;
        padding-right: 0;
    }

    .footer {
        padding-top: 48px;
        padding-bottom: 32px;
        padding-left: 0;
        padding-right: 0;
    }

    .hero-headline {
        font-size: 36px;
    }

    h2 {
        font-size: 24px;
    }

    .screenshot-placeholder {
        max-width: 280px;
    }
}

@media (max-width: 768px) {

    .footer {
        flex-direction: column-reverse;
        gap: 16px;
        text-align: center;
    }

    .hero {
        padding: 50px 28px 32px;
        margin: 0 -28px;
    }

    .hero-headline {
        font-size: 32px;
        line-height: 1.15;
        margin-bottom: 24px;
    }

    .app-logo-image {
        height: 100px;
    }

    .cta-wrapper {
        margin-top: 24px;
    }

    .section {
        padding: 32px 0;
    }

    .feature {
        padding: 12px 16px;
        margin-bottom: 24px;
    }

    .mobile-screenshot-container .app-screenshot {
        max-width: initial;
        width: calc(100% + 8px);
        max-height: initial;
    }

    /* Hide mobile screenshot on subpages */
    .subpage .mobile-screenshot-container {
        display: none;
    }

}

@media (max-width: 480px) {
    .body {
        background-color: var(--bg-primary);
        background-color: #F0F0EB;
    }

    .mobile-screenshot-container {
        background: transparent;
        padding: 16px 28px;
    }

    .hero {
        background-color: transparent;
        margin: 0 -28px;
    }

    .availability {
        visibility: hidden;
        display: none;
    }

    .content-column {
        padding: 0;
    }

    .screenshot-column {
        padding: 16px 0;
    }

    .title {
        font-size: 32px;
    }

    h2 {
        font-size: 22px;
    }

}