/* LegalKite — design system per CLAUDE.md (sitekite.nl clone, purple accent) */

:root {
    --bg: #FAFAF8;
    --ink: #0B0B0C;
    --accent: #A78BFA;        /* fills, buttons, borders */
    --accent-deep: #7C5CE6;   /* small text on light bg (contrast) */
    --tint: rgba(233, 225, 255, 0.4);
    --border: rgba(11, 11, 12, 0.1);
    --font-body: 'Karla', ui-sans-serif, system-ui, sans-serif;
    --font-display: 'Bricolage Grotesque', ui-sans-serif, system-ui, sans-serif;
    --font-mono: 'Space Mono', ui-monospace, monospace;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-body);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- Typography ---------- */

h1, h2, h3 {
    font-family: var(--font-display);
    letter-spacing: -0.02em;
    margin: 0;
}

h1 {
    font-weight: 800;
    font-size: clamp(2.25rem, 4.5vw + 1rem, 3.75rem);
    line-height: 1.05;
    margin-bottom: 1.5rem;
}

h2 {
    font-weight: 800;
    font-size: clamp(1.875rem, 2vw + 1rem, 2.25rem);
    line-height: 1.15;
    margin-bottom: 0.75rem;
}

h3 {
    font-weight: 700;
    font-size: 1.25rem;
    line-height: 1.3;
    margin-bottom: 0.5rem;
}

p { margin: 0 0 1rem; }

.eyebrow {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--accent-deep);
    margin: 0 0 1rem;
}

.lead { font-size: 1.125rem; color: rgba(11, 11, 12, 0.7); }
.muted { color: rgba(11, 11, 12, 0.65); }
.small { font-size: 0.875rem; }
.footnote { font-size: 0.875rem; color: rgba(11, 11, 12, 0.45); }
.measure { max-width: 42rem; }
.measure-narrow { max-width: 28rem; }

/* ---------- Layout ---------- */

.container {
    max-width: 72rem;
    margin-inline: auto;
    padding-inline: 1.5rem;
}

.section { padding-block: 5rem; }

.section-dark {
    background: var(--ink);
    color: var(--bg);
}
.section-dark .eyebrow { color: var(--accent); }
.section-dark .muted { color: rgba(250, 250, 248, 0.6); }

.section-tint { background: var(--tint); }

.grid-2 {
    display: grid;
    gap: 3rem;
    align-items: center;
}
.grid-3 {
    display: grid;
    gap: 1.5rem;
}
@media (min-width: 640px) {
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 768px) {
    .grid-2 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
    .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Header ---------- */

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-block: 1.5rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}
.brand-name {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
}

.site-nav {
    display: none;
    align-items: center;
    gap: 1.5rem;
    font-size: 0.875rem;
    font-weight: 500;
}
.site-nav a { text-decoration: none; transition: color 0.2s; }
.site-nav a:hover { color: var(--accent-deep); }
@media (min-width: 640px) {
    .site-nav { display: flex; }
}

/* ---------- Buttons & links ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    border: 0;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.2s, color 0.2s;
}
.btn-accent { background: var(--accent); color: var(--ink); }
.btn-accent:hover { background: var(--ink); color: var(--accent); }
.btn-ink { background: var(--ink); color: var(--bg); }
.btn-ink:hover { background: var(--accent); color: var(--ink); }

.link-underline {
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: underline;
    text-decoration-color: var(--accent);
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
    transition: color 0.2s;
}
.link-underline:hover { color: var(--accent-deep); }

/* ---------- Hero ---------- */

.hero {
    position: relative;
    padding-top: 1.5rem;
    padding-bottom: 6rem;
    overflow: hidden;
}
@media (min-width: 768px) {
    .hero { padding-top: 3.5rem; padding-bottom: 8rem; }
}

.hero-kite {
    display: none;
    position: absolute;
    right: 2rem;
    top: 1.5rem;
    width: 13rem;
}
@media (min-width: 768px) {
    .hero-kite { display: block; }
}

@keyframes kite-float {
    0%, 100% { transform: translateY(0) rotate(-7deg); }
    50% { transform: translateY(-14px) rotate(-3deg); }
}
.kite-float { animation: kite-float 6s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) {
    .kite-float { animation: none; }
}

.hero-inner { position: relative; max-width: 36rem; }

.cta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1.5rem;
}

/* ---------- Cards ---------- */

.card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 2rem;
}

.card-link {
    display: block;
    text-decoration: none;
    transition: border-color 0.2s;
}
.card-link:hover { border-color: var(--accent); }
.card-link:hover .card-title { color: var(--accent-deep); }
.card-title { transition: color 0.2s; }

.chip {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid var(--border);
    border-radius: 9999px;
    padding: 0.25rem 0.75rem;
}
.chip-accent {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--ink);
}

