/* Design tokens absorbed from open-source/dockit-1.0.0 (theme.json + global.css). Dark is the default theme. */
:root {
    --bg: #0d0d0d;
    --surface: #151515;
    --heading: #f6f6f6;
    --text: #999999;
    --border: #272727;
    --primary: #d76d77;
    --gradient: linear-gradient(35.65deg, #3a1c71 -10.94%, var(--primary) 61.04%, #ffca7b 133.01%);
    color-scheme: dark;
}

@media (prefers-color-scheme: light) {
    :root {
        --bg: #ffffff;
        --surface: #f7f7f7;
        --heading: #181818;
        --text: #545454;
        --border: #eeeeee;
        color-scheme: light;
    }
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    color: var(--heading);
    font-weight: 700;
    line-height: 1.1;
    margin: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.muted {
    display: block;
    color: color-mix(in srgb, var(--heading) 45%, transparent);
}

/* navbar */
.navbar {
    position: sticky;
    top: 0;
    z-index: 10;
    background: color-mix(in srgb, var(--bg) 85%, transparent);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.navbar .container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    padding-top: .9rem;
    padding-bottom: .9rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: .6rem;
    color: var(--heading);
    font-size: 1.25rem;
    font-weight: 600;
}

.brand-icon {
    height: 36px;
    width: auto;
}

.nav-menu {
    display: flex;
    gap: 1.75rem;
    list-style: none;
    margin: 0 auto;
    padding: 0;
}

.nav-link {
    font-weight: 500;
    transition: color .2s;
}

.nav-link:hover {
    color: var(--primary);
}

.btn {
    position: relative;
    display: inline-block;
    padding: .75rem 1.5rem;
    border: 0;
    border-radius: .75rem;
    background: transparent;
    color: var(--heading);
    font: inherit;
    font-weight: 500;
    cursor: pointer;
    transition: color .3s;
}

.btn::before {
    content: "";
    position: absolute;
    inset: 0;
    padding: 2px;
    background: var(--gradient);
    border-radius: inherit;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    -webkit-mask-composite: xor;
}

.btn:hover, .btn-primary {
    background: var(--gradient);
    color: #fff;
}

.btn-primary::before {
    content: none;
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

/* ponytail: checkbox toggle, no JS. Same trick DocKit's own Header.astro uses. */
#nav-toggle, .nav-toggle-label {
    display: none;
}

@media (max-width: 900px) {
    .nav-toggle-label {
        display: block;
        margin-left: auto;
        color: var(--heading);
        font-size: 1.5rem;
        cursor: pointer;
        user-select: none;
    }

    .nav-menu, .navbar .btn {
        display: none;
    }

    #nav-toggle:checked ~ .nav-menu,
    #nav-toggle:checked ~ .btn {
        display: flex;
        flex-basis: 100%;
        flex-direction: column;
        text-align: center;
    }
}

/* hero */
.hero {
    position: relative;
    padding: 6rem 0 5rem;
    text-align: center;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    top: -55%;
    left: 50%;
    width: 900px;
    height: 900px;
    transform: translateX(-50%);
    background: radial-gradient(circle, color-mix(in srgb, var(--primary) 22%, transparent) 0%, transparent 62%);
    pointer-events: none;
}

.hero > * {
    position: relative;
}

.hero h1 {
    font-size: clamp(2.8rem, 8vw, 7rem);
    letter-spacing: -.05em;
    margin-bottom: 2rem;
}

.hero p {
    font-size: 1.25rem;
    max-width: 40ch;
    margin: 0 auto;
}

.hero-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2.5rem;
}

.badges {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
    gap: .75rem;
    margin-top: 3rem;
}

.badge {
    padding: .35rem .75rem;
    border-radius: .5rem;
    background: color-mix(in srgb, var(--heading) 7%, transparent);
    font-size: .875rem;
    transition: background .2s, color .2s;
}

.badge:hover {
    background: color-mix(in srgb, var(--heading) 15%, transparent);
    color: var(--heading);
}

/* sections */
.section {
    padding: 5rem 0;
}

