/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: 0.6875rem 1.25rem;
    font-size: var(--text-sm);
    font-weight: 500;
    line-height: 1.4;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    cursor: pointer;
    transition: background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
    text-decoration: none;
    white-space: nowrap;
}

.btn:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.btn--sm { padding: 0.5rem 1rem; font-size: var(--text-xs); }
.btn--lg { padding: 0.8125rem 1.5rem; font-size: var(--text-base); }
.btn--block { width: 100%; }

.btn--primary {
    background: var(--color-primary);
    color: #fff;
    box-shadow: var(--shadow-sm);
}

.btn--primary:hover {
    background: var(--color-primary-hover);
    color: #fff;
    box-shadow: var(--shadow-md);
}

.btn--secondary {
    background: var(--color-surface);
    color: var(--color-text);
    border-color: var(--color-border-strong);
}

.btn--secondary:hover {
    background: var(--color-bg);
    color: var(--color-text);
}

.btn--ghost {
    background: transparent;
    color: var(--color-text-muted);
    border-color: transparent;
}

.btn--ghost:hover { color: var(--color-text); background: rgb(2 22 58 / 0.04); }

.cta-band .btn--ghost { color: rgb(255 255 255 / 0.85); }
.cta-band .btn--ghost:hover { color: #fff; background: rgb(255 255 255 / 0.08); }

/* Section heading */
.section-heading { margin-bottom: var(--space-10); max-width: 42rem; }
.section-heading--center { margin-inline: auto; text-align: center; }
.section-heading__eyebrow {
    font-size: var(--text-sm);
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--color-primary);
    margin-bottom: var(--space-3);
}
.section-heading__title { margin-bottom: var(--space-4); }
.section-heading__description {
    font-size: var(--text-lg);
    color: var(--color-text-muted);
    line-height: 1.65;
}

/* CTA band */
.cta-band {
    background: var(--gradient-hero);
    color: var(--color-text-inverse);
    padding-block: var(--space-16);
}

.cta-band__inner {
    display: flex;
    flex-direction: column;
    gap: var(--space-8);
    align-items: flex-start;
}

@media (min-width: 768px) {
    .cta-band__inner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.cta-band__title {
    font-size: var(--text-2xl);
    color: #fff;
    margin-bottom: var(--space-3);
}

.cta-band__description {
    color: rgb(242 244 247 / 0.8);
    font-size: var(--text-md);
    max-width: 32rem;
}

.cta-band__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    flex-shrink: 0;
}

/* Screenshot frame */
.screenshot-frame {
    margin: 0;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
}

.screenshot-frame--shadow { box-shadow: var(--shadow-lg); }

.screenshot-frame__chrome {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: var(--space-3) var(--space-4);
    background: var(--color-navy);
    border-bottom: 1px solid rgb(255 255 255 / 0.06);
}

.screenshot-frame__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgb(255 255 255 / 0.15);
}

.screenshot-frame__dot:first-child { background: #f97066; }
.screenshot-frame__dot:nth-child(2) { background: #fdb022; }
.screenshot-frame__dot:nth-child(3) { background: #12b76a; }

.screenshot-frame__viewport {
    background: var(--color-bg);
    aspect-ratio: var(--screenshot-aspect, auto);
    overflow: hidden;
}

.screenshot-frame--cropped .screenshot-frame__viewport,
.screenshot-frame--composition .screenshot-frame__viewport,
.screenshot-frame--detail .screenshot-frame__viewport {
    aspect-ratio: var(--screenshot-aspect, auto);
}

.screenshot-frame__image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    object-position: top center;
}

.screenshot-frame__expand {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: zoom-in;
    color: inherit;
}

.screenshot-frame__expand::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 55%, rgb(1 11 30 / 0.45) 100%);
    opacity: 0;
    transition: opacity var(--transition-base);
    pointer-events: none;
}

.screenshot-frame__expand:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: -2px;
}

.screenshot-frame__expand-hint {
    position: absolute;
    right: var(--space-4);
    bottom: var(--space-4);
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 0.85rem;
    border: 1px solid rgb(255 255 255 / 0.18);
    border-radius: var(--radius-lg);
    background: rgb(1 11 30 / 0.72);
    color: #fff;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 24px rgb(1 11 30 / 0.28);
    opacity: 0;
    transform: translateY(6px);
    transition: opacity var(--transition-base), transform var(--transition-base);
    pointer-events: none;
}

