/* The site track for the doors: the landing page's own tokens, nav, buttons and footer, copied from
   landing_page/static/css/landing_page.css so sign up and sign in look like the site they came from. */
@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("/static/font/InterVariable.woff2") format("woff2");
}

:root {
    color-scheme: dark;

    --wt-font: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;
    --wt-font-mono: "JetBrains Mono", SFMono-Regular, Consolas, "Liberation Mono",
    Menlo, Courier, monospace;

    --wt-w-light: 320;
    --wt-w-body: 400;
    --wt-w-head: 530;

    --wt-hero: 52px;
    --wt-hero-lh: 56px;
    --wt-hero-ls: -0.005em;
    --wt-h1: 43px;
    --wt-h1-lh: 49px;
    --wt-h1-ls: -0.001em;
    --wt-h2: 35px;
    --wt-h2-lh: 42px;
    --wt-h3: 20px;
    --wt-h3-lh: 28px;
    --wt-h4: 16px;
    --wt-h4-lh: 24px;


    --wt-text-1: 20px;
    --wt-text-1-lh: 28px;
    --wt-text-2: 16px;
    --wt-text-2-lh: 24px;
    --wt-text-2-ls: 0.0015em;
    --wt-text-3: 13px;
    --wt-text-3-lh: 20px;
    --wt-text-3-ls: 0.0045em;

    --wt-digits-1: 69px;
    --wt-digits-1-lh: 71px;
    --wt-digits-2: 40px;
    --wt-digits-2-lh: 44px;

    --wt-overline: 13px;
    --wt-overline-ls: 0.1em;

    --wt-bg: #19191C;
    --wt-bg-deep: #000000;
    --wt-bg-subtle: #202024;
    --wt-bg-raised: #27282C;
    --wt-bg-inline: #2B2D31;
    --wt-fg: #FFFFFF;
    --wt-fg-secondary: #FFFFFF;
    --wt-fg-muted: rgba(255, 255, 255, 0.68);
    --wt-border: rgba(255, 255, 255, 0.14);
    --wt-border-soft: rgba(255, 255, 255, 0.07);

    --wt-brand: #6B57FF;
    --wt-brand-hover: #5B47F0;
    --wt-brand-tint: rgba(107, 87, 255, 0.16);
    --wt-brand-tint-strong: rgba(107, 87, 255, 0.28);
    --wt-accent: #A091FF;
    --wt-link: #8C9DFF;
    --wt-link-hover: #B4BEFF;
    --wt-focus: #8C9DFF;
    --wt-positive: #3BEA62;
    --wt-negative: #FF6B6B;
    --wt-warning: #E0A32E;

    --wt-chrome: #19191C;
    --wt-chrome-fg: #FFFFFF;

    --wt-on-brand: #FFFFFF;
    --wt-on-invert: #19191C;

    --wt-max: 1232px;
    --wt-max-article: 706px;
    --wt-gutter: 22px;
    --wt-rhythm: 24px;
    --wt-nav-h: 72px;

    --wt-r-sm: 4px;
    --wt-r-md: 8px;
    --wt-r-lg: 16px;
    --wt-r-xl: 24px;
    --wt-r-pill: 9999px;

    --wt-shadow-float: 0 8px 32px rgba(0, 0, 0, 0.44);

    --wt-dur: 150ms;
    --wt-ease: cubic-bezier(0.4, 0, 0.2, 1);
}

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

    --wt-bg: #FFFFFF;
    --wt-bg-deep: #F4F4F4;
    --wt-bg-subtle: #F4F4F4;
    --wt-bg-raised: #FFFFFF;
    --wt-bg-inline: #EAEAEC;
    --wt-fg: #27282C;
    --wt-fg-secondary: #27282C;
    --wt-fg-muted: #5F6269;
    --wt-border: #DDDFE4;
    --wt-border-soft: #EDEEF1;

    --wt-brand-tint: rgba(107, 87, 255, 0.09);
    --wt-brand-tint-strong: rgba(107, 87, 255, 0.16);
    --wt-accent: #5B47F0;
    --wt-link: #167DFF;
    --wt-link-hover: #0B5FCC;
    --wt-focus: #167DFF;
    --wt-positive: #17864A;
    --wt-negative: #C6392F;
    --wt-warning: #A56A12;

    --wt-on-invert: #FFFFFF;

    --wt-shadow-float: 0 8px 32px rgba(0, 0, 0, 0.12);
}

[data-band="dark"] {
    color-scheme: dark;
    --wt-bg: #19191C;
    --wt-bg-deep: #000000;
    --wt-bg-subtle: #202024;
    --wt-bg-raised: #27282C;
    --wt-bg-inline: #2B2D31;
    --wt-fg: #FFFFFF;
    --wt-fg-secondary: #FFFFFF;
    --wt-fg-muted: rgba(255, 255, 255, 0.68);
    --wt-border: rgba(255, 255, 255, 0.14);
    --wt-border-soft: rgba(255, 255, 255, 0.07);
    --wt-accent: #A091FF;
    --wt-link: #8C9DFF;
    --wt-link-hover: #B4BEFF;
    --wt-brand-tint: rgba(107, 87, 255, 0.16);
    --wt-brand-tint-strong: rgba(107, 87, 255, 0.28);
    --wt-on-invert: #19191C;
    color: var(--wt-fg);
}

