/* daveco.app — shared stylesheet */

/* ─── Fonts ────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&display=swap');

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    background-color: #1e1e1e;
    color: #e0e0e0;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

a { color: #4DC4FF; text-decoration: none; }
a:hover { text-decoration: underline; }

/* ─── Layout ────────────────────────────────────────────────── */
.container {
    width: 90%;
    max-width: 960px;
    margin: 0 auto;
    padding: 40px 0 60px;
    flex: 1;
}

/* ─── Site Header ───────────────────────────────────────────── */
.site-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 0 20px;
    text-align: center;
}

.site-header .logo {
    width: 280px;
    height: auto;
    margin-bottom: 8px;
}

.site-nav {
    margin-top: 12px;
    display: flex;
    gap: 24px;
    font-size: 0.9rem;
    color: #888;
}

.site-nav a { color: #888; }
.site-nav a:hover { color: #4DC4FF; text-decoration: none; }

/* ─── Footer ────────────────────────────────────────────────── */
footer {
    width: 100%;
    text-align: center;
    padding: 24px 20px;
    color: #555;
    font-size: 0.85rem;
    border-top: 1px solid #2a2a2a;
    margin-top: auto;
}

footer a { color: #555; }
footer a:hover { color: #4DC4FF; }

/* ─── Buttons ───────────────────────────────────────────────── */
.btn {
    display: inline-block;
    padding: 11px 26px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: background-color 0.15s, transform 0.1s, opacity 0.15s;
    cursor: pointer;
    border: none;
    text-align: center;
}

.btn-primary {
    background-color: #4DC4FF;
    color: #111;
}
.btn-primary:hover {
    background-color: #6ed0ff;
    transform: translateY(-1px);
    text-decoration: none;
}
.btn-primary:active { transform: translateY(1px); }

.btn-secondary {
    background-color: transparent;
    color: #4DC4FF;
    border: 1.5px solid #4DC4FF;
}
.btn-secondary:hover {
    background-color: rgba(77,196,255,0.08);
    transform: translateY(-1px);
    text-decoration: none;
}

.btn-donate {
    background-color: transparent;
    color: #f5a623;
    border: 1.5px solid #f5a623;
    padding: 8px 18px;
    font-size: 0.85rem;
}
.btn-donate:hover {
    background-color: rgba(245,166,35,0.08);
    transform: translateY(-1px);
    text-decoration: none;
}

/* ─── App Grid (homepage) ───────────────────────────────────── */
.section-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #555;
    margin: 40px 0 20px;
}

.app-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 48px;
}

.app-card {
    background-color: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 14px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    transition: border-color 0.2s, background-color 0.2s;
}
.app-card:hover {
    background-color: rgba(255,255,255,0.06);
    border-color: rgba(77,196,255,0.2);
}

.app-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
}

.app-card-header img {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.4);
    flex-shrink: 0;
}

.app-card-header h2 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: #f0f0f0;
}

.app-card-header .app-version {
    font-size: 0.75rem;
    color: #555;
    margin-top: 2px;
}

.app-card-tagline {
    font-size: 0.9rem;
    color: #a0a0a0;
    line-height: 1.5;
    flex: 1;
    margin-bottom: 20px;
}

.app-card-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

/* ─── Product Page — Hero ───────────────────────────────────── */
.product-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 48px 0 40px;
    border-bottom: 1px solid #2a2a2a;
    margin-bottom: 56px;
}

.product-hero .app-icon-large {
    width: 120px;
    height: 120px;
    border-radius: 26px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.5);
    margin-bottom: 24px;
}

.product-hero h1 {
    font-family: "New York", "DM Serif Display", "Times New Roman", Times, serif;
    font-size: 3rem;
    font-weight: 900;
    font-style: italic;
    color: #4DC4FF;
    margin: 0 0 12px;
    letter-spacing: -0.02em;
}

