/* OwnedApps — clean, modern, privacy-respecting aesthetic */

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-bg: #fafaf9;
    --color-surface: #ffffff;
    --color-text: #1a1a1a;
    --color-text-secondary: #555;
    --color-accent: #2563eb;
    --color-accent-hover: #1d4ed8;
    --color-border: #e5e5e5;
    --color-hero-bg: #0f172a;
    --color-hero-text: #f8fafc;
    --color-footer-bg: #111827;
    --color-footer-text: #9ca3af;
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-serif: Georgia, "Times New Roman", serif;
    --max-width: 1080px;
}

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

body {
    font-family: var(--font-sans);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.6;
    font-size: 17px;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

a {
    color: var(--color-accent);
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

/* ── Header ──────────────────────────────── */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.site-header .header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}
.logo {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--color-text);
    letter-spacing: -0.02em;
}
.logo:hover {
    text-decoration: none;
}
.logo span {
    color: var(--color-accent);
}

.desktop-nav {
    display: flex;
    gap: 28px;
    align-items: center;
}
.desktop-nav a {
    color: var(--color-text-secondary);
    font-size: 0.92rem;
    font-weight: 500;
    transition: color 0.15s;
}
.desktop-nav a:hover {
    color: var(--color-text);
    text-decoration: none;
}
.mobile-nav {
    display: none;
}

/* Hamburger toggle — hidden on desktop */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    margin: -8px;
    min-width: 44px;
    min-height: 44px;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}
.nav-toggle .hamburger-bar {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--color-text);
    border-radius: 1px;
    margin: 5px auto;
}

/* ── Hero ────────────────────────────────── */

.hero {
    background: var(--color-hero-bg);
    color: var(--color-hero-text);
    padding: 96px 24px 88px;
    text-align: center;
}
.hero h1 {
    font-family: var(--font-serif);
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    font-weight: 400;
    line-height: 1.15;
    margin-bottom: 20px;
}
.hero h1 em {
    font-style: normal;
    color: var(--color-accent);
}
.hero-sub {
    font-size: 1.15rem;
    color: #94a3b8;
    line-height: 1.7;
    max-width: 560px;
    margin: 0 auto;
}

/* ── Sections ────────────────────────────── */

.section {
    padding: 80px 0;
}
.section h2 {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 40px;
    text-align: center;
}

/* ── Philosophy ──────────────────────────── */

.principles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}
.principle {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 32px 28px;
}
.principle-icon {
    font-size: 2rem;
    margin-bottom: 12px;
}
.principle h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
}
.principle p {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
    line-height: 1.65;
}

/* ── Product (full page) ─────────────────── */

.product {
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.product-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-bottom: 48px;
    text-align: left;
}
.product-icon {
    width: 96px;
    height: 96px;
    border-radius: 22px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}
.product-header h2 {
    text-align: left;
    margin-bottom: 4px;
}
.product .container {
    text-align: center;
}
.product-tagline {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    color: var(--color-text-secondary);
    font-style: italic;
    margin-bottom: 0;
}

.product-showcase {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 48px;
    align-items: start;
    margin-bottom: 48px;
}
.product-intro {
    text-align: left;
}
.product-intro p {
    margin-bottom: 14px;
    color: var(--color-text-secondary);
    line-height: 1.7;
}
.product-screenshot {
    display: flex;
    justify-content: center;
}
.screenshot {
    width: 280px;
    border-radius: 28px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.15);
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
    text-align: left;
    margin-bottom: 48px;
}
.feature {
    padding: 24px;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    background: var(--color-bg);
}
.feature h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
}
.feature p {
    color: var(--color-text-secondary);
    font-size: 0.92rem;
    line-height: 1.6;
}

.product-cta {
    padding-top: 16px;
}
.coming-soon {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 6px;
}
.platforms {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
}

/* ── Software listing ────────────────────── */

.product-card {
    display: flex;
    align-items: center;
    gap: 24px;
    max-width: 640px;
    margin: 0 auto;
    padding: 28px 32px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 14px;
    color: var(--color-text);
    transition: border-color 0.15s, box-shadow 0.15s;
}
.product-card:hover {
    text-decoration: none;
    border-color: var(--color-accent);
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.08);
}
.product-card-icon {
    width: 80px;
    height: 80px;
    border-radius: 18px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
    flex-shrink: 0;
}
.product-card-info {
    text-align: left;
}
.product-card-info h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 2px;
}
.product-card-tagline {
    font-family: var(--font-serif);
    font-style: italic;
    color: var(--color-text-secondary);
    font-size: 0.95rem;
    margin-bottom: 8px;
}
.product-card-desc {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
    line-height: 1.55;
    margin-bottom: 8px;
}
.product-card-status {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-accent);
}

.software-sub-links {
    max-width: 640px;
    margin: 16px auto 0;
    text-align: right;
    font-size: 0.85rem;
}
.software-sub-links a {
    color: var(--color-text-secondary);
    font-weight: 500;
}
.software-sub-links a:hover {
    color: var(--color-accent);
}

/* ── About ───────────────────────────────── */

.about .container {
    max-width: 640px;
    text-align: center;
}
.about p {
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: 16px;
}

/* ── Footer ──────────────────────────────── */

.site-footer {
    background: var(--color-footer-bg);
    color: var(--color-footer-text);
    padding: 32px 0;
    text-align: center;
    font-size: 0.85rem;
}

