html {
    scroll-behavior: smooth;
}

body {
    font-family: Manrope, sans-serif;
}

.brand-badge {
    box-shadow: inset 0 0 0 1px rgba(94, 234, 212, 0.18);
}

.brand-wordmark {
    text-wrap: balance;
    letter-spacing: 0.24em;
    line-height: 1;
}

.brand-badge--compact {
    border-radius: 1rem;
}

.brand-wordmark--compact {
    letter-spacing: 0.16em;
}

.glass-panel {
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(18px);
}

.hero-grid {
    background-image:
        linear-gradient(rgba(15, 23, 42, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 23, 42, 0.06) 1px, transparent 1px);
    background-size: 28px 28px;
}

.badge-dot::before {
    content: '';
    display: inline-block;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 9999px;
    margin-right: 0.5rem;
    background: currentColor;
    opacity: 0.7;
}

[data-notification-panel].hidden {
    display: none;
}

.password-rule {
    color: rgb(226 232 240);
    transition: color 180ms ease;
}

.password-rule-badge {
    background: rgba(255, 255, 255, 0.12);
    color: rgb(255 255 255);
    transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.password-rule.is-complete {
    color: rgb(255 255 255);
}

.password-rule.is-complete .password-rule-badge {
    background: rgb(74 222 128);
    color: rgb(15 23 42);
    transform: scale(1.04);
}

.password-rule.has-error {
    color: rgb(254 202 202);
}

.password-rule.has-error .password-rule-badge {
    background: rgb(239 68 68);
    color: rgb(255 255 255);
}

.password-input-error {
    border-color: rgb(248 113 113) !important;
    box-shadow: 0 0 0 4px rgba(248, 113, 113, 0.16);
}

[data-editor-surface] figure {
    margin: 1.5rem 0;
}

[data-editor-surface] p,
.prose p {
    margin: 0.9rem 0;
}

[data-editor-surface] h2,
.prose h2 {
    margin: 1.75rem 0 0.85rem;
    font-size: 1.875rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.025em;
    color: rgb(15 23 42);
}

[data-editor-surface] h3,
.prose h3 {
    margin: 1.35rem 0 0.7rem;
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.3;
    color: rgb(15 23 42);
}

[data-editor-surface] ul,
[data-editor-surface] ol,
.prose ul,
.prose ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

[data-editor-surface] ul,
.prose ul {
    list-style: disc;
}

[data-editor-surface] ul.editor-list-disc,
.prose ul.editor-list-disc {
    list-style-type: disc;
}

[data-editor-surface] ul.editor-list-circle,
.prose ul.editor-list-circle {
    list-style-type: circle;
}

[data-editor-surface] ol,
.prose ol {
    list-style: decimal;
}

[data-editor-surface] ol.editor-list-decimal,
.prose ol.editor-list-decimal {
    list-style-type: decimal;
}

[data-editor-surface] ol.editor-list-alpha,
.prose ol.editor-list-alpha {
    list-style-type: lower-alpha;
}

[data-editor-surface] ol.editor-list-alpha > li::marker,
.prose ol.editor-list-alpha > li::marker {
    content: counter(list-item, lower-alpha) ') ';
}

[data-editor-surface] ol.editor-list-roman,
.prose ol.editor-list-roman {
    list-style-type: upper-roman;
}

[data-editor-surface] ol.editor-list-roman > li::marker,
.prose ol.editor-list-roman > li::marker {
    content: counter(list-item, upper-roman) '. ';
}

[data-editor-surface] ol.editor-list-outline,
.prose ol.editor-list-outline {
    list-style-type: decimal;
}

[data-editor-surface] ol.editor-list-outline li::marker,
.prose ol.editor-list-outline li::marker {
    content: counters(list-item, '.') '. ';
    font-weight: 700;
}

[data-editor-surface] ol.editor-list-outline ol,
.prose ol.editor-list-outline ol {
    padding-left: 1.5rem;
}

[data-editor-surface] li,
.prose li {
    margin: 0.35rem 0;
}

[data-editor-surface] img,
.prose img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 1rem;
}

[data-editor-surface] table,
.prose table,
.content-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

[data-editor-surface] th,
[data-editor-surface] td,
.prose th,
.prose td,
.content-table th,
.content-table td {
    border: 1px solid rgb(203 213 225);
    padding: 0.75rem;
    text-align: left;
    vertical-align: top;
}

[data-editor-surface] th,
.prose th,
.content-table th {
    background: rgb(241 245 249);
    font-weight: 700;
}

[data-editor-surface] .content-two-column,
.content-two-column {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 1.5rem 0;
}

[data-editor-surface] .content-two-column > div,
.content-two-column > div {
    border: 1px solid rgb(226 232 240);
    border-radius: 1rem;
    background: rgb(248 250 252);
    padding: 1rem;
}

[data-editor-surface] .content-callout,
.content-callout {
    margin: 1.5rem 0;
    border-radius: 1rem;
    border: 1px solid rgba(146, 64, 14, 0.24);
    background: linear-gradient(135deg, rgba(255, 251, 235, 0.98), rgba(254, 243, 199, 0.9));
    padding: 1rem 1.125rem;
}

[data-editor-surface] .content-callout h3,
.content-callout h3 {
    margin-top: 0;
}

@media (max-width: 640px) {
    [data-editor-surface] .content-two-column,
    .content-two-column {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (prefers-reduced-motion: no-preference) {
    .fade-up {
        animation: fadeUp 700ms ease both;
    }

    .stagger-1 {
        animation-delay: 120ms;
    }

    .stagger-2 {
        animation-delay: 220ms;
    }

    .stagger-3 {
        animation-delay: 320ms;
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