.screenshot-frame--expandable:hover .screenshot-frame__expand::after,
.screenshot-frame__expand:focus-visible::after {
    opacity: 1;
}

.screenshot-frame--expandable:hover .screenshot-frame__expand-hint,
.screenshot-frame__expand:focus-visible .screenshot-frame__expand-hint {
    opacity: 1;
    transform: translateY(0);
}

@media (hover: none) {
    .screenshot-frame__expand::after,
    .screenshot-frame__expand-hint {
        opacity: 1;
        transform: none;
    }
}

.screenshot-frame--dummy .screenshot-frame__viewport {
    display: grid;
    place-items: center;
    background: linear-gradient(180deg, #e7eef8 0%, #f7f8fa 100%);
}

.screenshot-frame__caption {
    padding: var(--space-4) var(--space-5);
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    border-top: 1px solid var(--color-border);
    text-align: center;
}

/* Image lightbox */
.image-lightbox {
    position: fixed;
    inset: 0;
    z-index: 220;
    display: grid;
    place-items: center;
    padding:
        max(0.75rem, env(safe-area-inset-top, 0px))
        max(0.75rem, env(safe-area-inset-right, 0px))
        max(0.75rem, env(safe-area-inset-bottom, 0px))
        max(0.75rem, env(safe-area-inset-left, 0px));
    color: #fff;
    box-sizing: border-box;
    overflow: hidden;
}

.image-lightbox[hidden] { display: none; }

.image-lightbox__backdrop {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(120% 80% at 50% 0%, rgb(10 45 92 / 0.55) 0%, transparent 55%),
        rgb(1 11 30 / 0.88);
    backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 220ms ease;
}

.image-lightbox__shell {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    width: min(100%, 72rem);
    max-width: 100%;
    height: min(100%, 92dvh);
    max-height: 100%;
    min-width: 0;
    min-height: 0;
    padding: var(--space-4);
    gap: var(--space-3);
    box-sizing: border-box;
    opacity: 0;
    transform: translateY(12px) scale(0.985);
    transition: opacity 220ms ease, transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.image-lightbox.is-open .image-lightbox__backdrop,
.image-lightbox.is-open .image-lightbox__shell {
    opacity: 1;
}

.image-lightbox.is-open .image-lightbox__shell {
    transform: none;
}

.image-lightbox__toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    min-width: 0;
    padding: 0.7rem 0.85rem;
    border: 1px solid rgb(255 255 255 / 0.1);
    border-radius: var(--radius-xl);
    background: rgb(255 255 255 / 0.06);
    box-shadow: 0 12px 32px rgb(1 11 30 / 0.25);
    backdrop-filter: blur(16px);
}

.image-lightbox__meta {
    min-width: 0;
    flex: 1;
}

.image-lightbox__eyebrow {
    display: block;
    margin-bottom: 0.15rem;
    font-size: 0.6875rem;
    font-weight: 650;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgb(194 160 55 / 0.95);
}

.image-lightbox__title {
    margin: 0;
    min-width: 0;
    font-size: var(--text-sm);
    font-weight: 500;
    color: rgb(255 255 255 / 0.92);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.image-lightbox__zoom {
    display: inline-flex;
    align-items: center;
    gap: 0.15rem;
    flex-shrink: 0;
    padding: 0.15rem;
    border: 1px solid rgb(255 255 255 / 0.1);
    border-radius: var(--radius-lg);
    background: rgb(1 11 30 / 0.35);
}

.image-lightbox__btn,
.image-lightbox__zoom-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.35rem;
    height: 2.35rem;
    padding: 0;
    border: 0;
    border-radius: var(--radius-md);
    background: transparent;
    color: #fff;
    cursor: pointer;
    transition: background var(--transition-fast), color var(--transition-fast);
}

.image-lightbox__zoom-label {
    min-width: 3.4rem;
    font-size: 0.8125rem;
    font-weight: 650;
    font-variant-numeric: tabular-nums;
    color: rgb(255 255 255 / 0.88);
}

.image-lightbox__btn:hover,
.image-lightbox__zoom-label:hover {
    background: rgb(255 255 255 / 0.12);
}

.image-lightbox__btn:focus-visible,
.image-lightbox__zoom-label:focus-visible {
    outline: 2px solid rgb(194 160 55 / 0.9);
    outline-offset: 2px;
}

.image-lightbox__btn[disabled] {
    opacity: 0.35;
    cursor: not-allowed;
}

.image-lightbox__btn--close {
    flex-shrink: 0;
    border: 1px solid rgb(255 255 255 / 0.12);
    background: rgb(255 255 255 / 0.08);
}

.image-lightbox__stage {
    position: relative;
    flex: 1;
    width: 100%;
    min-width: 0;
    min-height: 0;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: calc(var(--radius-xl) + 2px);
    cursor: grab;
    touch-action: none;
}

.image-lightbox__stage.is-dragging { cursor: grabbing; }
.image-lightbox__stage.is-fit { cursor: zoom-in; }
.image-lightbox__stage.is-zoomed .image-lightbox__chrome {
    opacity: 0;
    height: 0;
    padding-top: 0;
    padding-bottom: 0;
    border-bottom-width: 0;
    overflow: hidden;
}
.image-lightbox__stage.is-zoomed .image-lightbox__frame {
    border-color: transparent;
    background: transparent;
    box-shadow: none;
}
.image-lightbox__stage.is-zoomed .image-lightbox__canvas {
    padding: 0;
    background: transparent;
}

.image-lightbox__frame {
    width: 100%;
    max-width: 100%;
    max-height: 100%;
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgb(255 255 255 / 0.12);
    border-radius: calc(var(--radius-xl) + 2px);
    background: rgb(2 22 58 / 0.88);
    box-shadow:
        0 0 0 1px rgb(255 255 255 / 0.04),
        0 28px 80px rgb(0 0 0 / 0.45);
    transition: border-color var(--transition-fast), background var(--transition-fast), box-shadow var(--transition-fast);
}

.image-lightbox__chrome {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    padding: 0.7rem 0.9rem;
    background: linear-gradient(180deg, rgb(255 255 255 / 0.06), transparent);
    border-bottom: 1px solid rgb(255 255 255 / 0.08);
    transition: opacity var(--transition-fast);
}

.image-lightbox__chrome span {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgb(255 255 255 / 0.18);
}

.image-lightbox__chrome span:first-child { background: #f97066; }
.image-lightbox__chrome span:nth-child(2) { background: #fdb022; }
.image-lightbox__chrome span:nth-child(3) { background: #12b76a; }

.image-lightbox__canvas {
    flex: 1;
    display: grid;
    place-items: center;
    min-width: 0;
    min-height: 0;
    width: 100%;
    padding: var(--space-3);
    transform-origin: center center;
    will-change: transform;
    background:
        linear-gradient(180deg, rgb(255 255 255 / 0.02), transparent 40%),
        rgb(7 18 42 / 0.95);
}

.image-lightbox__image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    display: block;
    object-fit: contain;
    border-radius: var(--radius-md);
    user-select: none;
    -webkit-user-drag: none;
    box-shadow: 0 16px 40px rgb(0 0 0 / 0.28);
}

.image-lightbox__hint {
    margin: 0;
    flex-shrink: 0;
    text-align: center;
    font-size: 0.75rem;
    letter-spacing: 0.02em;
    color: rgb(255 255 255 / 0.55);
}

@media (max-width: 640px) {
    .image-lightbox {
        padding:
            max(0.5rem, env(safe-area-inset-top, 0px))
            max(0.65rem, env(safe-area-inset-right, 0px))
            max(0.5rem, env(safe-area-inset-bottom, 0px))
            max(0.65rem, env(safe-area-inset-left, 0px));
        align-items: stretch;
    }

    .image-lightbox__shell {
        width: 100%;
        height: 100%;
        max-height: 100%;
        padding: 0.45rem;
        gap: 0.5rem;
    }

    .image-lightbox__toolbar {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas:
            "meta close"
            "zoom zoom";
        align-items: center;
        column-gap: 0.75rem;
        row-gap: 0.55rem;
        padding: 0.6rem 0.7rem;
    }

    .image-lightbox__meta {
        grid-area: meta;
        width: auto;
        min-width: 0;
    }

    .image-lightbox__zoom {
        grid-area: zoom;
        width: 100%;
        justify-content: space-between;
    }

    .image-lightbox__btn--close {
        grid-area: close;
        margin: 0;
        justify-self: end;
    }

    .image-lightbox__stage {
        border-radius: var(--radius-xl);
    }

    .image-lightbox__stage.is-fit .image-lightbox__frame {
        width: 100%;
        max-height: 100%;
        height: auto;
    }

    .image-lightbox__chrome {
        display: none;
    }

    .image-lightbox__canvas {
        display: block;
        width: 100%;
        padding: 0;
        background: transparent;
    }

    .image-lightbox__stage.is-fit .image-lightbox__image {
        width: 100%;
        height: auto;
        max-width: 100%;
        max-height: calc(100dvh - 9.5rem);
        object-fit: contain;
        object-position: center;
        border-radius: var(--radius-lg);
        box-shadow: none;
    }

    .image-lightbox__stage.is-fit .image-lightbox__frame {
        border: 0;
        background: transparent;
        box-shadow: none;
    }

    .image-lightbox__hint {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .screenshot-frame__expand::after,
    .screenshot-frame__expand-hint,
    .image-lightbox__backdrop,
    .image-lightbox__shell {
        transition: none;
    }

    .image-lightbox__shell {
        transform: none;
    }
}

/* Video block */
.video-block__title { font-size: var(--text-xl); margin-bottom: var(--space-2); }
.video-block__description { color: var(--color-text-muted); margin-bottom: var(--space-5); }

.video-block__player {
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
    background: var(--color-navy);
}

.video-block__video {
    width: 100%;
    display: block;
    aspect-ratio: var(--screenshot-aspect, 16 / 9);
    object-fit: contain;
    object-position: center;
    background: var(--color-navy);
}

.video-embed {
    display: block;
    width: 100%;
    aspect-ratio: var(--screenshot-aspect, 16 / 9);
    border: 0;
    background: #000;
}

.video-facade {
    position: relative;
    width: 100%;
    background: #000;
}

.video-facade__button {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    cursor: pointer;
    background: #000;
    color: inherit;
}

.video-facade__button:focus-visible {
    outline: 2px solid #fff;
    outline-offset: -2px;
}

.video-facade__poster {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: var(--screenshot-aspect, 16 / 9);
    object-fit: cover;
    object-position: center;
}

.video-facade__poster--empty {
    background:
        radial-gradient(ellipse 60% 50% at 50% 45%, rgb(255 255 255 / 0.06) 0%, transparent 70%),
        var(--color-navy);
}

.video-facade__play {
    z-index: 1;
}

.video-facade .video-embed {
    width: 100%;
}

.video-block__empty {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: var(--screenshot-aspect, 16 / 9);
    background:
        radial-gradient(ellipse 60% 50% at 50% 45%, rgb(255 255 255 / 0.06) 0%, transparent 70%),
        var(--color-navy);
}

.video-block__poster {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    cursor: pointer;
    background: none;
}

.video-block__poster-image {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: var(--screenshot-aspect, 16 / 9);
    object-fit: contain;
    object-position: center;
}

.video-block__play-icon {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    background: rgb(255 255 255 / 0.95);
    box-shadow: var(--shadow-lg);
}

.video-block__play-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 54%;
    transform: translate(-50%, -50%);
    border-style: solid;
    border-width: 10px 0 10px 16px;
    border-color: transparent transparent transparent var(--color-primary);
}

.video-modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-6);
    background: rgb(12 17 29 / 0.85);
}

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

.video-modal__dialog {
    width: min(100%, 56rem);
    background: var(--color-navy);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.video-modal__close {
    position: absolute;
    top: var(--space-4);
    right: var(--space-4);
    z-index: 1;
    width: 2.5rem;
    height: 2.5rem;
    border: 0;
    border-radius: 50%;
    background: rgb(255 255 255 / 0.1);
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

.video-modal__video { width: 100%; display: block; }

/* Feature grid */
.feature-grid { display: grid; gap: var(--space-6); }
.feature-grid--cols-2 { grid-template-columns: 1fr; }
.feature-grid--cols-3 { grid-template-columns: 1fr; }

@media (min-width: 768px) {
    .feature-grid--cols-2 { grid-template-columns: repeat(2, 1fr); }
    .feature-grid--cols-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .feature-grid--cols-3 { grid-template-columns: repeat(3, 1fr); }
}

.feature-card {
    padding: var(--space-6);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    transition: box-shadow var(--transition-base), border-color var(--transition-base);
}

.feature-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--color-border-strong);
}

.feature-card__icon {
    width: 2.5rem;
    height: 2.5rem;
    margin-bottom: var(--space-4);
    border-radius: var(--radius-md);
    background: var(--color-primary-light);
    color: var(--color-primary);
    display: grid;
    place-items: center;
    font-weight: 600;
    font-size: var(--text-sm);
}

.feature-card__title {
    font-size: var(--text-lg);
    margin-bottom: var(--space-2);
}

.feature-card__title a { color: inherit; text-decoration: none; }
.feature-card__title a:hover { color: var(--color-primary); }

.feature-card__description {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    line-height: 1.6;
    margin: 0;
}

/* Workflow */
.workflow-steps {
    list-style: none;
    display: grid;
    gap: var(--space-4);
    max-width: 48rem;
    margin-inline: auto;
}

@media (min-width: 768px) {
    .workflow-steps { grid-template-columns: repeat(2, 1fr); gap: var(--space-6); }
}

@media (min-width: 1280px) {
    .workflow-steps { grid-template-columns: repeat(3, 1fr); }
}

.workflow-step {
    display: flex;
    gap: var(--space-4);
    padding: var(--space-5);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
}

.workflow-step__number {
    flex-shrink: 0;
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-primary);
    letter-spacing: 0.04em;
}

