/* SimPulse — site styles */

:root {
    --teal: #00B8A9;
    --teal-dark: #006A5F;
    --teal-faint: #9EF2E5;
    --bg: #FAFDFB;
    --surface: #FFFFFF;
    --surface-dim: #ECF3F1;
    --on-bg: #161D1C;
    --on-bg-faint: #3F4948;
    --outline: #C8D0CF;
    --error: #BA1A1A;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
}

@media (prefers-color-scheme: dark) {
    :root {
        --teal: #66D9CE;
        --teal-dark: #82D5C8;
        --teal-faint: #005048;
        --bg: #0E1514;
        --surface: #1A2120;
        --surface-dim: #232A29;
        --on-bg: #DEE4E2;
        --on-bg-faint: #BEC9C7;
        --outline: #3F4948;
        --error: #FFB4AB;
    }
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--on-bg);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, "Helvetica Neue", sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

.container {
    max-width: 980px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Top bar */
.topbar {
    padding: 20px 0;
    border-bottom: 1px solid var(--outline);
}
.topbar .container {
    display: flex;
    align-items: center;
    gap: 16px;
}
.topbar img {
    width: 36px;
    height: 36px;
    border-radius: 8px;
}
.topbar .brand {
    font-weight: 700;
    font-size: 20px;
    color: var(--on-bg);
}
.topbar nav {
    margin-left: auto;
    display: flex;
    gap: 24px;
}
.topbar nav a {
    color: var(--on-bg-faint);
    font-size: 14px;
}

/* Hero */
.hero {
    padding: 72px 0 56px;
    text-align: center;
}
.hero img.hero-icon {
    width: 112px;
    height: 112px;
    border-radius: 24px;
    box-shadow: 0 4px 12px rgba(0, 184, 169, 0.25);
}
.hero h1 {
    font-size: 48px;
    font-weight: 700;
    margin: 24px 0 12px;
    color: var(--on-bg);
}
.hero p.lead {
    font-size: 20px;
    color: var(--on-bg-faint);
    max-width: 640px;
    margin: 0 auto;
}
.hero .stores {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 32px;
    flex-wrap: wrap;
}
.hero .store-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 999px;
    background: var(--teal);
    color: #fff;
    font-weight: 600;
    font-size: 15px;
    transition: filter 0.15s;
}
.hero .store-btn:hover {
    filter: brightness(1.08);
    text-decoration: none;
}
.hero .store-btn.disabled {
    background: var(--surface-dim);
    color: var(--on-bg-faint);
    cursor: not-allowed;
    font-weight: 500;
}
.hero .store-btn.disabled:hover {
    filter: none;
}

/* Sections */
section { padding: 64px 0; }
section h2 {
    font-size: 32px;
    margin: 0 0 32px;
    color: var(--on-bg);
}

/* Features grid */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}
.feature {
    padding: 24px;
    background: var(--surface);
    border: 1px solid var(--outline);
    border-radius: 16px;
    box-shadow: var(--shadow);
}
.feature .icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--teal-faint);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--teal-dark);
    font-weight: 700;
    margin-bottom: 16px;
}
.feature h3 {
    margin: 0 0 8px;
    font-size: 18px;
}
.feature p {
    margin: 0;
    color: var(--on-bg-faint);
    font-size: 15px;
}

/* Screenshots */
.shots {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}
.shots img {
    width: 100%;
    border-radius: 16px;
    border: 1px solid var(--outline);
    box-shadow: var(--shadow);
    cursor: zoom-in;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.shots img:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

/* Lightbox overlay */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    cursor: zoom-out;
    -webkit-tap-highlight-color: transparent;
}
.lightbox.open { display: flex; }
.lightbox img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    cursor: zoom-out;
}
.lightbox-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: 0;
    color: #fff;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    opacity: 0.7;
}
.lightbox-close:hover { opacity: 1; }

/* Privacy promise */
.privacy-block {
    background: var(--surface);
    border: 1px solid var(--outline);
    border-radius: 16px;
    padding: 32px;
    box-shadow: var(--shadow);
}
.privacy-block p {
    margin: 0 0 16px;
}
.privacy-block p:last-child { margin-bottom: 0; }

/* Footer */
footer {
    padding: 32px 0;
    border-top: 1px solid var(--outline);
    color: var(--on-bg-faint);
    font-size: 14px;
}
footer .container {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: space-between;
}
footer nav {
    display: flex;
    gap: 16px;
}

/* Privacy / legal page */
.legal {
    padding: 48px 0 80px;
    max-width: 720px;
}
.legal h1 { font-size: 32px; margin-bottom: 8px; }
.legal h2 { font-size: 22px; margin-top: 40px; }
.legal h3 { font-size: 18px; margin-top: 28px; }
.legal table {
    border-collapse: collapse;
    width: 100%;
    margin: 16px 0;
    font-size: 14px;
}
.legal table th, .legal table td {
    text-align: left;
    padding: 8px 12px;
    border: 1px solid var(--outline);
}
.legal table th {
    background: var(--surface-dim);
}
.legal .effective {
    color: var(--on-bg-faint);
    font-size: 14px;
}
.legal code {
    background: var(--surface-dim);
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 90%;
}

/* Mobile tweaks */
@media (max-width: 640px) {
    .hero { padding: 40px 0 32px; }
    .hero h1 { font-size: 36px; }
    .hero p.lead { font-size: 17px; }
    section { padding: 40px 0; }
    section h2 { font-size: 26px; }
    .topbar nav { display: none; }
}
