:root {
    color-scheme: light;

    --bg: #ffffff;
    --bg-subtle: #fafafa;
    --bg-sunken: #f4f4f5;
    --bg-raised: #ffffff;
    --bg-inverted: #131316;

    --text: #0c0d0f;
    --text-2: #55595f;
    --text-3: #8b8f96;
    --text-inverted: #fbfbfc;
    --text-inverted-2: #a4a6ac;

    --line: rgba(13, 14, 17, 0.09);
    --line-2: rgba(13, 14, 17, 0.14);
    --line-inverted: rgba(255, 255, 255, 0.1);

    --accent: #0c0d0f;
    --accent-hover: #26272b;
    --accent-text: #ffffff;
    --focus: rgba(12, 13, 15, 0.35);
    --live: #16a34a;

    --shadow-sm: 0 1px 2px rgba(13, 14, 17, 0.05);
    --shadow-md: 0 1px 2px rgba(13, 14, 17, 0.04), 0 8px 20px -12px rgba(13, 14, 17, 0.16);
    --shadow-lg: 0 2px 4px rgba(13, 14, 17, 0.04), 0 24px 60px -24px rgba(13, 14, 17, 0.24);

    --r-sm: 6px;
    --r-md: 10px;
    --r-lg: 14px;
    --r-xl: 20px;
    --r-pill: 999px;

    --gutter: 24px;
    --maxw: 1120px;
    --section-y: clamp(72px, 9vw, 132px);

    --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;

    --ease: cubic-bezier(0.32, 0.72, 0, 1);
}

[data-theme="dark"] {
    color-scheme: dark;

    --bg: #0a0a0c;
    --bg-subtle: #0e0e11;
    --bg-sunken: #121215;
    --bg-raised: #141417;
    --bg-inverted: #f6f6f7;

    --text: #f4f4f6;
    --text-2: #a1a3aa;
    --text-3: #74767d;
    --text-inverted: #0c0d0f;
    --text-inverted-2: #55595f;

    --line: rgba(255, 255, 255, 0.09);
    --line-2: rgba(255, 255, 255, 0.15);
    --line-inverted: rgba(13, 14, 17, 0.1);

    --accent: #ffffff;
    --accent-hover: #e2e2e5;
    --accent-text: #0c0d0f;
    --focus: rgba(255, 255, 255, 0.4);
    --live: #35d07f;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 20px -12px rgba(0, 0, 0, 0.7);
    --shadow-lg: 0 2px 4px rgba(0, 0, 0, 0.4), 0 24px 60px -24px rgba(0, 0, 0, 0.8);
}

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

* {
    margin: 0;
    padding: 0;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: 96px;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    font-feature-settings: "cv05" 1, "ss03" 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img,
svg {
    display: block;
    max-width: 100%;
}

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

button,
input,
select {
    font: inherit;
    color: inherit;
}

:focus-visible {
    outline: 2px solid var(--focus);
    outline-offset: 3px;
    border-radius: var(--r-sm);
}

::selection {
    background: var(--text);
    color: var(--bg);
}

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

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

h1,
h2,
h3,
h4 {
    font-weight: 600;
    letter-spacing: -0.028em;
    line-height: 1.1;
    text-wrap: balance;
}

h1 {
    font-size: clamp(2.5rem, 6.2vw, 4.25rem);
    letter-spacing: -0.042em;
    line-height: 1.02;
}

h2 {
    font-size: clamp(2rem, 4.4vw, 3rem);
    letter-spacing: -0.036em;
}

h3 {
    font-size: clamp(1.25rem, 2vw, 1.5rem);
}

h4 {
    font-size: 1rem;
    letter-spacing: -0.012em;
}

p {
    text-wrap: pretty;
}

.lede {
    font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
    line-height: 1.55;
    color: var(--text-2);
    max-width: 56ch;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-3);
}

.mono {
    font-family: var(--font-mono);
    font-size: 0.875em;
    letter-spacing: -0.01em;
}

.wrap {
    width: 100%;
    max-width: var(--maxw);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.wrap-narrow {
    max-width: 780px;
}

.section {
    padding-block: var(--section-y);
}

.section-head {
    max-width: 640px;
    margin-bottom: clamp(40px, 5vw, 64px);
}

.section-head .eyebrow {
    margin-bottom: 18px;
}

.section-head p {
    margin-top: 18px;
}

.section--sunken {
    background: var(--bg-subtle);
    border-block: 1px solid var(--line);
}

.rule {
    height: 1px;
    background: var(--line);
    border: 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 44px;
    padding-inline: 20px;
    border: 1px solid transparent;
    border-radius: var(--r-pill);
    font-size: 0.9375rem;
    font-weight: 500;
    letter-spacing: -0.011em;
    white-space: nowrap;
    cursor: pointer;
    background: transparent;
    transition: background-color 0.18s var(--ease), border-color 0.18s var(--ease),
        color 0.18s var(--ease), transform 0.18s var(--ease), box-shadow 0.18s var(--ease);
}

.btn:active {
    transform: translateY(1px);
    transition-duration: 0.08s;
}

.btn--primary {
    background: var(--accent);
    color: var(--accent-text);
    box-shadow: var(--shadow-sm);
}

.btn--primary:hover {
    background: var(--accent-hover);
}

.btn--secondary {
    background: var(--bg-raised);
    border-color: var(--line-2);
    color: var(--text);
    box-shadow: var(--shadow-sm);
}

.btn--secondary:hover {
    background: var(--bg-sunken);
    border-color: var(--line-2);
}

.btn--ghost {
    color: var(--text-2);
}

.btn--ghost:hover {
    background: var(--bg-sunken);
    color: var(--text);
}

.btn--sm {
    height: 36px;
    padding-inline: 14px;
    font-size: 0.875rem;
}

.btn--lg {
    height: 50px;
    padding-inline: 26px;
    font-size: 1rem;
}

.btn--block {
    width: 100%;
}

.btn[disabled],
.btn[aria-disabled="true"] {
    cursor: not-allowed;
    background: var(--bg-sunken);
    border-color: var(--line);
    color: var(--text-3);
    box-shadow: none;
    transform: none;
}

.btn.is-waiting {
    background: transparent;
    border-color: var(--line-2);
    color: var(--text-3);
    box-shadow: none;
}

.btn.is-waiting:hover {
    background: var(--bg-sunken);
    color: var(--text-2);
}

.btn.is-waiting .btn__arrow {
    display: none;
}

.btn__arrow {
    transition: transform 0.24s var(--ease);
}

.btn:hover .btn__arrow {
    transform: translateX(3px);
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text);
    border-bottom: 1px solid var(--line-2);
    padding-bottom: 2px;
    transition: border-color 0.18s var(--ease), gap 0.18s var(--ease);
}

.link-arrow:hover {
    border-color: var(--text);
    gap: 9px;
}

.header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: color-mix(in srgb, var(--bg) 78%, transparent);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.header.is-stuck {
    border-bottom-color: var(--line);
}

