@font-face {
    font-family: "Degular Display";
    src: url("fonts/Degular-Bold.otf") format("opentype");
    font-weight: 700 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Degular";
    src: url("fonts/Degular-Bold.otf") format("opentype");
    font-weight: 700 900;
    font-style: normal;
    font-display: swap;
}

:root {
    --tribbu-pink: #ffd1ef;
    --background: #fcfbfd;
    --ink: #130807;
    --muted-ink: rgba(19, 8, 7, 0.72);
    --border: rgba(19, 8, 7, 0.2);
    --font-display: "Degular Display", "Degular", "Sora", system-ui, sans-serif;
    --font-body: "DM Sans", system-ui, sans-serif;
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
    margin: 0;
}

body {
    background: var(--background);
    color: var(--ink);
    font-family: var(--font-body);
}

.tribbu-page {
    min-height: 100vh;
    overflow-x: hidden;
}

.tribbu-header {
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 1px solid rgba(19, 8, 7, 0.1);
    background: linear-gradient(90deg, var(--tribbu-pink) 0%, #fff0fa 50%, var(--tribbu-pink) 100%);
    background-size: 200% 200%;
    backdrop-filter: blur(12px);
    animation: tribbu-gradient-shift 8s ease infinite;
}

.tribbu-header-inner {
    display: flex;
    width: min(100%, 910px);
    min-height: 42px;
    margin: 0 auto;
    align-items: center;
    justify-content: space-between;
    padding: 6px 20px;
}

.tribbu-brand {
    display: flex;
    align-items: center;
    gap: 22px;
}

.tribbu-header-logo {
    display: block;
    width: auto;
    object-fit: contain;
}

.tribbu-header-logo-next {
    height: 28px;
}

.tribbu-header-logo-tribbu {
    height: 27px;
    filter: brightness(0) saturate(100%);
}

.tribbu-brand-separator {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 800;
    line-height: 1;
}

.tribbu-header-cta {
    display: inline-flex;
    min-width: 112px;
    min-height: 30px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--ink);
    color: #fff;
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
    text-decoration: none;
    text-transform: uppercase;
    transition: opacity 150ms ease, transform 150ms ease;
}

.tribbu-header-cta:hover,
.tribbu-header-cta:focus {
    color: #fff;
    opacity: 0.92;
    text-decoration: none;
    transform: translateY(-1px);
}

.tribbu-form-section {
    background: var(--tribbu-pink);
    padding: 24px 20px 52px;
}

.tribbu-form-wrap {
    width: min(100%, 576px);
    margin: 0 auto;
}

.tribbu-kicker {
    margin: 0;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 1.5px;
    line-height: 1.2;
    text-transform: uppercase;
}

.tribbu-form-wrap h1 {
    margin: 16px 0 0;
    font-family: var(--font-display);
    font-size: clamp(32px, 4.5vw, 48px);
    font-weight: 900;
    letter-spacing: 0;
    line-height: 0.98;
    text-transform: uppercase;
}

.tribbu-form-wrap h1 em {
    font-style: italic;
}

.tribbu-subtitle {
    margin: 14px 0 0;
    color: var(--muted-ink);
    font-size: 16px;
    font-weight: 700;
}

.tribbu-alert {
    margin-top: 22px;
    border: 2px solid rgba(19, 8, 7, 0.22);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.62);
    padding: 14px 16px;
    color: var(--ink);
    font-size: 14px;
    font-weight: 700;
}

.tribbu-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 32px;
}

.tribbu-field {
    display: block;
    min-width: 0;
}

.tribbu-field-full,
.tribbu-submit {
    grid-column: 1 / -1;
}

.tribbu-field span {
    display: block;
    margin-bottom: 8px;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}

.tribbu-field input,
.tribbu-field select {
    width: 100%;
    max-width: none;
    height: 44px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: #fff;
    color: var(--ink);
    font: 500 13px var(--font-body);
    outline: none;
    padding: 0 16px;
    transition: border-color 150ms ease, box-shadow 150ms ease;
}

.tribbu-field input::placeholder {
    color: rgba(19, 8, 7, 0.38);
}

