/* RemListDB website — shared styles */
:root {
    --accent: #007AFF;
    --accent-dark: #0051D5;
    --bg: #ffffff;
    --bg-alt: #f5f5f7;
    --text: #1d1d1f;
    --text-secondary: #6e6e73;
    --border: #d2d2d7;
    --radius: 14px;
    --max-width: 980px;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #000000;
        --bg-alt: #1c1c1e;
        --text: #f5f5f7;
        --text-secondary: #98989d;
        --border: #38383a;
    }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

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

header.site {
    border-bottom: 1px solid var(--border);
    background: var(--bg);
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: saturate(180%) blur(20px);
}

header.site .inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

header.site .brand {
    font-weight: 600;
    font-size: 18px;
    color: var(--text);
}

header.site nav a {
    margin-left: 24px;
    color: var(--text);
    font-size: 15px;
}

main {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 48px 24px 96px;
}

section { margin-bottom: 64px; }

h1 {
    font-size: 48px;
    line-height: 1.1;
    margin: 0 0 16px;
    letter-spacing: -0.02em;
    font-weight: 700;
}

h2 {
    font-size: 32px;
    line-height: 1.2;
    margin: 0 0 24px;
    letter-spacing: -0.01em;
    font-weight: 600;
}

h3 {
    font-size: 21px;
    margin: 0 0 8px;
    font-weight: 600;
}

p.lead {
    font-size: 21px;
    color: var(--text-secondary);
    margin: 0 0 32px;
    max-width: 680px;
}

.hero {
    text-align: center;
    padding: 48px 0 64px;
}

.hero h1 { font-size: 64px; }
.hero p.lead { margin-left: auto; margin-right: auto; }

.badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--bg-alt);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 20px;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.feature {
    background: var(--bg-alt);
    border-radius: var(--radius);
    padding: 24px;
}

.feature .icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--accent);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    font-size: 20px;
}

faq, .faq { display: block; }

details {
    border-top: 1px solid var(--border);
    padding: 16px 0;
}

details:last-of-type { border-bottom: 1px solid var(--border); }

details summary {
    cursor: pointer;
    font-weight: 600;
    font-size: 18px;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

details summary::-webkit-details-marker { display: none; }
details summary::after {
    content: "+";
    font-weight: 400;
    font-size: 24px;
    color: var(--text-secondary);
    margin-left: 16px;
}
details[open] summary::after { content: "–"; }

details .answer { padding-top: 12px; color: var(--text-secondary); }
details .answer p { margin: 0 0 12px; }
details .answer p:last-child { margin-bottom: 0; }

ul.clean { padding-left: 20px; }
ul.clean li { margin-bottom: 8px; }

.callout {
    background: var(--bg-alt);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 24px;
}

.callout h3 { margin-bottom: 8px; }
.callout p { margin: 0; color: var(--text-secondary); }

footer.site {
    border-top: 1px solid var(--border);
    padding: 32px 24px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
}

footer.site a { color: var(--text-secondary); margin: 0 12px; }

.contact {
    background: var(--bg-alt);
    border-radius: var(--radius);
    padding: 32px;
    text-align: center;
}

.contact a.email {
    display: inline-block;
    margin-top: 8px;
    padding: 12px 28px;
    background: var(--accent);
    color: white;
    border-radius: 999px;
    font-weight: 500;
    font-size: 17px;
}

.contact a.email:hover { background: var(--accent-dark); text-decoration: none; }

@media (max-width: 640px) {
    h1 { font-size: 36px; }
    .hero h1 { font-size: 44px; }
    h2 { font-size: 26px; }
    p.lead { font-size: 18px; }
    main { padding: 32px 20px 64px; }
    header.site nav a { margin-left: 16px; font-size: 14px; }
}