@media (max-width: 1000px) {
    :root {
        --wt-nav-h: 56px;
        --wt-gutter: 16px;
    }
}

@media (max-width: 640px) {
    :root {
        --wt-hero: 34px;
        --wt-hero-lh: 40px;
        --wt-h1: 35px;
        --wt-h1-lh: 39px;
        --wt-h2: 28px;
        --wt-h2-lh: 32px;
        --wt-digits-1: 40px;
        --wt-digits-1-lh: 44px;
        --wt-rhythm: 16px;
    }
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--wt-nav-h) + 16px);
    background: var(--wt-bg);
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
    background: var(--wt-bg);
    color: var(--wt-fg);
    font-family: var(--wt-font);
    font-size: var(--wt-text-2);
    line-height: var(--wt-text-2-lh);
    letter-spacing: var(--wt-text-2-ls);
    font-weight: var(--wt-w-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    margin: 0;
    color: var(--wt-fg);
    font-weight: var(--wt-w-head);
}

h1 {
    font-size: var(--wt-h1);
    line-height: var(--wt-h1-lh);
    letter-spacing: var(--wt-h1-ls);
}

h2 {
    font-size: var(--wt-h1);
    line-height: var(--wt-h1-lh);
    letter-spacing: var(--wt-h1-ls);
}

h3 {
    font-size: var(--wt-h3);
    line-height: var(--wt-h3-lh);
}

h4 {
    font-size: var(--wt-h4);
    line-height: var(--wt-h4-lh);
}

p {
    margin: 0;
    color: var(--wt-fg-secondary);
}

ul, ol {
    margin: 0;
    padding: 0;
}

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

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

button {
    font: inherit;
    color: inherit;
}

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

::selection {
    background: var(--wt-brand);
    color: var(--wt-on-brand);
}

* {
    scrollbar-width: thin;
    scrollbar-color: var(--wt-border) transparent;
}

[hidden] { display: none !important; }
.cta-button,
.wt-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 32px;
    border: 1px solid transparent;
    border-radius: var(--wt-r-pill);
    background: var(--wt-fg);
    color: var(--wt-on-invert);
    font-family: var(--wt-font);
    font-size: 18px;
    line-height: 24px;
    font-weight: var(--wt-w-head);
    letter-spacing: normal;
    text-align: center;
    cursor: pointer;
    transition: background-color var(--wt-dur) var(--wt-ease),
    color var(--wt-dur) var(--wt-ease),
    border-color var(--wt-dur) var(--wt-ease);
}

.cta-button:hover,
.wt-btn:hover {
    background: var(--wt-brand);
    color: var(--wt-on-brand);
}

.wt-btn--m {
    padding: 8px 24px;
    font-size: 16px;
    line-height: 22px;
}

.wt-btn--s {
    padding: 6px 16px;
    font-size: 14px;
    line-height: 20px;
}

.wt-btn--brand {
    background: var(--wt-brand);
    color: var(--wt-on-brand);
}

.wt-btn--brand:hover {
    background: var(--wt-brand-hover);
    color: var(--wt-on-brand);
}

.cta-button-outline,
.wt-btn--outline {
    background: transparent;
    color: var(--wt-fg);
    border-color: var(--wt-border);
}

.cta-button-outline:hover,
.wt-btn--outline:hover {
    background: transparent;
    color: var(--wt-fg);
    border-color: var(--wt-fg);
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--wt-link);
    font-weight: var(--wt-w-head);
    transition: color var(--wt-dur) var(--wt-ease);
}

.text-link:hover {
    color: var(--wt-link-hover);
}

.text-link svg {
    flex: none;
}

a.animated-underline {
    position: relative;
    transition: color var(--wt-dur) var(--wt-ease);
}

a.animated-underline::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--wt-dur) var(--wt-ease);
}

a.animated-underline:hover::after,
a.animated-underline:focus-visible::after {
    transform: scaleX(1);
}
.jb-nav {
    position: sticky;
    top: 0;
    z-index: 60;
    background: var(--wt-chrome);
    color: var(--wt-chrome-fg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.jb-nav-inner {
    display: flex;
    align-items: center;
    gap: var(--wt-rhythm);
    height: var(--wt-nav-h);
    max-width: var(--wt-max);
    margin-inline: auto;
    padding-inline: var(--wt-gutter);
}

.jb-product {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex: none;
    margin-right: auto;
    color: var(--wt-chrome-fg);
}

.jb-product-name {
    font-size: var(--wt-h3);
    line-height: var(--wt-h3-lh);
    font-weight: var(--wt-w-head);
    color: var(--wt-chrome-fg);
}

.jb-nav-links {
    display: flex;
    align-items: center;
    gap: var(--wt-rhythm);
    list-style: none;
}

.jb-nav-links a {
    color: var(--wt-chrome-fg);
    font-size: var(--wt-text-2);
    line-height: var(--wt-text-2-lh);
    white-space: nowrap;
    transition: color var(--wt-dur) var(--wt-ease);
}

.jb-nav-links a:hover {
    color: var(--wt-chrome-fg);
}

.jb-nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: none;
}

.jb-nav-actions .wt-btn {
    white-space: nowrap;
}

.jb-nav .wt-btn--outline {
    color: var(--wt-chrome-fg);
    border-color: rgba(255, 255, 255, 0.35);
}

.jb-nav .wt-btn--outline:hover {
    border-color: var(--wt-chrome-fg);
}

.icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: var(--wt-r-pill);
    background: transparent;
    color: var(--wt-chrome-fg);
    cursor: pointer;
    transition: background-color var(--wt-dur) var(--wt-ease),
    color var(--wt-dur) var(--wt-ease);
}

