:root {
    --flow-color-ink: #1f2937;
    --flow-color-muted: #64748b;
    --flow-color-subtle: #94a3b8;
    --flow-color-line: #d8e1ec;
    --flow-color-surface: #ffffff;
    --flow-color-surface-alt: #f8fbff;
    --flow-color-primary: #2563eb;
    --flow-color-primary-dark: #1d4ed8;
    --flow-color-success: #2563eb;
    --flow-color-success-dark: #1d4ed8;
    --flow-color-neutral: #e2e8f0;
    --flow-color-neutral-dark: #cbd5e1;
    --flow-color-accent: #7c3aed;
    --flow-color-accent-dark: #6d28d9;
    --flow-color-warning: #d97706;
    --flow-color-warning-dark: #b45309;
    --flow-shadow-soft: 0 18px 40px rgba(15, 23, 42, 0.08);
    --flow-shadow-card: 0 10px 26px rgba(15, 23, 42, 0.08);
    --flow-radius-lg: 2rem;
    --flow-radius-md: 1.2rem;
    --flow-radius-sm: 0.9rem;
    --flow-shell-width: 112rem;
    --flow-shell-narrow: 82rem;
    --flow-shell-form: 76rem;
}

/**.flow-page {
  background:
    radial-gradient(circle at top, rgba(191, 219, 254, 0.38), transparent 36rem),
    linear-gradient(180deg, #f8fbff 0%, #ffffff 22rem);
    } **/

.flow-shell {
    width: min(calc(100% - 3.2rem), var(--flow-shell-width));
    margin: 0 auto;
}

.flow-shell--narrow {
    max-width: var(--flow-shell-narrow);
}

.flow-shell--form {
    max-width: var(--flow-shell-form);
}

.flow-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    min-height: 5.2rem;
    padding: 1.2rem 2rem;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background-color 0.2s ease,
        color 0.2s ease;
}

.flow-button:hover,
.flow-button:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 14px 24px rgba(37, 99, 235, 0.18);
}

.flow-button:focus-visible {
    outline: 3px solid rgba(59, 130, 246, 0.28);
    outline-offset: 2px;
}

.flow-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.flow-button--primary {
    background: linear-gradient(
        135deg,
        var(--flow-color-primary) 0%,
        var(--flow-color-primary-dark) 100%
    );
    color: #ffffff;
}

.flow-button--success {
    background: linear-gradient(
        135deg,
        var(--flow-color-success) 0%,
        var(--flow-color-success-dark) 100%
    );
    color: #ffffff;
}

.flow-button--secondary {
    background: var(--flow-color-neutral);
    color: var(--flow-color-ink);
}

.flow-button--secondary:hover,
.flow-button--secondary:focus-visible {
    box-shadow: 0 12px 22px rgba(148, 163, 184, 0.24);
}

.flow-button--accent {
    background: linear-gradient(
        135deg,
        var(--flow-color-accent) 0%,
        var(--flow-color-accent-dark) 100%
    );
    color: #ffffff;
}

.flow-button--warning {
    background: linear-gradient(
        135deg,
        var(--flow-color-warning) 0%,
        var(--flow-color-warning-dark) 100%
    );
    color: #ffffff;
}

.flow-input {
    width: 100%;
    min-height: 5rem;
    padding: 1.2rem 1.4rem;
    border: 1px solid #cbd5e1;
    border-radius: var(--flow-radius-sm);
    background: #ffffff;
    color: var(--flow-color-ink);
    font-size: 1.6rem;
    line-height: 1.5;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background-color 0.2s ease;
}

.flow-input::placeholder {
    color: var(--flow-color-subtle);
}

.flow-input:focus {
    outline: none;
    border-color: #60a5fa;
    box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.18);
}

.flow-card {
    border: 1px solid var(--flow-color-line);
    border-radius: var(--flow-radius-lg);
    background: var(--flow-color-surface);
    box-shadow: var(--flow-shadow-card);
}

@media (min-width: 768px) {
    .flow-shell {
        width: min(calc(100% - 4.8rem), var(--flow-shell-width));
    }
}