.product-hero .hero-tagline {
    font-size: 1.25rem;
    color: #c0c0c0;
    max-width: 600px;
    line-height: 1.5;
    margin: 0 0 32px;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.hero-meta {
    font-size: 0.8rem;
    color: #555;
    margin-top: 8px;
}

/* ─── Product Page — Free badge ─────────────────────────────── */
.free-badge {
    display: inline-block;
    background-color: rgba(77,196,255,0.12);
    color: #4DC4FF;
    border: 1px solid rgba(77,196,255,0.3);
    border-radius: 20px;
    padding: 3px 12px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    margin-bottom: 16px;
}

/* ─── Product Page — Section headings ───────────────────────── */
.product-section {
    margin-bottom: 56px;
}

.product-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #f0f0f0;
    margin: 0 0 24px;
    padding-bottom: 10px;
    border-bottom: 1px solid #2a2a2a;
}

/* ─── Feature Grid ──────────────────────────────────────────── */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.feature-card {
    background-color: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 10px;
    padding: 20px;
}

.feature-card .feature-icon {
    font-size: 1.6rem;
    margin-bottom: 10px;
    display: block;
}

.feature-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #e8e8e8;
    margin: 0 0 8px;
}

.feature-card p {
    font-size: 0.88rem;
    color: #909090;
    line-height: 1.55;
    margin: 0;
}

/* ─── Screenshot placeholder ────────────────────────────────── */
.screenshot-placeholder {
    background-color: rgba(255,255,255,0.02);
    border: 2px dashed rgba(255,255,255,0.08);
    border-radius: 12px;
    height: 380px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #444;
    font-size: 0.9rem;
    gap: 8px;
    margin-bottom: 12px;
}

.screenshot-placeholder .ph-icon { font-size: 2rem; }

.screenshot-img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.5);
    margin-bottom: 12px;
    border: 1px solid rgba(255,255,255,0.06);
}

/* ─── Requirements block ────────────────────────────────────── */
.requirements-block {
    background-color: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 10px;
    padding: 20px 24px;
    font-size: 0.9rem;
    color: #909090;
    line-height: 1.8;
}

.requirements-block strong { color: #c0c0c0; }

/* ─── Donate section ────────────────────────────────────────── */
.donate-section {
    background-color: rgba(245,166,35,0.05);
    border: 1px solid rgba(245,166,35,0.15);
    border-radius: 12px;
    padding: 28px 32px;
    text-align: center;
    margin-bottom: 40px;
}

.donate-section h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #f0f0f0;
    margin: 0 0 8px;
}

.donate-section p {
    font-size: 0.9rem;
    color: #888;
    margin: 0 0 18px;
    line-height: 1.5;
}

/* ─── Back nav ──────────────────────────────────────────────── */
.back-nav {
    font-size: 0.85rem;
    color: #555;
    margin-bottom: 32px;
    display: block;
}
.back-nav:hover { color: #4DC4FF; text-decoration: none; }

/* ─── Product page body text ───────────────────────────────── */
.product-body {
    color: #999;
    line-height: 1.7;
    font-size: 0.95rem;
    margin: 0 0 12px;
}

.product-screenshots {
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ─── Help Page ────────────────────────────────────────────── */
.help-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 32px 0 40px;
    border-bottom: 1px solid #2a2a2a;
    margin-bottom: 48px;
}

.help-hero .help-icon {
    width: 80px;
    height: 80px;
    border-radius: 18px;
    box-shadow: 0 6px 24px rgba(0,0,0,0.4);
    margin-bottom: 16px;
}

.help-hero h1 {
    font-family: "New York", "Times New Roman", Times, serif;
    font-size: 2.4rem;
    font-weight: 700;
    color: #4DC4FF;
    margin: 0 0 8px;
    letter-spacing: -0.02em;
}

.help-version {
    font-size: 0.8rem;
    color: #555;
}

.help-section {
    margin-bottom: 48px;
}

.help-section h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #f0f0f0;
    margin: 0 0 20px;
    padding-bottom: 8px;
    border-bottom: 1px solid #2a2a2a;
}

.help-section h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ddd;
    margin: 28px 0 12px;
}

.help-section h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #c0c0c0;
    margin: 20px 0 10px;
}

.help-section p {
    color: #999;
    line-height: 1.7;
    font-size: 0.92rem;
    margin: 0 0 12px;
}

.help-section code {
    font-family: 'SF Mono', 'Menlo', 'Monaco', monospace;
    font-size: 0.85em;
    background-color: rgba(255,255,255,0.08);
    padding: 2px 6px;
    border-radius: 4px;
    color: #ccc;
}