.icon-button:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--wt-chrome-fg);
}

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

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

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

.hamburger {
    display: none;
}

.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: none;
    flex-direction: column;
    background: var(--wt-bg);
    overflow-y: auto;
    overscroll-behavior: contain;
}

.mobile-menu.mobile-open {
    display: flex;
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--wt-nav-h);
    padding-inline: var(--wt-gutter);
    border-bottom: 1px solid var(--wt-border-soft);
    flex: none;
}

.mobile-menu-header .jb-product-name {
    color: var(--wt-fg);
}

.mobile-menu-tools {
    display: flex;
    align-items: center;
    gap: 4px;
}

.mobile-menu .icon-button {
    color: var(--wt-fg-secondary);
}

.mobile-menu .icon-button:hover {
    background: var(--wt-bg-inline);
    color: var(--wt-fg);
}

.mobile-menu-links {
    list-style: none;
    padding: 8px var(--wt-gutter) var(--wt-rhythm);
}

.mobile-menu-links a {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid var(--wt-border-soft);
    color: var(--wt-fg);
    font-size: var(--wt-text-1);
    line-height: var(--wt-text-1-lh);
}

.mobile-menu-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: var(--wt-rhythm) var(--wt-gutter) calc(var(--wt-rhythm) * 2);
}

.mobile-menu-actions .wt-btn {
    width: 100%;
}

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

    .hamburger {
        display: inline-flex;
    }
}

@media (max-width: 560px) {
    .jb-nav-actions .jb-login {
        display: none;
    }
}

@media (max-width: 400px) {
    .jb-nav-actions {
        gap: 4px;
    }

    .jb-nav-actions .wt-btn {
        padding-inline: 14px;
        font-size: 13px;
    }
}

.hero {
    background: var(--wt-bg-deep);
    padding-block: calc(var(--wt-rhythm) * 5) calc(var(--wt-rhythm) * 3);
}
footer {
    --wt-fg: #FFFFFF;
    --wt-fg-secondary: #FFFFFF;
    --wt-fg-muted: rgba(255, 255, 255, 0.68);
    --wt-border: rgba(255, 255, 255, 0.14);
    --wt-border-soft: rgba(255, 255, 255, 0.08);
    --wt-link: #8C9DFF;
    --wt-link-hover: #B4BEFF;
    background: var(--wt-chrome);
    color: var(--wt-chrome-fg);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--wt-rhythm);
    max-width: var(--wt-max);
    margin-inline: auto;
    padding: calc(var(--wt-rhythm) * 3) var(--wt-gutter) calc(var(--wt-rhythm) * 2);
}

.footer-column h4 {
    margin-bottom: 12px;
    font-size: var(--wt-text-3);
    line-height: var(--wt-text-3-lh);
    font-weight: 600;
    color: var(--wt-chrome-fg);
}

.footer-column ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-column a {
    color: var(--wt-fg-secondary);
    font-size: var(--wt-text-3);
    line-height: var(--wt-text-3-lh);
    letter-spacing: var(--wt-text-3-ls);
    transition: color var(--wt-dur) var(--wt-ease);
}

.footer-column a:hover {
    color: var(--wt-chrome-fg);
}

.footer-made-with {
    max-width: var(--wt-max);
    margin-inline: auto;
    padding: calc(var(--wt-rhythm) * 1.25) var(--wt-gutter);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-made-with p {
    margin: 0;
    color: var(--wt-fg-muted);
    font-size: var(--wt-text-3);
    line-height: var(--wt-text-3-lh);
}

.footer-made-with .credits-container {
    margin-top: 0;
}

.footer-made-with .dev-name {
    font-size: var(--wt-text-3);
    line-height: var(--wt-text-3-lh);
    color: var(--wt-fg-secondary);
    font-weight: var(--wt-w-body);
}

.footer-made-with .social-links a {
    width: 28px;
    height: 28px;
    color: var(--wt-fg-muted);
}

.footer-made-with .social-links a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--wt-chrome-fg);
}

.footer-made-with .social-links svg {
    width: 16px;
    height: 16px;
}

.heart {
    color: var(--wt-negative);
}

.footer-bottom {
    max-width: var(--wt-max);
    margin-inline: auto;
    padding: calc(var(--wt-rhythm) * 1.25) var(--wt-gutter) calc(var(--wt-rhythm) * 2);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-bottom p {
    margin: 0;
    color: var(--wt-fg-muted);
    font-size: var(--wt-text-3);
    line-height: var(--wt-text-3-lh);
}

@media (max-width: 900px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: calc(var(--wt-rhythm) * 1.5) var(--wt-rhythm);
    }
}