.workflow-step__label { font-size: var(--text-md); margin-bottom: var(--space-1); }
.workflow-step__description {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    margin: 0;
    line-height: 1.55;
}

/* Pricing */
.pricing-cards {
    display: grid;
    gap: var(--space-6);
    align-items: stretch;
}

@media (min-width: 768px) {
    .pricing-cards { grid-template-columns: repeat(3, 1fr); }
}

.pricing-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: var(--space-8);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
}

.pricing-card--featured {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-lg);
}

.pricing-card__badge {
    position: absolute;
    top: var(--space-4);
    right: var(--space-4);
    padding: var(--space-1) var(--space-3);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--color-primary);
    background: var(--color-primary-light);
    border-radius: 999px;
}

.pricing-card__name { font-size: var(--text-xl); margin-bottom: var(--space-2); }
.pricing-card__description {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    margin-bottom: var(--space-6);
    flex-grow: 1;
}

.pricing-card__amount {
    font-size: var(--text-2xl);
    font-weight: 600;
    margin-bottom: var(--space-6);
}

.pricing-card__amount--quote { font-size: var(--text-xl); }

.pricing-card__features {
    list-style: none;
    margin-bottom: var(--space-8);
    font-size: var(--text-sm);
}

.pricing-card__features li {
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: var(--space-2);
    color: var(--color-text-muted);
}

