*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg: #f7f4ef;
    --surface: #fffefa;
    --text: #2c2a25;
    --text-muted: #8a8578;
    --primary: #4a6fa5;
    --primary-hover: #3d5d8a;
    --border: #e8e3d8;
    --rule: #e4dfd4;
    --radius: 6px;
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

html { font-size: 16px; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    min-height: 100dvh;
}

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

/* ── Layout ── */
.container {
    max-width: 680px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ── Site header ── */
.site-header {
    padding: 20px 0;
    border-bottom: 2px solid var(--border);
    margin-bottom: 48px;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo {
    font-family: 'Caveat', cursive;
    font-size: 1.8rem;
    color: var(--text);
    text-decoration: none;
    font-weight: 700;
}

.site-logo:hover { text-decoration: none; }

.site-nav {
    display: flex;
    gap: 20px;
    align-items: center;
    font-size: 0.9rem;
}

.site-nav a {
    color: var(--text-muted);
    border-bottom: 1px dotted transparent;
    transition: color 0.15s, border-color 0.15s;
}

.site-nav a:hover {
    color: var(--text);
    text-decoration: none;
    border-bottom-color: var(--text);
}

.site-nav .btn {
    display: inline-flex;
    align-items: center;
    padding: 7px 16px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.15s;
    text-decoration: none;
}

.site-nav .btn:hover {
    background: var(--primary-hover);
    text-decoration: none;
}

/* ── Hero ── */
.hero {
    text-align: center;
    padding: 40px 0 56px;
}

.hero h1 {
    font-family: 'Caveat', cursive;
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 12px;
    color: var(--text);
}

.hero .subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 32px;
    max-width: 440px;
    margin-left: auto;
    margin-right: auto;
}

.hero .btn-hero {
    display: inline-flex;
    align-items: center;
    padding: 14px 36px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    font-size: 1.05rem;
    font-weight: 600;
    font-family: var(--font);
    cursor: pointer;
    transition: background 0.15s, transform 0.15s;
    text-decoration: none;
}

.hero .btn-hero:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    text-decoration: none;
}

/* ── How it works ── */
.how-it-works {
    padding: 48px 0;
    border-top: 1px solid var(--border);
}

.how-it-works h2 {
    text-align: center;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 32px;
    font-weight: 600;
}

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.step {
    text-align: center;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--surface);
    border: 2px solid var(--border);
    color: var(--primary);
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 12px;
}

.step h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.step p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ── Features ── */
.features {
    padding: 48px 0;
    border-top: 1px solid var(--border);
}

.features h2 {
    text-align: center;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 28px;
    font-weight: 600;
}

.feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.feature {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
}

.feature h3 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.feature p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ── Footer ── */
.site-footer {
    margin-top: 64px;
    padding: 24px 0;
    border-top: 2px solid var(--border);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.site-footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-footer a {
    color: var(--text-muted);
}

.site-footer a:hover {
    color: var(--text);
}

/* ── Content pages (privacy etc) ── */
.content-page {
    padding: 24px 0 64px;
}

.content-page h1 {
    font-size: 1.8rem;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.content-page .page-subtitle {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 32px;
}

.content-page h2 {
    font-size: 1.1rem;
    margin-top: 32px;
    margin-bottom: 8px;
    color: var(--text);
}

.content-page p {
    margin-bottom: 12px;
    color: var(--text);
    font-size: 0.95rem;
}

.content-page ul {
    margin-bottom: 12px;
    padding-left: 24px;
}

.content-page li {
    margin-bottom: 4px;
    font-size: 0.95rem;
    color: var(--text);
}

/* ── Responsive ── */
@media (max-width: 520px) {
    .hero h1 { font-size: 2.5rem; }
    .hero .subtitle { font-size: 1rem; }
    .steps { grid-template-columns: 1fr; gap: 24px; }
    .feature-grid { grid-template-columns: 1fr; }
    .site-footer .container { flex-direction: column; gap: 8px; text-align: center; }
}