@media (prefers-reduced-transparency: reduce) {
    .header {
        background: var(--bg);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
}

@media (prefers-contrast: more) {
    :root {
        --line: rgba(13, 14, 17, 0.32);
        --line-2: rgba(13, 14, 17, 0.5);
        --focus: rgba(12, 13, 15, 0.7);
    }

    [data-theme="dark"] {
        --line: rgba(255, 255, 255, 0.32);
        --line-2: rgba(255, 255, 255, 0.5);
        --focus: rgba(255, 255, 255, 0.7);
    }

    .header {
        background: var(--bg);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        border-bottom-color: var(--line-2);
    }
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    height: 64px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-weight: 600;
    font-size: 1.0625rem;
    letter-spacing: -0.03em;
    flex-shrink: 0;
}

.brand__mark {
    width: 26px;
    height: 26px;
    border-radius: 7px;
    background: var(--accent);
    color: var(--accent-text);
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.brand__mark svg {
    width: 14px;
    height: 14px;
}

.brand__a {
    display: inline-block;
}

.nav {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-inline: auto;
}

.nav a {
    padding: 8px 12px;
    border-radius: var(--r-md);
    font-size: 0.9375rem;
    font-weight: 450;
    color: var(--text-2);
    transition: color 0.16s var(--ease), background-color 0.16s var(--ease);
}

.nav a:hover {
    color: var(--text);
    background: var(--bg-sunken);
}

.header__actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.icon-btn {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: var(--r-md);
    background: transparent;
    color: var(--text-2);
    cursor: pointer;
    transition: color 0.16s var(--ease), background-color 0.16s var(--ease);
}

.icon-btn:hover {
    color: var(--text);
    background: var(--bg-sunken);
}

.icon-btn svg {
    width: 17px;
    height: 17px;
}

.theme-toggle .icon-moon {
    display: none;
}

[data-theme="dark"] .theme-toggle .icon-sun {
    display: none;
}

[data-theme="dark"] .theme-toggle .icon-moon {
    display: block;
}

.nav-toggle {
    display: none;
}

.mobile-nav {
    display: grid;
    grid-template-rows: 0fr;
    background: var(--bg);
    transition: grid-template-rows 0.28s var(--ease);
}

.mobile-nav.is-open {
    grid-template-rows: 1fr;
}

.mobile-nav__inner {
    overflow: hidden;
    min-height: 0;
}

.mobile-nav__content {
    padding: 8px var(--gutter) 20px;
    border-bottom: 1px solid var(--line);
    opacity: 0;
    transition: opacity 0.18s var(--ease);
}

.mobile-nav.is-open .mobile-nav__content {
    opacity: 1;
    transition-delay: 0.06s;
}

.mobile-nav a {
    display: block;
    padding: 12px 4px;
    font-size: 1rem;
    color: var(--text-2);
    border-bottom: 1px solid var(--line);
}

.mobile-nav a:last-of-type {
    border-bottom: 0;
}

.mobile-nav .btn {
    margin-top: 14px;
}

@media (max-width: 860px) {
    .nav {
        display: none;
    }

    .nav-toggle {
        display: grid;
    }

    .header__actions .btn--primary {
        display: none;
    }
}

.hero {
    position: relative;
    padding-top: clamp(56px, 8vw, 104px);
    padding-bottom: clamp(48px, 6vw, 80px);
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: -10% -20% auto;
    height: 620px;
    background-image: radial-gradient(circle at 1px 1px, var(--line-2) 1px, transparent 0);
    background-size: 26px 26px;
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 22%, #000 0%, transparent 72%);
    mask-image: radial-gradient(ellipse 70% 60% at 50% 22%, #000 0%, transparent 72%);
    opacity: 0.7;
    pointer-events: none;
}

.hero__inner {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero h1 {
    margin-top: 26px;
    max-width: 15ch;
}

.hero__wordmark {
    margin-top: 0;
    font-size: clamp(3.5rem, 9.5vw, 6.25rem);
    letter-spacing: -0.055em;
    max-width: none;

    width: fit-content;
    margin-inline: auto;
    color: var(--text);
}

.hero .lede {
    margin-top: 22px;
    max-width: 60ch;
    text-align: center;
}

.hero__cta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 32px;
}

.hero__meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px 18px;
    margin-top: 22px;
    font-size: 0.8125rem;
    color: var(--text-3);
}

.hero__meta span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.hero__meta svg {
    width: 13px;
    height: 13px;
    color: var(--text-3);
}

@media (prefers-reduced-motion: no-preference) {
    .js .hero__wordmark,
    .js .hero__cta,
    .js .hero__meta,
    .js .hero .gui-mock {
        animation: hero-enter 0.72s var(--ease) both;
    }

    .js .hero__cta {
        animation-delay: 0.07s;
    }

    .js .hero__meta {
        animation-delay: 0.13s;
    }

    .js .hero .gui-mock {
        animation-delay: 0.2s;
    }
}

.docs-hero {
    position: relative;
    overflow: hidden;
}

.docs-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 1px 1px, var(--line-2) 1px, transparent 0);
    background-size: 26px 26px;
    -webkit-mask-image: linear-gradient(90deg, transparent 28%, #000 100%);
    mask-image: linear-gradient(90deg, transparent 28%, #000 100%);
    opacity: 0.55;
    pointer-events: none;
}

.docs-hero .wrap {
    position: relative;
    z-index: 1;
}

.docs-hero__row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
}

.docs-hero__row > div {
    min-width: 0;
}

.docs-hero__row .btn {
    flex-shrink: 0;
    margin-bottom: 4px;
}

.docs-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
    margin-top: 34px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    color: var(--text-3);
    font-size: 0.8125rem;
}

.docs-hero__meta span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.docs-hero__meta span::before {
    content: "";
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.6;
}

.docs-layout {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: clamp(32px, 6vw, 72px);
    padding-block: clamp(40px, 5vw, 64px) var(--section-y);
}

.docs-prose {
    max-width: 760px;
}

.docs-section {
    scroll-margin-top: 96px;
}

.docs-section + .docs-section {
    margin-top: 58px;
    padding-top: 6px;
}

.docs-section h2,
.docs-section h2:first-child {
    margin-top: 0;
}

.docs-section > .eyebrow {
    margin-bottom: 12px;
}

.platform-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 24px;
}

.platform-option {
    display: grid;
    gap: 12px;
    min-height: 138px;
    padding: 20px;
    border: 1px solid var(--line-2);
    border-radius: var(--r-lg);
    background: var(--bg-subtle);
    text-decoration: none !important;
    box-shadow: var(--shadow-sm);
    transition: background-color 0.18s var(--ease), border-color 0.18s var(--ease), transform 0.18s var(--ease);
}

.platform-option:hover {
    background: var(--bg-raised);
    border-color: var(--text-3);
    transform: translateY(-1px);
}

.platform-option__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.platform-option > span:last-child {
    color: var(--text-2);
    font-size: 0.875rem;
    line-height: 1.55;
}

.docs-steps {
    padding-left: 24px !important;
    gap: 12px !important;
}

.docs-command {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
    padding: 8px 8px 8px 16px;
    border: 1px solid var(--line-2);
    border-radius: var(--r-lg);
    background: var(--bg-inverted);
    color: var(--text-inverted);
    box-shadow: var(--shadow-md);
}

.docs-command code {
    flex: 1;
    min-width: 0;
    overflow-x: auto;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font-size: 0.8125rem;
    white-space: nowrap;
}

