/* Marketing-only: the app imports site.css, but never this stylesheet. */
:root {
    --button-radius: 12px;
    --button-shadow: 0 2px 3px rgb(23 21 31 / 12%), inset 0 1px 0 rgb(255 255 255 / 14%);
    --button-pressed-shadow: inset 0 1px 3px rgb(23 21 31 / 12%);
    --button-primary: #c026d3;
    --button-primary-hover: #a21caf;
    --button-primary-border: #b11fc2;
}

:root[data-theme="dark"] {
    --button-shadow: 0 2px 3px rgb(0 0 0 / 35%), inset 0 1px 0 rgb(255 255 255 / 14%);
    --button-pressed-shadow: inset 0 1px 3px rgb(0 0 0 / 35%);
}

.button,
.header-signup.button.primary,
.consent-button,
.header-login,
.header-mobile-login,
.header-toggle,
.billing-toggle button,
.theme-option {
    min-height: 44px;
    gap: 8px;
    padding: 9px 16px;
    border: 1px solid var(--line-strong);
    border-radius: var(--button-radius);
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
    text-align: center;
    text-decoration: none;
    transition: background 150ms ease, border-color 150ms ease, transform 120ms ease, box-shadow 150ms ease;
}

.button,
.consent-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.button {
    min-height: 48px;
    padding-inline: 20px;
}

.button,
.header-signup.button.primary,
.consent-button,
.consent-button.preferences,
.header-toggle {
    background: var(--surface);
    color: var(--text);
    box-shadow: var(--button-shadow);
}

.header-login,
.header-mobile-login,
.consent-button.reject,
.billing-toggle button,
.theme-option {
    border-color: transparent;
    background: transparent;
    color: var(--text-soft);
    box-shadow: none;
}

.header-login,
.header-mobile-login {
    padding-inline: 8px;
}

.header-mobile-login {
    justify-content: flex-start;
}

.header-toggle,
.theme-option {
    width: 44px;
    height: 44px;
    padding: 0;
}

.button svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.consent-button {
    padding-inline: 10px;
    font-size: 13px;
}

.billing-toggle,
.theme-control {
    gap: 4px;
    padding: 4px;
    border-radius: calc(var(--button-radius) + 4px);
    background: var(--bg-soft);
}

.plan-table thead th .button {
    min-height: 44px;
    padding-inline: 16px;
}

.button:is(:hover, :focus-visible),
.header-signup.button:is(:hover, :focus-visible),
.consent-button.preferences:is(:hover, :focus-visible),
.header-toggle:is(:hover, :focus-visible),
.header-login:is(:hover, :focus-visible),
.header-mobile-login:is(:hover, :focus-visible),
.consent-button.reject:is(:hover, :focus-visible),
.billing-toggle button:is(:hover, :focus-visible),
.theme-option:is(:hover, :focus-visible) {
    background: var(--bg-soft);
    color: var(--text);
    transform: none;
    text-decoration: none;
}

.button:is(:hover, :focus-visible) {
    border-color: var(--line-strong);
}

.button.primary,
.header-signup.button.primary,
:root[data-theme="dark"] .button.primary,
.consent-button.primary {
    border-color: var(--button-primary-border);
    background: var(--button-primary);
    color: #ffffff;
    font-weight: 500;
    box-shadow: var(--button-shadow);
}

.button.primary:is(:hover, :focus-visible),
.header-signup.button.primary:is(:hover, :focus-visible),
:root[data-theme="dark"] .button.primary:is(:hover, :focus-visible),
.consent-button.primary:is(:hover, :focus-visible) {
    border-color: var(--button-primary-hover);
    background: var(--button-primary-hover);
    color: #ffffff;
}

.billing-toggle button[aria-pressed="true"],
.theme-option[aria-pressed="true"] {
    background: var(--accent-soft);
    color: var(--accent-text);
    box-shadow: none;
}

:is(.button, .consent-button, .header-login, .header-mobile-login, .header-toggle, .billing-toggle button, .theme-option):focus-visible {
    outline: 3px solid var(--accent-text);
    outline-offset: 3px;
}

.button:active,
.header-signup.button.primary:active,
:root[data-theme="dark"] .button.primary:active,
.consent-button:not(.reject):active,
.header-toggle:active {
    transform: translateY(1px);
    box-shadow: var(--button-pressed-shadow);
}

.header-login:active,
.header-mobile-login:active,
.consent-button.reject:active,
.billing-toggle button:active,
.theme-option:active {
    transform: translateY(1px);
}

:is(.button, .consent-button, .header-toggle, .billing-toggle button, .theme-option):disabled {
    opacity: 0.42;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

@media (max-width: 420px) {
    .header-signup.button.primary {
        gap: 6px;
        padding-inline: 10px;
        font-size: 13px;
    }
}

@media (max-width: 380px) {
    .header-signup.button.primary {
        padding-inline: 8px;
        font-size: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    :is(.button, .header-signup.button.primary, .consent-button, .header-login, .header-mobile-login, .header-toggle, .billing-toggle button, .theme-option) {
        transition: none;
    }
}