@media (max-width: 480px) {
    .footer-content {
        grid-template-columns: 1fr;
    }
}

.hamburger svg line {
    transition: transform var(--wt-dur) var(--wt-ease), opacity var(--wt-dur) var(--wt-ease);
    transform-origin: center;
}

.hamburger.menu-open svg line:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.hamburger.menu-open svg line:nth-child(2) {
    opacity: 0;
}

.hamburger.menu-open svg line:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* The form. jetbrains.com's account pages: one column, 48px fields, the brand pill full width. */
[data-page="sign_up"] .jb-signup, [data-page="login"] .jb-login { display: none; }

.highlighted { color: var(--wt-accent); }

.hero-title {
    font-size: var(--wt-hero);
    line-height: var(--wt-hero-lh);
    letter-spacing: var(--wt-hero-ls);
    font-weight: var(--wt-w-head);
    color: var(--wt-fg);
}

.hero-lede {
    margin-top: var(--wt-rhythm);
    max-width: 60ch;
    font-size: var(--wt-text-1);
    line-height: var(--wt-text-1-lh);
    color: var(--wt-fg);
}

.hero-cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: calc(var(--wt-rhythm) * 1.25);
}

.hero-note {
    margin-top: calc(var(--wt-rhythm) * 0.5);
    font-size: var(--wt-text-3);
    line-height: var(--wt-text-3-lh);
    letter-spacing: var(--wt-text-3-ls);
    color: var(--wt-fg-muted);
}

.fade-in-up {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 400ms var(--wt-ease), transform 400ms var(--wt-ease);
}

.fade-in-up.visible {
    opacity: 1;
    transform: none;
}

/* The door is the landing's hero: the headline on the left, the card where the mockup sits. */
.site-main {
    display: grid;
    justify-items: center;
    align-content: start;
    min-height: 100vh;
    margin-top: calc(var(--wt-nav-h) * -1);
    padding: calc(var(--wt-nav-h) + 64px) var(--wt-gutter) calc(var(--wt-nav-h) + 48px);
    background: var(--wt-bg-deep);
}

.site-hero {
    display: grid;
    place-items: center;
    width: 100%;
}

.site-form-wrap {
    width: 100%;
    max-width: 400px;
    margin-inline: auto;
}



.site-card h2 {
    font-size: 28px;
    line-height: 34px;
}

.site-form-wrap .lede {
    margin-top: 8px;
    color: var(--wt-fg-muted);
}

.site-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: var(--wt-rhythm);
}

.site-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.site-field label {
    font-size: var(--wt-text-3);
    line-height: var(--wt-text-3-lh);
    letter-spacing: var(--wt-text-3-ls);
    font-weight: var(--wt-w-head);
    color: var(--wt-fg-muted);
}

.site-field-row {
    display: flex;
    gap: 8px;
}

.site-field-row .site-input {
    flex: 1;
    min-width: 0;
}

.site-input {
    width: 100%;
    height: 40px;
    padding: 0 18px;
    border: 1px solid var(--wt-border);
    border-radius: var(--wt-r-pill);
    background: var(--wt-bg-raised);
    color: var(--wt-fg);
    font: inherit;
    transition: border-color var(--wt-dur) var(--wt-ease);
}

.site-input:hover { border-color: var(--wt-fg-muted); }

.site-input:focus-visible {
    outline: 2px solid var(--wt-focus);
    outline-offset: 0;
    border-color: transparent;
}

.site-input[aria-invalid="true"] { border-color: var(--wt-negative); }

.site-field-row .icon-button {
    flex: none;
    width: 40px;
    height: 40px;
    border: 1px solid var(--wt-border);
    border-radius: var(--wt-r-pill);
    color: var(--wt-fg-muted);
}

.site-field-row .icon-button:hover {
    background: transparent;
    border-color: var(--wt-fg-muted);
    color: var(--wt-fg);
}

.site-field-row .icon-button svg {
    width: 18px;
    height: 18px;
}

.field-error {
    margin: 0;
    font-size: var(--wt-text-3);
    line-height: var(--wt-text-3-lh);
    color: var(--wt-negative);
}

.site-note {
    margin: 0;
    font-size: var(--wt-text-3);
    line-height: var(--wt-text-3-lh);
    color: var(--wt-fg-muted);
}

.site-check {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: var(--wt-text-3);
    line-height: var(--wt-text-3-lh);
    color: var(--wt-fg-muted);
}

.site-check input {
    flex: none;
    width: 20px;
    height: 20px;
    margin: 0;
    appearance: none;
    border: 1px solid var(--wt-border);
    border-radius: var(--wt-r-pill);
    background: var(--wt-bg);
    cursor: pointer;
    transition: background-color var(--wt-dur) var(--wt-ease), border-color var(--wt-dur) var(--wt-ease);
}

.site-check input:hover { border-color: var(--wt-fg-muted); }