.docs-command button {
    flex-shrink: 0;
    min-width: 70px;
    height: 34px;
    border: 1px solid var(--line-inverted);
    border-radius: var(--r-pill);
    background: transparent;
    color: var(--text-inverted-2);
    cursor: pointer;
    font-size: 0.8125rem;
    font-weight: 500;
    transition: background-color 0.16s var(--ease), color 0.16s var(--ease);
}

.docs-command button:hover {
    background: var(--line-inverted);
    color: var(--text-inverted);
}

.trouble-list {
    margin-top: 22px;
    border-top: 1px solid var(--line);
}

.trouble-list > div {
    display: grid;
    grid-template-columns: minmax(150px, 0.42fr) minmax(0, 1fr);
    gap: 24px;
    padding-block: 20px;
    border-bottom: 1px solid var(--line);
}

.trouble-list h3,
.trouble-list p {
    margin-top: 0;
}

.trouble-list h3 {
    font-size: 0.9375rem;
    line-height: 1.45;
}

.trouble-list p {
    font-size: 0.9063rem;
}

.docs-section .btn {
    margin-top: 20px;
    text-decoration: none;
}

@media (max-width: 900px) {
    .docs-layout {
        grid-template-columns: 1fr;
    }

    .docs-toc {
        position: static;
        max-height: none;
        padding-bottom: 8px;
        border-bottom: 1px solid var(--line);
    }

    .docs-toc ol {
        grid-auto-flow: column;
        grid-auto-columns: max-content;
        overflow-x: auto;
        padding-bottom: 8px;
    }
}

@media (max-width: 640px) {
    .docs-hero__row {
        align-items: flex-start;
        flex-direction: column;
        gap: 24px;
    }

    .platform-grid {
        grid-template-columns: 1fr;
    }

    .platform-option {
        min-height: 0;
    }

    .trouble-list > div {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .docs-command {
        align-items: stretch;
        flex-direction: column;
        padding: 14px;
    }

    .docs-command button {
        align-self: flex-start;
    }

}

@keyframes hero-enter {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
}

.gui-mock {
    --gui-window: #161619;
    --gui-side: #1c1c1f;
    --gui-selected: #202023;
    --gui-surface: #1e1e21;
    --gui-hover: #2a2a2d;
    --gui-toggle-off: #38383b;
    --gui-input: #242427;
    --gui-input-focused: #28282b;
    --gui-ink: #ececed;
    --gui-ink-2: #adadaf;
    --gui-ink-3: #868688;
    --gui-accent: #ffffff;

    width: 100%;
    max-width: 900px;
    margin-top: clamp(44px, 6vw, 72px);
}

.gui-scale {
    container-type: inline-size;
    width: 100%;
    border-radius: clamp(8px, 1.4vw, 12px);
    box-shadow: var(--shadow-lg);
}

.gui-surface {
    --u: calc(100cqw / 720);
    --design-w: 720;

    position: relative;
    width: 100%;
    height: calc(428 * var(--u));
    font-size: calc(11 * var(--u));
    line-height: 1;
    user-select: none;
}

.gui-glass {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(14 * var(--u));
    height: calc(400 * var(--u));
    border-radius: calc(12 * var(--u));
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.012)),
        var(--gui-window);
}

.gui-side {
    position: absolute;
    left: calc(2 * var(--u));
    top: calc(16 * var(--u));
    width: calc(150 * var(--u));
    height: calc(396 * var(--u));
    border-radius: calc(14 * var(--u));
    background: var(--gui-side);
    box-shadow: 0 calc(2 * var(--u)) calc(10 * var(--u)) rgba(0, 0, 0, 0.28);
}

.gui-brand {
    position: absolute;
    left: calc(20 * var(--u));
    top: calc(18 * var(--u));
    display: flex;
    align-items: flex-end;
    gap: calc(3.5 * var(--u));
    font-size: calc(15 * var(--u));
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--gui-ink);
}

.gui-tabs {
    position: absolute;
    left: calc(9 * var(--u));
    top: calc(62 * var(--u));
    width: calc(132 * var(--u));
    display: flex;
    flex-direction: column;
    gap: calc(5 * var(--u));
}

.gui-tabs--pinned {
    top: auto;
    bottom: calc(14 * var(--u));
}

.gui-tab {
    display: flex;
    align-items: center;
    gap: calc(8 * var(--u));
    height: calc(26 * var(--u));
    padding-left: calc(11 * var(--u));
    border: 0;
    border-radius: calc(13 * var(--u));
    background: transparent;
    font: inherit;
    font-size: calc(11 * var(--u));
    font-weight: 500;
    color: var(--gui-ink-2);
    cursor: pointer;
    transition: background-color 0.18s var(--ease), color 0.18s var(--ease);
}

.gui-tab img {
    width: calc(13 * var(--u));
    height: calc(13 * var(--u));
    opacity: 0.72;
    transition: opacity 0.18s var(--ease);
}

.gui-tab:hover {
    background: var(--gui-hover);
}

.gui-tab.is-active {
    background: var(--gui-selected);
    color: var(--gui-ink);
}

.gui-tab.is-active img {
    opacity: 1;
}

.gui-tabs--pinned .gui-tab {
    cursor: default;
}

.gui-content {
    position: absolute;
    left: calc(178 * var(--u));
    top: calc(32 * var(--u));
    width: calc(520 * var(--u));
    height: calc(364 * var(--u));
    overflow: hidden;
}

.gui-toprow {
    position: absolute;
    left: calc(7 * var(--u));
    right: calc(7 * var(--u));
    top: 0;
    height: calc(30 * var(--u));
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: calc(8 * var(--u));
}

.gui-search,
.gui-save {
    display: flex;
    align-items: center;
    height: calc(26 * var(--u));
    border-radius: calc(9 * var(--u));
    background: var(--gui-input);
    font-size: calc(11 * var(--u));
}

.gui-search {
    width: calc(26 * var(--u));
    padding-left: calc(6 * var(--u));
    color: var(--gui-ink-3);
    cursor: text;
    overflow: hidden;
    transition: width 0.3s var(--ease), padding-left 0.3s var(--ease),
        background-color 0.16s var(--ease);
}

.gui-search:focus-within,
.gui-search.is-open {
    width: calc(220 * var(--u));
    padding-left: calc(8 * var(--u));
    background: var(--gui-input-focused);
}

.gui-search img,
.gui-save img {
    flex: none;
    width: calc(14 * var(--u));
    height: calc(14 * var(--u));
    opacity: 0.72;
    transition: opacity 0.18s var(--ease);
}

.gui-search:focus-within img,
.gui-search.is-open img {
    opacity: 1;
}

.gui-search input {
    flex: 1;
    min-width: 0;
    height: 100%;
    margin-left: calc(8 * var(--u));
    padding: 0 calc(12 * var(--u)) 0 0;
    border: 0;
    background: transparent;
    font: inherit;
    color: var(--gui-ink);
    caret-color: var(--gui-ink);
    outline: none;
    opacity: 0;
    transition: opacity 0.2s var(--ease);
}

.gui-search:focus-within input,
.gui-search.is-open input {
    opacity: 1;
}