.chip-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* ---------- Steps (dark section) ---------- */

.steps {
    display: grid;
    gap: 2.5rem;
}
@media (min-width: 768px) {
    .steps { grid-template-columns: repeat(3, 1fr); gap: 3.5rem 1.5rem; }
}

.step { position: relative; padding-top: 3.5rem; }
.step-marker { position: absolute; top: 0; left: 0; }
.step p { color: rgba(250, 250, 248, 0.6); margin: 0; }
@media (min-width: 768px) {
    .step { text-align: center; }
    .step-marker { left: 50%; transform: translateX(-50%); }
}

/* ---------- Stat block ---------- */

.stat { text-align: center; }
.stat-number {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: clamp(3.75rem, 6vw + 1rem, 4.5rem);
    line-height: 1;
    color: var(--accent-deep);
    margin: 0;
}
.stat-label {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.125rem;
    margin: 0.5rem 0 0;
}

/* ---------- Definition list ---------- */

.term-list { margin: 0; }
.term-list dt {
    font-family: var(--font-display);
    font-weight: 700;
    margin-top: 1rem;
}
.term-list dd { margin: 0.25rem 0 0; color: rgba(11, 11, 12, 0.65); }

/* ---------- FAQ ---------- */

.faq-list {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.faq-item { border-bottom: 1px solid var(--border); padding-block: 1.25rem; }
.faq-item:last-child { border-bottom: 0; }

.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    cursor: pointer;
    list-style: none;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.125rem;
    letter-spacing: -0.01em;
}
.faq-item summary::-webkit-details-marker { display: none; }

.faq-icon {
    flex-shrink: 0;
    color: var(--accent-deep);
    font-size: 1.5rem;
    line-height: 1;
    transition: transform 0.2s ease;
}
.faq-item[open] .faq-icon { transform: rotate(45deg); }
@media (prefers-reduced-motion: reduce) {
    .faq-icon { transition: none; }
}

.faq-item p {
    color: rgba(11, 11, 12, 0.65);
    margin: 0.75rem 0 0;
    max-width: 36rem;
}

/* ---------- Article pages ---------- */

.breadcrumb {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(11, 11, 12, 0.5);
    margin-bottom: 1.5rem;
}
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.breadcrumb li + li::before { content: "/"; margin-right: 0.5rem; color: rgba(11, 11, 12, 0.3); }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { color: var(--accent-deep); }

.article-meta {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(11, 11, 12, 0.5);
    margin-bottom: 3rem;
}

.article { max-width: 42rem; }
.article h2 { margin-top: 3rem; }
.article h3 { margin-top: 2rem; }
.article p, .article li { color: rgba(11, 11, 12, 0.75); }
.article ul, .article ol { padding-left: 1.25rem; margin: 0 0 1rem; }
.article li { margin-bottom: 0.375rem; }
.article li::marker { color: var(--accent-deep); }
.article a { text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.article a:hover { color: var(--accent-deep); }
.article strong { color: var(--ink); }

.article-note {
    background: var(--tint);
    border-radius: 1rem;
    padding: 1.5rem 2rem;
    margin: 2rem 0;
}
.article-note p { margin: 0; }

/* ---------- Checklist ---------- */

.check-grid {
    display: grid;
    gap: 0.75rem 3rem;
    list-style: none;
    margin: 0;
    padding: 0;
}
@media (min-width: 768px) {
    .check-grid { grid-template-columns: repeat(2, 1fr); }
}
.check-grid li {
    position: relative;
    padding-left: 1.75rem;
    color: rgba(11, 11, 12, 0.7);
}
.check-grid li::before {
    content: "✕";
    position: absolute;
    left: 0;
    top: 0.1em;
    font-family: var(--font-mono);
    font-weight: 700;
    color: var(--accent-deep);
}

/* ---------- Footer ---------- */

.site-footer {
    border-top: 1px solid var(--border);
    padding-block: 2.5rem;
}
.footer-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.875rem;
    color: rgba(11, 11, 12, 0.5);
}
@media (min-width: 640px) {
    .footer-row { flex-direction: row; }
}
.footer-row a { text-decoration: none; transition: color 0.2s; }
.footer-row a:hover { color: var(--accent-deep); }
.footer-brand { display: flex; align-items: center; gap: 0.5rem; }
.footer-brand .brand-name { font-size: 1rem; font-weight: 700; }
.footer-links { display: flex; align-items: center; gap: 1.5rem; }

.footer-legal {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    font-size: 0.75rem;
    color: rgba(11, 11, 12, 0.4);
    text-align: center;
    line-height: 1.6;
}
@media (min-width: 640px) {
    .footer-legal { text-align: left; }
}
.footer-legal p { margin: 0; }
.footer-legal .mono { font-family: var(--font-mono); margin-top: 0.25rem; }