.section-head {
    text-align: center;
    margin-bottom: 4rem;
}

.section-head h2 {
    font-size: clamp(2.2rem, 5vw, 4.2rem);
    letter-spacing: -.04em;
    margin-bottom: 1rem;
}

.grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card {
    position: relative;
    padding: 2.5rem 2rem;
    border: 1px solid var(--border);
    border-radius: 1rem;
    background: var(--surface);
    transition: transform .4s;
}

.card::before {
    content: "";
    position: absolute;
    inset: 0;
    padding: 1px;
    background: var(--gradient);
    border-radius: inherit;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    -webkit-mask-composite: xor;
    opacity: 0;
    transition: opacity .5s;
    /* decorative overlay covering the whole card — it would eat clicks meant for the content */
    pointer-events: none;
}

.card:hover::before {
    opacity: 1;
}

.card h3 {
    font-size: 1.35rem;
    margin: 2rem 0 .75rem;
}

.card p {
    margin: 0;
}

.card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: .75rem;
    background: color-mix(in srgb, var(--heading) 7%, transparent);
    color: var(--primary);
    font-size: 1.25rem;
}

.card-icon svg {
    width: 1em;
    height: 1em;
    display: block;
}

.nav-toggle-label svg {
    width: 1.5rem;
    height: 1.5rem;
    display: block;
}

.step-number {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* auth */
.auth {
    display: flex;
    justify-content: center;
    padding: 5rem 1.5rem;
}

.auth-card {
    width: 100%;
    max-width: 420px;
}

.auth-card > * {
    position: relative;
}

.alert {
    margin: 0 0 1.5rem;
    padding: .85rem 1.1rem;
    border: 1px solid var(--primary);
    border-radius: .75rem;
    color: var(--heading);
}

.auth-head {
    text-align: center;
    margin-bottom: 2.5rem;
}

.auth-head h1 {
    font-size: 2rem;
    letter-spacing: -.03em;
    margin-bottom: .5rem;
}

.auth-head p {
    margin: 0;
}

.field {
    display: block;
    margin-bottom: 1.25rem;
}

.field > span {
    display: block;
    color: var(--heading);
    font-weight: 500;
    font-size: .95rem;
    margin-bottom: .5rem;
}

.field input {
    width: 100%;
    padding: .75rem 1rem;
    border: 1px solid var(--border);
    border-radius: .75rem;
    background: var(--bg);
    color: var(--heading);
    font: inherit;
    line-height: 1.4;
}

.field-checkbox {
    display: flex;
    align-items: center;
    gap: .5rem;
}

.field-checkbox input {
    width: auto;
    padding: 0;
    border: none;
}

.field-checkbox > span {
    margin-bottom: 0;
}

.field input::placeholder {
    color: color-mix(in srgb, var(--text) 70%, transparent);
}

.field input:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 1px;
}

.link {
    color: var(--primary);
}

.link:hover {
    text-decoration: underline;
}

.auth-foot {
    margin: 1.75rem 0 0 !important;
    text-align: center;
    font-size: .9rem;
}

/* footer */
footer {
    border-top: 1px solid var(--border);
}

.footer-top {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    padding: 3.5rem 0;
}

.footer-top h4 {
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.footer-top ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-top li {
    margin-bottom: .75rem;
}

.footer-top a:hover {
    color: var(--primary);
}

.footer-logo {
    display: flex;
    justify-content: center;
    padding-bottom: 2rem;
}

.footer-logo img {
    height: 90px;
    width: auto;
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.5rem 0;
    border-top: 1px solid var(--border);
    font-size: .9rem;
}

/* faq — native details/summary */
.faq {
    max-width: 800px;
    margin: 0 auto;
}

.faq details {
    border-bottom: 1px solid var(--border);
    padding: 1.25rem 0;
}

.faq summary {
    color: var(--heading);
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    list-style: none;
}

.faq summary::-webkit-details-marker {
    display: none;
}

.faq summary::after {
    content: "+";
    float: right;
    color: var(--primary);
}

.faq details[open] summary::after {
    content: "\2013";
}

.faq p {
    margin: .75rem 0 0;
}