.gui-search input::placeholder {
    color: var(--gui-ink-3);
    opacity: 1;
}

.gui-empty {
    padding: calc(12 * var(--u)) calc(2 * var(--u));
    font-size: calc(11 * var(--u));
    color: var(--gui-ink-3);
}

.gui-save {
    width: calc(26 * var(--u));
    justify-content: center;
    color: var(--gui-ink);
}

.gui-rows {
    display: flex;
    flex-direction: column;
    gap: calc(4 * var(--u));
    padding: calc(54 * var(--u)) calc(7 * var(--u)) 0;
}

.gui-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: calc(40 * var(--u));
    padding: 0 calc(14 * var(--u)) 0 calc(12 * var(--u));
    border: 0;
    border-radius: calc(14 * var(--u));
    background: var(--gui-surface);
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.18s var(--ease);
}

.gui-row:hover {
    background: var(--gui-hover);
}

.gui-row:focus-visible {
    outline: calc(1.5 * var(--u)) solid var(--gui-accent);
    outline-offset: calc(1 * var(--u));
}

.gui-row__name {
    font-size: calc(11 * var(--u));
    font-weight: 500;
    color: var(--gui-ink);
    transition: color 0.2s var(--ease);
}

.gui-row.is-on .gui-row__name {
    color: var(--gui-accent);
}

.gui-row__chevron {
    width: calc(26 * var(--u));
    text-align: center;
    font-size: calc(16 * var(--u));
    color: var(--gui-ink);
}

.gui-row__switch {
    position: relative;
    width: calc(26 * var(--u));
    height: calc(13 * var(--u));
    border-radius: calc(6.5 * var(--u));
    background: var(--gui-toggle-off);
    flex-shrink: 0;
    transition: background-color 0.2s var(--ease);
}

.gui-row__switch i {
    position: absolute;
    top: calc(2 * var(--u));
    left: calc(2 * var(--u));
    width: calc(9 * var(--u));
    height: calc(9 * var(--u));
    border-radius: 50%;
    background: #ffffff;
    transition: transform 0.2s var(--ease), background-color 0.2s var(--ease);
}

.gui-row.is-on .gui-row__switch {
    background: var(--gui-accent);
}

.gui-row.is-on .gui-row__switch i {
    background: #141416;
    transform: translateX(calc(13 * var(--u)));
}

.gui-fade {
    position: absolute;
    left: calc(7 * var(--u));
    right: calc(7 * var(--u));
    bottom: 0;
    height: calc(56 * var(--u));
    background: linear-gradient(180deg, rgba(22, 22, 25, 0), rgba(22, 22, 25, 0.96));
    pointer-events: none;
}

@media (max-width: 700px) {
    .gui-scale {
        overflow-x: auto;
        overscroll-behavior-x: contain;
    }

    .gui-surface {
        --u: calc(640px / 720);
        width: 640px;
    }
}

.docs-page .header {
    border-bottom-color: var(--line);
}

.docs-shell {
    display: grid;
    grid-template-columns: 248px minmax(0, 720px) 168px;
    justify-content: center;
    gap: clamp(32px, 4vw, 64px);
    width: min(100%, 1400px);
    min-height: calc(100vh - 64px);
    margin-inline: auto;
    padding: 36px clamp(24px, 4vw, 56px) 96px;
}

.docs-sidebar,
.docs-outline {
    position: sticky;
    top: 88px;
    max-height: calc(100vh - 112px);
    overflow-y: auto;
    scrollbar-width: thin;
}

.docs-sidebar {
    padding-right: 24px;
    border-right: 1px solid var(--line);
}

.docs-sidebar__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 28px;
}