.site-check input:checked {
    border-color: var(--wt-brand);
    background: var(--wt-brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 14px no-repeat;
}

.site-form .wt-btn { width: 100%; }

.site-form-wrap a:not(.wt-btn), .site-note a:not(.wt-btn) { color: var(--wt-link); }

.site-form-wrap a:not(.wt-btn):hover, .site-note a:not(.wt-btn):hover { color: var(--wt-link-hover); }

.site-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: var(--wt-text-3);
    color: var(--wt-fg-muted);
}

.site-divider::before,
.site-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--wt-border);
}


.credits-container {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px 24px;
    margin-top: calc(var(--wt-rhythm) * 1.5);
}

.developer {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.dev-name {
    font-size: var(--wt-text-2);
    line-height: var(--wt-text-2-lh);
    font-weight: var(--wt-w-head);
    color: var(--wt-fg);
}

.social-links {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: var(--wt-r-pill);
    color: var(--wt-fg-muted);
    transition: background-color var(--wt-dur) var(--wt-ease),
    color var(--wt-dur) var(--wt-ease);
}

.social-links a:hover {
    background: var(--wt-bg-inline);
    color: var(--wt-fg);
}

.social-links svg {
    width: 18px;
    height: 18px;
}

.ampersand {
    color: var(--wt-fg-muted);
}

.directory-disclosure {
    max-width: var(--wt-max);
    margin-inline: auto;
    padding: 0 var(--wt-gutter) calc(var(--wt-rhythm) * 2);
}

.directory-disclosure summary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--wt-fg-muted);
    font-size: var(--wt-text-3);
    line-height: var(--wt-text-3-lh);
    cursor: pointer;
    list-style: none;
    transition: color var(--wt-dur) var(--wt-ease);
}

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

.directory-disclosure summary:hover {
    color: var(--wt-chrome-fg);
}

.directory-disclosure[open] summary svg {
    transform: rotate(180deg);
}

.directory-badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 20px;
    padding-top: var(--wt-rhythm);
}

.directory-badges img {
    height: 40px;
    width: auto;
    opacity: 0.5;
    transition: opacity var(--wt-dur) var(--wt-ease);
}

.directory-badges a:hover img {
    opacity: 1;
}

.directory-text-badge {
    color: var(--wt-fg-muted);
    font-size: var(--wt-text-3);
    line-height: var(--wt-text-3-lh);
    transition: color var(--wt-dur) var(--wt-ease);
}

.directory-text-badge:hover {
    color: var(--wt-chrome-fg);
}


/* The form sits in a card, the pricing card's own geometry. */
.site-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 540px;
    padding: var(--wt-rhythm);
    border: 1px solid var(--wt-border);
    border-radius: var(--wt-r-lg);
    background: var(--wt-bg-raised);
    box-shadow: var(--wt-shadow-float);
}

.site-card .site-input { background: var(--wt-bg); }

[data-page="invite"] .site-card,
[data-page="admin_login"] .site-card,
[data-page="admin_setup"] .site-card { min-height: 0; }

.site-projects {
    width: 100%;
    max-width: 1140px;
    margin-inline: auto;
    padding-bottom: calc(var(--wt-rhythm) * 3);
}

.site-add-plus {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: var(--wt-r-pill);
    background: var(--wt-brand);
    color: var(--wt-on-brand);
    transition: transform 300ms var(--wt-ease), background-color var(--wt-dur) var(--wt-ease);
}

.site-project-add:hover .site-add-plus { transform: rotate(90deg); background: var(--wt-brand-hover); }

.site-project-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: calc(var(--wt-rhythm) * 1.5);
}

.site-project-card {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 12px;
    padding: 18px 24px;
    border: 1px solid var(--wt-border);
    border-radius: var(--wt-r-lg);
    background: var(--wt-bg-raised);
    color: var(--wt-fg);
    font: inherit;
    text-align: left;
    cursor: pointer;
    animation: site-rise 400ms var(--wt-ease) both;
    transition: border-color var(--wt-dur) var(--wt-ease);
}

.site-project-card:hover { border-color: var(--wt-fg-muted); }

.site-project-add { flex-wrap: nowrap; }

.site-project-name {
    font-size: var(--wt-h4);
    line-height: var(--wt-h4-lh);
    font-weight: var(--wt-w-head);
}

.site-project-stats {
    flex-basis: 100%;
    font-size: var(--wt-text-3);
    line-height: var(--wt-text-3-lh);
    color: var(--wt-fg-muted);
}

.site-project-role {
    padding: 1px 10px;
    border: 1px solid var(--wt-border);
    border-radius: var(--wt-r-pill);
    font-size: 12px;
    color: var(--wt-fg-muted);
    text-transform: capitalize;
}

.site-project-fresh {
    position: absolute;
    top: -9px;
    right: -9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding-inline: 6px;
    border-radius: var(--wt-r-pill);
    background: var(--wt-negative);
    color: #fff;
    font-size: 12px;
    font-weight: var(--wt-w-head);
    line-height: 1;
}

.plan-modal-box.site-form { max-width: 480px; }

.plan-modal-box.site-form .site-note b { font-weight: var(--wt-w-head); color: var(--wt-fg); }

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

.site-404 { text-align: center; }

.site-404 .hero-lede { margin-inline: auto; }

.site-404 .hero-lede code {
    font-family: var(--wt-font-mono);
    font-size: 0.9em;
    color: var(--wt-accent);
}