/* ── Privacy Page ────────────────────────── */

.privacy-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}
.privacy-product-icon {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}
.privacy-header h1 {
    margin-bottom: 4px;
    text-align: left;
}
.privacy-header .last-updated {
    text-align: left;
    margin-bottom: 0;
}
.privacy-page h1 {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 8px;
    text-align: center;
}
.privacy-page .last-updated {
    text-align: center;
    color: var(--color-text-secondary);
    font-size: 0.9rem;
    margin-bottom: 40px;
}
.privacy-content {
    max-width: 680px;
}
.privacy-content h2 {
    font-family: var(--font-sans);
    font-size: 1.15rem;
    font-weight: 600;
    text-align: left;
    margin-top: 32px;
    margin-bottom: 12px;
}
.privacy-content h3 {
    font-family: var(--font-sans);
    font-size: 1.05rem;
    font-weight: 600;
    text-align: left;
    margin-top: 28px;
    margin-bottom: 10px;
}
.privacy-content p,
.privacy-content li {
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: 12px;
}
.privacy-content ul {
    padding-left: 24px;
}

/* ── Support Page ────────────────────────── */

.support-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 24px;
}
.support-app-icon {
    width: 80px;
    height: 80px;
    border-radius: 18px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}
.support-header h1 {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 2px;
    text-align: left;
}
.support-tagline {
    font-family: var(--font-serif);
    font-style: italic;
    color: var(--color-text-secondary);
    text-align: left;
    margin: 0;
}
.support-intro {
    max-width: 640px;
    margin: 0 auto 48px;
    text-align: center;
    color: var(--color-text-secondary);
    line-height: 1.7;
}

.support-faq {
    max-width: 640px;
    margin: 0 auto 56px;
}
.support-faq h2 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 24px;
    text-align: left;
}
.faq-item {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--color-border);
}
.faq-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}
.faq-item h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
}
.faq-item p {
    color: var(--color-text-secondary);
    line-height: 1.65;
    font-size: 0.95rem;
}

.support-form-section {
    max-width: 640px;
    margin: 0 auto 48px;
}
.support-form-section h2 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 8px;
    text-align: left;
}
.form-intro {
    color: var(--color-text-secondary);
    margin-bottom: 28px;
    font-size: 0.95rem;
}
.support-form .form-row {
    margin-bottom: 20px;
}
.support-form label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--color-text);
}
.support-form .required {
    color: var(--color-accent);
}
.support-form input,
.support-form select,
.support-form textarea {
    width: 100%;
    padding: 12px 14px;
    font-size: 1rem;
    font-family: var(--font-sans);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: var(--color-surface);
    color: var(--color-text);
    transition: border-color 0.15s;
    -webkit-appearance: none;
}
.support-form input:focus,
.support-form select:focus,
.support-form textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
.support-form textarea {
    resize: vertical;
    min-height: 120px;
}
.submit-btn {
    display: inline-block;
    padding: 14px 32px;
    background: var(--color-accent);
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s;
    -webkit-tap-highlight-color: transparent;
}
.submit-btn:hover {
    background: var(--color-accent-hover);
}
.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
.form-status {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.95rem;
    display: none;
}
.form-status.success {
    display: block;
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}
.form-status.error {
    display: block;
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.support-links {
    max-width: 640px;
    margin: 0 auto;
    display: flex;
    gap: 24px;
    justify-content: center;
    font-size: 0.9rem;
}

/* ── Responsive ──────────────────────────── */

@media (max-width: 640px) {
    .nav-toggle {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    .desktop-nav {
        display: none;
    }
    .mobile-nav {
        display: none;
        flex-direction: column;
        border-top: 1px solid var(--color-border);
        padding-bottom: 8px;
    }
    .mobile-nav.open {
        display: flex;
    }
    .mobile-nav a {
        display: block;
        padding: 16px 0;
        font-size: 1.05rem;
        font-weight: 500;
        color: var(--color-text);
        border-bottom: 1px solid var(--color-border);
        text-align: left;
        -webkit-tap-highlight-color: rgba(0,0,0,0.05);
    }
    .mobile-nav a:last-child {
        border-bottom: none;
    }
    .mobile-nav a:active {
        background: var(--color-bg);
    }
    .mobile-nav a.sub-item {
        padding-left: 24px;
        font-size: 0.95rem;
        color: var(--color-text-secondary);
    }
    .hero {
        padding: 64px 20px 56px;
    }
    .section {
        padding: 56px 0;
    }
    .product-header {
        flex-direction: column;
        text-align: center;
    }
    .product-header h2 {
        text-align: center;
    }
    .product-showcase {
        grid-template-columns: 1fr;
    }
    .product-screenshot {
        order: -1;
    }
    .screenshot {
        width: 240px;
    }
    .product-card {
        flex-direction: column;
        text-align: center;
    }
    .product-card-info {
        text-align: center;
    }
    .software-sub-links {
        text-align: center;
    }
    .features {
        grid-template-columns: 1fr;
    }
    .privacy-header {
        flex-direction: column;
        text-align: center;
    }
    .privacy-header h1,
    .privacy-header .last-updated {
        text-align: center;
    }
    .support-header {
        flex-direction: column;
        text-align: center;
    }
    .support-header h1,
    .support-tagline {
        text-align: center;
    }
    .support-links {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
}