.docs-sidebar__head strong {
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.docs-sidebar-toggle {
    display: none;
    padding: 6px 0;
    border: 0;
    background: transparent;
    color: var(--text-2);
    font: inherit;
    font-size: 0.8125rem;
    cursor: pointer;
}

.docs-search {
    position: relative;
    display: block;
    margin-top: 16px;
}

.docs-search > span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.docs-search input {
    width: 100%;
    height: 34px;
    padding: 0 48px 0 10px;
    border: 1px solid var(--line-2);
    border-radius: var(--r-md);
    outline: 0;
    background: var(--bg);
    color: var(--text);
    font: inherit;
    font-size: 0.8125rem;
}

.docs-search input:focus {
    border-color: var(--text-3);
    box-shadow: 0 0 0 3px var(--focus);
}

.docs-search kbd {
    position: absolute;
    top: 9px;
    right: 9px;
    color: var(--text-3);
    font-family: var(--font-mono);
    font-size: 0.625rem;
    font-weight: 400;
}

.docs-nav-group {
    margin-top: 24px;
}

.docs-nav-group h2 {
    margin: 0 0 6px 10px;
    color: var(--text-3);
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.docs-nav-group a {
    display: block;
    margin-block: 1px;
    padding: 6px 10px;
    border-radius: var(--r-md);
    color: var(--text-2);
    font-size: 0.8125rem;
    line-height: 1.3;
    text-decoration: none;
}

.docs-nav-group a:hover {
    background: var(--bg-sunken);
    color: var(--text);
}

.docs-nav-group a[aria-current="page"] {
    background: var(--bg-sunken);
    color: var(--text);
    font-weight: 550;
}

.docs-nav-empty {
    margin: 24px 10px;
    color: var(--text-3);
    font-size: 0.8125rem;
}

.docs-article {
    width: 100%;
    max-width: 720px;
    min-width: 0;
}

.docs-breadcrumbs {
    display: flex;
    gap: 8px;
    align-items: center;
    min-height: 20px;
    color: var(--text-3);
    font-size: 0.75rem;
}

.docs-breadcrumbs a {
    color: var(--text-3);
    text-decoration: none;
}

.docs-breadcrumbs a:hover {
    color: var(--text);
}

.docs-article > h1 {
    margin-top: 18px;
    font-size: clamp(2.3rem, 5vw, 3.65rem);
    line-height: 1;
    letter-spacing: -0.055em;
}

.docs-article .docs-lead {
    max-width: 620px;
    margin-top: 16px;
    color: var(--text-2);
    font-size: 1.0625rem;
    line-height: 1.65;
}

.docs-article > section {
    scroll-margin-top: 92px;
}

.docs-article > section:first-of-type {
    margin-top: 50px;
}

.docs-article > section + section {
    margin-top: 48px;
}

.docs-article > section > h2 {
    margin: 0;
    padding: 0;
    font-size: 1.45rem;
    line-height: 1.25;
    letter-spacing: -0.03em;
}

.docs-article > section > h3 {
    margin-top: 30px;
}

.docs-steps {
    counter-reset: docs-step;
    padding-left: 0 !important;
    list-style: none;
}

.docs-steps li {
    position: relative;
    padding-left: 34px;
}

.docs-steps li::before {
    counter-increment: docs-step;
    content: counter(docs-step);
    position: absolute;
    top: 1px;
    left: 0;
    width: 22px;
    height: 22px;
    border: 1px solid var(--line-2);
    border-radius: 50%;
    color: var(--text);
    font-size: 0.6875rem;
    font-weight: 550;
    line-height: 20px;
    text-align: center;
}

.setting-guide {
    margin-top: 18px;
    border-top: 1px solid var(--line);
}

.setting-guide > section {
    padding: 18px 0 20px;
    border-bottom: 1px solid var(--line);
}

.setting-guide h3 {
    margin: 0;
    color: var(--text);
    font-size: 0.9375rem;
    font-weight: 550;
    line-height: 1.45;
}

.setting-guide p {
    max-width: 650px;
    margin: 7px 0 0;
    color: var(--text-2);
    font-size: 0.9063rem;
    line-height: 1.62;
}

.setting-guide code {
    white-space: nowrap;
}

.docs-directory {
    margin-top: 48px;
}

.docs-directory ul {
    display: block;
    margin-top: 14px;
    padding: 0;
    border-top: 1px solid var(--line);
    list-style: none;
}

.docs-directory li {
    border-bottom: 1px solid var(--line);
}

.docs-directory li::marker {
    content: none;
}

.docs-directory li a {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 22px;
    padding: 14px 0;
    text-decoration: none;
}

.docs-directory li a:hover strong {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.docs-directory li strong {
    color: var(--text);
    font-size: 0.875rem;
}

.docs-directory li span {
    color: var(--text-2);
    font-size: 0.875rem;
    line-height: 1.55;
}

.docs-pagination {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
    margin-top: 64px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
}

.docs-pagination a {
    display: flex;
    flex-direction: column;
    gap: 4px;
    color: var(--text);
    text-decoration: none;
}

.docs-pagination a:last-child {
    align-items: flex-end;
    text-align: right;
}

.docs-pagination small {
    color: var(--text-3);
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.docs-pagination strong {
    font-size: 0.875rem;
    font-weight: 550;
}

.docs-pagination a:hover strong {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.docs-outline {
    padding-left: 18px;
    border-left: 1px solid var(--line);
}

.docs-outline h2 {
    margin-bottom: 8px;
    color: var(--text-3);
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.docs-outline a {
    display: block;
    padding: 5px 0;
    color: var(--text-3);
    font-size: 0.75rem;
    line-height: 1.35;
    text-decoration: none;
}

.docs-outline a:hover,
.docs-outline a.is-active {
    color: var(--text);
}

@media (max-width: 1160px) {
    .docs-shell {
        grid-template-columns: 232px minmax(0, 720px);
    }

    .docs-outline {
        display: none;
    }
}

@media (max-width: 820px) {
    .docs-shell {
        display: block;
        padding: 20px var(--gutter) 72px;
    }

    .docs-sidebar {
        position: relative;
        top: auto;
        z-index: 1;
        max-height: none;
        margin-bottom: 38px;
        padding: 0 0 14px;
        overflow: visible;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .docs-sidebar-toggle {
        display: block;
    }

    .docs-sidebar__panel {
        display: none;
        padding-bottom: 8px;
    }

    .docs-sidebar.is-open .docs-sidebar__panel {
        display: block;
    }

    .docs-search {
        max-width: 420px;
    }

    .docs-nav-group {
        margin-top: 20px;
    }

    .docs-nav-group a {
        max-width: 420px;
    }

    .docs-article > h1 {
        font-size: clamp(2.25rem, 11vw, 3.25rem);
    }
}

@media (max-width: 560px) {
    .docs-directory li a {
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .setting-guide > section {
        padding: 14px 0 16px;
    }

    .docs-pagination {
        gap: 18px;
    }
}

.modules {
    margin-top: clamp(40px, 5vw, 56px);
    border-top: 1px solid var(--line);
}

.modules__group {
    display: grid;
    grid-template-columns: minmax(0, 168px) minmax(0, 1fr);
    gap: clamp(14px, 4vw, 48px);
    align-items: start;
    padding-block: clamp(20px, 2.6vw, 30px);
    border-bottom: 1px solid var(--line);
}

.modules__group h3 {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text);
}

.modules__group ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 9px 22px;
}

.modules__group li {
    font-size: 0.9375rem;
    color: var(--text-2);
}

@media (max-width: 620px) {
    .modules__group {
        grid-template-columns: 1fr;
        gap: 14px;
    }
}

.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    background: var(--bg-raised);
    overflow: hidden;
}

.stat {
    display: flex;
    flex-direction: column-reverse;
    justify-content: flex-end;
    padding: 26px 24px;
    border-right: 1px solid var(--line);
}

.stat:last-child {
    border-right: 0;
}

.stat dt {
    font-size: 0.8125rem;
    color: var(--text-3);
    margin-top: 6px;
}

.stat dd {
    font-size: clamp(1.5rem, 2.4vw, 1.875rem);
    font-weight: 600;
    letter-spacing: -0.036em;
    line-height: 1;
}

@media (max-width: 780px) {
    .stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat:nth-child(2n) {
        border-right: 0;
    }

    .stat:nth-child(-n + 2) {
        border-bottom: 1px solid var(--line);
    }
}

.feature-strip {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: clamp(20px, 4vw, 48px);
    padding-block: clamp(40px, 5vw, 56px);
    list-style: none;
    text-align: center;
}

.feature-strip li {
    font-size: clamp(1.75rem, 3.6vw, 2.5rem);
    font-weight: 600;
    letter-spacing: -0.03em;
    color: var(--text);
}

.pricing {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(272px, 1fr));
    gap: 20px;
    max-width: 1000px;
    margin-inline: auto;
    align-items: start;
}

.plan {
    position: relative;
    border: 1px solid var(--line);
    border-radius: var(--r-xl);
    background: var(--bg-raised);
    padding: 28px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}

.plan--featured {
    border-color: var(--line-2);
    box-shadow: var(--shadow-lg);
}

.plan__badge {
    position: absolute;
    top: 20px;
    right: 20px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    padding-inline: 10px;
    border-radius: var(--r-pill);
    background: var(--bg-sunken);
    border: 1px solid var(--line);
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--text-2);
}

.plan__name {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-2);
}

.plan__price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-top: 14px;
}

.plan__price b {
    font-size: clamp(2.5rem, 5vw, 3.25rem);
    font-weight: 600;
    letter-spacing: -0.045em;
    line-height: 1;
}

.plan__price span {
    font-size: 0.9375rem;
    color: var(--text-3);
}

.plan__price .plan__once {
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text);
}

.countdown-card {
    max-width: 720px;
    margin: 0 auto 48px;
    padding: clamp(32px, 5vw, 48px);
    border: 1px solid var(--line);
    border-radius: var(--r-xl);
    background: var(--bg-inverted);
    color: var(--text-inverted);
    text-align: center;
}

.countdown-card__header .eyebrow {
    color: var(--text-inverted-2);
}

.countdown-card__header h3 {
    margin-top: 10px;
    font-size: clamp(1.5rem, 3vw, 2rem);
    letter-spacing: -0.03em;
}

.countdown-card__header p {
    margin-top: 10px;
    color: var(--text-inverted-2);
    font-size: 0.9375rem;
}

.countdown {
    display: inline-flex;
    align-items: flex-start;
    gap: clamp(6px, 2.5vw, 22px);
    margin-top: 28px;
}

.countdown__unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 56px;
}

.countdown__val {
    font-family: var(--font-mono);
    font-variant-numeric: tabular-nums;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1;
}