.pricing-card__features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.45em;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: var(--color-emerald);
}

.pricing-cards__footnote {
    margin-top: var(--space-8);
    text-align: center;
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}

/* FAQ */
.faq { max-width: 42rem; margin-inline: auto; }

.faq__item {
    border-bottom: 1px solid var(--color-border);
}

.faq__question {
    padding: var(--space-5) 0;
    font-weight: 500;
    font-size: var(--text-md);
    cursor: pointer;
    list-style: none;
}

.faq__question::-webkit-details-marker { display: none; }

.faq__answer {
    padding-bottom: var(--space-5);
    color: var(--color-text-muted);
    font-size: var(--text-sm);
    line-height: 1.65;
}

/* Forms */
.form-field { margin-bottom: var(--space-5); }

.form-field__label {
    display: block;
    font-size: var(--text-sm);
    font-weight: 500;
    margin-bottom: var(--space-2);
}

.form-field__required { color: var(--color-amber); margin-left: 2px; }

.form-field__input {
    width: 100%;
    padding: 0.6875rem 0.875rem;
    font-size: var(--text-base);
    border: 1px solid var(--color-border-strong);
    border-radius: var(--radius-md);
    background: var(--color-surface);
    color: var(--color-text);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-field__input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgb(3 40 106 / 0.15);
}

