:root {
    --brand-start: #64748b;
    --brand-end: #1e293b;
    --text: #1a1a1a;
    --text-muted: #5f5f67;
    --bg: #fbfbfd;
    --card-bg: #ffffff;
    --rule: #e6e6ec;
}
@media (prefers-color-scheme: dark) {
    :root {
        --text: #f2f2f5;
        --text-muted: #a8a8b2;
        --bg: #0c0c10;
        --card-bg: #16161b;
        --rule: #26262c;
    }
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
a { color: var(--brand-end); text-decoration: none; }
a:hover { text-decoration: underline; }

/* NAV */
.site-nav {
    max-width: 880px;
    margin: 0 auto;
    padding: 22px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.site-nav .wordmark {
    font-weight: 700;
    font-size: 15px;
    color: var(--text);
    letter-spacing: -0.01em;
}
.site-nav .wordmark:hover { text-decoration: none; }
.site-nav .links { display: flex; gap: 22px; }
.site-nav .links a {
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
}
.site-nav .links a:hover { color: var(--text); text-decoration: none; }
.site-nav .links a.active { color: var(--text); font-weight: 700; }

/* HERO */
.hero {
    background: linear-gradient(135deg, var(--brand-start), var(--brand-end));
    padding: 80px 24px 88px;
    text-align: center;
    position: relative;
    overflow: hidden;
    color: white;
}
.hero::before {
    content: "";
    position: absolute;
    top: -30%; left: -15%;
    width: 60%; height: 80%;
    background: radial-gradient(closest-side, rgba(255,255,255,0.16), transparent 70%);
    pointer-events: none;
}
.icon-wrap {
    width: 104px;
    height: 104px;
    margin: 0 auto 28px;
    border-radius: 22px;
    box-shadow: 0 16px 48px rgba(30, 41, 59, 0.34), 0 4px 12px rgba(0,0,0,0.16);
    overflow: hidden;
    position: relative;
}
.icon-wrap svg { display: block; width: 100%; height: 100%; }
h1 {
    font-size: 44px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0 0 12px;
    color: white;
}
.tagline {
    font-size: 20px;
    max-width: 560px;
    margin: 0 auto;
    opacity: 0.96;
}
.sub {
    font-size: 14px;
    opacity: 0.78;
    margin: 14px 0 0;
    letter-spacing: 0.01em;
}

/* PLAIN PAGE HEAD (non-product pages, e.g. About) */
.page-head {
    max-width: 880px;
    margin: 0 auto;
    padding: 56px 24px 8px;
    text-align: center;
}
.page-head h1 { color: var(--text); font-size: 36px; }
.page-head .tagline { color: var(--text-muted); font-size: 17px; opacity: 1; }

/* CONTENT */
main {
    max-width: 880px;
    margin: 0 auto;
    padding: 64px 24px 32px;
}
h2 {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.015em;
    margin: 0 0 8px;
    text-align: center;
}
.section-lede {
    text-align: center;
    color: var(--text-muted);
    max-width: 480px;
    margin: 0 auto 40px;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 18px;
    margin-bottom: 64px;
}
.card {
    background: var(--card-bg);
    border: 1px solid var(--rule);
    border-radius: 16px;
    padding: 26px 22px 22px;
    display: flex;
    flex-direction: column;
}
.card-icon {
    font-size: 30px;
    line-height: 1;
    margin-bottom: 14px;
}
.card-title {
    font-size: 17px;
    font-weight: 600;
    margin: 0 0 6px;
}
.card-desc {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0 0 20px;
    flex: 1;
}
.btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--brand-start), var(--brand-end));
    color: white !important;
    font-weight: 600;
    font-size: 13.5px;
    padding: 9px 16px;
    border-radius: 8px;
    text-align: center;
    align-self: flex-start;
    transition: transform 0.15s ease, opacity 0.15s ease;
}
.btn:hover { text-decoration: none; opacity: 0.94; transform: translateY(-1px); }

/* APP CARDS (homepage) */
.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 64px;
}
.app-card {
    background: var(--card-bg);
    border: 1px solid var(--rule);
    border-radius: 16px;
    padding: 28px 26px;
    display: flex;
    flex-direction: column;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.app-card:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(0,0,0,0.08); }
.app-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    margin-bottom: 18px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.18);
    overflow: hidden;
}
.app-icon svg, .app-icon img { display: block; width: 100%; height: 100%; }
.app-card h3 {
    font-size: 19px;
    font-weight: 700;
    margin: 0 0 6px;
    letter-spacing: -0.01em;
}
.app-tagline {
    color: var(--text-muted);
    font-size: 14.5px;
    margin: 0 0 14px;
    flex: 1;
}
.app-meta {
    font-size: 12.5px;
    color: var(--text-muted);
    opacity: 0.85;
    margin: 0 0 18px;
}
.btn-contactsnap { background: linear-gradient(135deg, #0EA5E9, #8B5CF6) !important; }
.btn-readlater { background: linear-gradient(135deg, #26c6da, #1665c0) !important; }
.btn-wsop { background: linear-gradient(135deg, #16a34a, #052e16) !important; }
.btn-booktracker { background: linear-gradient(135deg, #26C6DA, #1665C0) !important; }

/* ABOUT */
.about {
    background: var(--card-bg);
    border: 1px solid var(--rule);
    border-radius: 16px;
    padding: 32px 28px;
    margin-bottom: 48px;
}
.about h2 {
    font-size: 18px;
    text-align: left;
    margin-bottom: 14px;
}
.about p {
    margin: 0 0 14px;
    color: var(--text);
}
.about p:last-child { margin: 0; }

/* FOOTER */
footer {
    border-top: 1px solid var(--rule);
    padding: 24px;
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
}
footer a { color: var(--text-muted); }
footer a:hover { color: var(--brand-end); }
footer .dot { opacity: 0.5; margin: 0 8px; }

@media (max-width: 560px) {
    .hero { padding: 64px 22px 64px; }
    h1 { font-size: 34px; }
    .tagline { font-size: 17px; }
    .icon-wrap { width: 88px; height: 88px; border-radius: 18px; }
    main { padding-top: 48px; }
    .site-nav { padding: 18px 22px; }
}