.site-404 .hero-cta-buttons { justify-content: center; }

.site-404-code {
    margin: 0 0 var(--wt-rhythm);
    font-size: clamp(160px, 26vw, 320px);
    line-height: 0.9;
    font-weight: 640;
    letter-spacing: -0.05em;
    color: var(--wt-fg);
}

.site-404-code span {
    display: inline-block;
    animation: site-rise 500ms var(--wt-ease) both;
}

.site-404-code span:nth-child(2) { animation-delay: 70ms; }

.site-404-code span:nth-child(3) { animation-delay: 140ms; }

@keyframes site-rise {
    from { opacity: 0; transform: translateY(32px); }
}

.site-404-links {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-top: calc(var(--wt-rhythm) * 2);
    font-size: var(--wt-text-2);
    line-height: var(--wt-text-2-lh);
}

@media (prefers-reduced-motion: reduce) {
    .site-404-code span, .site-project-card, .plan-modal, .plan-modal-box { animation: none; }
}

.eye-slash {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    transition: stroke-dashoffset var(--wt-dur) var(--wt-ease);
}

[aria-pressed="true"] .eye-slash { stroke-dashoffset: 0; }

/* Signed in: the nav's two buttons become the avatar, which opens the app. The logout opens to the left, so the avatar never moves under the pointer. */
.jb-account {
    display: inline-flex;
    align-items: center;
    height: 36px;
    border: 1px solid transparent;
    border-radius: var(--wt-r-pill);
    transition: border-color 250ms var(--wt-ease), background-color 250ms var(--wt-ease);
}

.jb-account:hover,
.jb-account:focus-within {
    border-color: rgba(255, 255, 255, 0.35);
    background: var(--wt-bg-raised);
}

.jb-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 34px;
    height: 34px;
    border-radius: var(--wt-r-pill);
    background: var(--wt-brand);
    color: var(--wt-on-brand);
    font-size: 14px;
    font-weight: var(--wt-w-head);
    text-transform: uppercase;
    transition: box-shadow 250ms var(--wt-ease);
}

.jb-account:hover .jb-avatar,
.jb-account:focus-within .jb-avatar { box-shadow: 0 0 0 3px var(--wt-brand-tint-strong); }

.jb-logout {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 0;
    height: 34px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    color: var(--wt-chrome-fg);
    transition: width 250ms var(--wt-ease),
    opacity 250ms var(--wt-ease),
    color var(--wt-dur) var(--wt-ease);
}

.jb-account:hover .jb-logout,
.jb-account:focus-within .jb-logout {
    width: 36px;
    opacity: 1;
    pointer-events: auto;
}

.jb-logout:hover { color: var(--wt-negative); }

.jb-logout svg {
    flex: none;
    width: 18px;
    height: 18px;
    transform: scaleX(-1);
}

.mobile-menu-actions .jb-account {
    align-self: center;
    border-color: var(--wt-border);
}

.mobile-menu-actions .jb-logout {
    width: 36px;
    opacity: 1;
    pointer-events: auto;
    color: var(--wt-fg);
}

/* The plan tiles on the site: the landing's pricing cards, on the app's own partial. */
.site-plans {
    width: 100%;
    z-index: 0;
    max-width: 1140px;
    margin-inline: auto;
    padding-bottom: calc(var(--wt-rhythm) * 3);
    text-align: center;
}

.site-plans h1 {
    font-size: var(--wt-h2);
    line-height: var(--wt-h2-lh);
}

.site-plans .lede {
    max-width: 60ch;
    margin: 8px auto 0;
    color: var(--wt-fg-muted);
}

.site-plans .appearance-target-bar {
    display: inline-flex;
    gap: 4px;
    margin-top: calc(var(--wt-rhythm) * 2);
    padding: 4px;
    border: 1px solid var(--wt-border);
    border-radius: var(--wt-r-pill);
    background: var(--wt-bg-raised);
}

.site-plans .appearance-target-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 22px;
    border: 0;
    border-radius: var(--wt-r-pill);
    background: transparent;
    color: var(--wt-fg-muted);
    font: inherit;
    cursor: pointer;
    transition: color var(--wt-dur) var(--wt-ease),
    background-color var(--wt-dur) var(--wt-ease);
}

.site-plans .appearance-target-pill:hover { color: var(--wt-fg); }

.site-plans .appearance-target-pill.active {
    background: var(--wt-brand);
    color: var(--wt-on-brand);
    font-weight: var(--wt-w-head);
}

.site-plans .plan-save {
    font-size: var(--wt-text-3);
    line-height: var(--wt-text-3-lh);
    color: var(--wt-fg-muted);
}

.site-plans .active .plan-save {
    color: inherit;
    opacity: 0.8;
}

.site-plans .plan-tiles {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--wt-rhythm);
    margin-top: calc(var(--wt-rhythm) * 1.5);
}

.site-plans .plan-tiles--solo {
    grid-template-columns: minmax(0, 420px);
    justify-content: center;
}

.site-plans .plan-tiles--solo [data-plan="PRO"] {
    margin-block: 0;
    border-color: var(--wt-border);
    background: var(--wt-bg-raised);
}

