/* Spentally website: one stylesheet for every page. Plum, like the app. */

:root {
    --plum: #86198f;
    --plum-deep: #2a0a2e;
    --plum-soft: #fae8ff;
    --text: #1d1d1f;
    --muted: #6e6e73;
    --background: #ffffff;
    --surface: #f5f5f7;
    --line: #e5e5ea;
    color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
    :root {
        --plum: #f0abfc;
        --plum-soft: #3b0f40;
        --text: #f5f5f7;
        --muted: #a1a1a6;
        --background: #000000;
        --surface: #1c1c1e;
        --line: #38383a;
    }
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
    font-size: 17px;
    line-height: 1.55;
    color: var(--text);
    background: var(--background);
    -webkit-font-smoothing: antialiased;
}

a { color: var(--plum); }

.wrap {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Top bar */
header.site {
    border-bottom: 1px solid var(--line);
}
header.site .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 20px;
    color: var(--text);
    text-decoration: none;
}
.brand img { width: 34px; height: 34px; }
nav a {
    margin-left: 22px;
    color: var(--muted);
    text-decoration: none;
    font-size: 15px;
}
nav a:hover, nav a[aria-current="page"] { color: var(--text); }

/* Home page */
.hero {
    background: linear-gradient(160deg, var(--plum-deep), #86198f 70%, #ba34a0);
    color: #ffffff;
    padding: 72px 0;
}
.hero .wrap {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 48px;
    align-items: center;
}
.hero h1 {
    font-size: 52px;
    line-height: 1.05;
    margin: 0 0 16px;
    letter-spacing: -0.02em;
}
.hero p.lead {
    font-size: 21px;
    margin: 0 0 28px;
    opacity: 0.92;
}
.hero .phone {
    justify-self: center;
    width: 100%;
    max-width: 300px;
    border-radius: 36px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
}
.button {
    display: inline-block;
    background: #ffffff;
    color: var(--plum-deep);
    font-weight: 600;
    padding: 14px 26px;
    border-radius: 999px;
    text-decoration: none;
}

section.block { padding: 64px 0; }
section.block.alt { background: var(--surface); }
section.block h2 {
    font-size: 34px;
    letter-spacing: -0.01em;
    margin: 0 0 8px;
}
section.block p.intro {
    color: var(--muted);
    font-size: 19px;
    margin: 0 0 36px;
    max-width: 640px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.card {
    background: var(--background);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 24px;
}
section.block:not(.alt) .card { background: var(--surface); border-color: transparent; }
.card .symbol {
    font-size: 28px;
    line-height: 1;
}
.card h3 {
    margin: 12px 0 6px;
    font-size: 19px;
}
.card p {
    margin: 0;
    color: var(--muted);
    font-size: 16px;
}

/* Text pages (Privacy Policy, Support) */
main.page {
    max-width: 760px;
    margin: 0 auto;
    padding: 48px 24px 72px;
}
main.page h1 {
    font-size: 40px;
    letter-spacing: -0.02em;
    margin: 0 0 6px;
}
main.page .updated { color: var(--muted); margin: 0 0 32px; }
main.page h2 { font-size: 24px; margin: 40px 0 10px; }
main.page h3 { font-size: 19px; margin: 28px 0 6px; }
main.page li { margin-bottom: 6px; }
.summary {
    background: var(--plum-soft);
    border-radius: 18px;
    padding: 20px 24px;
    margin-bottom: 8px;
}
.summary p { margin: 0; }
.placeholder {
    background: #fff3b0;
    color: #5c4400;
    padding: 1px 6px;
    border-radius: 6px;
    font-weight: 600;
}

details {
    border-bottom: 1px solid var(--line);
    padding: 14px 0;
}
details summary {
    cursor: pointer;
    font-weight: 600;
    font-size: 18px;
}
details p, details ol, details ul { color: var(--text); }

.contact {
    background: var(--surface);
    border-radius: 18px;
    padding: 24px;
    margin-top: 36px;
}

footer.site {
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 14px;
    padding: 28px 0 40px;
}
footer.site .wrap {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}
footer.site a { color: var(--muted); margin-left: 18px; }

@media (max-width: 760px) {
    .hero { padding: 48px 0; }
    .hero .wrap { grid-template-columns: 1fr; text-align: center; }
    .hero h1 { font-size: 40px; }
    .hero .phone { max-width: 240px; }
    .grid { grid-template-columns: 1fr; }
    nav a { margin-left: 14px; }
    footer.site a { margin: 0 18px 0 0; }
}