.help-list {
    color: #999;
    line-height: 1.7;
    font-size: 0.92rem;
    padding-left: 20px;
    margin: 0 0 16px;
}

.help-list li {
    margin-bottom: 6px;
}

.help-list li strong {
    color: #ccc;
}

/* ─── Help figures & screenshots ───────────────────────────── */
.help-figure {
    text-align: center;
    margin: 20px 0;
}

.help-screenshot {
    max-width: 100%;
    border-radius: 12px;
    box-shadow: 0 6px 30px rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.06);
}

.help-screenshot-sm {
    max-width: 360px;
}

.help-screenshot-xs {
    max-width: 260px;
}

.help-caption {
    font-size: 0.82rem !important;
    color: #666 !important;
    margin: 10px auto 0 !important;
    max-width: 400px;
    line-height: 1.5 !important;
}

.help-figure-row {
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 24px 0;
}

.help-figure-row .help-figure {
    flex: 1;
    min-width: 280px;
    max-width: 400px;
}

/* ─── SMB signing comparison ───────────────────────────────── */
.help-signing-compare {
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 24px 0;
}

.help-signing-card {
    flex: 1;
    min-width: 280px;
    max-width: 420px;
    text-align: center;
}

.help-signing-label {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 16px;
    font-size: 0.8rem;
    font-weight: 600;
    margin: 12px 0 8px;
}

.help-signing-bad {
    background-color: rgba(220,80,60,0.15);
    color: #e06050;
    border: 1px solid rgba(220,80,60,0.3);
}

.help-signing-good {
    background-color: rgba(60,180,100,0.15);
    color: #50c070;
    border: 1px solid rgba(60,180,100,0.3);
}

/* ─── Callout box ──────────────────────────────────────────── */
.help-callout {
    background-color: rgba(77,196,255,0.06);
    border: 1px solid rgba(77,196,255,0.15);
    border-left: 3px solid rgba(77,196,255,0.4);
    border-radius: 8px;
    padding: 16px 20px;
    font-size: 0.88rem;
    color: #999;
    line-height: 1.6;
    margin: 20px 0;
}

.help-callout strong {
    color: #ccc;
}

/* ─── Performance table ────────────────────────────────────── */
.help-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
    margin: 16px 0;
}

.help-table th {
    text-align: left;
    padding: 10px 14px;
    color: #aaa;
    font-weight: 600;
    border-bottom: 2px solid #333;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.help-table td {
    padding: 10px 14px;
    color: #999;
    border-bottom: 1px solid #2a2a2a;
}

.help-table tbody tr:hover {
    background-color: rgba(255,255,255,0.02);
}

/* ─── Tips grid ────────────────────────────────────────────── */
.help-tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    margin: 16px 0;
}

.help-tip {
    background-color: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 8px;
    padding: 16px;
}

.help-tip strong {
    color: #ccc;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 6px;
}

.help-tip p {
    font-size: 0.85rem !important;
    color: #888 !important;
    line-height: 1.55 !important;
    margin: 0 !important;
}

/* ─── Screenshot lightbox (click to enlarge) ───────────────── */
.help-screenshot {
    cursor: zoom-in;
}

.lightbox-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0,0,0,0.88);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    cursor: zoom-out;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    padding: 24px;
}

.lightbox-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-overlay img {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 12px;
    box-shadow: 0 12px 60px rgba(0,0,0,0.6);
    border: 1px solid rgba(255,255,255,0.1);
    object-fit: contain;
}

/* ─── Responsive ────────────────────────────────────────────── */
@media (max-width: 640px) {
    .site-header .logo { width: 200px; }
    .product-hero h1 { font-size: 2.2rem; }
    .product-hero .app-icon-large { width: 90px; height: 90px; border-radius: 20px; }
    .app-grid { grid-template-columns: 1fr; }
    .feature-grid { grid-template-columns: 1fr; }
    .hero-actions { flex-direction: column; width: 100%; }
    .hero-actions .btn { width: 100%; text-align: center; }
    .donate-section { padding: 20px; }
    .help-signing-compare { flex-direction: column; align-items: center; }
    .help-figure-row { flex-direction: column; align-items: center; }
    .help-tips-grid { grid-template-columns: 1fr; }
    .product-screenshots { flex-direction: column; align-items: center; }
    .help-hero h1 { font-size: 1.8rem; }
}