.site-plans .plan-tiles--solo [data-plan="PRO"] .billing-plan-note { color: var(--wt-fg-muted); }

.site-plans .billing-plan-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: calc(var(--wt-rhythm) * 1.5);
    border: 1px solid var(--wt-border);
    border-radius: var(--wt-r-lg);
    background: var(--wt-bg-raised);
    text-align: left;
    transition: margin 400ms var(--wt-ease), border-color 400ms var(--wt-ease),
    background-color 400ms var(--wt-ease);
}

.site-plans [data-plan="PRO"] {
    border-color: var(--wt-brand);
    background: var(--wt-brand-tint);
}

.site-plans [data-plan="PRO"] .billing-plan-note { color: var(--wt-accent); }

.site-plans .billing-plan-details {
    display: flex;
    flex: 1;
    flex-direction: column;
}

.site-plans .plan-tile-badge {
    position: absolute;
    top: -14px;
    right: calc(var(--wt-rhythm) * 1.5);
    display: inline-flex;
    align-items: center;
    height: 28px;
    padding-inline: 14px;
    border-radius: var(--wt-r-pill);
    background: var(--wt-brand);
    color: var(--wt-on-brand);
    font-size: 12px;
    font-weight: var(--wt-w-head);
}

.site-plans .billing-plan-name {
    font-size: var(--wt-h3);
    line-height: var(--wt-h3-lh);
    font-weight: var(--wt-w-head);
}

.site-plans .billing-plan-price {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-top: var(--wt-rhythm);
}

.site-plans .billing-plan-amount {
    font-size: var(--wt-digits-2);
    line-height: var(--wt-digits-2-lh);
    font-weight: var(--wt-w-light);
}

.site-plans .billing-plan-per { color: var(--wt-fg-muted); }

.site-plans .billing-plan-note {
    margin-top: 6px;
    font-size: var(--wt-text-3);
    line-height: var(--wt-text-3-lh);
    color: var(--wt-fg-muted);
}

.site-plans .plan-features {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 8px;
    margin-top: calc(var(--wt-rhythm) * 1.25);
    padding-top: calc(var(--wt-rhythm) * 1.25);
    border-top: 1px solid var(--wt-border-soft);
    list-style: none;
}

.site-plans .plan-features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--wt-fg-secondary);
}

.site-plans .plan-features li::before {
    content: "";
    flex: none;
    width: 16px;
    height: 24px;
    background: currentColor;
    color: var(--wt-positive);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 14px no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 14px no-repeat;
}

.site-plans .plan-features .feature-dim { color: var(--wt-fg-muted); }

.site-plans .plan-features .feature-dim::before {
    color: var(--wt-fg-muted);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'/%3E%3Cline x1='6' y1='6' x2='18' y2='18'/%3E%3C/svg%3E") center / 14px no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'/%3E%3Cline x1='6' y1='6' x2='18' y2='18'/%3E%3C/svg%3E") center / 14px no-repeat;
}

.site-plans .plan-choose {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: calc(var(--wt-rhythm) * 1.25);
    padding: 12px 24px;
    border: 1px solid var(--wt-border);
    border-radius: var(--wt-r-pill);
    background: transparent;
    color: var(--wt-fg);
    font: inherit;
    font-weight: var(--wt-w-head);
    cursor: pointer;
    transition: background-color var(--wt-dur) var(--wt-ease),
    color var(--wt-dur) var(--wt-ease),
    border-color var(--wt-dur) var(--wt-ease);
}

.site-plans .plan-choose:hover { border-color: var(--wt-fg); }

.site-plans .share-btn-primary {
    background: var(--wt-brand);
    border-color: transparent;
    color: var(--wt-on-brand);
}

.site-plans .share-btn-primary:hover {
    background: var(--wt-brand-hover);
    border-color: transparent;
}

.site-plans .plan-current {
    margin-top: calc(var(--wt-rhythm) * 1.25);
    text-align: center;
    font-size: var(--wt-text-3);
    line-height: var(--wt-text-3-lh);
    color: var(--wt-fg-muted);
}

.site-plans .billing-plan-name .feature-tag {
    margin-left: 8px;
    padding: 2px 10px;
    border-radius: var(--wt-r-pill);
    background: var(--wt-brand-tint);
    color: var(--tag-color, var(--wt-accent));
    font-size: 12px;
    line-height: 16px;
    vertical-align: middle;
}

.site-plans .plan-more {
    display: block;
    margin: var(--wt-rhythm) auto 0;
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    font-size: var(--wt-text-3);
    color: var(--wt-fg-muted);
    cursor: pointer;
}

.site-plans .plan-more:hover { color: var(--wt-fg); }

.site-plans .plan-pending { margin-top: 8px; }

.site-plans .plan-diff {
    margin-top: var(--wt-rhythm);
    padding-top: var(--wt-rhythm);
    border-top: 1px solid var(--wt-border-soft);
}

.site-plans .plan-resume { margin-top: calc(var(--wt-rhythm) * 1.5); }

