:root {
    --base: #4269B3;
    --text: rgb(56 61 69);
    --text-secondary: rgb(56 61 69 / 80%);
    --background: #ffffff;
    --base-gradient: linear-gradient(
    to bottom,
    color-mix(in srgb, var(--base) 45%, var(--background)) 0%,
    color-mix(in srgb, var(--base) 12%, var(--background)) 40%,
    var(--background) 100%
    );
    color-scheme: light;
}

* {
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    padding-left: 10em;
    padding-right: 10em;
    padding-top: 1em;
    padding-bottom: 2em;
    display: flex;
    flex-direction: column;
    font-family: system-ui, sans-serif;
    color: var(--text);
    background: var(--base-gradient);
    background-attachment: fixed;
}

@media (max-width: 768px) {
    body {
        padding-left: 1.5em;
        padding-right: 1.5em;
        padding-top: 3em;
    }
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    padding-bottom: 2rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--text);
}

.brand-icon {
    height: 2rem;
    width: 2rem;
}

.brand-name {
    font-size: 1.15rem;
    font-weight: 700;
}

.site-nav {
    font-size: 0.95rem;
    font-weight: 600;
}

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

.site-nav a:hover,
.site-nav a:focus-visible {
    text-decoration: underline;
}

.site-nav a[aria-current="page"] {
    color: var(--base);
}

@media (max-width: 768px) {
    .site-header {
        justify-content: center;
        text-align: center;
    }
}

.hero-title {
    margin: 0.5rem 0 0.35rem;
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    color: var(--text);
}

.hero-subtitle {
    margin: 0 0 1rem;
    font-size: clamp(1.05rem, 2vw, 1.35rem);
    font-weight: 400;
    color: var(--text-secondary);
    letter-spacing: -0.005em;
    text-wrap: balance;
}

.app-store-badge {
    display: block;
    height: 3.25rem;
    width: auto;
    margin: 2rem auto 3rem;
}

.section-title {
    margin: 1rem 0;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.015em;
    color: var(--text);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 26rem), 1fr));
    gap: 1.25rem;
    width: 100%;
    max-width: 64rem;
    margin: 0 auto;
    text-align: left;
}

.feature-item {
    background: var(--background);
    border-radius: 8px;
    box-shadow: 0 1px 3px rgb(0 0 0 / 10%);
    padding: 1.25rem 1.5rem;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 0.35em 0;
    color: color-mix(in srgb, var(--base) 70%, var(--text));
}

.feature-desc {
    margin: 0;
    padding-left: 0;
    list-style-position: inside;
    color: var(--text-secondary);
}

.feature-grid--fill {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 26rem), 1fr));
}

.feature-grid + .section-title {
    margin-top: 3rem;
    text-align: left;
}

.feature-desc br {
    content: "";
    display: block;
    margin-top: 0.35em;
}

footer {
    text-align: center;
    padding: 4rem 2rem;
    font-size: 0.9rem;
}

footer a {
    text-decoration: none;
    color: var(--text-secondary);
}

footer a:hover,
footer a:focus-visible {
    text-decoration: underline;
}

.sep {
    margin: 0 1rem;
}

table {
    width: 100%;
    max-width: 32rem;
    border-collapse: collapse;
    margin: 1.5rem 1.5rem;
    background: var(--background);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgb(0 0 0 / 10%);
}

th, td {
    text-align: left;
    padding: 0.65rem 1rem;
    vertical-align: top;
}

thead th {
    background: color-mix(in srgb, var(--base) 15%, var(--background));
    border-bottom: 2px solid color-mix(in srgb, var(--base) 30%, var(--background));
    font-weight: 600;
}

tbody tr:not(:last-child) td {
    border-bottom: 1px solid color-mix(in srgb, var(--text) 12%, var(--background));
}

tbody tr:hover {
    background: color-mix(in srgb, var(--base) 9%, var(--background));
}

.quickstart-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
    gap: 1.25rem;
    margin: 1.5rem 0;
    padding: 0;
    list-style: none;
}

.quickstart-grid li {
    position: relative;
    background: var(--background);
    border-radius: 8px;
    box-shadow: 0 1px 3px rgb(0 0 0 / 10%);
    padding: 1.25rem 1.25rem 1.25rem 3.25rem;
}

.quickstart-grid .qs-num {
    position: absolute;
    top: 1.1rem;
    left: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    background: var(--base);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
}

.quickstart-grid p {
    margin: 0;
}

.quickstart-grid .qs-title {
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.quickstart-grid p + p {
    margin-top: 0.35rem;
    color: var(--text-secondary);
}

.quickstart-core {
    grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
    max-width: 40rem;
}

.quickstart-core li {
    background: color-mix(in srgb, var(--base) 16%, var(--background));
    border: 1px solid color-mix(in srgb, var(--base) 45%, var(--background));
    border-left: 5px solid var(--base);
    box-shadow: 0 4px 12px rgb(0 0 0 / 18%);
    padding: 1.5rem 1.5rem 1.5rem 3.5rem;
}

.quickstart-core .qs-num {
    top: 1.35rem;
    left: 1.1rem;
    width: 2.1rem;
    height: 2.1rem;
    font-size: 1rem;
    box-shadow: 0 2px 4px rgb(0 0 0 / 25%);
}

.quickstart-core .qs-title {
    font-size: 1.1rem;
    color: color-mix(in srgb, var(--base) 70%, var(--text));
}

.faq {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin: 1.5rem 0;
    max-width: 40rem;
    text-align: left;
}

.faq-q {
    font-size: 1em;
    font-weight: 700;
    margin: 0 0 0.35rem;
}

.faq-a {
    margin: 0;
    color: var(--text-secondary);
}

.faq-a a {
    color: var(--base);
    text-decoration: none;
}

.faq-a a:hover,
.faq-a a:focus-visible {
    text-decoration: underline;
}

.screenshot {
    display: block;
    width: 100%;
    max-width: 55rem;
    height: auto;
    /* margin: 2.5rem auto; */
    border-radius: 10px;
    /* box-shadow: 0 4px 16px rgb(0 0 0 / 15%); */
}

#toc {
    background: color-mix(in srgb, var(--base) 6%, var(--background));
    border: 1px solid color-mix(in srgb, var(--base) 15%, var(--background));
    border-radius: 8px;
    padding: 1rem 1.5rem;
    margin: 1.5rem 0 2.5rem;
}

#toc ul {
    margin: 0;
    padding-left: 1.25rem;
}

#toc li {
    margin: 0.3rem 0;
}

#toc a {
    text-decoration: none;
    color: var(--base);
}

#toc a:hover,
#toc a:focus-visible {
    text-decoration: underline;
}

code {
    font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
    font-size: 0.9em;
    background: color-mix(in srgb, var(--base) 10%, var(--background));
    border: 1px solid color-mix(in srgb, var(--base) 20%, var(--background));
    border-radius: 4px;
    padding: 0.15em 0.4em;
}