.form-field__textarea { min-height: 8rem; resize: vertical; }

.form-field--error .form-field__input { border-color: #d92d20; }

.form-field__help,
.form-field__error {
    font-size: var(--text-xs);
    margin-top: var(--space-2);
}

.form-field__optional {
    font-weight: 400;
    color: var(--color-text-subtle);
    font-size: 0.8125rem;
}

.form-field__help { color: var(--color-text-subtle); }
.form-field__error { color: #d92d20; }

.form-checkbox-group {
    display: grid;
    gap: var(--space-2);
}

.form-checkbox {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}

.form-card {
    padding: var(--space-8);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
}

/* Alerts */
.alert {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--space-4);
    padding: var(--space-4) var(--space-5);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-6);
    font-size: var(--text-sm);
}

.alert--success { background: var(--color-emerald-wash); color: #027a48; border: 1px solid #a6f4c5; }
.alert--error { background: #fef3f2; color: #b42318; border: 1px solid #fecdca; }
.alert--info { background: #eff8ff; color: #175cd3; border: 1px solid #b2ddff; }
.alert--warning { background: var(--color-amber-wash); color: #b54708; border: 1px solid #fedf89; }

.alert__title { font-weight: 600; margin-bottom: var(--space-1); }
.alert__message { margin: 0; }

.alert__dismiss {
    background: none;
    border: 0;
    font-size: 1.25rem;
    cursor: pointer;
    opacity: 0.6;
    padding: 0;
    line-height: 1;
}

/* Breadcrumbs */
.breadcrumbs { margin-bottom: var(--space-6); }

.breadcrumbs__list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    list-style: none;
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}

.breadcrumbs__item:not(:last-child)::after {
    content: '/';
    margin-left: var(--space-2);
    color: var(--color-text-subtle);
}

.breadcrumbs__item a { color: var(--color-text-muted); }
.breadcrumbs__item a:hover { color: var(--color-primary); }

/* Comparison table */
.table-comparison {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--text-sm);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.table-comparison th,
.table-comparison td {
    padding: var(--space-4) var(--space-5);
    text-align: left;
    border-bottom: 1px solid var(--color-border);
}

.table-comparison th {
    background: var(--color-bg);
    font-weight: 600;
}

.table-comparison tr:last-child td { border-bottom: 0; }

.table-comparison__check {
    color: var(--color-emerald);
    font-weight: 600;
}

/* Lifecycle strip */
.lifecycle-strip {
    display: grid;
    gap: var(--space-3);
}

@media (min-width: 768px) {
    .lifecycle-strip {
        grid-template-columns: repeat(5, 1fr);
        gap: var(--space-2);
    }
}

.lifecycle-phase {
    padding: var(--space-5);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: border-color var(--transition-base), box-shadow var(--transition-base);
    text-align: left;
}

.lifecycle-phase:hover,
.lifecycle-phase.is-active {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-md);
}

.lifecycle-phase__label {
    display: block;
    font-weight: 600;
    font-size: var(--text-md);
    margin-bottom: var(--space-1);
    color: var(--color-text);
}

.lifecycle-phase__summary {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    margin: 0;
    line-height: 1.5;
}

.lifecycle-detail {
    margin-top: var(--space-8);
    padding: var(--space-6);
    background: var(--gradient-accent);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
}

.lifecycle-detail__text {
    font-size: var(--text-md);
    color: var(--color-text-muted);
    margin-bottom: var(--space-4);
}

.lifecycle-detail__link {
    font-size: var(--text-sm);
    font-weight: 500;
}

/* Persona / solution cards */
.persona-card {
    padding: var(--space-8);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    height: 100%;
}

.persona-card__title { font-size: var(--text-xl); margin-bottom: var(--space-3); }
.persona-card__description { color: var(--color-text-muted); margin-bottom: var(--space-5); }
.persona-card__link { font-weight: 500; font-size: var(--text-sm); }

/* Callout (docs) */
.callout {
    padding: var(--space-5);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--color-primary);
    background: var(--color-primary-light);
    margin-block: var(--space-6);
    font-size: var(--text-sm);
}

.callout--warning {
    border-color: var(--color-amber);
    background: var(--color-amber-wash);
}

/* Error page */
.error-page {
    min-height: 60vh;
    display: grid;
    place-items: center;
    text-align: center;
    padding: var(--space-16) var(--space-4);
}

.error-page__code {
    font-size: clamp(4rem, 10vw, 6rem);
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1;
    margin-bottom: var(--space-4);
}

.error-page__title { margin-bottom: var(--space-3); }
.error-page__description { color: var(--color-text-muted); margin-bottom: var(--space-8); }
