/*
 * FRAME
 * Neutralny system komponentów stron AI Biznes Lab
 */

:root {
    --frame-canvas: oklch(98.2% 0.006 295);
    --frame-ink: oklch(14% 0.014 295);
    --frame-violet: oklch(63% 0.245 295);
    --frame-error: oklch(47% 0.19 28);
    --frame-success: oklch(45% 0.12 148);
    --frame-font: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --frame-shell: 92rem;
    --frame-gutter: clamp(1rem, 3.2vw, 3rem);
    --frame-section-space: clamp(4.75rem, 9vw, 8.5rem);
    --frame-ease: cubic-bezier(0.16, 1, 0.3, 1);

    /* Tymczasowa zgodność dla stron jeszcze używających prefiksu aifc-. */
    --aifc-canvas: var(--frame-canvas);
    --aifc-ink: var(--frame-ink);
    --aifc-violet: var(--frame-violet);
    --aifc-error: var(--frame-error);
    --aifc-success: var(--frame-success);
    --aifc-font: var(--frame-font);
    --aifc-shell: var(--frame-shell);
    --aifc-gutter: var(--frame-gutter);
    --aifc-section-space: var(--frame-section-space);
    --aifc-ease: var(--frame-ease);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 5rem;
}

body:is(.frame-page, .aifc-page) {
    margin: 0;
    min-width: 20rem;
    overflow-x: hidden;
    background: var(--frame-canvas);
    color: var(--frame-ink);
    font-family: var(--frame-font);
    font-size: 1rem;
    line-height: 1.5;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

:is(.frame-page, .aifc-page) button,
:is(.frame-page, .aifc-page) input {
    font: inherit;
}

:is(.frame-page, .aifc-page) a {
    color: inherit;
}

:is(.frame-page, .aifc-page) ::selection {
    background: var(--frame-violet);
    color: var(--frame-ink);
}

:is(.frame-shell, .aifc-shell) {
    width: min(100%, var(--frame-shell));
    margin-inline: auto;
    padding-inline: var(--frame-gutter);
}

:is(.frame-frame, .aifc-frame) {
    border-inline: 1px solid var(--frame-ink);
}

:is(.frame-skip, .aifc-skip) {
    position: fixed;
    inset: 0 auto auto 1rem;
    z-index: 100;
    padding: 0.75rem 1rem;
    background: var(--frame-ink);
    color: var(--frame-canvas) !important;
    transform: translateY(-120%);
    transition: transform 180ms var(--frame-ease);
}

:is(.frame-skip, .aifc-skip):focus {
    transform: translateY(0.75rem);
}

:is(.frame-page, .aifc-page) :focus-visible {
    outline: 3px solid var(--frame-violet);
    outline-offset: 4px;
}

:is(.frame-display, .aifc-display) {
    margin: 0;
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 0.87;
    text-transform: uppercase;
    text-wrap: balance;
}

:is(.frame-header, .aifc-header) {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid var(--frame-ink);
    background: var(--frame-canvas);
}

:is(.frame-nav-shell, .aifc-nav-shell) {
    position: relative;
    display: flex;
    min-height: 5.75rem;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

:is(.frame-wordmark, .aifc-wordmark),
:is(.frame-footer-wordmark, .aifc-footer-wordmark) {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    width: max-content;
    color: inherit;
    text-decoration: none;
}

:is(.frame-wordmark, .aifc-wordmark) {
    flex: 0 0 auto;
    font-size: clamp(1.02rem, 1.45vw, 1.3rem);
}

:is(.frame-wordmark-copy, .aifc-wordmark-copy) {
    display: inline-flex;
    flex-direction: column;
    line-height: 0.86;
    letter-spacing: -0.035em;
    text-transform: uppercase;
}

:is(.frame-wordmark-copy, .aifc-wordmark-copy) > span {
    font-size: 0.82em;
    font-weight: 500;
}

:is(.frame-wordmark-copy, .aifc-wordmark-copy) strong {
    font-weight: 750;
}

:is(.frame-brand-node, .aifc-brand-node) {
    width: 0.95rem;
    height: 0.95rem;
    flex: 0 0 auto;
    background: var(--frame-violet);
}

:is(.frame-header-actions, .aifc-header-actions) {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

:is(.frame-language-switch, .aifc-language-switch) {
    display: inline-flex;
    border: 1px solid var(--frame-ink);
}

:is(.frame-language-switch, .aifc-language-switch) button {
    width: 2.35rem;
    min-height: 2.5rem;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--frame-ink);
    cursor: pointer;
    font-size: 0.72rem;
    font-weight: 700;
}

:is(.frame-language-switch, .aifc-language-switch) button + button {
    border-left: 1px solid var(--frame-ink);
}

:is(.frame-language-switch, .aifc-language-switch) button[aria-pressed='true'] {
    background: var(--frame-violet);
}

:is(.frame-nav, .aifc-nav) {
    position: absolute;
    inset: 100% 0 auto 0;
    display: none;
    border-inline: 1px solid var(--frame-ink);
    border-bottom: 1px solid var(--frame-ink);
    background: var(--frame-canvas);
}

:is(.frame-nav, .aifc-nav).is-open {
    display: grid;
}

:is(.frame-nav, .aifc-nav) a {
    min-height: 3.25rem;
    display: flex;
    align-items: center;
    padding-inline: 1rem;
    border-bottom: 1px solid var(--frame-ink);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
}

:is(.frame-nav, .aifc-nav) a:last-child {
    border-bottom: 0;
}

:is(.frame-nav-cta, .aifc-nav-cta) {
    display: none;
}

:is(.frame-menu-toggle, .aifc-menu-toggle) {
    min-width: 4.5rem;
    min-height: 2.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--frame-ink);
    cursor: pointer;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
}

:is(.frame-menu-toggle, .aifc-menu-toggle) i {
    position: relative;
    width: 0.75rem;
    height: 0.75rem;
    border: 1px solid currentColor;
    background: var(--frame-violet);
}

:is(.frame-menu-toggle, .aifc-menu-toggle)[aria-expanded='true'] i {
    background: var(--frame-ink);
}

:is(.frame-hero, .aifc-hero) {
    border-bottom: 1px solid var(--frame-ink);
}

:is(.frame-hero-frame, .aifc-hero-frame) {
    display: grid;
    padding-inline: 0;
}

:is(.frame-hero-main, .aifc-hero-main) {
    padding: clamp(3.5rem, 8vw, 7rem) var(--frame-gutter);
}

:is(.frame-edition, .aifc-edition) {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem;
    margin: 0 0 1.5rem;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

:is(.frame-edition-node, .aifc-edition-node) {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

:is(.frame-edition-node, .aifc-edition-node)::before {
    display: inline-block;
    width: 0.65rem;
    height: 0.65rem;
    background: var(--frame-violet);
    content: '';
}

:is(.frame-edition-node, .aifc-edition-node)::after {
    color: color-mix(in oklch, var(--frame-ink) 45%, transparent);
    content: '/';
}

:is(.frame-hero-title, .aifc-hero-title) {
    max-width: 12.5ch;
    font-size: clamp(2.65rem, 8vw, 6rem);
}

:is(.frame-hero-title, .aifc-hero-title) span {
    display: block;
    white-space: nowrap;
}

:is(.frame-tagline, .aifc-tagline) {
    max-width: none;
    margin: 1.75rem 0 0;
    font-size: clamp(1.25rem, 4vw, 1.85rem);
    line-height: 1.12;
    text-wrap: pretty;
}

:is(.frame-actions, .aifc-actions) {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 1.5rem;
    margin-top: 2.25rem;
}

:is(.frame-button, .aifc-button) {
    min-height: 3.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 0.85rem 1rem;
    border: 1px solid var(--frame-ink);
    border-radius: 0;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 180ms var(--frame-ease), color 180ms var(--frame-ease), transform 180ms var(--frame-ease);
}

:is(.frame-button-primary, .aifc-button-primary) {
    background: var(--frame-violet);
    color: var(--frame-ink);
}

:is(.frame-button-ink, .aifc-button-ink) {
    background: var(--frame-ink);
    color: var(--frame-canvas);
}

:is(.frame-button, .aifc-button):active {
    transform: translateY(1px);
}

:is(.frame-text-link, .aifc-text-link) {
    min-height: 2.75rem;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 600;
    text-underline-offset: 0.25rem;
}

:is(.frame-system-meta, .aifc-system-meta) {
    border-top: 1px solid var(--frame-ink);
}

:is(.frame-system-meta, .aifc-system-meta) p {
    min-height: 4.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin: 0;
    padding: 1rem var(--frame-gutter);
    border-bottom: 1px solid var(--frame-ink);
    font-size: 0.84rem;
    font-weight: 600;
    text-transform: uppercase;
}

:is(.frame-system-meta, .aifc-system-meta) p:last-child {
    border-bottom: 0;
}

:is(.frame-system-meta, .aifc-system-meta) i {
    width: 0.9rem;
    height: 0.9rem;
    flex: 0 0 auto;
    border: 1px solid var(--frame-ink);
    background: var(--frame-violet);
}

:is(.frame-event-facts, .aifc-event-facts) {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0;
    border-top: 1px solid var(--frame-ink);
}

:is(.frame-event-facts, .aifc-event-facts) > div {
    min-width: 0;
    padding: 1rem var(--frame-gutter);
    border-bottom: 1px solid var(--frame-ink);
}

:is(.frame-event-facts, .aifc-event-facts) > div:nth-child(odd) {
    border-right: 1px solid var(--frame-ink);
}

:is(.frame-event-facts, .aifc-event-facts) dt,
:is(.frame-join-facts, .aifc-join-facts) dt {
    margin-bottom: 0.3rem;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
}

:is(.frame-event-facts, .aifc-event-facts) dd,
:is(.frame-join-facts, .aifc-join-facts) dd {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
}

:is(.frame-section, .aifc-section) {
    border-bottom: 1px solid var(--frame-ink);
}

:is(.frame-section, .aifc-section) > :is(.frame-frame, .aifc-frame) {
    padding-block: var(--frame-section-space);
}

:is(.frame-section-heading, .aifc-section-heading),
:is(.frame-community-intro, .aifc-community-intro) {
    display: grid;
    gap: 1rem;
    padding-inline: var(--frame-gutter);
}

:is(.frame-section-title, .aifc-section-title) {
    margin: 0;
    max-width: 12ch;
    font-size: clamp(2.7rem, 8vw, 5.5rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 0.92;
    text-wrap: balance;
}

:is(.frame-section-heading, .aifc-section-heading) > p,
:is(.frame-community-intro, .aifc-community-intro) > p {
    max-width: 36rem;
    margin: 0;
    font-size: clamp(1.05rem, 2vw, 1.3rem);
    line-height: 1.35;
    text-wrap: pretty;
}

:is(.frame-timeline, .aifc-timeline) {
    position: relative;
    display: grid;
    gap: 0;
    margin: 3rem 0 0;
    padding: 0 var(--frame-gutter);
    list-style: none;
}

:is(.frame-timeline, .aifc-timeline)::before {
    position: absolute;
    inset: 0 auto 0 calc(var(--frame-gutter) + 0.45rem);
    width: 1px;
    background: var(--frame-ink);
    content: '';
}

:is(.frame-timeline-item, .aifc-timeline-item) {
    position: relative;
    display: grid;
    grid-template-columns: 5.8rem 1fr;
    gap: 0 1.25rem;
    padding: 0 0 2.5rem 2rem;
}

:is(.frame-timeline-item, .aifc-timeline-item):last-child {
    padding-bottom: 0;
}

:is(.frame-time, .aifc-time) {
    grid-row: span 2;
    font-size: clamp(1.75rem, 6vw, 2.6rem);
    font-weight: 550;
    letter-spacing: -0.04em;
    line-height: 1;
}

:is(.frame-time, .aifc-time) i {
    position: absolute;
    top: 0.35rem;
    left: 0;
    width: 0.95rem;
    height: 0.95rem;
    border: 1px solid var(--frame-ink);
    border-radius: 50%;
    background: var(--frame-violet);
}

:is(.frame-timeline, .aifc-timeline) h3 {
    margin: 0;
    font-size: 0.92rem;
    text-transform: uppercase;
}

:is(.frame-timeline, .aifc-timeline) p {
    max-width: 32rem;
    margin: 0.55rem 0 0;
    line-height: 1.45;
    text-wrap: pretty;
}

:is(.frame-community, .aifc-community) {
    background-color: var(--frame-ink);
    color: var(--frame-canvas);
}

:is(.frame-community, .aifc-community) :is(.frame-frame, .aifc-frame) {
    border-color: var(--frame-canvas);
}

:is(.frame-community-intro, .aifc-community-intro) {
    padding-bottom: clamp(3rem, 6vw, 5rem);
}

:is(.frame-community-grid, .aifc-community-grid) {
    display: grid;
    gap: 1px;
    padding: 1px;
    background: var(--frame-canvas);
}

:is(.frame-role, .aifc-role) {
    min-width: 0;
    padding: clamp(1.5rem, 4vw, 2.75rem);
    background: var(--frame-ink);
}

:is(.frame-role, .aifc-role) h3 {
    margin: 0;
    font-size: clamp(1.75rem, 4vw, 3.25rem);
    font-weight: 500;
    letter-spacing: -0.035em;
    line-height: 0.95;
    text-transform: uppercase;
    text-wrap: balance;
}

:is(.frame-role-operators, .aifc-role-operators) h3 {
    font-size: clamp(1.7rem, 4vw, 2.85rem);
}

:is(.frame-role, .aifc-role) p {
    max-width: 27rem;
    margin: 1.25rem 0 0;
    color: var(--frame-canvas);
    line-height: 1.45;
    text-wrap: pretty;
}

:is(.frame-community-core, .aifc-community-core) {
    display: flex;
    min-height: 8rem;
    align-items: center;
    justify-content: center;
    gap: 0.9rem;
    background: var(--frame-violet);
    color: var(--frame-ink);
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.05;
    text-transform: uppercase;
}

:is(.frame-community-core, .aifc-community-core) i {
    width: 1rem;
    height: 1rem;
    border: 1px solid var(--frame-ink);
    background: var(--frame-canvas);
}

:is(.frame-community-core, .aifc-community-core) span {
    display: grid;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.08em;
}

:is(.frame-community-core, .aifc-community-core) b {
    font-size: 0.72em;
    letter-spacing: 0.03em;
}

:is(.frame-operator-id, .aifc-operator-id) {
    display: grid;
    margin-top: clamp(2.5rem, 5vw, 4.5rem);
    border: 1px solid var(--frame-canvas);
    color: var(--frame-canvas);
}

:is(.frame-operator-code, .aifc-operator-code) {
    display: flex;
    min-height: 11rem;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    padding: clamp(1.25rem, 4vw, 2.5rem);
    background: var(--frame-violet);
    color: var(--frame-ink);
    line-height: 0.8;
}

:is(.frame-operator-code, .aifc-operator-code) span,
:is(.frame-operator-code, .aifc-operator-code) strong {
    font-size: clamp(2.3rem, 12vw, 5.5rem);
    font-weight: 750;
    letter-spacing: -0.065em;
}

:is(.frame-operator-copy, .aifc-operator-copy) {
    padding: clamp(1.5rem, 4vw, 3rem);
}

:is(.frame-operator-edition, .aifc-operator-edition) {
    margin: 0 0 2.5rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

:is(.frame-operator-copy, .aifc-operator-copy) h3 {
    max-width: 14ch;
    margin: 0;
    font-size: clamp(2rem, 7vw, 4rem);
    font-weight: 500;
    letter-spacing: -0.05em;
    line-height: 0.95;
}

:is(.frame-operator-meta, .aifc-operator-meta) {
    display: grid;
    grid-template-columns: repeat(3, auto) 1fr;
    align-items: center;
    gap: 1rem;
    padding: 0.9rem 1.25rem;
    border-top: 1px solid var(--frame-canvas);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

:is(.frame-operator-meta, .aifc-operator-meta) i {
    width: 0.8rem;
    height: 0.8rem;
    justify-self: end;
    background: var(--frame-violet);
}

:is(.frame-join, .aifc-join) {
    background: var(--frame-violet);
}

:is(.frame-join-layout, .aifc-join-layout) {
    display: grid;
    gap: clamp(3rem, 7vw, 6rem);
    padding-block: var(--frame-section-space);
}

:is(.frame-join-title, .aifc-join-title) {
    max-width: 8ch;
    font-size: clamp(3.3rem, 10vw, 6rem);
}

:is(.frame-join-lead, .aifc-join-lead) {
    max-width: 31ch;
    margin: 1.5rem 0 0;
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    line-height: 1.2;
    text-wrap: pretty;
}

:is(.frame-join-facts, .aifc-join-facts) {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 2.5rem 0 0;
    border-top: 1px solid var(--frame-ink);
    border-left: 1px solid var(--frame-ink);
}

:is(.frame-join-facts, .aifc-join-facts) > div {
    padding: 1rem;
    border-right: 1px solid var(--frame-ink);
    border-bottom: 1px solid var(--frame-ink);
}

:is(.frame-form-card, .aifc-form-card) {
    align-self: start;
    padding: clamp(1.25rem, 3vw, 2.25rem);
    border: 1px solid var(--frame-ink);
    background: var(--frame-canvas);
    color: var(--frame-ink);
}

:is(.frame-form-stack, .aifc-form-stack) {
    display: grid;
    gap: 1.25rem;
}

:is(.frame-field-group, .aifc-field-group) {
    display: grid;
    gap: 0.45rem;
}

:is(.frame-field-group, .aifc-field-group) label {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.82rem;
    font-weight: 700;
}

:is(.frame-field-group, .aifc-field-group) label :is(.frame-field-state, .aifc-field-state) {
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
}

:is(.frame-field-group, .aifc-field-group) label :is(.frame-label-copy, .aifc-label-copy) {
    font-size: inherit;
    font-weight: inherit;
    text-transform: none;
}

:is(.frame-field-group, .aifc-field-group) input,
:is(.frame-field-group, .aifc-field-group) textarea {
    width: 100%;
    min-height: 3.5rem;
    padding: 0.85rem 1rem;
    border: 1px solid var(--frame-ink);
    border-radius: 0;
    background: var(--frame-canvas);
    color: var(--frame-ink);
    appearance: none;
}

:is(.frame-field-group, .aifc-field-group) textarea {
    min-height: 7rem;
    resize: vertical;
}

:is(.frame-field-group, .aifc-field-group) input::placeholder,
:is(.frame-field-group, .aifc-field-group) textarea::placeholder {
    color: var(--frame-ink);
    opacity: 0.65;
}

:is(.frame-field-group, .aifc-field-group) input:focus,
:is(.frame-field-group, .aifc-field-group) textarea:focus {
    border-color: var(--frame-violet);
}

:is(.frame-input-invalid, .aifc-input-invalid) {
    border-color: var(--frame-error) !important;
}

:is(.frame-form-error, .aifc-form-error) {
    display: none;
    margin: 0;
    color: var(--frame-error);
    font-size: 0.82rem;
    font-weight: 650;
}

:is(.frame-consent-group, .aifc-consent-group) label {
    display: grid;
    grid-template-columns: 1.5rem 1fr;
    gap: 0.75rem;
    align-items: start;
    font-size: 0.82rem;
    line-height: 1.45;
}

:is(.frame-consent-group, .aifc-consent-group) input {
    width: 1.35rem;
    height: 1.35rem;
    margin: 0.05rem 0 0;
    border: 1px solid var(--frame-ink);
    border-radius: 0;
    accent-color: var(--frame-violet);
}

:is(.frame-consent-group, .aifc-consent-group) a {
    text-underline-offset: 0.18rem;
}

:is(.frame-submit, .aifc-submit) {
    width: 100%;
}

:is(.frame-submit, .aifc-submit):disabled {
    cursor: wait;
    opacity: 0.7;
}

:is(.frame-privacy-note, .aifc-privacy-note) {
    margin: -0.5rem 0 0;
    font-size: 0.78rem;
}

:is(.frame-submit-status, .aifc-submit-status) {
    padding: 0.85rem 1rem;
    border: 1px solid var(--frame-error);
    color: var(--frame-error);
    font-size: 0.88rem;
}

:is(.frame-success-card, .aifc-success-card) {
    min-height: 22rem;
    display: grid;
    align-content: center;
}

:is(.frame-success-card, .aifc-success-card)[hidden] {
    display: none;
}

:is(.frame-success-node, .aifc-success-node) {
    width: 1.25rem;
    height: 1.25rem;
    margin-bottom: 1.5rem;
    background: var(--frame-violet);
}

:is(.frame-success-card, .aifc-success-card) h3 {
    max-width: 10ch;
    margin: 0;
    font-size: clamp(2.4rem, 7vw, 4.5rem);
    letter-spacing: -0.04em;
    line-height: 0.95;
}

:is(.frame-success-card, .aifc-success-card) p {
    max-width: 34rem;
    margin: 1.25rem 0;
}

:is(.frame-honeypot, .aifc-honeypot) {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

:is(.frame-questions, .aifc-questions) {
    background: var(--frame-canvas);
}

:is(.frame-questions-layout, .aifc-questions-layout) {
    display: grid;
    gap: clamp(3rem, 7vw, 7rem);
    padding-block: var(--frame-section-space);
}

html[lang='en'] :is(.frame-questions-layout, .aifc-questions-layout) :is(.frame-section-title, .aifc-section-title) {
    font-size: clamp(2.25rem, 5vw, 5.5rem);
}

:is(.frame-faq, .aifc-faq) {
    border-top: 1px solid var(--frame-ink);
}

:is(.frame-faq, .aifc-faq) details {
    border-bottom: 1px solid var(--frame-ink);
}

:is(.frame-faq, .aifc-faq) summary {
    min-height: 4.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding-block: 1rem;
    cursor: pointer;
    font-size: clamp(1rem, 1.6vw, 1.25rem);
    font-weight: 650;
    list-style: none;
}

:is(.frame-faq, .aifc-faq) summary span {
    max-width: calc(100% - 3.25rem);
    text-wrap: pretty;
}

:is(.frame-faq, .aifc-faq) summary::-webkit-details-marker {
    display: none;
}

:is(.frame-faq, .aifc-faq) summary i {
    position: relative;
    width: 1.25rem;
    height: 1.25rem;
    flex: 0 0 auto;
}

:is(.frame-faq, .aifc-faq) summary i::before,
:is(.frame-faq, .aifc-faq) summary i::after {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--frame-ink);
    content: '';
    transition: transform 180ms var(--frame-ease);
}

:is(.frame-faq, .aifc-faq) summary i::after {
    transform: rotate(90deg);
}

:is(.frame-faq, .aifc-faq) details[open] summary i::after {
    transform: rotate(0);
}

:is(.frame-faq, .aifc-faq) details > p {
    margin: -0.4rem 0 1.5rem;
    line-height: 1.55;
    text-wrap: pretty;
}

:is(.frame-footer, .aifc-footer) {
    background: var(--frame-ink);
    color: var(--frame-canvas);
}

:is(.frame-footer-layout, .aifc-footer-layout) {
    display: grid;
    gap: 3rem;
    padding-block: clamp(3.5rem, 7vw, 6rem);
}

:is(.frame-footer-wordmark, .aifc-footer-wordmark) {
    font-size: clamp(1.8rem, 7vw, 4rem);
    line-height: 0.86;
}

:is(.frame-footer-wordmark, .aifc-footer-wordmark) :is(.frame-brand-node, .aifc-brand-node) {
    width: clamp(1rem, 1.4vw, 1.5rem);
    height: clamp(1rem, 1.4vw, 1.5rem);
}

:is(.frame-footer-nav, .aifc-footer-nav) {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 1.5rem;
}

:is(.frame-footer-nav, .aifc-footer-nav) a,
:is(.frame-footer-nav, .aifc-footer-nav) button {
    min-height: 2.75rem;
    display: inline-flex;
    align-items: center;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 0.25rem;
    cursor: pointer;
}

:is(.frame-supported, .aifc-supported) {
    margin: 0;
    font-size: 0.8rem;
}

:is(.frame-supported, .aifc-supported) a {
    text-underline-offset: 0.2rem;
}

/* Privacy controls use the same operating-system language as the meetup. */
:is(.frame-page, .aifc-page) .cookie-banner-container {
    --cookie-bg: var(--frame-canvas);
    --cookie-text: var(--frame-ink);
    --cookie-text-muted: color-mix(in oklch, var(--frame-ink) 72%, var(--frame-canvas));
    --cookie-primary: var(--frame-violet);
    --cookie-secondary: var(--frame-violet);
    --cookie-border: var(--frame-ink);
    --cookie-shadow: none;
    inset: auto var(--frame-gutter) 0;
    width: auto;
    max-width: var(--frame-shell);
    margin-inline: auto;
    border: 1px solid var(--frame-ink);
    border-bottom: 0;
    border-radius: 0;
    box-shadow: none;
    background: var(--frame-canvas);
    color: var(--frame-ink);
    font-family: var(--frame-font);
    animation: aifc-cookie-enter 300ms var(--frame-ease);
}

:is(.frame-page, .aifc-page) .cookie-banner {
    padding: clamp(1rem, 2vw, 1.5rem);
}

:is(.frame-page, .aifc-page) .cookie-banner-simple {
    display: grid;
    gap: 1.25rem;
}

:is(.frame-page, .aifc-page) .cookie-message {
    max-width: 68ch;
    margin: 0;
}

:is(.frame-page, .aifc-page) .cookie-message h3,
:is(.frame-page, .aifc-page) .cookie-settings-header h3 {
    margin: 0 0 0.55rem;
    color: var(--frame-ink);
    font-size: clamp(1.05rem, 2vw, 1.35rem);
    font-weight: 700;
    letter-spacing: -0.025em;
}

:is(.frame-page, .aifc-page) .cookie-message p,
:is(.frame-page, .aifc-page) .cookie-settings-header p,
:is(.frame-page, .aifc-page) .cookie-option p {
    color: var(--cookie-text-muted);
    line-height: 1.5;
}

:is(.frame-page, .aifc-page) .cookie-message p {
    margin: 0 0 0.35rem;
    font-size: 0.82rem;
}

:is(.frame-page, .aifc-page) .cookie-message a {
    color: var(--frame-ink);
    font-weight: 650;
    text-decoration: underline;
    text-underline-offset: 0.18rem;
}

:is(.frame-page, .aifc-page) .cookie-actions,
:is(.frame-page, .aifc-page) .cookie-settings-actions {
    display: flex;
    align-items: stretch;
    gap: 0;
}

:is(.frame-page, .aifc-page) .cookie-btn {
    min-height: 3rem;
    padding: 0.7rem 1rem;
    border: 1px solid var(--frame-ink);
    border-radius: 0;
    background: transparent;
    color: var(--frame-ink);
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.2;
    transition: background 180ms var(--frame-ease), color 180ms var(--frame-ease);
}

:is(.frame-page, .aifc-page) .cookie-btn + .cookie-btn {
    margin-left: -1px;
}

:is(.frame-page, .aifc-page) .cookie-btn-accept {
    background: var(--frame-violet);
    color: var(--frame-ink);
}

:is(.frame-page, .aifc-page) .cookie-btn-reject,
:is(.frame-page, .aifc-page) .cookie-btn-settings {
    border-color: var(--frame-ink);
    color: var(--frame-ink);
}

:is(.frame-page, .aifc-page) .cookie-banner-settings {
    margin-top: 0;
    padding-top: 1.25rem;
    border-top: 1px solid var(--frame-ink);
}

:is(.frame-page, .aifc-page) .cookie-settings-header p {
    max-width: 68ch;
    margin: 0 0 1.25rem;
    font-size: 0.82rem;
}

:is(.frame-page, .aifc-page) .cookie-settings-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    max-height: min(42vh, 21rem);
    margin: 0 0 1.25rem;
    border-top: 1px solid var(--frame-ink);
    border-left: 1px solid var(--frame-ink);
}

:is(.frame-page, .aifc-page) .cookie-option {
    gap: 0.75rem;
    padding: 0.9rem;
    border: 0;
    border-right: 1px solid var(--frame-ink);
    border-bottom: 1px solid var(--frame-ink);
    border-radius: 0;
    background: transparent;
}

:is(.frame-page, .aifc-page) .cookie-option.disabled {
    opacity: 1;
}

:is(.frame-page, .aifc-page) .cookie-option h4 {
    margin: 0 0 0.35rem;
    color: var(--frame-ink);
    font-size: 0.82rem;
    font-weight: 700;
}

:is(.frame-page, .aifc-page) .cookie-option p {
    margin: 0;
    font-size: 0.75rem;
}

:is(.frame-page, .aifc-page) .cookie-checkbox {
    width: 1.1rem;
    height: 1.1rem;
    min-width: 1.1rem;
    border: 1px solid var(--frame-ink);
    border-radius: 0;
}

:is(.frame-page, .aifc-page) .cookie-checkbox:checked,
:is(.frame-page, .aifc-page) .cookie-checkbox:disabled {
    border-color: var(--frame-ink);
    background: var(--frame-violet);
}

:is(.frame-page, .aifc-page) .cookie-checkbox:checked::after {
    top: 1px;
    left: 5px;
    border-color: var(--frame-ink);
}

:is(.frame-page, .aifc-page) .cookie-banner-container.settings-open {
    max-width: var(--frame-shell);
}

@keyframes aifc-cookie-enter {
    from {
        opacity: 0;
        transform: translateY(1rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (hover: hover) {
    :is(.frame-page, .aifc-page) .cookie-btn:hover {
        transform: none;
        background: var(--frame-ink);
        color: var(--frame-canvas);
    }

    :is(.frame-page, .aifc-page) .cookie-btn-accept:hover {
        background: var(--frame-ink);
        color: var(--frame-canvas);
    }
}

@media (min-width: 64rem) {
    :is(.frame-page, .aifc-page) .cookie-banner-simple {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: end;
        gap: 2rem;
    }

    :is(.frame-page, .aifc-page) .cookie-settings-options {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 47.99rem) {
    :is(.frame-page, .aifc-page) .cookie-banner-container {
        inset: auto 0 0;
        max-width: none;
        border-inline: 0;
    }

    :is(.frame-page, .aifc-page) .cookie-actions,
    :is(.frame-page, .aifc-page) .cookie-settings-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    :is(.frame-page, .aifc-page) .cookie-btn {
        width: 100%;
        padding: 0.8rem 1rem;
    }

    :is(.frame-page, .aifc-page) .cookie-btn + .cookie-btn {
        margin-top: -1px;
        margin-left: 0;
    }

    :is(.frame-page, .aifc-page) .cookie-settings-options {
        grid-template-columns: 1fr;
        max-height: 45vh;
    }
}

@media (hover: hover) {
    :is(.frame-language-switch, .aifc-language-switch) button:hover {
        background: color-mix(in oklch, var(--frame-violet) 42%, transparent);
    }

    :is(.frame-language-switch, .aifc-language-switch) button[aria-pressed='true']:hover {
        background: var(--frame-violet);
    }

    :is(.frame-button, .aifc-button):hover {
        background: var(--frame-ink);
        color: var(--frame-canvas);
    }

    :is(.frame-button-ink, .aifc-button-ink):hover {
        background: var(--frame-violet);
        color: var(--frame-ink);
    }

    :is(.frame-nav, .aifc-nav) a:hover,
    :is(.frame-text-link, .aifc-text-link):hover,
    :is(.frame-footer-nav, .aifc-footer-nav) a:hover,
    :is(.frame-footer-nav, .aifc-footer-nav) button:hover {
        text-decoration-thickness: 2px;
    }
}

@media (min-width: 48rem) {
    :is(.frame-system-meta, .aifc-system-meta) {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    :is(.frame-system-meta, .aifc-system-meta) p:nth-child(odd) {
        border-right: 1px solid var(--frame-ink);
    }

    :is(.frame-system-meta, .aifc-system-meta) p:nth-last-child(-n + 2) {
        border-bottom: 0;
    }

    :is(.frame-event-facts, .aifc-event-facts) {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    :is(.frame-event-facts, .aifc-event-facts) > div {
        border-right: 1px solid var(--frame-ink);
        border-bottom: 0;
    }

    :is(.frame-event-facts, .aifc-event-facts) > div:last-child { border-right: 0; }

    :is(.frame-section-heading, .aifc-section-heading),
    :is(.frame-community-intro, .aifc-community-intro) {
        grid-template-columns: minmax(0, 1.2fr) minmax(18rem, 0.8fr);
        align-items: end;
    }

    :is(.frame-timeline, .aifc-timeline) {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        margin-top: clamp(3.5rem, 7vw, 6rem);
        padding-top: 0;
    }

    :is(.frame-timeline, .aifc-timeline)::before {
        inset: 4.2rem var(--frame-gutter) auto var(--frame-gutter);
        width: auto;
        height: 1px;
    }

    :is(.frame-timeline-item, .aifc-timeline-item) {
        display: block;
        padding: 0 clamp(0.5rem, 1.4vw, 1.25rem) 0 0;
    }

    :is(.frame-time, .aifc-time) {
        min-height: 6.4rem;
        display: block;
        font-size: clamp(2rem, 4vw, 4rem);
    }

    :is(.frame-time, .aifc-time) i {
        top: 3.75rem;
        left: 0;
    }

    :is(.frame-timeline, .aifc-timeline) h3 {
        min-height: 2.4rem;
        margin-top: 1rem;
    }

    :is(.frame-timeline, .aifc-timeline) p {
        margin-top: 0.75rem;
        padding-right: 0.5rem;
        font-size: 0.9rem;
    }

    :is(.frame-community-grid, .aifc-community-grid) {
        grid-template-columns: minmax(0, 1fr) 6rem minmax(0, 1fr);
        grid-template-rows: minmax(15rem, auto) 6rem minmax(15rem, auto);
        gap: 0;
        padding: 0;
        background: transparent;
    }

    :is(.frame-role, .aifc-role) {
        border: 1px solid var(--frame-canvas);
    }

    :is(.frame-role-operators, .aifc-role-operators) {
        grid-area: 1 / 1;
    }

    :is(.frame-role-founders, .aifc-role-founders) {
        grid-area: 1 / 3;
    }

    :is(.frame-role-builders, .aifc-role-builders) {
        grid-area: 3 / 1;
    }

    :is(.frame-role-researchers, .aifc-role-researchers) {
        grid-area: 3 / 3;
    }

    :is(.frame-community-core, .aifc-community-core) {
        grid-area: 2 / 2;
        min-height: 6rem;
        border: 1px solid var(--frame-canvas);
    }

    :is(.frame-operator-id, .aifc-operator-id) {
        grid-template-columns: minmax(24rem, 1fr) minmax(20rem, 1fr);
    }

    :is(.frame-operator-code, .aifc-operator-code) {
        grid-row: 1 / span 2;
        min-height: 20rem;
        border-right: 1px solid var(--frame-canvas);
    }

    :is(.frame-operator-code, .aifc-operator-code) span,
    :is(.frame-operator-code, .aifc-operator-code) strong {
        font-size: clamp(2.6rem, 5vw, 5.5rem);
    }

    :is(.frame-operator-meta, .aifc-operator-meta) {
        grid-column: 2;
    }

    :is(.frame-questions-layout, .aifc-questions-layout) {
        grid-template-columns: minmax(14rem, 0.55fr) minmax(0, 1.45fr);
        align-items: start;
    }

    :is(.frame-footer-layout, .aifc-footer-layout) {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        align-items: end;
    }

    :is(.frame-footer-wordmark, .aifc-footer-wordmark) {
        grid-column: 1 / -1;
    }

    :is(.frame-supported, .aifc-supported) {
        justify-self: end;
        text-align: right;
    }
}

@media (min-width: 64rem) {
    :is(.frame-menu-toggle, .aifc-menu-toggle) {
        display: none;
    }

    :is(.frame-nav, .aifc-nav) {
        position: static;
        display: flex;
        align-items: center;
        gap: clamp(1.25rem, 2vw, 2rem);
        margin-left: auto;
        border: 0;
        background: transparent;
    }

    :is(.frame-nav, .aifc-nav) a {
        min-height: 2.75rem;
        padding: 0;
        border: 0;
    }

    :is(.frame-nav-cta, .aifc-nav-cta) {
        min-height: 2.75rem;
        display: inline-flex;
        align-items: center;
        gap: 1rem;
        padding: 0.5rem 0.75rem;
        border: 1px solid var(--frame-ink);
        background: var(--frame-violet);
        font-size: 0.84rem;
        font-weight: 700;
        text-decoration: none;
    }

    :is(.frame-header-actions, .aifc-header-actions) {
        gap: 0.85rem;
    }

    :is(.frame-hero-frame, .aifc-hero-frame) {
        grid-template-columns: minmax(0, 8fr) minmax(18rem, 4fr);
        grid-template-rows: auto auto;
    }

    :is(.frame-hero-main, .aifc-hero-main) {
        min-height: clamp(34rem, 38vw, 40rem);
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        padding-block: clamp(4rem, 6vw, 6rem);
    }

    :is(.frame-tagline, .aifc-tagline) {
        white-space: nowrap;
    }

    :is(.frame-system-meta, .aifc-system-meta) {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: repeat(4, minmax(0, 1fr));
        border-top: 0;
        border-left: 1px solid var(--frame-ink);
    }

    :is(.frame-system-meta, .aifc-system-meta) p {
        min-height: 0;
        padding-inline: clamp(1.25rem, 2.5vw, 2.5rem);
        border-right: 0 !important;
        border-bottom: 1px solid var(--frame-ink) !important;
    }

    :is(.frame-system-meta, .aifc-system-meta) p:last-child {
        border-bottom: 0 !important;
    }

    :is(.frame-event-facts, .aifc-event-facts) {
        grid-column: 1 / -1;
    }

    :is(.frame-event-facts, .aifc-event-facts) > div {
        padding-inline: clamp(1.25rem, 2.5vw, 2.5rem);
    }

    :is(.frame-join-layout, .aifc-join-layout) {
        grid-template-columns: minmax(0, 0.9fr) minmax(24rem, 1.1fr);
        align-items: start;
    }

    :is(.frame-footer-layout, .aifc-footer-layout) {
        grid-template-columns: minmax(0, 1fr) minmax(18rem, auto);
        gap: clamp(2rem, 3vw, 4rem);
    }

    :is(.frame-footer-wordmark, .aifc-footer-wordmark) {
        grid-column: 1 / -1;
        font-size: clamp(2.25rem, 3.2vw, 3.5rem);
    }
}

@media (min-width: 90rem) {
    :is(.frame-hero-main, .aifc-hero-main) {
        padding-left: clamp(3rem, 5vw, 5rem);
    }
}

@media (prefers-reduced-motion: no-preference) {
    :is(.frame-timeline, .aifc-timeline).is-visible :is(.frame-timeline-item, .aifc-timeline-item),
    :is(.frame-community-grid, .aifc-community-grid).is-visible :is(.frame-role, .aifc-role) {
        animation: aifc-rise 620ms var(--frame-ease) both;
        animation-delay: calc(var(--i, 0) * 70ms);
    }

    :is(.frame-role, .aifc-role):nth-of-type(1) { --i: 0; }
    :is(.frame-role, .aifc-role):nth-of-type(2) { --i: 1; }
    :is(.frame-role, .aifc-role):nth-of-type(3) { --i: 2; }
    :is(.frame-role, .aifc-role):nth-of-type(4) { --i: 3; }

    @keyframes aifc-rise {
        from {
            opacity: 0.55;
            transform: translateY(0.75rem);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

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

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

/* FRAME: CTA jako link musi zachować kolor przycisku (a { color: inherit } ma wyższą specyficzność) */
:is(.frame-page, .aifc-page) a:is(.frame-button-ink, .aifc-button-ink) {
    color: var(--frame-canvas);
}

/* FRAME: ilustracja hero jako pełnowymiarowy pas w ramie hero */
:is(.frame-hero-art, .aifc-hero-art) {
    margin: 0;
    border-top: 1px solid var(--frame-ink);
}

:is(.frame-hero-art, .aifc-hero-art) img {
    display: block;
    width: 100%;
    height: auto;
}

@media (min-width: 64rem) {
    :is(.frame-hero-art, .aifc-hero-art) {
        grid-column: 1 / -1;
    }
}

/* FRAME: kafel centralny siatki jako ilustracja produktu */
:is(.frame-community-core-art, .aifc-community-core-art) {
    padding: 0;
    overflow: hidden;
}

:is(.frame-community-core-art, .aifc-community-core-art) img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
