/* =========================================================================
   KegelCore — privacy / legal site
   Single stylesheet shared by every page. Light + dark themes via
   prefers-color-scheme. No external fonts to keep load instant on GitHub
   Pages, no JS frameworks, no trackers.
   ========================================================================= */

:root {
    --bg: #f7f7fb;
    --surface: #ffffff;
    --ink: #0f172a;
    --ink-soft: #475569;
    --ink-mute: #64748b;
    --line: #e2e8f0;
    --brand: #4f46e5;
    --brand-deep: #3730a3;
    --brand-soft: #eef2ff;
    --accent: #fcd34d;
    --shadow: 0 1px 2px rgba(15, 23, 42, 0.04),
              0 8px 24px rgba(15, 23, 42, 0.06);
    --radius: 18px;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #0b0f1a;
        --surface: #121829;
        --ink: #f1f5f9;
        --ink-soft: #cbd5e1;
        --ink-mute: #94a3b8;
        --line: #1f2937;
        --brand: #818cf8;
        --brand-deep: #6366f1;
        --brand-soft: rgba(99, 102, 241, 0.12);
        --shadow: 0 1px 2px rgba(0, 0, 0, 0.4),
                  0 12px 28px rgba(0, 0, 0, 0.35);
    }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
                 "Helvetica Neue", Arial, "Noto Sans", sans-serif,
                 "Apple Color Emoji", "Segoe UI Emoji";
    font-size: 16px;
    line-height: 1.6;
    color: var(--ink);
    background:
        radial-gradient(1200px 600px at 90% -10%,
            rgba(79, 70, 229, 0.10), transparent 60%),
        radial-gradient(900px 500px at -10% 10%,
            rgba(252, 211, 77, 0.10), transparent 60%),
        var(--bg);
    background-attachment: fixed;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* -------------------- header -------------------- */
.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 18px 28px;
    max-width: 1120px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--ink);
    font-weight: 800;
    font-size: 18px;
    letter-spacing: -0.01em;
}

.brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--brand-deep), var(--brand));
    color: #fff;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.5px;
    box-shadow: 0 6px 14px rgba(79, 70, 229, 0.35);
}

.site-header nav {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.site-header nav a {
    color: var(--ink-soft);
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.15s ease, color 0.15s ease;
}

.site-header nav a:hover {
    color: var(--ink);
    background: var(--brand-soft);
}

.site-header nav a.active {
    color: var(--brand);
    background: var(--brand-soft);
}

/* -------------------- layout -------------------- */
.container {
    max-width: 820px;
    margin: 0 auto;
    padding: 24px 24px 80px;
}

.hero {
    padding: 40px 8px 24px;
    text-align: left;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 12px;
    font-weight: 800;
    color: var(--brand);
    margin: 0 0 12px;
}

.hero h1 {
    font-size: clamp(28px, 4.5vw, 44px);
    line-height: 1.15;
    margin: 0 0 16px;
    letter-spacing: -0.02em;
    color: var(--ink);
}

.lede {
    font-size: 17px;
    color: var(--ink-soft);
    margin: 0 0 12px;
    max-width: 62ch;
}

.meta {
    font-size: 13px;
    color: var(--ink-mute);
    margin: 8px 0 0;
}

/* -------------------- cards -------------------- */
.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px 32px;
    margin: 20px 0;
    box-shadow: var(--shadow);
}

@media (max-width: 540px) {
    .card { padding: 22px 20px; }
}

.card h2 {
    margin-top: 28px;
    margin-bottom: 10px;
    font-size: 20px;
    letter-spacing: -0.01em;
    color: var(--ink);
}

.card h2:first-child { margin-top: 0; }

.card h3 {
    margin-top: 20px;
    margin-bottom: 6px;
    font-size: 16px;
    color: var(--ink);
}

.card p { margin: 0 0 12px; color: var(--ink-soft); }

.card ul, .card ol {
    margin: 0 0 14px;
    padding-left: 22px;
    color: var(--ink-soft);
}

.card li { margin-bottom: 6px; }

.card a {
    color: var(--brand);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.card a:hover { color: var(--brand-deep); }

.card .note {
    font-size: 13px;
    color: var(--ink-mute);
    margin-top: 12px;
}

/* short highlight card */
.highlights ul.bullets {
    list-style: none;
    padding: 0;
    margin: 0;
}

.highlights ul.bullets li {
    position: relative;
    padding: 10px 0 10px 30px;
    border-bottom: 1px solid var(--line);
    color: var(--ink-soft);
}

.highlights ul.bullets li:last-child { border-bottom: none; }

.highlights ul.bullets li::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 18px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background:
        radial-gradient(circle at center, var(--brand) 0 4px, transparent 5px),
        var(--brand-soft);
    border: 1px solid var(--brand-soft);
}

/* numbered step list */
.prose ol.steps {
    counter-reset: step;
    list-style: none;
    padding-left: 0;
}

.prose ol.steps li {
    counter-increment: step;
    position: relative;
    padding: 6px 0 6px 38px;
    margin-bottom: 8px;
}

.prose ol.steps li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: 6px;
    width: 26px;
    height: 26px;
    border-radius: 8px;
    background: var(--brand-soft);
    color: var(--brand);
    font-weight: 800;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* -------------------- buttons -------------------- */
.cta-row { margin: 16px 0; }

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none !important;
    border: 1px solid transparent;
    transition: transform 0.08s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn.primary {
    background: linear-gradient(135deg, var(--brand-deep), var(--brand));
    color: #fff !important;
    box-shadow: 0 8px 18px rgba(79, 70, 229, 0.30);
}

.btn.primary:hover {
    box-shadow: 0 12px 22px rgba(79, 70, 229, 0.40);
}

/* -------------------- footer -------------------- */
.site-footer {
    border-top: 1px solid var(--line);
    margin-top: 40px;
    padding: 24px 24px 60px;
}

.footer-inner {
    max-width: 1120px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    color: var(--ink-mute);
    font-size: 13px;
}

.footer-inner a {
    color: var(--ink-mute);
    text-decoration: none;
    margin: 0 2px;
}

.footer-inner a:hover {
    color: var(--brand);
    text-decoration: underline;
}

/* -------------------- responsive tweaks -------------------- */
@media (max-width: 640px) {
    .site-header { padding: 14px 18px; }
    .container { padding: 12px 18px 60px; }
    .hero { padding: 24px 4px 16px; }
}

