/* bestlink - shared design tokens and reset */

:root {
    --ink: #16151a;
    --ink-soft: #4f4c58;
    --ink-mute: #8b8794;
    --paper: #fffdf8;
    --paper-2: #f5f1e8;
    --paper-3: #ece6d9;
    --line: #e6dfd1;
    --white: #ffffff;

    --violet: #5b4df5;
    --violet-soft: #ece9ff;
    --lime: #d3ff3e;
    --pink: #ff6bb0;
    --pink-soft: #ffe3f0;
    --peach: #ffb27a;
    --sky: #7ad7ff;
    --mint: #6ee7c8;

    --radius-s: 12px;
    --radius-m: 18px;
    --radius-l: 26px;
    --radius-xl: 36px;
    --radius-pill: 999px;

    --shadow-s: 0 2px 8px rgba(22, 21, 26, .06);
    --shadow-m: 0 10px 30px rgba(22, 21, 26, .10);
    --shadow-l: 0 26px 60px rgba(22, 21, 26, .16);
    --border-hard: 2px solid var(--ink);

    --font: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
    --ease: cubic-bezier(.22, 1, .36, 1);
}

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

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font);
    color: var(--ink);
    background: var(--paper);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4 {
    margin: 0;
    font-weight: 800;
    letter-spacing: -.035em;
    line-height: 1.04;
}

p {
    margin: 0;
}

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

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

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

button {
    cursor: pointer;
    border: 0;
    background: none;
}

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

:focus-visible {
    outline: 3px solid var(--violet);
    outline-offset: 3px;
}

.container {
    width: min(1180px, 100% - 40px);
    margin-inline: auto;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 50px;
    padding: 0 24px;
    border-radius: var(--radius-pill);
    font-weight: 700;
    letter-spacing: -.01em;
    white-space: nowrap;
    transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s var(--ease);
}

.btn:hover {
    transform: translateY(-2px);
}

.btn:active {
    transform: translateY(0);
}

.btn--ink {
    background: var(--ink);
    color: var(--paper);
    box-shadow: var(--shadow-m);
}

.btn--violet {
    background: var(--violet);
    color: var(--white);
    box-shadow: 0 10px 24px rgba(91, 77, 245, .32);
}

.btn--lime {
    background: var(--lime);
    color: var(--ink);
    box-shadow: 0 10px 24px rgba(150, 190, 20, .28);
}

.btn--ghost {
    background: transparent;
    color: var(--ink);
    border: 2px solid var(--ink);
}

.btn--sm {
    height: 42px;
    padding: 0 18px;
    font-size: 14px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 34px;
    padding: 0 14px;
    border-radius: var(--radius-pill);
    background: var(--white);
    border: 1px solid var(--line);
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-soft);
    box-shadow: var(--shadow-s);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.toast {
    position: fixed;
    left: 50%;
    bottom: 28px;
    transform: translate(-50%, 20px);
    padding: 12px 20px;
    border-radius: var(--radius-pill);
    background: var(--ink);
    color: var(--paper);
    font-size: 14px;
    font-weight: 600;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s var(--ease), transform .25s var(--ease);
    z-index: 90;
}

.toast.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

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

    *,
    *::before,
    *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
        scroll-behavior: auto !important;
    }
}