.countdown__lbl {
    margin-top: 8px;
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--text-inverted-2);
}

@media (max-width: 520px) {
    .countdown-card {
        padding-inline: 20px;
    }

    .countdown {
        gap: 4px;
    }

    .countdown__unit {
        min-width: 44px;
    }
}

.notify {
    max-width: 420px;
    margin: 32px auto 0;
    text-align: left;
}

.notify__row {
    display: flex;
    gap: 8px;
}

.notify__row input {
    flex: 1;
    min-width: 0;
    padding: 12px 14px;
    border: 1px solid var(--line-inverted);
    border-radius: var(--r-md);
    background: color-mix(in srgb, var(--text-inverted) 8%, transparent);
    color: var(--text-inverted);
    font: inherit;
    font-size: 0.9375rem;
}

.notify__row input::placeholder {
    color: var(--text-inverted-2);
}

.notify__row input:focus {
    outline: none;
    border-color: color-mix(in srgb, var(--text-inverted) 45%, transparent);
    background: color-mix(in srgb, var(--text-inverted) 12%, transparent);
}

.notify__row .btn--primary {
    background: var(--text-inverted);
    color: var(--bg-inverted);
    flex-shrink: 0;
}

.notify__row .btn--primary:hover {
    background: color-mix(in srgb, var(--text-inverted) 88%, var(--bg-inverted));
}

.notify__note {
    margin-top: 12px;
    font-size: 0.8125rem;
    color: var(--text-inverted-2);
    text-align: center;
}

.notify.is-done .notify__row {
    display: none;
}

.notify.is-done .notify__note {
    color: var(--text-inverted);
    font-weight: 500;
}

.countdown__sep {
    align-self: flex-start;
    font-family: var(--font-mono);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 600;
    line-height: 1;
    color: var(--text-inverted-2);
}

.plan .btn {
    margin-top: 26px;
}

.plan__features {
    list-style: none;
    margin-top: 26px;
    padding-top: 26px;
    border-top: 1px solid var(--line);
    display: grid;
    gap: 13px;
}

.plan__features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.9375rem;
    color: var(--text-2);
}

.plan__features svg {
    width: 16px;
    height: 16px;
    margin-top: 4px;
    flex-shrink: 0;
    color: var(--text);
}

.plan__features li.is-off {
    color: var(--text-3);
}

.plan__features li.is-off svg {
    color: var(--text-3);
}

.pricing__fine {
    max-width: 560px;
    margin: 28px auto 0;
    text-align: center;
    font-size: 0.75rem;
    line-height: 1.6;
    color: var(--text-3);
}

.pricing__fine a {
    text-decoration: underline;
    text-underline-offset: 2px;
    color: var(--text-2);
}

.checkout-error {
    display: none;
    max-width: 460px;
    margin-inline: auto;
    text-align: center;
    margin-top: 20px;
    padding: 11px 14px;
    border: 1px solid var(--line-2);
    border-radius: var(--r-md);
    background: var(--bg-sunken);
    font-size: 0.8125rem;
    color: var(--text-2);
}

.checkout-error.is-shown {
    display: block;
}

.referral-bar {
    background: var(--bg-inverted);
    color: var(--text-inverted);
    font-size: 0.875rem;
}

.referral-bar__inner {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 44px;
    padding-block: 10px;
}

.referral-bar p {
    margin: 0;
    color: var(--text-inverted-2);
}

.referral-bar b {
    color: var(--text-inverted);
    font-weight: 550;
}

.referral-bar code {
    font-family: var(--font-mono);
    font-size: 0.8125em;
    padding: 2px 7px;
    border-radius: var(--r-sm);
    background: color-mix(in srgb, var(--text-inverted) 12%, transparent);
    color: var(--text-inverted);
}

.referral-bar__clear {
    margin-left: auto;
    border: 0;
    background: transparent;
    color: var(--text-inverted-2);
    font-size: 0.8125rem;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: var(--r-sm);
    transition: color 0.16s var(--ease);
}

.referral-bar__clear:hover {
    color: var(--text-inverted);
}

.referral-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(32px, 5vw, 60px);
    align-items: center;
    max-width: 960px;
    margin: clamp(48px, 6vw, 76px) auto 0;
    padding: clamp(28px, 4vw, 44px);
    border: 1px solid var(--line);
    border-radius: var(--r-xl);
    background: var(--bg-subtle);
    box-shadow: var(--shadow-sm);
}

.referral-panel__pitch h3 {
    margin: 12px 0 0;
    font-size: clamp(1.35rem, 2.4vw, 1.625rem);
    line-height: 1.14;
    letter-spacing: -0.02em;
}

.referral-deal {
    display: flex;
    align-items: center;
    gap: clamp(20px, 3vw, 34px);
    margin: 22px 0 18px;
}

.referral-deal__item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.referral-deal__pct {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.03em;
    color: var(--text);
    font-feature-settings: "tnum" 1;
}

.referral-deal__label {
    font-size: 0.8125rem;
    color: var(--text-3);
}

.referral-deal__div {
    align-self: stretch;
    width: 1px;
    min-height: 44px;
    background: var(--line-2);
}

.referral-panel__lead {
    color: var(--text-2);
    font-size: 0.9375rem;
    line-height: 1.55;
    max-width: 34ch;
}

.referral-panel__form label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 10px;
}

.referral-panel__row {
    display: flex;
    gap: 8px;
}

.referral-panel__row input {
    flex: 1;
    min-width: 0;
    height: 44px;
    padding-inline: 14px;
    border: 1px solid var(--line-2);
    border-radius: var(--r-md);
    background: var(--bg-raised);
    font-family: var(--font-mono);
    font-size: 0.875rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    transition: border-color 0.16s var(--ease), box-shadow 0.16s var(--ease);
}

.referral-panel__row input::placeholder {
    color: var(--text-3);
    text-transform: none;
}

.referral-panel__row input:focus {
    outline: none;
    border-color: var(--text-3);
    box-shadow: 0 0 0 4px var(--bg-sunken);
}

.referral-panel__note {
    margin-top: 10px;
    font-size: 0.8125rem;
    color: var(--text-3);
    min-height: 1.2em;
}

.referral-panel .keybox {
    margin-top: 16px;
    background: var(--bg-raised);
}

.referral-panel__stats {
    margin-top: 12px;
    font-size: 0.8125rem;
    color: var(--text-3);
}

@media (max-width: 820px) {
    .referral-panel {
        grid-template-columns: 1fr;
    }
}

.footer {
    border-top: 1px solid var(--line);
    padding-block: clamp(48px, 6vw, 72px) 36px;
    background: var(--bg);
}

.footer__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
    gap: 40px;
}

.footer__brand p {
    margin-top: 16px;
    font-size: 0.875rem;
    color: var(--text-3);
    max-width: 30ch;
}

.footer h5 {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-3);
    margin-bottom: 16px;
}

.footer ul {
    list-style: none;
    display: grid;
    gap: 11px;
}

.footer li a {
    font-size: 0.875rem;
    color: var(--text-2);
    transition: color 0.16s var(--ease);
}

.footer li a:hover {
    color: var(--text);
}