.tribbu-field input:focus,
.tribbu-field select:focus,
.tribbu-card-frame:focus-within {
    border-color: var(--ink);
    box-shadow: 0 0 0 3px rgba(19, 8, 7, 0.08);
}

.tribbu-field select {
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
    background-position: calc(100% - 18px) 18px, calc(100% - 12px) 18px;
    background-repeat: no-repeat;
    background-size: 6px 6px, 6px 6px;
}

.tribbu-submit {
    min-height: 52px;
    margin-top: 4px;
    border: 0;
    border-radius: 999px;
    background: var(--ink);
    color: #fff;
    cursor: pointer;
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
    transition: opacity 150ms ease, transform 150ms ease;
}

.tribbu-submit:hover {
    opacity: 0.92;
    transform: translateY(-1px);
}

.tribbu-payment-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 32px;
}

.tribbu-card-frame {
    width: 100%;
    height: 44px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: #fff;
    transition: border-color 150ms ease, box-shadow 150ms ease;
}

.tribbu-payment-form input[paycomet-name] {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.tribbu-payment-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.tribbu-payment-error {
    grid-column: 1 / -1;
    color: #8a1414;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.35;
}

.tribbu-result-section {
    display: flex;
    min-height: calc(100vh - 43px);
    align-items: center;
}

.tribbu-result-reference {
    margin: 24px 0 0;
    color: var(--muted-ink);
    font-size: 14px;
    font-weight: 800;
}

.tribbu-result-link {
    display: inline-flex;
    width: 100%;
    margin-top: 28px;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.tribbu-secure {
    margin: 16px 0 0;
    color: rgba(19, 8, 7, 0.66);
    font-size: 11px;
    line-height: 1.45;
}

.tribbu-footer {
    padding: 50px 20px 20px;
    color: rgba(19, 8, 7, 0.75);
    font-size: 12px;
    line-height: 1.45;
}

.tribbu-footer-grid {
    display: grid;
    width: min(100%, 864px);
    margin: 0 auto;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 52px;
}

.tribbu-logo {
    display: block;
    width: 92px;
    height: auto;
}

.tribbu-footer p {
    margin: 16px 0 0;
}

.tribbu-footer h2 {
    margin: 0;
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 1.4px;
    line-height: 1.2;
    text-transform: uppercase;
}

.tribbu-footer a {
    color: var(--ink);
    font-weight: 900;
    text-decoration: underline;
}

.tribbu-footer-bottom {
    display: flex;
    width: min(100%, 864px);
    margin: 48px auto 0;
    border-top: 1px solid rgba(19, 8, 7, 0.12);
    padding-top: 20px;
    justify-content: space-between;
    gap: 24px;
}

@keyframes tribbu-gradient-shift {
    0%, 100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

@media (max-width: 700px) {
    .tribbu-header-inner {
        min-height: 48px;
        padding: 8px 18px;
    }

    .tribbu-brand {
        gap: 14px;
    }

    .tribbu-header-logo-next {
        height: 25px;
    }

    .tribbu-header-logo-tribbu {
        height: 24px;
    }

    .tribbu-brand-separator {
        font-size: 16px;
    }

    .tribbu-header-cta {
        min-width: 94px;
        min-height: 28px;
        font-size: 10px;
    }

    .tribbu-form-section {
        padding: 38px 18px 58px;
    }

    .tribbu-form {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .tribbu-field input,
    .tribbu-field select,
    .tribbu-card-frame {
        height: 52px;
        border-radius: 20px;
        font-size: 14px;
        padding: 0 18px;
    }

    .tribbu-payment-form {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .tribbu-submit {
        min-height: 56px;
        margin-top: 6px;
    }

    .tribbu-secure {
        margin-top: 18px;
        font-size: 13px;
    }

    .tribbu-footer {
        padding: 58px 18px 24px;
        font-size: 13px;
    }

    .tribbu-footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .tribbu-footer-bottom {
        display: block;
        margin-top: 42px;
    }

    .tribbu-footer-bottom span {
        display: block;
        margin-top: 18px;
    }
}