/* Leaving opens over the page it interrupts: the plan blurs behind, what ends is named, and only then the button. */
.plan-modal {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: flex;
    overflow-y: auto;
    padding: var(--wt-rhythm);
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.plan-modal[hidden] { display: none; }

.plan-modal { animation: site-fade 160ms var(--wt-ease); }

.plan-modal-box { animation: site-rise 220ms var(--wt-ease); }

@keyframes site-fade {
    from { opacity: 0; }
}

.plan-modal-box {
    position: relative;
    outline: none;
    width: 100%;
    max-width: 620px;
    margin: auto;
    padding: calc(var(--wt-rhythm) * 2);
    border: 1px solid var(--wt-border);
    border-radius: var(--wt-r-lg);
    background: var(--wt-bg-raised);
    text-align: left;
}

.plan-modal-close {
    position: absolute;
    top: var(--wt-rhythm);
    right: var(--wt-rhythm);
    display: inline-flex;
    padding: 6px;
    border: 0;
    border-radius: var(--wt-r-pill);
    background: none;
    color: var(--wt-fg-muted);
    cursor: pointer;
}

.plan-modal-close:hover { color: var(--wt-fg); }

.plan-modal-box h2 {
    padding-right: 32px;
    font-size: var(--wt-h3);
    line-height: var(--wt-h3-lh);
}

.plan-modal-box .lede {
    margin-top: 8px;
    color: var(--wt-fg-muted);
}

.plan-why {
    margin-top: calc(var(--wt-rhythm) * 1.5);
    padding: 0;
    border: 0;
}

.plan-why legend {
    padding: 0;
    font-size: var(--wt-text-3);
    line-height: var(--wt-text-3-lh);
    font-weight: var(--wt-w-head);
    color: var(--wt-fg-muted);
}

.plan-reasons {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 24px;
    margin-top: var(--wt-rhythm);
}


.plan-reasons .site-check {
    align-items: center;
    color: var(--wt-fg-secondary);
    cursor: pointer;
}

.plan-comment {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: calc(var(--wt-rhythm) * 1.5);
}

.plan-comment span {
    font-size: var(--wt-text-3);
    line-height: var(--wt-text-3-lh);
    font-weight: var(--wt-w-head);
    color: var(--wt-fg-muted);
}

.plan-modal-box textarea.site-input {
    height: auto;
    padding: 12px 18px;
    border-radius: var(--wt-r-lg);
    resize: vertical;
}

.plan-modal-box .site-note { margin-top: var(--wt-rhythm); }

.plan-modal-box .site-field .site-note { margin-top: 0; }

.plan-modal-box.site-form > .wt-btn { margin-top: 8px; }

.plan-cancel-actions {
    display: flex;
    gap: 12px;
    margin-top: calc(var(--wt-rhythm) * 1.5);
}

.plan-cancel-actions .wt-btn { flex: 1; }

.wt-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

@media (max-width: 640px) {
    .plan-reasons { grid-template-columns: 1fr; }
    .plan-cancel-actions { flex-direction: column; }
}

@media (max-width: 1000px) {
    .site-plans .plan-tiles {
        grid-template-columns: 1fr;
        gap: calc(var(--wt-rhythm) * 1.5);
        max-width: 520px;
    }

    .site-plans .plan-tiles > [data-plan="PRO"] { order: -1; }
}

@media (min-width: 1001px) {
    .site-plans [data-plan="PRO"] { margin-block: -16px; }
}

/* Checkout: the summary is one pricing card, the Stripe form sits in a raised card beside it. */
.site-plans .checkout-layout {
    display: grid;
    grid-template-columns: 380px minmax(0, 1fr);
    gap: var(--wt-rhythm);
    align-items: start;
    text-align: left;
}

.site-plans .checkout-summary { padding: var(--wt-rhythm); }

.site-plans .checkout-summary .billing-plan-price { margin-top: 16px; }

.site-plans .checkout-was:not([hidden]) {
    display: block;
    margin-top: 16px;
    font-size: var(--wt-text-2);
    line-height: var(--wt-text-2-lh);
}

.site-plans .checkout-was + .billing-plan-price { margin-top: 0; }

.site-plans .checkout-summary .plan-features {
    flex: 0 0 auto;
    margin-top: 20px;
    padding-top: 20px;
}

.site-plans .checkout-summary > a {
    margin-top: 20px;
    font-size: var(--wt-text-3);
    color: var(--wt-fg-muted);
}

.site-plans .checkout-summary > a:hover { color: var(--wt-fg); }

.checkout-side {
    display: grid;
    gap: var(--wt-rhythm);
}

.site-plans .checkout-nudge { padding: var(--wt-rhythm); }

.site-plans .checkout-nudge .plan-features {
    flex: 0 0 auto;
    margin-top: 16px;
    padding-top: 16px;
}

.site-plans .checkout-nudge .plan-choose { margin-top: 20px; }

.checkout-mount {
    min-height: 480px;
    padding: var(--wt-rhythm);
    border: 1px solid var(--wt-border);
    border-radius: var(--wt-r-lg);
    background: var(--wt-bg-raised);
}

.checkout-note {
    margin-bottom: 12px;
    font-size: var(--wt-text-3);
    line-height: var(--wt-text-3-lh);
    color: var(--wt-negative);
}

@media (max-width: 1000px) {
    .site-plans .checkout-layout { grid-template-columns: 1fr; }
}
