/* ============================================================
   Minne? – Website Styles
   Design: Scandinavian minimalism matching the app aesthetic
   ============================================================ */

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

:root {
    --bg: #F5F3EE;
    --bg-card: #FFFFFF;
    --text: #1A1A2E;
    --text-secondary: #5A5A6E;
    --accent: #2C2C54;
    --accent-light: #7B7FE8;
    --border: #E0DDD6;
    --success: #34A853;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.08);
    --font-serif: 'Iowan Old Style', 'Palatino Linotype', 'Georgia', serif;
    --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --max-width: 1120px;
    --nav-height: 64px;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #111111;
        --bg-card: #1A1A1A;
        --text: #E8E6E1;
        --text-secondary: #9A9AAE;
        --accent: #7B7FE8;
        --accent-light: #9B9FFF;
        --border: #2A2A2A;
        --shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
        --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.3);
    }
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: opacity 0.2s;
}

a:hover {
    opacity: 0.75;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

h1, h2, h3 {
    font-family: var(--font-serif);
    font-weight: 600;
    line-height: 1.2;
}

/* --- Navigation --- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    z-index: 100;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

@supports (backdrop-filter: blur(12px)) {
    .nav {
        background: color-mix(in srgb, var(--bg) 85%, transparent);
    }
}

.nav-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text);
}

.nav-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text);
    opacity: 1;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 1px;
    transition: transform 0.3s, opacity 0.3s;
}

/* --- Hero --- */
.hero {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: calc(var(--nav-height) + 80px) 24px 80px;
}

.hero-content {
    max-width: 600px;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    color: var(--text);
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 480px;
    margin-bottom: 36px;
    line-height: 1.7;
}

/* --- App Store Button --- */
.app-store-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--text);
    color: var(--bg);
    padding: 10px 24px 10px 18px;
    border-radius: 10px;
    transition: transform 0.2s, opacity 0.2s;
    text-decoration: none;
}

.app-store-btn:hover {
    opacity: 0.85;
    transform: scale(1.02);
}

.app-store-btn-icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

.app-store-btn-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.app-store-btn-text small {
    font-size: 0.65rem;
    font-weight: 400;
    letter-spacing: 0.02em;
}

/* --- Features --- */
.features {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 80px 24px;
}

.features h2 {
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    text-align: center;
    margin-bottom: 56px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 28px;
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 44px;
    height: 44px;
    margin-bottom: 18px;
    color: var(--accent);
}

.feature-icon svg {
    width: 100%;
    height: 100%;
}

.feature-card h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* --- Showcase --- */
.showcase {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 80px 24px;
}

.showcase-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 60px;
}

.showcase-text {
    flex: 1;
}

.showcase-text h2 {
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    margin-bottom: 20px;
}

.showcase-text p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 28px;
}

.showcase-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.showcase-list li {
    font-size: 0.95rem;
    color: var(--text);
    padding-left: 24px;
    position: relative;
}

.showcase-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
}

/* --- CTA --- */
.cta {
    text-align: center;
    padding: 80px 24px;
    max-width: var(--max-width);
    margin: 0 auto;
}

.cta h2 {
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    margin-bottom: 12px;
}

.cta p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

/* --- Footer --- */
.footer {
    border-top: 1px solid var(--border);
    padding: 40px 24px;
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 28px;
    margin-bottom: 16px;
}

.footer-links a {
    font-size: 0.88rem;
    color: var(--text-secondary);
}

.footer-copy {
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.footer-apple {
    font-size: 0.72rem;
    color: var(--text-secondary);
    opacity: 0.7;
}

/* --- Page layout (Privacy & Support) --- */
.page {
    max-width: 720px;
    margin: 0 auto;
    padding: calc(var(--nav-height) + 60px) 24px 80px;
}

.page-header {
    margin-bottom: 48px;
}

.page-header h1 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    margin-bottom: 8px;
}

.page-date,
.page-subtitle {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.page-content section {
    margin-bottom: 40px;
}

.page-content h2 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    padding-top: 8px;
}

.page-content p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 12px;
}

.page-content ul {
    padding-left: 20px;
    margin-bottom: 12px;
}

.page-content li {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 4px;
}

.page-content code {
    font-size: 0.85rem;
    background: var(--border);
    padding: 2px 6px;
    border-radius: 4px;
}

/* --- FAQ --- */
.faq {
    margin-bottom: 48px;
}

.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
    overflow: hidden;
}

.faq-item summary {
    padding: 18px 20px;
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background 0.2s;
}

.faq-item summary:hover {
    background: var(--bg-card);
}

.faq-item summary::after {
    content: '+';
    font-size: 1.3rem;
    font-weight: 300;
    color: var(--text-secondary);
    transition: transform 0.2s;
    flex-shrink: 0;
    margin-left: 12px;
}

.faq-item[open] summary::after {
    content: '−';
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item p,
.faq-item ul {
    padding: 0 20px 18px;
}

/* --- Contact --- */
.contact-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 16px;
    box-shadow: var(--shadow);
}

.contact-card h3 {
    font-size: 1.05rem;
    margin-bottom: 8px;
}

.contact-card p,
.contact-card li {
    font-size: 0.92rem;
    color: var(--text-secondary);
}

.contact-card ul {
    padding-left: 20px;
    margin-top: 8px;
}

/* --- Mobile --- */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background: var(--bg);
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        padding: 16px 24px;
        gap: 16px;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-toggle {
        display: flex;
    }

    .hero {
        text-align: center;
        padding-top: calc(var(--nav-height) + 48px);
        padding-bottom: 48px;
    }

    .hero-content {
        margin: 0 auto;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .features {
        padding: 48px 24px;
    }

    .showcase-inner {
        text-align: center;
    }

    .showcase-list {
        align-items: center;
    }

    .showcase-list li {
        padding-left: 0;
    }

    .showcase-list li::before {
        display: none;
    }

    .showcase {
        padding: 48px 24px;
    }

    .cta {
        padding: 48px 24px;
    }
}