.footer__bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: clamp(40px, 5vw, 60px);
    padding-top: 26px;
    border-top: 1px solid var(--line);
    font-size: 0.75rem;
    color: var(--text-3);
}

.footer__bottom p {
    max-width: 62ch;
}

@media (max-width: 820px) {
    .footer__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }

    .footer__brand {
        grid-column: 1 / -1;
    }
}

.legal-hero {
    padding-block: clamp(48px, 6vw, 80px) 40px;
    border-bottom: 1px solid var(--line);
}

.legal-hero h1 {
    font-size: clamp(2.125rem, 4.6vw, 3rem);
    margin-top: 16px;
}

.legal-hero p {
    margin-top: 16px;
    color: var(--text-2);
    max-width: 60ch;
}

.legal-layout {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: clamp(32px, 6vw, 72px);
    padding-block: clamp(40px, 5vw, 64px) var(--section-y);
}

.legal-toc {
    position: sticky;
    top: 96px;
    align-self: start;
    max-height: calc(100vh - 128px);
    overflow-y: auto;
}

.legal-toc h5 {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-3);
    margin-bottom: 14px;
}

.legal-toc ol {
    list-style: none;
    display: grid;
    gap: 2px;
    counter-reset: toc;
}

.legal-toc a {
    display: block;
    padding: 6px 10px;
    border-radius: var(--r-sm);
    font-size: 0.8125rem;
    line-height: 1.45;
    color: var(--text-3);
    transition: color 0.16s var(--ease), background-color 0.16s var(--ease);
}

.legal-toc a:hover {
    color: var(--text);
    background: var(--bg-sunken);
}

.legal-toc a.is-active {
    color: var(--text);
    background: var(--bg-sunken);
}

.prose {
    max-width: 68ch;
}

.prose h2 {
    font-size: 1.375rem;
    letter-spacing: -0.024em;
    margin-top: 48px;
    padding-top: 4px;
    scroll-margin-top: 96px;
}

.prose h2:first-child {
    margin-top: 0;
}

.prose h3 {
    font-size: 1.0625rem;
    margin-top: 28px;
}

.prose p,
.prose li {
    color: var(--text-2);
    font-size: 0.9688rem;
    line-height: 1.72;
}

.prose p {
    margin-top: 14px;
}

.prose ul,
.prose ol {
    margin-top: 14px;
    padding-left: 22px;
    display: grid;
    gap: 8px;
}

.prose li::marker {
    color: var(--text-3);
}

.prose strong {
    color: var(--text);
    font-weight: 550;
}

.prose a {
    color: var(--text);
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-color: var(--line-2);
    transition: text-decoration-color 0.16s var(--ease);
}

.prose a:hover {
    text-decoration-color: var(--text);
}

.prose code {
    font-family: var(--font-mono);
    font-size: 0.85em;
    padding: 2px 6px;
    border-radius: var(--r-sm);
    background: var(--bg-sunken);
    border: 1px solid var(--line);
    color: var(--text);
}

.callout {
    margin: 26px 0;
    padding: clamp(18px, 2.6vw, 22px) clamp(20px, 3vw, 24px);
    border-radius: var(--r-lg);
    background: var(--bg-sunken);
}

.callout p {
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.62;
    color: var(--text);
}

.callout p + p {
    margin-top: 10px;
}

.callout strong {
    font-weight: 600;
}

@media (max-width: 900px) {
    .legal-layout {
        grid-template-columns: 1fr;
    }

    .legal-toc {
        position: static;
        max-height: none;
        padding-bottom: 8px;
        border-bottom: 1px solid var(--line);
    }

    .legal-toc ol {
        grid-auto-flow: column;
        grid-auto-columns: max-content;
        overflow-x: auto;
        padding-bottom: 8px;
    }
}

.order {
    padding-block: clamp(72px, 11vw, 128px) var(--section-y);
}

.order__card {
    max-width: 440px;
    margin-inline: auto;
    text-align: center;
}

.order__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.8125rem;
    color: var(--text-3);
    letter-spacing: -0.006em;
}

.order__card h1 {
    margin-top: 12px;
    font-size: clamp(1.5rem, 3vw, 1.9rem);
    line-height: 1.12;
    letter-spacing: -0.024em;
}

.order__lead {
    margin-top: 9px;
    color: var(--text-2);
    font-size: 0.9375rem;
}

.keybox {
    margin-top: 30px;
    border: 1px solid var(--line-2);
    border-radius: var(--r-lg);
    background: var(--bg-subtle);
    padding: 20px;
    text-align: left;
}

.keybox__label {
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--text-3);
}

.keybox__value {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
}

.keybox__value code {
    flex: 1;
    min-width: 0;
    overflow-x: auto;
    font-family: var(--font-mono);
    font-size: clamp(0.95rem, 2.6vw, 1.25rem);
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--text);
    white-space: nowrap;
}

.order__form {
    margin-top: 26px;
}

.order__key {
    margin-top: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 7px 7px 18px;
    border: 1px solid var(--line-2);
    border-radius: var(--r-lg);
    background: var(--bg-subtle);
    text-align: left;
}

.order__key code {
    flex: 1;
    min-width: 0;
    overflow-x: auto;
    font-family: var(--font-mono);
    font-size: clamp(1rem, 3.4vw, 1.375rem);
    font-weight: 500;
    letter-spacing: 0.01em;
    white-space: nowrap;
    color: var(--text);
}

.order__key .btn {
    flex-shrink: 0;
}

.order__status {
    margin-top: 26px;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text);
}

.order__hint {
    margin-top: 14px;
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--text-3);
}

.order__hint code {
    font-family: var(--font-mono);
    font-size: 0.82em;
    color: var(--text-2);
}

.order__hint b {
    color: var(--text-2);
    font-weight: 500;
}

.order__hint a,
.order__foot a {
    color: var(--text-2);
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-thickness: 1px;
}

.order__actions {
    display: flex;
    justify-content: center;
    margin-top: 22px;
}

.order__foot {
    margin-top: 30px;
    font-size: 0.8125rem;
    color: var(--text-3);
}

.order__referral {
    margin-top: 22px;
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    background: var(--bg-subtle);
    text-align: left;
}

.order__state {
    margin-top: 26px;
    color: var(--text-3);
    font-size: 0.9375rem;
    line-height: 1.55;
}

.dot-live {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--live);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--live) 18%, transparent);
    flex-shrink: 0;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 12px;
    z-index: 100;
    padding: 10px 16px;
    border-radius: var(--r-md);
    background: var(--accent);
    color: var(--accent-text);
    font-size: 0.875rem;
}

.skip-link:focus {
    left: 24px;
}

.reveal {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-in {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
    }
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

#header {
    view-transition-name: valen-header;
}

.footer {
    view-transition-name: valen-footer;
}

@media (prefers-reduced-motion: no-preference) {
    @view-transition {
        navigation: auto;
    }

    ::view-transition-old(root),
    ::view-transition-new(root) {
        animation-duration: 0.42s;
        animation-timing-function: var(--ease);
    }

    ::view-transition-old(root) {
        animation-name: valen-page-out;
    }

    ::view-transition-new(root) {
        animation-name: valen-page-in;
    }

    @keyframes valen-page-out {
        to {
            opacity: 0;
        }
    }

    @keyframes valen-page-in {
        from {
            opacity: 0;
            transform: scale(0.994);
        }
    }
}

.pull-home {
    position: fixed;
    left: 50%;
    bottom: 26px;
    z-index: 60;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 9px 18px 9px 10px;
    max-width: calc(100vw - 32px);
    border-radius: var(--r-pill);
    border: 1px solid var(--line-2);
    background: color-mix(in srgb, var(--bg-raised) 84%, transparent);
    backdrop-filter: saturate(1.5) blur(16px);
    -webkit-backdrop-filter: saturate(1.5) blur(16px);
    box-shadow: var(--shadow-lg);
    color: var(--text-2);
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: -0.01em;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transform: translate(-50%, 16px);
    transition: opacity 0.34s var(--ease), transform 0.34s var(--ease);
}

.pull-home.is-active {
    opacity: 1;
    transform: translate(-50%, 0);
}

.pull-home.is-committing {
    opacity: 1;
    transform: translate(-50%, -8px) scale(1.03);
}

.pull-home__ring {
    position: relative;
    width: 30px;
    height: 30px;
    flex: none;
}

.pull-home__ring-svg {
    width: 30px;
    height: 30px;
    transform: rotate(-90deg);
}

.pull-home__track,
.pull-home__meter {
    fill: none;
    stroke-width: 3;
}

.pull-home__track {
    stroke: var(--line-2);
}

.pull-home__meter {
    stroke: var(--accent);
    stroke-linecap: round;
    stroke-dasharray: 107;
    stroke-dashoffset: calc(107 * (1 - var(--p, 0)));
    transition: stroke-dashoffset 0.12s linear;
}

.pull-home__arrow {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 15px;
    height: 15px;
    fill: none;
    stroke: var(--accent);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transform: translateY(calc(var(--p, 0) * -2px));
    transition: transform 0.12s linear;
}

@media (max-width: 380px) {
    .pull-home__label {
        display: none;
    }

    .pull-home {
        padding: 9px;
    }
}

@media (prefers-reduced-motion: reduce) {

    .pull-home,
    .pull-home__meter,
    .pull-home__arrow {
        transition: none;
    }
}

.docs-prose {
    max-width: 720px;
}

.docs-section h2,
.docs-section h2:first-child {
    margin-top: 0;
}

.docs-head {
    padding-block: clamp(44px, 7vw, 72px) 36px;
    border-bottom: 1px solid var(--line);
}

.docs-head h1 {
    margin-top: 22px;
    font-size: clamp(2.25rem, 5vw, 4.25rem);
    line-height: 0.98;
    letter-spacing: -0.055em;
}

.docs-head p {
    margin-top: 14px;
    color: var(--text-2);
    font-size: 1rem;
}

.docs-tabs {
    display: flex;
    gap: 24px;
}

.docs-tabs a {
    padding-bottom: 7px;
    border-bottom: 1px solid transparent;
    color: var(--text-3);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
}

.docs-tabs a:hover,
.docs-tabs a[aria-current="page"] {
    border-bottom-color: var(--text);
    color: var(--text);
}

.docs-section + .docs-section {
    margin-top: 48px;
    padding-top: 48px;
    border-top: 1px solid var(--line);
}

.module-reference {
    width: 100%;
    max-width: 820px;
}

.module-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 20px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--line-2);
}

.module-search label {
    grid-column: 1 / -1;
    color: var(--text-3);
    font-size: 0.8125rem;
    font-weight: 500;
}

.module-search input {
    min-width: 0;
    padding: 0 0 10px;
    border: 0;
    border-bottom: 1px solid var(--line-2);
    border-radius: 0;
    outline: 0;
    background: transparent;
    color: var(--text);
    font: inherit;
}

.module-search input:focus {
    border-bottom-color: var(--text);
}

.module-search span {
    align-self: center;
    color: var(--text-3);
    font-size: 0.8125rem;
}

.module-group {
    scroll-margin-top: 96px;
}

.module-group h2 {
    margin-bottom: 18px;
    font-size: 1.375rem;
}

.module-entry {
    border-top: 1px solid var(--line);
}

.module-entry:last-of-type {
    border-bottom: 1px solid var(--line);
}

.module-entry summary {
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr) 18px;
    gap: 20px;
    align-items: baseline;
    padding-block: 17px;
    cursor: pointer;
    list-style: none;
}

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

.module-entry summary::after {
    content: "+";
    color: var(--text-3);
    font-size: 1rem;
    font-weight: 400;
    text-align: right;
}

.module-entry[open] summary::after {
    content: "−";
}

.module-entry summary:hover strong {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.module-entry summary strong {
    color: var(--text);
    font-size: 0.9375rem;
    font-weight: 550;
}

.module-entry summary span {
    color: var(--text-2);
    font-size: 0.9375rem;
    line-height: 1.5;
}

.module-entry > p {
    margin: -2px 38px 18px 180px;
    color: var(--text-3);
    font-size: 0.875rem;
    line-height: 1.65;
}

.module-entry > p b {
    margin-right: 8px;
    color: var(--text-2);
    font-weight: 550;
}

.module-empty {
    margin-top: 36px;
    color: var(--text-2);
}

@media (max-width: 640px) {
    .docs-head h1 {
        font-size: 2.5rem;
    }

    .module-entry summary {
        grid-template-columns: minmax(0, 1fr) 18px;
        gap: 4px 12px;
    }

    .module-entry summary strong {
        grid-column: 1;
    }

    .module-entry summary span {
        grid-column: 1;
    }

    .module-entry summary::after {
        grid-column: 2;
        grid-row: 1 / 3;
        align-self: center;
    }

    .module-entry > p {
        margin: 0 30px 18px 0;
    }
}

.docs-command code {
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
}

.order__card--downloads {
    max-width: 820px;
}

.download-key-form {
    max-width: 500px;
    margin-inline: auto;
}

.download-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 24px;
    text-align: left;
}

.download-option {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 24px;
    border: 1px solid var(--line-2);
    border-radius: var(--r-xl);
    background: var(--bg-subtle);
    box-shadow: var(--shadow-sm);
}

.download-option__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.download-option__eyebrow {
    color: var(--text-3);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.download-option h2 {
    margin-top: 5px;
    font-size: 1.35rem;
    letter-spacing: -0.026em;
}

.download-option > p:not(.download-option__hint) {
    min-height: 70px;
    margin-top: 18px;
    color: var(--text-2);
    font-size: 0.9063rem;
    line-height: 1.62;
}

.download-option .btn {
    margin-top: 22px;
}

.download-option__hint {
    margin-top: 13px;
    color: var(--text-3);
    font-size: 0.8125rem;
    line-height: 1.55;
}

.download-option__hint code {
    color: var(--text-2);
    font-family: var(--font-mono);
    font-size: 0.82em;
}

.download-docs-link {
    margin-top: 22px;
    color: var(--text-3);
    font-size: 0.875rem;
}

.download-docs-link a {
    color: var(--text-2);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

@media (max-width: 700px) {
    .download-options {
        grid-template-columns: 1fr;
    }

    .download-option > p:not(.download-option__hint) {
        min-height: 0;
    }
}
